A few side notes. Somewhat tongue in cheek, somewhat provocative, and on the other hand, quite serious.
There's only one programming language that's worse than PHP, and that is C. Make that two languages worse than PHP: Perl and C.
Whenever there's a need in a programming language community to take pride in knowing every quirk and detail of a language, as your remark alludes to, the merits of said language are up for debate.
Whenever programmers feel the urge to impress their peers with their knowledge of a programming language, the quality of these programmers is up for debate.
Posted Apr 21, 2012 16:38 UTC (Sat) by apoelstra (subscriber, #75205)
[Link]
The use of the 'sizeof' operator is hardly a detail or quirk of the language -- it is absolutely crucial to any C program that uses dynamically allocated memory.
PHP: a fractal of bad design (fuzzy notepad)
Posted May 7, 2012 15:04 UTC (Mon) by rev (guest, #15082)
[Link]
Agreed. One of the reasons C should be avoided like the plague.
PHP: a fractal of bad design (fuzzy notepad)
Posted May 8, 2012 8:49 UTC (Tue) by nix (subscriber, #2304)
[Link]
It's when you find yourself using addition, subtraction, or (size_t)pow() on the result of sizeof() that you really know you're playing with the big boys.
(I've done the first two, but so far have restrained myself from the insanity required for the third, preferring to multiply by hand. How plebeian.)