November 12, 2014
Dart isn't just for hipsters anymore. With version 1.0 in 2013 and an ECMA standard in 2014, Dart is ready to radically change web development for the better. And Dart 1 for Everyone has got you covered, now in print and shipping from pragprog.com/book/csdart1.
And before we go any further, here's 5 things you probably didn't know about Dart, brought to you by Chris Strom:
5 Things You Don’t Know About Dart
4) It’s not really statically typed. You can declare variables with or without types—it makes no difference whatsoever at runtime. If you like declaring variables with var, go right ahead. If you like documenting code with types, feel free (it’ll help with docs and code analysis tools).
3) It has beautiful unit (and acceptance) testing built into the language from the outset. To build bulletproof applications, you need a strong testing suite. And Dart has you covered. Brilliantly.
1) It rivals Ruby for code beauty. In addition to its simple, classical inheritance, Dart is loaded with syntactic sugar to make a programmer’s life easier. To name just a few, Dart has:
- Method cascades (calling multiple methods on the same object).
- First-class support for optional parameters (no more parsing an options hash, yay!)
- Getter and setter methods (methods that look like properties, but are backed by a normal method).
- Assignment of instance variables in the constructor declaration instead of the body.
- String interpolation—no more chains of plus signs!
It’s the little things really. And Dart has so many little things that add up to greatness.
Dart 1 for Everyone: Fast, Flexible, Structured Code for the Modern Web
Brand-new sections explore some of Dart's beautiful new features, such as:
- Method cascades: Improve code readability dramatically.
- Event streams: Simplified event handling, consistent with virtually every other asynchronous interaction in Dart.
- Library parts: Yet another way Dart promotes code organization.
- New class constructor syntax: Dart supports a nice variety of surprisingly expressive and concise ways to declare constructors.
- Building your own packages: Quickly share your work with the world.
You'll start writing Dart code on page 1, and throughout the book, you'll refactor that code to explore Dart’s features: OOP, real libraries and packages, testing, and more. You'll learn how to write beautiful, maintainable application code that just works™ in all modern browsers. Caution: after reading you may develop an intense attachment to structured code and skinny jeans.
Now in print and shipping from pragprog.com/book/csdart1.
Upcoming Author Appearances
Who Are We?
The Pragmatic Bookshelf publishing imprint is wholly owned by The Pragmatic Programmers, LLC.
Andy Hunt and Dave Thomas founded the company with a simple goal: to improve the lives of developers. We create timely, practical books, audio books and videos on classic and cutting-edge topics to help you learn and practice your craft.
We are not a giant, faceless, greed-soaked corporation. We're a small group of experienced professionals committed to helping make software development easier.
Don't Get Left Out
Are your friends jealous that you get these spiffy email newsletters and they don't? Clue them in that all they need to do is create an account on pragprog.com (email address and password is all it takes) and select the checkbox to receive newsletters.
Are you following us on Twitter and/or Facebook? Here's where you can find us and keep up with the latest news and commentary, and occasional discounts:
Tell your friends! Tweet this
- Pragmatic Unit Testing in Java 8
- Your Code As a Crime Scene
- Hello, Android, Fourth Edition
- Fire in the Valley
- Learn to Program with Minecraft Plugins (2nd edition)
- Programming Google Glass (2nd edition)
- Programming Elixir
Thanks for your continued support,
Andy & Dave
The Pragmatic Programmers
Books • eBooks • PragPub Magazine • Audiobooks and Screencasts