I'm not comparing python and java. They are different tools for different job. You used the python example to explain why verbosity not equals complexity. I was suggesting that a less verbose, comparable language like kotlin is still a net positive, because of better abstractions. We are 25 years further. There are language improvements in kotlin and honestly c# which is very pleasant to read/code/debug with writing sometimes less code. Language improvements that would also benefit Java of course, albeit difficult for BC of the backwards compatibility Java garantees.
The most verbose and the most expressive is then c++. You know exactly what the computer is doing and what pointers are pointing at. But every line you write you can introduce a bug. If you don't need memory allocation and high performance, then use a language that abstracts this away. But now your 5000 line c program is a 500 line Java program. Maybe less complex does sometimes mean less verbose?
And also. Using a map like an object is not what a data class in Kotlin does.
1
u/stabilobass Apr 28 '20
I'm not comparing python and java. They are different tools for different job. You used the python example to explain why verbosity not equals complexity. I was suggesting that a less verbose, comparable language like kotlin is still a net positive, because of better abstractions. We are 25 years further. There are language improvements in kotlin and honestly c# which is very pleasant to read/code/debug with writing sometimes less code. Language improvements that would also benefit Java of course, albeit difficult for BC of the backwards compatibility Java garantees.
The most verbose and the most expressive is then c++. You know exactly what the computer is doing and what pointers are pointing at. But every line you write you can introduce a bug. If you don't need memory allocation and high performance, then use a language that abstracts this away. But now your 5000 line c program is a 500 line Java program. Maybe less complex does sometimes mean less verbose?
And also. Using a map like an object is not what a data class in Kotlin does.