3 ms·
I do a bit of work in Angular (2+) at the moment. And that involves a lot of boilerplate code; in fact so much that the framework comes with a tool (ng generat
by chvid 7y ago
I do a bit of work in Angular (2+) at the moment.
And that involves a lot of boilerplate code; in fact so much that the framework comes with a tool (ng generate) that generates the code for you. A single component is split in 4 files and needs to be explicitly wired up in another file (the module). An empty test case is more than 20 lines of code.
The point is. This is not really due to the language.
Angular is written in JavaScript which under other circumstances can be a very condensed language.
It is not really the language that mandates verboseness and boilerplate but the conventions, style, framework and so on.
Java can be low on boilerplating and a lot more condensed; though one has to look outside the big mainstream frameworks for that.