He also stresses that these choices are his own opinion, based on his own experience in the ecosystem, and of course yours may be entirely different. “This is just my opinion, we can all draw our own maps, and I know I’ve left some stuff out,” said Brown.
Still, we’ve got to start somewhere.
Even better, immutability provides a natural safety net for experimentation — if you know you can’t actually change anything that exists, you can only create a new copy that is modified, this encourages experimentation you might not otherwise feel comfortable with. Which makes it great for beginner programmers as well.
One-Way Data Binding: “This is for the front end folks, an idea brought to the table by Elm, and picked up by Facebook with Flux, and then there was Redux, and now it’s in Angular and in Vue,” said Brown. Increasingly everyone’s realizing this is a great idea, and 2018 is a good time to get acquainted.
One-way data binding does make your application state easier to manage. When you first come to it you think, gosh, this is so much more work, so much more I have to write, it seems like overkill. And it may be overkill for small apps, but once your application reaches a certain size it really does help constrain your thinking to your entire app and not only the part you’re working on. Because when you’re using one-way data binding, you have to think about the state of each piece of your application and where it fits into the application hierarchy.
Computed Property Names/Property Shorthand: “This is the sleeper hit of ECMAScript 6 (ES6). I don’t see people using this very often yet, and I think it could be used so much more. It’s a fantastic little bit of syntactical sugar that allows you to dynamically construct property names and object initializers or object literals,” Brown said. “I feel like every week I find a new cool way to use this. This also works really great with functional programming, so if you haven’t seen this before definitely look it up — I’d definitely like to see more use of it in the community.”
Things Not to Worry About:
There are also, according to Brown, some areas of knowledge we can skip. At least for now.
The New Stack is a wholly owned subsidiary of Insight Partners. TNS owner Insight Partners is an investor in the following companies: Bit.