Hacker Newsnew | past | comments | ask | show | jobs | submit | sim0n's commentslogin

I would assume that lot of people just find the JSX equivalent a lot more readable and familiar (a matter of opinion, of course.)

  <div>
    <p>this is easy</p>
    {list.map((l) => <li>{l}</li>)}
  </div>
> you automatically get loops, variable interpolation etc without having to invent a compiler and new syntax

To be fair to JSX, you use regular loops, interpolation, etc without any different syntax (`{}` accepts a vanilla JS expression), you just obviously need the compiler step to de-sugar the element tags to `createElement` calls.


Yeah the syntax is almost identical to vanilla js, but requiring a compiler is quite cumbersome compared to the advantage it provides imo.


That said if anything pretty much all of the new school frameworks and many of the tools in their ecosystems are already dependent on compilers for optimization anyway, react itself is introducing a compiler in the latest versions.

Anyway I prefer the html looking syntax if anything because it looks like the output on the page. That’s dependent on a project coding style that doesn’t unnecessarily wrap things in components, which for my company’s product I’ve set as a standard.


Requiring a compiler also allows to catch mistakes at compile type, which is much more efficient in terms of development.


That's not particularly high for a large scale web application where every file is a ES module, especially so if it includes dependencies.


Nothing is "wrong" with it, the design is just something from the 90s/early 2000s.


as opposed to bloated 2020 minimalist designs that don't work


They haven't.


One case I've come across them using it for is delivering updates for visible tweets in a timeline (e.g. like/retweet counts being mutated).


Not exactly a framework, but a React app from 2014 will still work great in 2019 and can be updated with very little pain.

Build tools wise, a simple Webpack/Babel config from 2014 would be relatively straightforward to update to the latest versions.


> Soccer would be a much better sport

Very subjective. I personally think having a limited set of substitutions helps keep the game more interesting as every change can be hugely impactful to the team's tactics and the result of the game.


Why is "map an array with a function" unintuitive but "filter an array with a function" isn't?


I'm sure they do. This is pretty standard at lots of big tech companies (Airbnb, most likely Uber, etc).


> there should be a repository called mathiasbynens.github.io right

Not exactly - the subdomain is the account and the path name is the repository (and the repository's `gh-pages` branch is what's returned).

(https://github.com/mathiasbynens/rel-noopener)


Didn't know you could do that, thanks! Also, this confirms last edit Nov 2016.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: