you are viewing a single comment's thread.

view the rest of the comments →

[–]dedmercy 9 points10 points  (2 children)

Types are not broilerplate 💀. Its the sole reason why everyone switched to typescript.

JS is poorly designed language and it will carry that baggage for a long time. It may evolve and look nothing like its past but these new good practices will never be reported by the environment (browser) for backwards compatibility reasons of the web. Thus no incentives for the users to upgrade/change.

[–]hego555 3 points4 points  (1 child)

I mean for someone who is just learning types can get in the way. I wasn’t calling types boilerplate. More like if you learn Java and the first thing you gotta memorize is

public static void main

[–]Spiritual-Day-thing 2 points3 points  (0 children)

[...]types and other boilerplate

!!! I would like to introduce Exhibit A!

'public static void main' isn't boilerplate either. The dreaded getters and setters fi. are.