4 ms·
"Dart feels like Java". Great. Now we can have D2EE on the client and server.
by cutler 9y ago
"Dart feels like Java". Great. Now we can have D2EE on the client and server.
- hoodoof 9y agoWhere is that quote from? Is it praise or criticism?
- grzm 9y agoIt's from a bullet point in the article. The full quote is > "Dart feels like Java — making it easy for many developers to jump in"
- deleted 9y ago[deleted]
- resource0x 9y agoBased on my own experience, it doesn't feel like java at all. It is very easy to learn for those who know java, or javascript, or C# etc - that's true. But the "look and feel" is different. And it's not only the language - libraries (e.g. collections) are very well designed. Just try it out- you will like it. As for flutter - there are novel, original ideas in there. It's not a copy of something else.
- bschwindHN 9y agoMaybe "feels like" is too subjective but it absolutely feels like Java to me: * Object-oriented with inheritance (sharing the same keywords such as 'class' and 'extends' * Non-optional semicolons * Constructors, method overriding, calling `super.whatever` in your overriden methods * Presence of null * A base Object class for all objects in Dart, with hashCode() toString() methods These are mostly superficial observations, and it's not a criticism of the language, but it certainly feels like Java to me, more than Scala or Go does.
- pjmlp 9y ago* @Override annotation instead of a proper keyword One of my pet peeves with Java.
- fauigerzigerk 9y agoTrue, there are many similarities. But it seems to me that the author of this article makes Dart appear even more like Java by ignoring Dart features and idioms. For instance, what's the point of those Java style getter methods in the Movie class? These are public instance variables after all, and Dart has special property syntax to transparently wrap instance variables if and when the need arises. I know next to nothing about Dart. So maybe there is a reason for this weirdness. But I rather suspect that the author has written a lot of Java and almost no Dart in his life.
- moocowtruck 9y agototally agree, at first i thought the same thing.. what is this java ?? then i wrote a bunch of dart.. it is a fantastic language and ecosystem.. and the tooling is excellent. VS code dart plugin is awesome
- bpicolo 9y agoAre you forced to resort to DI or verbose composition to make it reasonably testable? That's my metric for when languages feel too java-y.
- pjmlp 9y agoI used C2EE before Java was invented, where do you think those ideas come from? Enterprise architecture looks the same in any language that gets adopted in this space.
- afsina 9y agoDart is promoted to be "Very easy to get started by Java, C# and JavaScript" developers. But that's it.