News for hackers. Stuff that matters.
Re:Paving the on-ramp to Java by whizzter on Thursday September 29, 2022 @07:00AM (#33018861)
And none of the listed languages enforce main to be part of a class, hence the described problem didn't exist for your students.

I've taught C to beginners after the Java class and whilst there are some related problems those students encounter, the extra confusion caused by having main in a class doesn't exist (and doesn't cause as much syntax vs logic confusion later on).

Re:Paving the on-ramp to Java by pjmlp on Thursday September 29, 2022 @07:16AM (#33018986)
I can assure you they were using OOP in C++, creating their own standard library, leaving behind the ways of C, as any proper C++ course during the ARM C++ days.

The lecture notes that eventually became this book were their path into discovering C++.

https://www.bertrand.pt/livro/programacao-com-classes-em-c-p...