Another answer to the question “Do I need a Dart?”

    If you want to create client-server web applications, websites, scripts, minigames and you are not a JS follower, the answer is definitely “Yes”. If you are a flash developer and want to do something again that starts in the browser, I would say “Yes.” If you just want to learn how to program and do not yet know a single language, then Dart will be a good and pleasant start. Under the cut, I will try to expand each statement.

    I do not know a single programming language, why Dart?

    Because you can start with the basics of programming without looking at the environment. This is difficult to do, starting your way with JS, someone should tell you that you need to install NodeJS, and then you have to explain how the JS from Node differs from what is in the browser.

    The console application on Dart, it is also server-based, it can also look like a script:
    main() {// Точка входа приложения, прямо как в Сvar language = "Dart"; // Объявляем переменную
      print('Я хочу изучить $language.'); // Выводим в консоль.
    }
    

    Starting with Dart, you can then easily switch to C # or Java. And having mastered a little, you can write something that you can post on a web page and brag to someone about your successes just by sending a link.

    I am a flash developer, which way to approach?

    Dart has a library like StageXL, which is an adaptation of the API from flash. And in general, Dart is not much different from AS3 and for the better. And using the Dart Toolkit for Flash, you can do art and animations right in Flash professional, and then use them. As a former AS3 programmer, I didn’t even have to get used to the new language, everything went as it should.

    How to make minigames?

    As mentioned a little above, StageXL and the Dart Toolkit for Flash are exactly what you need. You can watch igrostroi lessons on flash, and then apply them in Dart.

    How to make scripts and what can they do?

    A virtual machine is supplied with the SDK, in this regard, Dart has the same capabilities as Python or any other similar scripting language. Parse sites or rob pictures, work with local files, it's all within the capabilities.

    Still, I want to write sites, what can Dart do?

    Firstly, there is AngularDart, a high-level abstraction that allows you to write a site modularly using components, use variable binding with the UI. The Angular2 library is also available. For those who like components but don't like monsters like Angular, there is Polymer. And if you want to quickly pile something in the style of Material Design, that is, Material Design Lite for Dart.

    And what about the server? Do I want to write a backend today?

    For such cases, there is Redstone.
    import 'package:redstone/server.dart'as Server;
    voidmain() {
      Server.setupConsoleLog();
      Server.start();
    }
    

    That's it, Karl, the server is up and running. Nothing more, do you understand, Carl?
    You will say that this server does not know anything, and I will say that it is very simple to teach by adding these lines:
    @Server.Route("/hello")
    String hello() {
      print("User soliciting greeting...");
      return"Привет, браузер!";
    }
    

    And now, starting the server and opening the page at the address “http: // localhost: 8080 / hello”, we will see “Hello, browser!”.

    And can I write mobile applications in this language like in JS using Cordova?

    The language has just begun to move in this direction, there are the first two projects that solve this problem, but they are completely not ready for commercial use.

    Conclusion

    In conclusion, I want to say that for me the main advantage of the language is the availability of StageXL and integration with Flash Professional. This makes writing simple games and interfaces as easy as they did before. If you compare Dart with the current JS, then there are many advantages, but they are obvious only to those who come from languages ​​such as Java, C #, C ++. Compared to TypeScript, the choice in favor of Dart becomes less obvious and it is more likely not a choice for some objective parameters, but simply like / dislike. I can not compare Dart with GWT or something similar, because I have no experience. However, the presence of all the goodies in one language (Angular, Polymer, StageXl, Flash Toolkit, Redstone and beautiful syntax) makes it one of the leaders, which is definitely worth a look for those who want to start web development.

    Only registered users can participate in the survey. Please come in.

    Do I need tutorials for Dart beginners?

    • 52.2% Yes 151
    • 8.6% No 25
    • 39.1% I'm not interested in Dart. 113

    Also popular now: