3 ms·
Can you give an example of what kind of boilerplate you mean? Because I feel like modern Java and Kotlin have improved a lot in this area.
by lacerrr 5y ago
Can you give an example of what kind of boilerplate you mean? Because I feel like modern Java and Kotlin have improved a lot in this area.
- bluefirebrand 5y ago"Code to interfaces instead of implementations" type boilerplate Code that doesn't do anything except support a design pattern you're following is boilerplate.
- lolinder 5y agoThis sounds like less a problem with Java or Kotlin and more a problem with the development team. If you're dealing with a bunch of new developers who just barely read the GoF book and think it's a prescriptive guide to all things code, you're going to end up with a lot of boilerplate. But if you turn a bunch of new developers loose in any language without supervision, they're going to build something bad. There's nothing in the languages themselves that forces you to use inappropriate design patterns, and as the parent mentions, modern Java and Kotlin have improved a ton in reducing boilerplate. I'm not actually sure what it is that you think they're missing that Python or JavaScript have, unless it's just that you prefer dynamic typing.
- hackerfromthefu 5y agoThe issue here is the experience level of the devs. These sorts of conversations should have people declare their years of programming experience at a minimum, it helps to understand perspectives better.
- collyw 5y agoHow do you open a file and print "hello world" these days? It was at least a screen full of code the last time I looked at Java, but that was a while ago.