News for hackers. Stuff that matters.
Re:Airbnb Is Moving Faster at Scale with GraphQL and Apollo by froglegs on Saturday January 12, 2019 @11:16PM (#18895030)
It was slightly off topic but I can understand it seeing as the example is in React/jsx and ember gets no love :) Personally jsx makes the hair on my body stand upright but that’s just me!
Re:Airbnb Is Moving Faster at Scale with GraphQL and Apollo by exogen on Sunday January 13, 2019 @03:16AM (#18895713)
Likewise, I feel the same way about template DSLs (why add yet another language's control flow/scoping/etc. into the mix?). I think if JSX had been around first, many more developers would find templates off-putting, seeing as they amount to writing code that builds up other code as a string. It's just that they're the way things were done for so long...

I wonder what a newer dev's take would be? Would they find UI elements as values/expressions weird, or UI elements as strings weird?

Re:Airbnb Is Moving Faster at Scale with GraphQL and Apollo by froglegs on Sunday January 13, 2019 @05:28AM (#18896066)
I can see that argument... the same could be said about learning jsx as a layer on top of native js.. Before spa’s it was just interpolated strings rendered on the server.. people probably thought the same thing when rendering a string of html inside their python/ruby/java program. My take is if it gets the done and the team agrees, use whatever tool works! In ember-land, single file components are in the pipeline I believe, will be interesting to see if they end up supporting jsx too.
Re:Airbnb Is Moving Faster at Scale with GraphQL and Apollo by mnutt on Sunday January 13, 2019 @11:35AM (#18897294)
Ember’s HTMLBars is no more “building up code as a string” than jsx is.