Yes implicitly declared classes are aiming for people, especially students, learning Java (and programming), and, for more experienced developers, writing scripts.
its good programming practice to not use asterisk imports, but declare all, ie let the IDE write the list of specific imports, but usable feature anyways. then there is no ambiguity introduced. ie explicit is much better than any implicit shaky implementations. implicit is not explicit. explicit makes all things directly visible, nothing to be guessed, by anyone. implicit has some hidden rules that you must know. what where how why. import-ant. maybe in implicit you have to support it, explicit is no strings attached. dont worry, be appy.
Месяц назад+1
It's good writing practice to not use all-lowercase :-P Snark aside, these changes are part of "paving the onramp", so are meant to make Java more accessible to beginners (students, in particular). They may also come in handy when using Java in a script-like manner, maybe even without explicitly compiling anything at all.
whoever is or claims or wants to be the rules, or king or leader or to be followed. students are learning good practices, not easy quick bad solutions, which ruin things for everyone.
Месяц назад
@@gsestream Who makes the "rules" about asterisk imports? Some teams go the opposite route: do the asterisk import, but then there can only be very few. That way, they restrict the amount of unrelated dependencies in a class and increase cohesion. Now what? Regarding students: just read "Paving the on-ramp". It is unreasonable to start with all best practices when students don't even understand the basics. It's a distraction. Same happens at school. You are told useful little lies all the time and then are told, "Well actually, that wasn't the full picture; Newton's equations are wrong, you have to use Einstein's; etc.". In my opinition, this applies to getting into programming, too.
Easter egg at 9:24 “I’m sure many others have said this or something similar. I don’t know why I decided to phrase like I was the first one to originate this idea.” 🤫👊🏻
What an effort :)
At 2:12 did you mean to say triple slash instead of backslash?
longest tongue twister ever
I just noticed that implicitly declared classes cannot be referenced. So, what are they used for? Only for writing scripts?
Yeah, basically.
It's for when all your code is going to be in the same .java file.
They're for learning, so they allow the first thing you do to be as minimal as possible.
Yes implicitly declared classes are aiming for people, especially students, learning Java (and programming), and, for more experienced developers, writing scripts.
its good programming practice to not use asterisk imports, but declare all, ie let the IDE write the list of specific imports, but usable feature anyways. then there is no ambiguity introduced. ie explicit is much better than any implicit shaky implementations. implicit is not explicit. explicit makes all things directly visible, nothing to be guessed, by anyone. implicit has some hidden rules that you must know. what where how why. import-ant. maybe in implicit you have to support it, explicit is no strings attached. dont worry, be appy.
It's good writing practice to not use all-lowercase :-P Snark aside, these changes are part of "paving the onramp", so are meant to make Java more accessible to beginners (students, in particular). They may also come in handy when using Java in a script-like manner, maybe even without explicitly compiling anything at all.
dont comply with the rules. no IDEa what you are importing. might be malware, in the signal packages you are sending. idK.
whoever is or claims or wants to be the rules, or king or leader or to be followed. students are learning good practices, not easy quick bad solutions, which ruin things for everyone.
@@gsestream Who makes the "rules" about asterisk imports? Some teams go the opposite route: do the asterisk import, but then there can only be very few. That way, they restrict the amount of unrelated dependencies in a class and increase cohesion. Now what? Regarding students: just read "Paving the on-ramp". It is unreasonable to start with all best practices when students don't even understand the basics. It's a distraction. Same happens at school. You are told useful little lies all the time and then are told, "Well actually, that wasn't the full picture; Newton's equations are wrong, you have to use Einstein's; etc.". In my opinition, this applies to getting into programming, too.
whomever. cheers. well 1+1=2, or not. best accuracy or 1+½=2. you are teaching me right.
Easter egg at 9:24 “I’m sure many others have said this or something similar. I don’t know why I decided to phrase like I was the first one to originate this idea.” 🤫👊🏻
lol yea, when I was editing the video I was thinking to myself "why did I say it like that?!" 😂
@@billykorando Thank you for a great episode. That was a heck of a lot to cover. I like the format.
@@lukaszmachowski thank you!
6:18 It gives python like felling. Good enough.