API design: Simplifying the properties 😌
"Developers, developers, developers!"
We're almost as excited for developers as Steve Ballmer (no one can quite reach his level).
Since we're so excited for developers, we want to make the developer experience as great as possible.
One way we have done this is by reducing the amount of code needed when writing properties. We've introduced shorthands!
Before when you needed to output a string, you had to write something like this:
To improve this, the $exp key is no longer required. You can simply write:
And, if you're inserting a string, you can simply write.
And... Since properties is a pain to write every time, you can now simply write p.
Awesome stuff 🙌
To avoid confusion and to keep consistency, we are also replacing (though still supported) the old viewHandle and view reference and replacing them with alias.
The old way:
The new way: