Re:3rd Edition of Programming: Principles and Practice Using...
by tialaramex on Friday April 19, 2024 @12:12PM
(#40088604)
There's a fun stream where tsoding decides to learn Fortran, and the instructions he's working from say to turn off implicit typing (ie write "implicit none"). He's familiar with modern languages with type inference and with C++ type deduction which is a similar idea to full blown inference - and so he has no reason to even guess what Fortran is going to do without that admonition and you can see he's not happy when he finds out.
[ Parent
| on HN ]
Re:3rd Edition of Programming: Principles and Practice Using...
by pklausler on Friday April 19, 2024 @12:28PM
(#40088788)
I don't get that at all. Old FORTRAN has a mildly confusing feature that is easy to disable. He then got upset about the mildly confusing feature that everybody now disables. If one wants to bitch about Fortran, at least complain about the modern language (which is still a horror show of poorly defined and often unportable features), not the stuff that has been made obsolete.
Re:3rd Edition of Programming: Principles and Practice Using...
by ChuckMcM on Friday April 19, 2024 @01:09PM
(#40089358)
I was teaching one of the local highschool kids how to program in C and they asked "So why does everybody use i,j, and k for their indexes in loops?"
Re:3rd Edition of Programming: Principles and Practice Using...
by pklausler on Friday April 19, 2024 @01:15PM
(#40089429)
I only use 'j' and 'k', not 'i ' -- the rarely-used letters are easier to search for.
Re:3rd Edition of Programming: Principles and Practice Using...
by yellowstuff on Friday April 19, 2024 @08:55PM
(#40093551)
ii is also good.