News for hackers. Stuff that matters.
Re:AI Copilots Are Changing How Coding Is Taught by AshamedCaptain on Saturday May 04, 2024 @08:22AM (#40257116)
Almost two decades ago, I saw a junior colleague (this was Java) try to add "static" to almost all of one specific class' methods and members, i.e. making them global instead of attached to each class instance . Obviously this completely broke the software, albeit it did build. When questioned during review, my colleague just shrugged and said "Because Eclipse suggested to do so".

Apparently, if you tried to access a class member without specifying a class instance, one of Eclipse's "auto-fix-it" suggestions was to make all members of that class static, and he just followed that suggestion blindly.

There are no comments on this comment yet.