HNHacker News
TopNewBestAskShowJobs

miroslavpopovic

6 karma · joined February 4, 2015

submissionscomments
miroslavpopovic··on Learning Node.js and React while building a product
Sorry, I didn't think about the arrow functions being used in class property syntax too. :) So yes, they do help with event handlers, I stand corrected.
miroslavpopovic··on Learning Node.js and React while building a product
Yes, class properties syntax. I mentioned that in the article.
miroslavpopovic··on Learning Node.js and React while building a product
We also have a strong JavaScript background. Preferring JavaScript instead of TypeScript.

Cool, nice idea for the project!

miroslavpopovic··on Learning Node.js and React while building a product
Thanks! I guess we just run into knex first, found out it works nicely in our app and continued to use it.
miroslavpopovic··on Learning Node.js and React while building a product
> I didn't find anything in the original blog post in the tone of a "complaint". If anything, they were merely pointing out what kind of things they run into and their thoughts, while transitioning from an ASP.NET background.

Yes, exactly this! There's nothing to hate really. It's more of a complaint against our inability to quickly grasp new concepts than trying to throw some stones over to React.

miroslavpopovic··on Learning Node.js and React while building a product
Yes, class properties are the way to go.
miroslavpopovic··on Learning Node.js and React while building a product
Not a bad thing. Just a personal preference of trying to separate views and view models for a long time. I believe it just needs some time to get used to it. As I said, I really do like declarative nature of JSX, knowing that it's just compiled to a regular JS/DOM code.
miroslavpopovic··on Learning Node.js and React while building a product
Yep, the class property syntax helps with event handlers.

As for C# and TypeScript, we also have a very strong JavaScript background, from vanilla pre-ES6 to the latest ES2017+. We still prefer JavaScript to TypeScript, although out of languages that compile to JS, TypeScript is the best in our opinion.

miroslavpopovic··on Learning Node.js and React while building a product
Not using arrow functions in JSX code to define error handler. Yes, I believe you are right, that would create multiple handlers.
miroslavpopovic··on Learning Node.js and React while building a product
Yep, we are using arrow functions and other ES2015+ goodies, but they don't help with event handlers. In fact, I believe class property syntax helps with that, but we only figured it out after we built these few pages and components necessary for the web app part.
miroslavpopovic··on Learning Node.js and React while building a product
Well, this is just my (and partially of my colleague) subjective opinion after spending a month working with it. Of course, that's due to change once I get enough mileage with it.
miroslavpopovic··on Learning Node.js and React while building a product
Hey @acemarke, thanks for the comment!

For myself, I still have not decided whether I like JSX or not :) My colleague finds it great, and I like the declarative nature of it, just need to persuade myself to accept it mixed in JS file.

Yes on .bind, but I got used to not having to care about it in Aurelia (and Angular also). Got my fair share of `this` handling in pre-ES6.

And of course, thank you for the links. Bookmarked! :)