News for hackers. Stuff that matters.
Re:React from zero: a simple tutorial for React by vbezhenar on Saturday June 30, 2018 @11:32AM (#17431180)
When people tried to write big enough applications with JavaScript, they found out, that it was a mess. JavaScript is a terrible language, so another languages were born (including modern JavaScript which isn't that bad). DOM is a very low level and very verbose API, so various approaches were taken to simplify development, e.g. jQuery, Angular, React. Hello world apps might be easy to do without frameworks, but once you're making complex pages with dozens of inputs, asynchronous loading, etc, lack of frameworks is likely to turn your code to a mess. Or, if you're brilliant developer, you might invent your own little incomplete buggy framework.

It's similar to WinAPI. Sure, you can write C with WinAPI and it's enough for simple applications. But in practice people use better languages and frameworks.

Simple JavaScript has its place, of course. If I'm making text-only website and I want to introduce just a little bit of interactivity, like image gallery, using anything but a few lines of JavaScript is overkill.

Re:React from zero: a simple tutorial for React by rhapsodic on Saturday June 30, 2018 @11:36AM (#17431194)
>When people tried to write big enough applications with JavaScript, they found out, that it was a mess.

I have written huge, complex, graphics-intensive applications with Javascript, and that was not my experience at all. So maybe it's not the language, but the person using it that is responsible for the mess.

> It's similar to WinAPI. Sure, you can write C with WinAPI and it's enough for simple applications.

That is a very far-fetched comparison, in my view.

Re:React from zero: a simple tutorial for React by abiox on Saturday June 30, 2018 @12:46PM (#17431500)
> So maybe it's not the language, but the person using it

oh. it would seem this is more about you feeling impressed with yourself, rather than making substantive arguments.

Re:React from zero: a simple tutorial for React by rhapsodic on Saturday June 30, 2018 @01:24PM (#17431700)
>oh. it would seem this is more about you feeling impressed with yourself, rather than making substantive arguments.

That is my argument. It's simple logic. If I can get good results without React, I've proven that React is not necessary to get good results.

Re:React from zero: a simple tutorial for React by abiox on Saturday June 30, 2018 @03:32PM (#17432359)
that seems like a trivially true statement, if not an outright tautology.
Re:React from zero: a simple tutorial for React by ricardobeat on Saturday June 30, 2018 @12:45PM (#17431499)
Do you use any framework, library or specific patterns in your apps?
Re:React from zero: a simple tutorial for React by rhapsodic on Saturday June 30, 2018 @01:27PM (#17431717)
>Do you use any framework, library or specific patterns in your apps?

Yes, but my team takes the same approach that Facebook or Google takes. We don't try to shoehorn in some general framework made for some other application by someone else. We make our own, that serves our own particular needs. We are the architects and the builders of our software.