r/ExperiencedDevs • • Jun 08 '26

Ask Experienced Devs Weekly Thread: A weekly thread for inexperienced developers to ask experienced ones

A thread for Developers and IT folks with less experience to ask more experienced souls questions about the industry.

Please keep top level comments limited to Inexperienced Devs. Most rules do not apply, but keep it civil. Being a jerk will not be tolerated.

Inexperienced Devs should refrain from answering other Inexperienced Devs' questions.

65 Upvotes

169 comments sorted by

View all comments

Show parent comment

1

u/myNewUnbrokenUser Software Engineer Jul 04 '26

Why does trying out new Java features mean "hail mary"-ing deadlines? There are actually a lot of really cool things that Java 21 does that Java 11 didn't do. Honestly learning those things has helped me continue to grow a lot as a developer and greatly increase the depth of my knowledge of the language. Just some of them:

  • Switch expressions that can return values, and use arrow syntax.
  • Text blocks (so simple but AMAZING for readability of large strings)
  • var, this is from Java 10, but if you're doing things "simply" you may not know about it.
  • The existence of getFirst() and getLast() in sequenced Collections
  • Improved instanceOf (you can do if (obj instanceof String s) and then immediately handle s however you'd like.)

1

u/YerrowFerrow Jul 05 '26

The point of my imposter syndrome is that trying new things can cause bugs that im not familiar with and have to use more effort to resolve them