zoitz
a capricious webcomic

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

18 Responses

  1. Halfcent

    It looks like your penguin has been cheezing 馃檪

  2. Ravenhawk

    No missing semicolons? Gasp.
    One of these days I’m going to get around to trying python.

  3. Mills

    Man, that penguin is cheezing his f’ing brains out.

  4. tonyb

    I don’t think I’ll be able to sleep for a week
    *shivers*

  5. MexicanJesus

    LMAO. Love the moment.

  6. Tim

    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

  7. Ken

    But then he noticed it, the thing that chilled him to the core: The blocks had no delimiters!

    eeek!

  8. Mitch

    And ruby, the semicolon is optional there.

  9. John S

    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

  10. Evan

    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.

  11. Even Stephen

    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.

  12. Anonymous

    But I always end up with missing colons in my python programs. Why does it require the colons after class, def, etc.?! Why?!

  13. 讗谞讬 诪讗砖讬诐 讗转 驻讬转讜谉 « 诇专讗讜转 砖讜谞讛

    […] 诪讗砖讬诐 讗转 驻讬转讜谉 14 讬讜诇讬, 2008 — ik_5 讗谞讬 诪讗砖讬诐 讗转 驻讬转讜谉 转讞转 讛拽讟讙讜专讬讜转 讛讜诪讜专, 拽讜讚 […]

  14. monk.e.boy

    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

  15. anton

    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…

  16. Leo Petr

    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.

  17. Mike

    I love The Simpsons touch with your comment after the comic

  18. Vlad

    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!