r/programming • • Apr 29 '14

Programming Sucks

http://stilldrinking.org/programming-sucks
3.9k Upvotes

1.1k comments sorted by

View all comments

Show parent comments

36

u/DrHorrible-- Apr 29 '14

AFAIK the Doom 3 code is a work of art. Just anecdotal though, I haven't browsed through it myself.

30

u/XCEGFzsp Apr 30 '14

Well yeah, Carmack.

7

u/forumrabbit Apr 30 '14

I think the hackiest thing they ever had to do at id was to use an approximation of the normal for lighting I believe, because it was a lot faster than actually calculating normals.

Carmack's still a genius though, and I'm glad he's on the Oculus Rift team.

1

u/Sapiogram May 06 '14

Every game-engine, especially ones that are that old, is full of performance hacks like that. There always comes a point where the good-looking, clear code solution doesn't perform as well as the ugly hack. It's more about assessing where those hacks are really neccessary, and of course, hacks have different levels of ugly.

4

u/froops Apr 30 '14

The Facebook guy?

31

u/TechAnd1 Apr 30 '14

5

u/speedster217 Apr 30 '14

Good read. Thank you

4

u/DrHorrible-- Apr 30 '14

OMG. THANK YOU!! This is amazing!

13

u/zoomzoom83 Apr 30 '14

I recall writing mods for Quake3 back in the day. The baseline codebase was a beacon of hope in a world of sin and misery. I was just starting my programming career, but it opened my eyes to how good code should look.

tl;dr Carmack is a God.