Better HN
topnewbestaskshowjobs
Log inSign up

miroslavpopovic

6 karma · joined Feb 4, 2015 (11y ago) · 12 submissions

Submissions

comment 9y ago · link · parent

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.

comment 9y ago · link · parent

Yes, class properties syntax. I mentioned that in the article.

comment 9y ago · link · parent

We also have a strong JavaScript background. Preferring JavaScript instead of TypeScript.

Cool, nice idea for the project!

comment 9y ago · link · parent

Thanks! I guess we just run into knex first, found out it works nicely in our app and continued to use it.

comment 9y ago · link · parent

> 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.

comment 9y ago · link · parent

Yes, class properties are the way to go.

comment 9y ago · link · parent

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.

comment 9y ago · link · parent

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.

comment 9y ago · link · parent

Not using arrow functions in JSX code to define error handler. Yes, I believe you are right, that would create multiple handlers.

comment 9y ago · link · parent

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.

comment 9y ago · link · parent

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.

comment 9y ago · link · parent

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! :)