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.” 🤫👊🏻
@billykorandoАй бұрын
lol yea, when I was editing the video I was thinking to myself "why did I say it like that?!" 😂
@lukaszmachowskiАй бұрын
@@billykorando Thank you for a great episode. That was a heck of a lot to cover. I like the format.
@billykorandoАй бұрын
@@lukaszmachowski thank you!
@gsestreamАй бұрын
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.
@gsestreamАй бұрын
dont comply with the rules. no IDEa what you are importing. might be malware, in the signal packages you are sending. idK.
@gsestreamАй бұрын
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.
@gsestreamАй бұрын
whomever. cheers. well 1+1=2, or not. best accuracy or 1+½=2. you are teaching me right.
@CKBiskАй бұрын
At 2:12 did you mean to say triple slash instead of backslash?
@sadiulhakim7814Ай бұрын
I just noticed that implicitly declared classes cannot be referenced. So, what are they used for? Only for writing scripts?
@Lucario2405Ай бұрын
Yeah, basically. It's for when all your code is going to be in the same .java file.
@simonhartley9158Ай бұрын
They're for learning, so they allow the first thing you do to be as minimal as possible.
@billykorandoАй бұрын
Yes implicitly declared classes are aiming for people, especially students, learning Java (and programming), and, for more experienced developers, writing scripts.