Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
miroslavpopovic
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
5 ms
·
1.
▲
by
miroslavpopovic
9y ago
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.
2.
▲
by
miroslavpopovic
9y ago
Yes, class properties syntax. I mentioned that in the article.
3.
▲
by
miroslavpopovic
9y ago
We also have a strong JavaScript background. Preferring JavaScript instead of TypeScript. Cool, nice idea for the project!
4.
▲
by
miroslavpopovic
9y ago
Thanks! I guess we just run into knex first, found out it works nicely in our app and continued to use it.
5.
▲
by
miroslavpopovic
9y ago
> 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 backgrou
6.
▲
by
miroslavpopovic
9y ago
Yes, class properties are the way to go.
7.
▲
by
miroslavpopovic
9y ago
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
8.
▲
by
miroslavpopovic
9y ago
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 lang
9.
▲
by
miroslavpopovic
9y ago
Not using arrow functions in JSX code to define error handler. Yes, I believe you are right, that would create multiple handlers.
10.
▲
by
miroslavpopovic
9y ago
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 ne
11.
▲
by
miroslavpopovic
9y ago
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.
12.
▲
by
miroslavpopovic
9y ago
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 o