Live data from Hacker News

Ask HN: Is there a sane alternative to Angular and React?

news.ycombinator.com

51–60 of 85 posts

Re: Ask HN: Is there a sane alternative to Angular and React?

#52

This whole JavaScript "revolution" seems surreal to me. I still can't believe they snuck JavaScript onto the backend. Edit: Angry is a better word.

'Angry' will be me once they start publishing metrics on how optimized JS (or what, webASM or something?) beats out native. Oh, I'm sure it's being done already. At this point I'm just back in my comfort zone. Let them battle it out for a few more years, I can probably make my peace with whatever's left over or stay in my niche.

Out of curiosity, what is your niche?

Re: Ask HN: Is there a sane alternative to Angular and React?

#53
post #28

Let me take your question apart a little... > Angular and React seem to be a mish-mash of proprietary syntax and technologies (AtScript, JSX, TypeScript etc.) that paper over some of the cracks in JavaScript and CSS. They are not "proprietary", but such they are partly an attempt to overcome "some of the cracks in JavaScript and CSS". > Are these transitory technologies that will be replaced by something better in th…

I have been playing around with PureScript (more for the fun of learning interesting FP concepts than creating anything useful) and really liked the Purescript Book [0]. Is there something similiar for Reason as well?

[0] https://leanpub.com/purescript/read

Re: Ask HN: Is there a sane alternative to Angular and React?

#54

Being both a TypeScript and Google Dart developer for a few years now (and a former Flash/Flex developer, and still missing lots of aspects of it), I can say: - On browsers: it is what it is. Neither React nor Angular will fix this for you. You're going to have to work with all existing browsers and their issues (which are quite a lot, especially when you want to go little 'deeper down'). - On styling CSS: Either use…

This is a fantastic response, thank you very much. It's a shame I can't up-vote more than once. I remember watching some Dart videos in the past and being really impressed by the language so I will revisit it as an option to pursue along with AngularDart.

Re: Ask HN: Is there a sane alternative to Angular and React?

#55
post #53
post #28

Let me take your question apart a little... > Angular and React seem to be a mish-mash of proprietary syntax and technologies (AtScript, JSX, TypeScript etc.) that paper over some of the cracks in JavaScript and CSS. They are not "proprietary", but such they are partly an attempt to overcome "some of the cracks in JavaScript and CSS". > Are these transitory technologies that will be replaced by something better in th…

I have been playing around with PureScript (more for the fun of learning interesting FP concepts than creating anything useful) and really liked the Purescript Book [0]. Is there something similiar for Reason as well? [0] https://leanpub.com/purescript/read

Not really.

This you've probably seen (the home page):

https://facebook.github.io/reason/

This is also quite nice (see the example app section at the bottom):

https://github.com/vramana/awesome-reasonml

Also these talks are interesting (but nothing close to the format of the book you mentioned):

https://www.youtube.com/watch?v=_0T5OSSzxms

https://www.youtube.com/watch?v=8LCmLQ1-YqQ (really bad audio, sorry)

Re: Ask HN: Is there a sane alternative to Angular and React?

#56
If you wish to stay with the thick client model, Vue.js appears to be the simplest alternative.

If you are willing to consider returning to the original RESTful architecture of the web, intercooler.js will dramatically simplify your application:

https://github.com/LeadDyno/intercooler-js

Re: Ask HN: Is there a sane alternative to Angular and React?

#57
post #26

Vue.js is saner because it does not have that JSX nonsense and you can still write most of the code however you like, and later upgrade to babel,typescript etc. Particularly I like component structure https://vuejs.org/v2/guide/single-file-components.html which kinda does the same in more traditional approach.

Hear hear. I used Angular for about a year and tried to use React for about six months. Then I tried Vue and I couldn't not believe just how much more sense everything made. Give it a shot.

Re: Ask HN: Is there a sane alternative to Angular and React?

#58

Being both a TypeScript and Google Dart developer for a few years now (and a former Flash/Flex developer, and still missing lots of aspects of it), I can say: - On browsers: it is what it is. Neither React nor Angular will fix this for you. You're going to have to work with all existing browsers and their issues (which are quite a lot, especially when you want to go little 'deeper down'). - On styling CSS: Either use…

This is a fantastic response, thank you very much. It's a shame I can't up-vote more than once. I remember watching some Dart videos in the past and being really impressed by the language so I will revisit it as an option to pursue along with AngularDart.

Hehe, thanks for the compliment!! :)

Re: Ask HN: Is there a sane alternative to Angular and React?

#59

No, none of this platform is sane. It's not designed, it's evolved. Embrace the madness or fail. The web is not desktop applications. The network is always there, the network is slow, the network is asynchronous. The network can fail. You cannot abstract over this with a clever library. Unless you don't care about pushing out 4mb of javascript before first render, you can't ignore it. The front-end is not a server ba…

> No, none of this platform is sane. It's not designed, it's evolved. Embrace the madness or fail.

Username checks out. Thanks, ZenPsycho!

Re: Ask HN: Is there a sane alternative to Angular and React?

#60
post #17

Server-side rendering with partial views? You're never going to get something as simple as Flash, with a write-once works everywhere. But your user's aren't going to be annoyed at the crappy UX that Flash (or Flex) applications brought us. EDIT: I'm dead serious about this, with the concept of isomorphic apps, I'm not convinced building thick Javascript-based clients is necessarily the way to go for a lot of use case…

The application I've inherited and support is a Rails app that does this. I hate this pattern. It's very difficult to change things and burdens the backend developer with the responsibility.
Post reply on HN