blarg?

October 31, 2003

Brought To You By The Number Eleven

Filed under: digital — mhoye @ 3:41 pm

I’d like to make one very straightforward and simple point, if I may. First, examine this:

FILE* f = fopen("/usr/src/409/final_world_data.txt", "+w");

Then, I would like to point that the surrounding text is full of asterisks and ampersands and structs and stuff, or at least it was earlier today. Now, it
is surrounded by all of those things and a king’s ransom worth of #ifdefs, and I don’t think I need to tell you what the #ifdef exchange rate looks like right now. Now, can you tell the difference between that line and this line?

FILE* f = fopen("/usr/src/409/final_world_data.txt", "w+");

I know you can. And if you are a programmer, and if your brain is larger than a peanut, you probably know why that small difference is important.

The point I wish to make is this: programming is very, very hard, if you are stupid.

4 Comments

  1. I’ve always thought that the string argument in that case was a little ugly. I prefer open’s semantics.

    Comment by Mike Bruce — October 31, 2003 @ 4:04 pm

  2. What sort of bizarro arcane language is that? Are you, like, trying to create a File object?

    Comment by Mike Kozlowski — October 31, 2003 @ 10:29 pm

  3. I am on the absolute bleeding edge of mid-nineties technology. Fear me.

    Comment by Mike Hoye — November 1, 2003 @ 3:45 am

  4. Hah! That “bizarro language” looks precisely like C.

    Wait till you get to use semaphores and select().

    Comment by Kenneth G. Cavness — November 5, 2003 @ 1:05 pm

RSS feed for comments on this post.

Sorry, the comment form is closed at this time.

Powered by WordPress