Horror story
April 21st, 2008
UPDATE: Sorry everybody, no comic today. I’ve simply been swamped with work for the past few days. Look for a return on Friday Saturday. Thanks!
Am I so out of touch…? No, it’s the children who are wrong.
Posted in c, horror story, penguins, programming, python
April 22nd, 2008 at 12:01 am
It looks like your penguin has been cheezing 馃檪
April 22nd, 2008 at 5:34 am
No missing semicolons? Gasp.
One of these days I’m going to get around to trying python.
April 22nd, 2008 at 11:59 am
Man, that penguin is cheezing his f’ing brains out.
April 22nd, 2008 at 1:59 pm
I don’t think I’ll be able to sleep for a week
*shivers*
May 11th, 2008 at 11:38 pm
LMAO. Love the moment.
June 14th, 2008 at 9:46 pm
All talk about animal urine aside, I hate when I think I know what’s wrong and then I go back to the code and it’s there
July 13th, 2008 at 5:40 pm
But then he noticed it, the thing that chilled him to the core: The blocks had no delimiters!
eeek!
July 13th, 2008 at 7:58 pm
And ruby, the semicolon is optional there.
July 13th, 2008 at 9:25 pm
An invisible delimiter is still a delimiter. I would rather have an explicit printable character like ‘;’ as my statement delimiter than some odd invisible newline thing
July 13th, 2008 at 10:11 pm
If your newlines are invisible, you’re using the wrong editor. 馃檪
In all seriousness, sanely-formated code always follows the semicolon with a newline anyway, so there’s really a two-character statement delimiter–it’s just by convention rather than mandated by the grammar. If you always use both, what exactly is the semicolon’s purpose?
There’s a similar sane-formatting argument to be made for indentation-delimited blocks, but it’s not as exact a match.
July 13th, 2008 at 11:00 pm
We hired a programmer who said he knew Python a while back. This is what he turned in:
def __init__(self, width, height,
color=’black’, emphasis=None, highlight=0):
if width == 0 and height == 0 and \
color == ‘red’ and emphasis == ‘strong’ or \
highlight > 100:
raise ValueError(“sorry, you lose”)
if width == 0 and height == 0 and (col….I quit. This is too hard.
July 13th, 2008 at 11:17 pm
But I always end up with missing colons in my python programs. Why does it require the colons after class, def, etc.?! Why?!
July 14th, 2008 at 2:37 am
[…] 诪讗砖讬诐 讗转 驻讬转讜谉 14 讬讜诇讬, 2008 — ik_5 讗谞讬 诪讗砖讬诐 讗转 驻讬转讜谉 转讞转 讛拽讟讙讜专讬讜转 讛讜诪讜专, 拽讜讚 […]
July 14th, 2008 at 3:15 am
Lots of people say they can’t code without semi-colons, I have to ask, do you not indent your code?
Anyone who indents their code should love python.
And if you say “yeah but I have this weird situation where odd indentation really helps the readbility” then I expect you aren’t doing the Python way. Use a dictionary of functions
July 14th, 2008 at 2:03 pm
I have the odd situation where I use indentation to check errors in my code, that is if autoindentation doesn’t look correct I know i missed something…
July 14th, 2008 at 8:57 pm
Incidentally, semicolons are perfectly legal (but optional) in Python code. You can use them anywhere you might in C or Perl or Java.
This kept me sane while I was writing school assignments in Perl for one class and in Python for another. I’d just always use semicolons at the end of a line.
August 31st, 2008 at 2:39 pm
I love The Simpsons touch with your comment after the comic
September 1st, 2008 at 4:15 pm
Hey! I Arrived at your comic today through reddit, and I love it!
You’re in my RSS reader now. Keep up the great work!