Re:The Ten Commandments For C Programmers by H. Spencer (1987)
by zvr on Saturday May 29, 2021 @05:05AM
(#27323972)
Ah, I remember seeing this when it was first posted in comp.lang.c and being duly impressed. I had definitely a printed typeset copy in various work environments.
Remember, it was a time when the language had no function prototypes, and we were seeing more and more code abusing parameter passing and value returning by "knowing" what happens.
Re-reading it now, I'm amazed on how general the commandments are, the underlying wisdom applicable to any language and system.
Re:The Ten Commandments For C Programmers by H. Spencer (1987)
by pitched on Friday May 28, 2021 @07:56PM
(#27321900)
> Thou shalt study thy libraries and strive not to re-invent them without cause,
that thy code may be short and readable and thy days pleasant and productive.
Just reading through the list of names of libraries in a package manager is more than I can handle, let alone reading through their APIs. I imagine this was a bit more possible to do in the 80s. Still though, I wish there was a more manageable way to handle this.
Remember, it was a time when the language had no function prototypes, and we were seeing more and more code abusing parameter passing and value returning by "knowing" what happens.
Re-reading it now, I'm amazed on how general the commandments are, the underlying wisdom applicable to any language and system.
We could update that to "All the world's linux" today.
Just reading through the list of names of libraries in a package manager is more than I can handle, let alone reading through their APIs. I imagine this was a bit more possible to do in the 80s. Still though, I wish there was a more manageable way to handle this.