You are viewing a single thread.
View all comments
187 points

Sadly, that’s not code Linus wrote. Nor one he merged. (It’s from git, copied from rsync, committed by Junio)

permalink
report
reply
67 points

here you go, linux 0.01

permalink
report
parent
reply
154 points

Isn’t that from 1991 while the quote is from 1995? If we’re nitpicking maybe we shouldn’t time travel 🤓

permalink
report
parent
reply
62 points

Damn it Time Patrol! You can’t stop me!

permalink
report
parent
reply
47 points

I mean it was 0.01, at that point he was screwed anyway, and he fixed his program.

permalink
report
parent
reply
43 points

He wouldn’t make that statement unless he experienced the horror himself.

Now, if he still does it these days…

permalink
report
parent
reply
16 points

I’ve heard similar from the worst first year CS students you could ever meet. People talk out their ass without the experience to back up their observations constantly. The indentation thing is a reasonable heuristic that states you are adding too much complexity at specific points in your code that suggests you should isolate core pieces of logic into discrete functions. And while that’s broadly reasonable, this often has the downside of you producing code that has a lot of very small, very specific functions that are only ever invoked by other very small, very specific functions. It doesn’t make your code easier to read or understand and it arguably leads to scenarios in which your code becomes very disorganized and needlessly opaque purely because you didn’t want additional indentation in order to meet some kind of arbitrary formatting guideline you set for yourself. This is something that happens in any language but some languages are more susceptible to it than others. PEP8’s line length limit is treated like biblical edict by your more insufferable python developers.

permalink
report
parent
reply
2 points

He barely ever code these days.

permalink
report
parent
reply
7 points

line 152 is the only thing past 3 levels and I’d say that one gets a pass.

permalink
report
parent
reply
43 points

You really think someone would do that? Just go on the internet and tell lies?

permalink
report
parent
reply
20 points

Plus it shows three levels of indentation. Well… there is the extra one created by the compiler directives, but do they really count?

permalink
report
parent
reply

Programmer Humor

!programmerhumor@lemmy.ml

Create post

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.

Community stats

  • 5K

    Monthly active users

  • 1.5K

    Posts

  • 33K

    Comments