ComFreek

Germany

“Measuring programming progress by lines of code is like measuring aircraft building progress by weight.”
Bill Gates

Twitter: @comfreek

I love typescript and using cutting-edge features of next-gen javascript!

Nice quotes

Downvote taxes

Following that it is 1 of 7 (15%) I assume it was taxes.
— zerkms in this comment

Asking for a PHP book

Gordon's comment about code principles: StackOverflow chat message

Not enough jQuery

Image: http://www.doxdesk.com/img/updates/20091116-so-large.gif

R.I.P. SOAP

→ SOAP vs. REST (might be not 100% true though!)
→ SOAP Overhead explained by Martin Lawrence & Big Mama


Misc.

Common wrong assumptions

  • No one needs syntax highlighting or indentions
  • Beta status is an excuse for security vulnerabilities
  • Screenshots of code are valid code snippets

Favorite series of questions/answers

Regex series: http://meta.stackexchange.com/q/62695/191400

Incl. this question: http://stackoverflow.com/questions/2795065/how-to-determine-if-a-number-is-a-prime-with-regex?lq=1

Common mistakes I've encountered on SO

  • SO as your personal debug console.
  • The old MySQL extension is deprecated (read loud: "OUTDATED, DEPRECATED AND OBSOLETE)
    → MySQLi (with Prepared Statements) or PDO (and be sure to deactivate emulated Prepared Statements there: deactivate PDO::ATTR_EMULATE_PREPARES).
    More information @ http://stackoverflow.com/questions/134099/are-pdo-prepared-statements-sufficient-to-prevent-sql-injection/12202218#12202218

  • Not using htmlspecialchars() for outputting user-edited HTML code

  • mysql(i)_real_escape_string() is not 100% safe when used wrong
    →See this question: http://stackoverflow.com/q/5741187/603003

If you're that far: here are some nice code snippets I've written

  • JS (& jQuery): searchFirstTextOccurence() in DOM: http://stackoverflow.com/a/19523124/603003

  • PHP: addQueryParameters() for adding query parameters to an existing URI string: http://stackoverflow.com/a/19984204/603003

Some funny names other people gave me

  • ComFreak (with "ae")
  • CompFreek
  • ComicFreek
  • CornFreek
  • ComFreeh
Top Answers
1 2 3 4