Post A2R2gWSdbs7AfB1bBw by Aaron_troetcafe_@fosstodon.org
(DIR) More posts by Aaron_troetcafe_@fosstodon.org
(DIR) Post #A2QnM5zSonypSiBFjs by Aaron_troetcafe_@fosstodon.org
2020-12-21T16:20:31Z
0 likes, 0 repeats
Should I learn java?
(DIR) Post #A2QnM6Ddy5K4AgoZqC by urusan@fosstodon.org
2020-12-21T16:22:28Z
0 likes, 0 repeats
@Aaron_troetcafe_ Probably not.Do you want to become a corporate drone? y/n
(DIR) Post #A2QoUXQ2p52MnlCdxg by Aaron_troetcafe_@fosstodon.org
2020-12-21T16:35:13Z
0 likes, 0 repeats
@urusan /
(DIR) Post #A2Qoa0lj82oDHAxFK4 by urusan@fosstodon.org
2020-12-21T16:36:11Z
0 likes, 0 repeats
@Aaron_troetcafe_ Cannot parse, try again
(DIR) Post #A2QohObctwrhETkeAK by Aaron_troetcafe_@fosstodon.org
2020-12-21T16:37:32Z
0 likes, 0 repeats
@urusan exit && sudo apt-get install self-destroy && self-destroy
(DIR) Post #A2Qoq0smTPseGJst2e by urusan@fosstodon.org
2020-12-21T16:39:06Z
0 likes, 0 repeats
@Aaron_troetcafe_ exiting, tty dropped before sudo password could be entered
(DIR) Post #A2QpXaOOKB3KqWRlo0 by urusan@fosstodon.org
2020-12-21T16:46:57Z
0 likes, 0 repeats
@Aaron_troetcafe_ On a more serious note, there's only four reasons to learn Java in 2020:* Your have a professor that hasn't gotten with the times and still uses Java for teaching* You want a (corporate) Java job* You run across Java that needs fixing/modifying (most likely as a consultant, though perhaps in a hobby context)* You are heavily invested in one or more other JVM languages (Clojure, Kotlin, etc.), in which case learning Java is a lot like learning C is for other languages.
(DIR) Post #A2QpZv0edpDpMtSMRE by urusan@fosstodon.org
2020-12-21T16:47:24Z
0 likes, 0 repeats
@Aaron_troetcafe_ On a more serious note, there's only four reasons to learn Java in 2020:* You have a professor that hasn't gotten with the times and still uses Java for teaching* You want a (corporate) Java job* You run across Java that needs fixing/modifying (most likely as a consultant, though perhaps in a hobby context)* You are heavily invested in one or more other JVM languages (Clojure, Kotlin, etc.), in which case learning Java is a lot like learning C is for other languages.
(DIR) Post #A2Qq6p9jQScClnOPoG by urusan@fosstodon.org
2020-12-21T16:53:20Z
0 likes, 0 repeats
@Aaron_troetcafe_ If you're just getting started with the JVM, learn Kotlin instead. You can do everything you would do with Java in Kotlin, and it's a much better language.Plus, Android development is heavily Kotlin because the spat between Oracle and Google. Plus, Kotlin/Native now exists too. If you want to learn Java to make Android apps, Kotlin is the vastly superior choice.That said, do you really want to get invested in JVM languages at all? Oracle is literally the worst.
(DIR) Post #A2QqPldmigE1MyTze4 by urusan@fosstodon.org
2020-12-21T16:56:45Z
0 likes, 0 repeats
@Aaron_troetcafe_ Keep in mind, I'm a professional Java developer, so I'm telling you this as someone who is deeply invested in Java. This isn't a reflexive rejection of Java.I can't really give any better advice unless I know what you want to do with it.If you are just learning it for fun though, there's many better languages you could spend that time on.
(DIR) Post #A2QqxLzkZmspg0lvw8 by urusan@fosstodon.org
2020-12-21T17:02:48Z
0 likes, 0 repeats
@Aaron_troetcafe_ One more side note: Java and the wider JVM ecosystem are not as bad as many people make them out to be either. You don't become the most popular language for over a decade by being total garbage.That said, Java is very long in the tooth nowadays and the JVM is held hostage by a psychopathic company.Also, most of the best parts of Java are achieved through clever avoidance of writing Java.
(DIR) Post #A2R1INVT9NqnzIGwaW by Aaron_troetcafe_@fosstodon.org
2020-12-21T18:58:41Z
0 likes, 0 repeats
@urusan Learning java just made its way into my mind because I got quite invested in playing MC again and thought it would be cool to program some mods. It would probably make more sense to finally lear JavaScript properly (or typescript?). I have some weeks of quarantine ahead of me and am not yet sure what to do
(DIR) Post #A2R2gWGaKgTQ3nNyPA by neildarlow@fosstodon.org
2020-12-21T19:01:41Z
0 likes, 0 repeats
@Aaron_troetcafe_ Or... play Minetest and contribute some mods written in Lua.Much more appreciated by the community. Be a hero! 😊
(DIR) Post #A2R2gWSdbs7AfB1bBw by Aaron_troetcafe_@fosstodon.org
2020-12-21T19:06:12Z
0 likes, 0 repeats
@neildarlow i might actually. Was pretty impressed by mine test anyway but my friends dont wanna play it
(DIR) Post #A2R2gWcD2Hlr8rVF6u by urusan@fosstodon.org
2020-12-21T19:14:14Z
0 likes, 0 repeats
@Aaron_troetcafe_ @neildarlow Hmm, well if you want to make a MC mod, you can definitely use Kotlin instead, so I'd recommend doing that. Both Kotlin and Java compile down to the same bytecode.I don't know the MC modding scene very well, but this looks promising:https://www.curseforge.com/minecraft/mc-mods/kotlin-for-forgeThat said, it may turn out that writing Kotlin MC mods isn't easy compared to Java mods.I'd recommend trying it in Kotlin first, and then resorting to Java if Kotlin modding turns out to be especially hard.
(DIR) Post #A2R3AfGXRDxmesjpJY by urusan@fosstodon.org
2020-12-21T19:19:31Z
0 likes, 0 repeats
@Aaron_troetcafe_ @neildarlow Lua could be good too, though I'm not sure how much of a future Lua has.Interestingly, Lua seems to have had a surge in popularity just this year. I wonder what gave it that bump.Depending on what it was, it might overturn my earlier perception that Lua was in decline.
(DIR) Post #A2R3XqjywOM6uKZ8DI by urusan@fosstodon.org
2020-12-21T19:23:53Z
0 likes, 0 repeats
@Aaron_troetcafe_ @neildarlow If you don't have clear goals, then your idea of learning Javascript isn't bad. There's no getting away from JS anytime soon if you want to do any sort of webdev work.Other than that, I would recommend:* Python 3 - The new most popular language, great for data science, web stuff, and can do high performance stuff via C interop* Julia - The best language out there imho, you'll learn a lot* Rust - A better language for the kinds of things C used to be king at
(DIR) Post #A2R4sVZYwECrI86g08 by urusan@fosstodon.org
2020-12-21T19:38:49Z
0 likes, 0 repeats
@Aaron_troetcafe_ @neildarlow Also good, but less good:* C - A great mid-level language, but insanely long in the tooth now* Ruby - The only popular true OOP language, well designed, but also slow and Rails is crazyStay away from (unless you have specific need for): Java (other JVM languages are better), PHP, Objective-C, MATLAB, VB, VBA, Ada, Perl (Python is strictly better), anything proprietaryC++ and C# are not great choices either, because C++ is a hot mess and C# is tied to .NET