by pylua · 3y ago · 0 comments
Also worth mentioning is that having multiple ways to do the same thing also increases complexity
Requirement to use IDE is one of reasons I don't like Java. I wrote/write code in multiple languages and for all of them a simple text editor is enough. I usually don't use auto-complete because it distracts me and I type fast anyway. But with Java it's hard to be productive without an IDE.
A few minutes for the IDE to open? Nah, bruh. Couple of seconds, and since you leave the IDE open for a while, that startup time gets to be ignored. You aren't starting the IDE, exiting the IDE, running your code, starting your IDE, exiting the IDE, running your code.
You're starting the IDE, writing, running, debugging, reaching some kind of finishing point, THEN shutting down the IDE... maybe. A lot of programmers have their IDEs open 24/7. Over a month's runtime, those three seconds opening the IDE seem (and are) irrelevant.
Billion GUI windows? Nah, bruh. Even IDEA, which has a lot of windows on initial installation, has only a few... and they're all for a point, if you, like, read them.
A second to process your keystroke? Also nonsense. Even a raspi can process faster than that. Unless you're deliberately overloading your machine, I suppose. That's always an option... but a counter to that is "... don't?"
And useless toolbars? Useless to whom? The IDEs you'll find in Java are battle-tested. The useless toolbars are hidden these days. You might not know what they're useful for, but that's not the same as being useless. If you write Java, you'll learn how useful they are.
And as a bonus, you'd ... did you say.. have to pay more money than your dorm costs? ... why?
Java has three major IDEs: IDEA, Eclipse, and Netbeans. (If you want to exclude netbeans, join the crowd. Everyone else excludes it, too.) All three have free editions that cost you ... like... literally... nothing. Zip. Nada. Zilch.
Try again.
Having an IDE is like hiring a side-kick --- if the side-kick is component enough and you can afford them, why wouldn't you hire one?
Exactly.
And now just change the default class loader to be less restrictive in finding main methods, and that’s it. While it really does help teaching people when you can be more focused on the relevant parts only.
It makes an analogy to packages. We allow classes to exist in the default package. Therefore, I think it's reasonable to allow methods to exist in a default class.
Of course you shouldn't so this in real work, but that's also true of the default package.
I also like that main doesn't need an argument. Many noob programs don't even use the String[] args parameter anyway, so let's not require it.
It's for beginners who might not even know what an IDE is.