DEV Community

Discussion on: Java is NOT EASY to learn. But still worth :)

 
delta456 profile image
Swastik Baranwal

Agreed but if you understood all these concepts then you will be able to understand any language.

Thread Thread
 
oldprogrammer profile image
OldProgrammer • Edited

Differerent classes of languages have their own subtleties so take time to learn. For example, I'd personally really need to think about how to write a prime sieve in a functional programming language.

It's surprising that some developers, even with quite a lot of C programming experience, program without giving sufficient thought to things I've listed above e.g. a new struct is defined, code is written to allocate memory for the structure and fields within it, but with no clean-up strategy in the (admittedly rare) case that memory allocation fails.

I've seen this on projects where a developer is programming in other languages e.g. Java alongside C.

Thread Thread
 
delta456 profile image
Swastik Baranwal

It's because they are used to newer languages which cleans up everything for them.

Thread Thread
 
oldprogrammer profile image
OldProgrammer • Edited

Even with Java care has to be taken so that the garbage collector thinks it can actually release an object when it goes out of scope.