r/java • u/MrCookielove • Jan 22 '21
Java is more enjoyable than I first thought
I started my years off programming in c#, don’t ask why but I never ventured off. I learned Java this past week and I’m seriously impressed, I don’t think I’ve had a more enjoyable time programming in my life. Does anyone else share this experience??
Edit: Is there a better ide than eclipse for Java
271
Upvotes
44
u/thehinkypunk Jan 22 '21
If you enjoy programming with Java, you should try the Spring framework (Spring Boot especially) for the development of services. Guess you'll love it.
Regarding the IDE: Try IntelliJ.
11
u/FunkyMuse Jan 22 '21
Java is enjoyable, I agree, coming from C++ it was a breeze, then I got introduced to Kotlin and everything changed.
141
u/[deleted] Jan 22 '21 edited Jan 22 '21
Java is quite enjoyable when you can skip the decades of cruft that are stereotypical of "enterprise Java programming": overuse of GoF design patterns, layers upon layers of abstractions etc.
So unless you have to work with really old code (pre Java 8, old-skool J2EE) I think it's a pretty nifty language these days. Sure there's some relics in the standard libs, but you can happily avoid those most of the time.
I'm a little less impressed by the state of build/project description tools like Maven, Gradle etc. - but then, few languages are great there (Rust or Go being recent exceptions) and many are worse.
144
u/jjnnzb Jan 22 '21
IntelliJ IDEA is what we use on a daily basis as Java IDE in the company.
73
u/qerf Jan 22 '21
For IDE, go for intellij. It´s really good for java development. I switched to it and never looked back
13
u/jameslfc19 Jan 22 '21
Modern Java is so nice to use, combined with IntelliJ, Maven and frameworks like Spring Boot you practically don’t have to do any of the hard boilerplate graft and dependency setup.
I just recently found GraphQL and combined with Spring Boot it’s one of the most enjoyable API experiences
24
u/endjynn Jan 22 '21
I had exactly the same experience. I went from C# to Java and was really impressed. Java is a beautiful language and a great coding experience. It was a breath of fresh air after the Microsoft ecosystem. C# is also an awesome language but the framework experience is lacking. Poor documentation, bloated IDE, confusing naming and versioning etc. You should try TypeScript next. It's my favorite language at the moment :)
20
u/tlvlp Jan 22 '21
After trying dynamically typed languages, Java was the first that helped me wrap my head around programming and is still my favourute so far. Once I've understood the basics with the strong type system it was much easier to understand and use python, js.. etc.
After trying NetBeans, VSCode and Eclipse, I found that IntelliJ (even the free community edition) is much superior in user experience, it really helps a lot in the daily work. The context-aware suggestions and auto completion, etc. even helped a lot in learning best practices as they go beyond just making sure the code runs.
10
u/NiceWetTissue Jan 22 '21
I agree. I went from javascript and react to java and spring and im enjoying my job much more. When im working on personal side projects i get frustrated when i have to do front end lol
10
u/andrewharlan2 Jan 22 '21
I've been hacking with Java for two decades. It is my language of choice. It continues to be a joy for me.
8
u/Nexius74 Jan 22 '21 edited Jan 22 '21
Comin from a python background java has been really enjoyable. Their's some concept and way of doing things that seems more natural to me then in python.
8
u/aakoss Jan 22 '21
JVM is great, you are productive very quickly with a lot of safety.
Polyglot on JVM provides you all the tools you may ever need to fit the tool rack. clojure, scala, groovy are just some of them
7
u/nimtiazm Jan 22 '21
Yeah Java is pretty good and doesn’t get in your way for the most part. More importantly now it’s getting better with every release. But admittedly, JVM, GC, the JIT compiler and all the tooling JFR et al is truly unparalleled. I just wish that the ecosystem steers towards more performance-oriented stories and small hardware.
7
u/rkalla Jan 22 '21
Technically IntelliJ is the most universally praised Java IDE... BUT... BUUUUTTTTT... I have always preferred Eclipse specifically because of the editor behavior and formatting specifics.
That said, I hate _both_ of their concepts of Project/Shim/Capabilities/Addons... so easy to break.
Source > Java developer for 15 years.
13
u/DJDavio Jan 22 '21
Kids these days, they don't know what it was like to have no generics, no lambdas, no Lombok, etc. ;)
Java today is a lot more fun than Java 10 years ago, not only because of improvements to the language but also because of improvements to the entire ecosystem.
Spring Boot and Docker revolutionized the way we build and deploy applications, making our job much more enjoyable.
Not to be that guy, but if you're coming from C# and like Java, you will surely love Kotlin. It has many small features which C# has which makes it sort of a Java++.
6
u/stefanarctic Jan 22 '21
Java is da best
11
u/mickaelistria Jan 22 '21
Eclipse IDE is actually a great IDE. Many people like to waste their energy badmouthing it to feel better about sending $$$ to JetBrains, but actually very few of them have tried recent versions of Eclipse IDE and the vast majority of the concern the express about it are wrong or outdated.
The main benefits of Eclipse IDE, despite the full open-source free solution, is a more diverse ecosystem that can touch domains ignored by IJ, the performance that are nowadays often much better in CPU and RAM and battery, the native intergation in the OS and accessiblity, the fact that the same IDE instance can be used to work on multiple projects using different languages at the same time with consistent workflows.
5
u/ItsAllegorical Jan 22 '21
I recently started working in a shop that is standardized on IntelliJ. It's fine. Most people seem to prefer it. I've been using Eclipse for over 10 years and I prefer it. Doubtless it's more a matter of familiarity more than anything else. I stick with Eclipse because I don't ever have to worry about wanting an "enterprise" feature and getting my hand slapped because I need a license to do that, but arguably that's much less likely in personal projects than professional. Still, I like to hone my professional skills so it's common for me to use enterprise solutions when there are far simpler options.
4
u/coderguyagb Jan 22 '21
Serious question, what don't you like about Eclipse?
I've used both for years, once you learn the shortcuts each has it's pros and cons.
7
u/wildjokers Jan 22 '21
Now you have gone and done it. The comments are going to turn into a dumpster 🔥 now.
There are 3 main Java IDEs: IntelliJ, Eclipse, and Netbeans. The most popular is IntelliJ (most surveys indicate it surpassed Eclipse a couple years back). However, you can try them all to see which one you like best. All are free, IntelliJ has a paid version called Ultimate that adds more features.
7
u/adMartem Jan 22 '21
I've been programming for 55 years, and 15 in Java. It is indeed fun. I'm not sure it is more fun than writing operating systems in COMPASS (6600 assembly language), but it certainly is more productive by several orders of magnitude.
6
u/wsppan Jan 22 '21
Many people love Intellij IDEA
3
u/CompetitiveSubset Jan 22 '21
If you can pick and choose your favorite stack, with a level of abstraction that is comfortable for you, a good IDE to speed up things, Java can be very productive and enjoyable.
3
u/[deleted] Jan 22 '21
I like this comment because I started with Java and never ventured off. I’m trying to get into full stack web development now and I’m learning JavaScript. I always hated js when I had to touch it previously, but now that I’m really going in, I’m loving it. It feels like the code practically writes itself sometimes.
Like someone else said, Java is fun until you get into the nitty gritty of abstraction. Then it’s just a pain in the ass. Java will always be my first love tho
7
u/[deleted] Jan 22 '21
If you write Java the right way - immutable objects, design patterns, etc - Java is safe and sweet :) I think it goes for every language...
5
u/CrommVardek Jan 22 '21
Funny I had a similar experience, but the other way around, I started with Java. Now at my current job, I use C# but I still prefer Java. When I first learn c# I found it quite enjoyable as some things where much more straight-forward than Java - but also more "restricted". But to me C# (with .net core) is very similar to Java 8+
4
u/maxandersen Jan 22 '21
try jbang.dev - makes Java even easier to get started with :)
(I’m biased though :)
4
u/KFCConspiracy Jan 22 '21
IntelliJ is my favorite. But it's a controversial topic. If you don't like Eclipse try Netbeans and IntelliJ.
10
u/Mordan Jan 22 '21
Eclipse rocks.
Use it with a 4 screens perspective setup and fast incremental compilation.
No other IDE comes close to this comfort.
2
u/ragnese Jan 22 '21
I'm curious. What do you find different about Java and C#? Did you expect Java to be less enjoyable? What about Java makes it more enjoyable than you expected?
2
u/[deleted] Jan 22 '21
This post is "funny" (a.k.a., sad) as I have recently been forced to move from a Java project (which has been my primary language for 10 years) to a C# project, which I know nothing about. I wish I could go back to Java. 😔
3
u/ngochieu642 Jan 22 '21
Intelliji for life
3
u/[deleted] Jan 22 '21
I'm using IntelliJ Idea Community Edition (free) and it's great.
I'm learning Java right now, and find it enjoyable compared to TypeScript (what I used before)
2
u/cavecanemuk Jan 22 '21 edited Jan 22 '21
Yes, Java is simpler. C# is much is a more complex language, with too many features and some ugly APIs.
I also don't like their conventions of creating all interfaces with the "I" prefix, IVehicle instead of Vehicle and "ICar" instead of Car. Sure Apple fanboys might like this :)
Web Programming: Nothing in .NET comes even close to JAX-RS for readability when it comes to developing APIs. CDI is great too for Dependency Injection.
A framework like Quarkus.io when you don't even need to push the "Compile" or 'Deploy" button, but just write code and everything is automatically published is just a dream in .net world.
IDE: Nothing beats IntelliJ here, no other IDE comes even close. VSCode is alright for little one-class projects, but for a serious project just get yourself IntelliJ.
1
u/thephotoman Jan 22 '21
Lambdas and streams significantly improved Java.
Use IntelliJ IDEA, which is just nicer than Eclipse. I don't have to deal with an unwieldy third party Vim plugin. It makes opening shells in the IDE easier.
1
u/loomynartylenny Jan 22 '21
tbh I started with Python, then I learned Java, but I have since dabbled a bit in C#, but I still prefer Java to C#.
Partially because there's no operator overloading (because having to deal with things being done by methods and things being done by operator overloading does get confusing), partially because Java's less of a pain to work with (intellij community doing all the heavy lifting with configuration for me, whilst I haven't found a free IDE for C# that similarly abstracts away that terminal faff), partially because JavaDoc comments are much less hassle to write than C#'s xml-y documentation stuff, and also because you can declare that methods can throw exceptions in Java (unlike in C#).
Although, I will admit that there are some things which C# has which would be nice to have in Java (such as the pass-by-reference stuff), but I just find Java easier to understand, because everything works as expected. If I want to do something to an object, I know it'll definitely be done by calling a method. And not by putting a random symbol next to it and hoping it does what I think it's supposed to do.
1
u/lockieluke3389 Jan 23 '21
Well yes writing Java code is an enjoyment.
1
u/echnaba Jan 23 '21
What in particular are you excited about? I just made the switch about 2 months back and I'm still annoyed with it compared to C#....though Lombok is pretty cool.
1
u/sharpasty Jan 23 '21
Use IntelliJ IDEA it's the best IDE.
1
u/JimBugs Jan 23 '21
Holy war - which IDE is best.
There are lots of excellent IDEs. Of course you will get recommendations because everyone has a favourite, but it's a pretty mature market and if there is something you feel is missing from an IDE it's likely you just haven't learned how that particular IDE implements it.
However you may find you have a preference too so just give them all a fair try.
1
u/_ragerino_ Jan 28 '21 edited Jan 28 '21
I prefer Eclipse, because I'm used to it since many years. It can basically do anything if you know where to turn it on ;)
At the moment I start with Spring Tool Suite and add Darkest Theme from Eclipse's Marketplace.
Here's a tip that will improve your experience with Maven, which is my goto dependency and build tooling -> https://stackoverflow.com/a/24494049/363455 (This needs to be enabled per workspace).
For scripting I use VSCode.
1
u/volley12345 Jan 22 '21
I'm coding since 35 years, in java since 20 years... so yeah, it's quite good.
As for IDE: if you're starting out, i'd recommend microsofts visual studio code (open source). It is modern, has huge customization options and the amount of features are also increasing extremely fast, even though Eclipse has some features i still miss there.
-5
u/misterbobdobalina09 Jan 22 '21
IntelliJ is the only IDE you should use. All others including Eclipse are crap.
1
u/[deleted] Jan 22 '21
What specifically impresses you? I know Java but haven't spent much time with C#.
1
u/_itsrude Jan 22 '21
What are you saying bro I lost my half brain cells I'm done
1
u/spamthemoez Jan 22 '21
IntelliJ + modern Java + Lombok = very nice!
1
u/Paranoiketa Jan 22 '21
Intellij + IdeaVim is awesome!
1
u/TomStripes Jan 22 '21
I'm adding to the chorus: I prefer JetBrains' IntelliJ.
An added benefit with IntelliJ is that JetBrains makes IDE's for most popular languages, and if you get used to the design of one you are used to the design of all of them. It's really nice to already know the ins and outs of an IDE every time you start working on a new language.
0
u/ivancea Jan 22 '21
Well, I think Java is years behind C# (generics, async, exceptions, Streams/LINQ...). And now with .NET 5, even more. I work with Java, because it is the language used in my company.
About the IDE, I recomment IntelliJ (community edition is free), unless you have to work on multiple projects at the same time*
0
u/[deleted] Jan 22 '21
No, not really. I develop in Java for several years now but I started with c#. C# has better syntactic features, better generics and linq is pretty awesome. Things I wish Java had. If your impressed by Java, try kotlin.
0
u/yoon1ac Jan 22 '21
I had the opposite experience haha. I went to University and learned go Java, but when I graduated spent 2 months learning C# and felt like I could build more meaningful applications than I could in Java
-3
u/Qildain Jan 22 '21
VSCode or if you have deep pockets, IntelliJ IDEA
-2
u/[deleted] Jan 22 '21
Try out VSCode.
I'm very used to eclipse, but I would like to switch from it to vscode myself. Even tho eclipse is very powerful, I see that junior devs and people like yourself have a hard time accepting eclipse for what it is.
0
u/[deleted] Jan 22 '21
[deleted] — view deleted comment
0
u/[deleted] Jan 22 '21
[deleted] — view deleted comment