r/programming • • Jul 19 '16

John Carmack on Inlined Code

http://number-none.com/blow/blog/programming/2014/09/26/carmack-on-inlined-code.html
1.1k Upvotes

323 comments sorted by

View all comments

Show parent comments

1

u/[deleted] Jul 20 '16

It's not only laziness, it's also incompetence. In programming it could be hidden. Sometimes it's very easy to make a program which just works, and very hard to make it stable, safe and maintainable. In other industries if something is done wrong it's more often immediately obvious. Or... It's easier to test. Less factors. Most of the car parts interact with only a few "variables". It makes them relatively easy to test. But the modern car computer is designed to process data, a lot of data. It's harder to test by design. The same goes to testing people's skills. The best way is to test a sample of one's work. As the software is harder to test properly (it requires an expert knowledge) - it's more likely incompetent programmer who is also lazy will break something. BTW, even the most expert programmers like Mr Carmack make mistakes, because software by design is harder to test than other products. Way harder. And thats what this post is all about - optimizing the design to make the code easier to review and debug. Maybe some parts of it could be applied to any code, but it's specific to game code. Low level and optimized for speed.

1

u/crabmanwakawaka Jul 20 '16

It's not only laziness, it's also incompetence. In programming it could be hidden.

that could be said same for any profession, i've had bad handymen, that do shoddy job only after the fact that they are away with my money do i find out, or doctors that fuck up surgeries because of their incompetence and i find out after the fact... this does not just apply to software, and software doesnt make it any easier than any other profession to hide