News for hackers. Stuff that matters.
Re:John Carmack on Inlined Code by lutusp on Friday September 26, 2014 @05:08PM (#8374856)
> They're written in the style that Carmack describes, and I have methods that span more than 1k lines of code.

I don't think that's the kind of "inlining" being discussed -- to me that's the sign of a program that was transferred from BASIC or COBOL into a more modern language, but without any refactoring or even a grasp if its operation.

I think the similarity between inlining for speed, and inlining to avoid thinking very hard, is more a qualititive than a quantitative distinction.

Re:John Carmack on Inlined Code by dllthomas on Friday September 26, 2014 @05:31PM (#8375004)
"I think the similarity between inlining for speed, and inlining to avoid thinking very hard, is more a qualititive than a quantitative distinction."

I think what's being discussed here is quite either of those - this seems to be "inlining for visibility" and possibly "inlining for simplicity".

Re:John Carmack on Inlined Code by dllthomas on Saturday September 27, 2014 @02:27AM (#8376252)
Is not quite either of those.
Re:John Carmack on Inlined Code by GFK_of_xmaspast on Friday September 26, 2014 @09:58PM (#8375790)
Have you seriously never written a 1000 line routine in C from scratch?
Re:John Carmack on Inlined Code by lutusp on Saturday September 27, 2014 @01:31AM (#8376172)
Sure, before I knew how to write maintainable code. Before I cared to understand my own code months later.

My first best-seller was Apple Writer (1979) (http://en.wikipedia.org/wiki/Apple_Writer), written in assembly language. Even then I tried to create structure and namespaces where none existed, with modest success.

Re:John Carmack on Inlined Code by mdda on Saturday September 27, 2014 @04:10AM (#8376430)
Another great comeback for the annals of HN (like https://news.ycombinator.com/item?id=35083)