|
|
|
|
|
by hi_herbert
1365 days ago
|
|
Ad-hoc black or white bans are very retrograde and costly for tje most part and usually stem from purity thinking.
Case in point reflection in Java is a godsend. I use it very rarely because it'd uses only comes for very specific needs but when I use it, the alternative either doed not exist or usually would be much more uglier.
As for streams well it's just regular functors (map, filter)
they are used in every language and are very useful.
Now I agree about two things:
1) the stream api is a bit (not that much though) verbose, which significantly contrast with Kotlin.
Although e.g .toList() helps
2) yes develpers especially junior ones are eager to abuse functors in an unreadable mess.
When there is complexity using loops is usually more readable.
Streams however are very fit for regular ETL that represents ~70% of code for most simple apps.
The pinnacle of complexity would be e.g. Reactive streams such as rxjava. I agree python dependencies are a worldwide shame and eval() is very niche (but again should not be universality banned assuming good developers, maybe though one could conditionally ban it aka it would trigger a lint during code review that would need explicit validation. As for the topic at hands, google style bans are insane e.g. No Exceptions lol |
|