When you click on links to various merchants on this site and make a purchase, this can result in this site earning a commission. Affiliate programs and affiliations include, but are not limited to, the eBay Partner Network.
I never used all the spaces to save file size (one space equals 8 bits, that's a LOT of bits...). It does make it easier to see but with the new c++ compilers the spaces only matter in the actual function names.
So what was it? I never got as far as learning C or C++. I did a lot of stuff a loooong time ago in BASIC and COBOL (high school and college) and then Pascal (college and then I wrote a program for my employer that took time clock data, compiled it and allowed supervisors to call up the data, correct errors and approve the data and then formatted it to be input into the ADP payroll program).
I used to be able to speak forth, FORTRAN, pascal, basic, COBOL, and COMOL (a weird derivative of COBOL developed for the business community on a C64). Those were the days.... I'm only 28 btw.
Yup New England, that was exactly the problem. I spent 3 friggin hours chasin down that thing, I can't tell you how many times I looked right over it.
I find those real long computational lines very error prone and hard to debug. When I have something like that to code I tend to do (at least the initial versions) by breaking it up into several lines and using lot of intermediate variables - that way it's easy to see where any computational errors are being introduced, and it also gives the the compiler more lines with less code on each line to point at. Once you get it all coded right and debugged you can condense it to one line if you like, but most compilers will be using lots of registers to store intermediate results anyway, so there's not really any cost to leaving it expanded...
I never used all the spaces to save file size (one space equals 8 bits, that's a LOT of bits...). It does make it easier to see but with the new c++ compilers the spaces only matter in the actual function names.
Compilers have ignored white-space since the beginning of time.