@camerow
JS, React, Node and all things web. http://camerow.github.io/
Passionate learner, compassionate programmer.
Nothing here yet.
No blogs yet.
I almost never use them as I find them cumbersome and feel there is almost always a better way of getting at what you are doing. Forms, for example, i have seen people getting input data using refs. However as the form grows that becomes annoying quickly. That said there are most certainly circumstances I do use them. None that I can think of off the top of my head. I'd love to hear more opinions on this!
@ron_man This is something I'm trying to learn more about as well. I've been exploring the Elm language, which is a purely functional object-oriented language and it has opened my eyes to some of the benefits. Essentially as I understand it, if your objects/functions are composable they are not reliant on one another. However if your object extends another, it is now reliant on that previous objects API -- class A extends class B . Do this a couple more times and you've got class D extends class C (which extends class B, which extends class A . What if I make a change to class A ? It starts to get hard to figure out if that's going to break the other 3 classes. With composition I can say class D is composed of class A , class B , class C . It doesn't inherit from any of them, it is composed of each of their unique structures. I hope this is a good explanation - I'm sure it's one that could use some help/fixing as my understanding of this concept is still growing as well.
I just can't get passed this JSX not being SoC. When I see HTML with functionality, I see HTML tied to JS. Looking at Aurelia value.bind="firstName" doesn't look, feel, or behave any differently than JSX's value={this.state.firstName} other than it's in a different file. Hell, if it's not SoC to other's standard, well then that's just fine, I enjoy using it over declaring strings linked to JS.
If you're talking about minified code, you get a -p flag (production) that will automatically minify your code when pushing to prod. And it can be complicated at first - essentially learning the configs necessary, but I don't believe too complicated is a good reason to not learn something. If it was, I would have never started programming in the first place. Stick with it!