Predius, who describes himself as a 16-year-old Peruvian Linux geek, has charted the frequency with which programmers embed unprintable swear words in commentary lines embedded within their computer code. Here the results: 1. PHP 2. C 3. Perl 4. C++ 5. Python & Java 6. C#
I love it. Its also by capita. It divides the number of f***s by the number of lines of code. I would've guessed perl would be #1.
LOL. I code swear words in my PHP all the time too, it's my #1 debugging method. if (what I expect) { //what I want } else { echo '<h1>BOLLOCKS on line N!'; } PHP:
I use a simpler method: if (what I expect==what happens) { echo "THERES A FSCKING ERROR!!!!"; } Code (markup): Of course, I'm a pessimist....
if (what I expect==what happens) { echo "Woohoo!" } else { echo "THERES A FSCKING ERROR!!!!"; } Code (markup): Hey - try using this code instead. it might cut down on your frustration.