0

More Java Concepts

What are some concepts that aren't taught on Sololearn in Java? i.e. Lambdas, Java 9 Features, etc.

23rd Apr 2018, 8:24 PM
fallOut015
fallOut015 - avatar
2 Antworten
0
If Streams are not taught (I mean Stream<T>, not the IO streams) it is definitely a must check in my opinion. Just like LINQ for C#, it makes your code more readable and faster to write. It is relatively simple to learn, and helps a lot. Not even mentioning, that streams are readonly, and so if you hold a private list, you are not requires to copy it into another amd return that, or provide some readonly list thing. you simply return list.stream() and you are done. On the other side, it can be iterated or made into an array or collection/list. Lambdas are also highly valuable tools for a programmer for obvious reasons (functional programming). If you care about lambdas, check the @FunctionalInterface too. Default members of interfaces are also a pretty cool feature. Above Java8 I do not really know the new features, but with 9, you can modularize your project. Be aware, that between Java8 and 9 there is a compatibility gap.
21st Jun 2018, 10:38 AM
Magyar Dávid
Magyar Dávid - avatar
0
Besides the language tools, you really should learn the Design Patterns. They seem boring first, but believe me, they are everything and makes your project coherent, safe and working. Either if you do programming for yourself (hobby/fun) or for a living, Design Patterns is the way to go above a level for any OOP language.
21st Jun 2018, 10:41 AM
Magyar Dávid
Magyar Dávid - avatar