613 reputation
49
bio website nikic.github.com
location Berlin, Germany
age 19
visits member for 3 years, 5 months
seen Sep 1 at 13:03

PHP sucks. Long live PHP!



Apr
2
awarded  Yearling
Mar
25
answered Slight extension for SQL prepared statements syntax. Need advice
Apr
2
awarded  Yearling
Mar
2
awarded  Editor
Mar
2
revised Why are references rarely used in PHP?
be a bit more realistic about the behavior. It's not an extremely small overhead, it's a full value copy
Mar
2
suggested suggested edit on Why are references rarely used in PHP?
Feb
25
awarded  Caucus
Oct
23
comment What is JavaScript, really?
Do you have any data to back up the claim that IE lost market share due to antitrust cases? To me it looked like IE lost market share simply because it was terrible.
Sep
21
awarded  Good Answer
Aug
4
comment How have languages influenced CPU design?
Oh yeah, I was thinking the other way around, sorry :/
Aug
4
comment How have languages influenced CPU design?
Not sure if related, but those instructions are probably also useful in other situations, like safe memory allocation, i.e. if you are allocating nmemb*size+offset bytes and need to make sure that you don't get an overflow.
Jun
25
awarded  Autobiographer
Apr
2
awarded  Yearling
Nov
17
answered Dynamic Class Inheritance For PHP
Oct
16
awarded  Citizen Patrol
Oct
9
comment When you should NOT use Regular Expressions?
If you are using Perl/PCRE (and probably the other modern regex flavors too), read up about subroutines, named capturing groups and (?(DEFINE)) assertions ;) You can write very clean regexes using those and actually when you use those you will write grammars that are very similar to what you would write in yacc or alike ;)
Oct
9
comment When you should NOT use Regular Expressions?
Wrong! If you are using any of the modern regex flavors (Perl, PCRE, Java, .NET, ...) you can do recursion and assertions and thus can parse also match context-free and context-sensitive grammars.
Sep
23
comment How do you learn Regular Expressions?
Thanks for the edit. This makes this answer far more near to the truth. Though I still don't think that you really need to know Automata Theory (I don't know that, but I still can write complex regular expressions), I do agree that some knowledge of the theory may help. Especially knowing how backtracking works and is controlled by greedy/ungreedy/possessive quantifiers may really help your understanding.
Apr
23
comment Will hand-written assembly disappear?
As far as I know the first part of your answer is plain wrong. Manually writing assembly for speed optimization has in no way died out. Just have a look into the area of video encoding / decoding / transcoding. You'll see lot's of assembly there. Or just any other field, where performance actually matters.
Apr
4
awarded  Commentator