Even more egregious because the guy behind the laptpo was told earlier to learn some JavaSript and the stuff he is writing seems to be titled "Javascript Lesson 1 Ch 1 -- Basic coding" and then some HTML.
To be fair, his mentor sucks so what did you expect...
Remember how she didn't even check her network traffic while someone was hacking her system? So instead of looking where the traffic originates she let that dude roam around the neighborhood to take everyone's wifi offline before remembering that shitty pc of her technologically impaired parents?
Develops her own crypto and tor network but can't use netstat or proper firewall rules.
Best to make sure the rest of the code knows that Scanner is more important because it was imported first. That way it can rule the other objects as a parent, the other imports are just children. This is how class heirarchy and inheritance works.
I saw a job advert once where they defined Java as a browser and client facing language that renders webpages and how JavaScript was a subset that could be used for server backend code with Node. Honestly I just assumed it was some sort of weird troll, needless to say, did not apply.
Could've been worse, my dude could have been looking up how to define classes in JS, only to realise hours later that he's been following documentation for the fabled ECMAScriot 4.0 that never was.
Uh, what? The fact that it's a constant means that it fits in a float? That's... not really true, is it?
Besides, the number shown in the image is 1.6, which neither floats nor doubles can precisely represent. However, a double can represent it much more precisely, so I still don't see the issue with using a double here.
48
u/Worse_Username Jun 11 '21
Even more egregious because the guy behind the laptpo was told earlier to learn some JavaSript and the stuff he is writing seems to be titled "Javascript Lesson 1 Ch 1 -- Basic coding" and then some HTML.
20
u/Pylitic Jun 11 '21 edited Jun 11 '21
Does that say FAVNUMBER = 1.6?
Why do all animals need a favourite number? Why is their favourite number a double...? And finally, do they all have the same favourite number then?
Edit: its also missing a semicolon.
6
u/Sheepsheepsleep Jun 12 '21
To be fair, his mentor sucks so what did you expect...
Remember how she didn't even check her network traffic while someone was hacking her system? So instead of looking where the traffic originates she let that dude roam around the neighborhood to take everyone's wifi offline before remembering that shitty pc of her technologically impaired parents?
Develops her own crypto and tor network but can't use netstat or proper firewall rules.
98
u/aneurysm_ Jun 11 '21
Besides the obvious Java != JavaScript...this is so low effort lol
20
u/wowsuchlinuxkernel Jun 11 '21
wtf?
13
u/icedoutlikecomets Jun 11 '21
Everyone knows the popular Java dialect, Javascript
16
u/Ziginox Jun 11 '21
Jeebus, that display bezel is THICC
4
u/klc3rd Jun 12 '21
This looks like they copied some Java example code off the internet lol and of course, don’t know the difference between Java and Javascript
3
u/[deleted] Jun 13 '21
you don’t need to import Scanner if you are gonna import the entire sub-package anyways.
3
u/[deleted] Jun 13 '21
2
u/[deleted] Jun 11 '21
Could've been worse, my dude could have been looking up how to define classes in JS, only to realise hours later that he's been following documentation for the fabled ECMAScriot 4.0 that never was.
2
u/my_lucid_nightmare Jun 12 '21
oh man, I wish I'd known about Javascript Writer. My career could have turned out so much better.
1
u/cutecoder Jun 12 '21
The editor was “JavaScript” based… like AppleWriter…
1
u/Cybear_Tron Jun 15 '21
LOL!!!!!!!
-19
u/Beleheth Jun 11 '21
Ah, yes. The classic.
Also, why would you make a final float a double? That makes absolutely no fucking sense...