News for hackers. Stuff that matters.
Re:90% of software engineering done today is integrating poo... by wnolens on Sunday May 01, 2022 @03:38PM (#31227979)
I've started and quit web dev projects about 4 times in the past 5 years. I'm a distributed systems dev. The complexity of the recommended tool chain is mind boggling (and I consider my day job incredibly complex, of which I have a decade of experience doing). I would have said I hate React.

Finally started another project. No frameworks this time. Started with html and single js file until I needed more.. and solved the problems step by step. I'm at the point that I now see the benefits of react, but only by doing it this way could I possibly learn why.

Re:90% of software engineering done today is integrating poo... by moonchrome on Sunday May 01, 2022 @04:30PM (#31228374)
>I'm at the point that I now see the benefits of react, but only by doing it this way could I possibly learn why.

That's why I feel bad for the new generation of developers. When I started developing in 2000s it was enough to know low level abstractions, some design patterns, etc. Along the way I've seen the context in which for eg. MVC was revolutionary, and all the latest frameworks actually solved a lot of real problems (SQL query in PHP garbage all over the place on backend, jQuery/MooTools/ExtJS/Coffescript/AngularJS, supporting IE6, etc.)

A lot of modern tools make sense to me because I know the context they came out of. I feel we've done a shit job of preserving this context and lesions that lead to current frameworks - this will eventually lead people to rediscover all the mistakes that were hit in past, but also saddle us with legacy burden because it's hard to distinguish what's relevant and what's a result of historic constraints.

Re:90% of software engineering done today is integrating poo... by sprkwd on Sunday May 01, 2022 @03:55PM (#31228095)
I have completely given up on web dev these days.
Re:90% of software engineering done today is integrating poo... by commandlinefan on Sunday May 01, 2022 @06:28PM (#31229356)
Backend is worse, they’ll make you use the Spring “framework” that makes React look like a dream.
Re:90% of software engineering done today is integrating poo... by guywhocodes on Sunday May 01, 2022 @07:58PM (#31229907)
We have a basic template that when empty, takes about 20min to compile on a very new laptop, builds to a 200MB+ jar.
Re:90% of software engineering done today is integrating poo... by newtwilly on Sunday May 01, 2022 @10:50PM (#31230920)
Something sounds wrong, but I don't know exactly what you mean by "basic template"? Like a Spring boot example app?
Re:90% of software engineering done today is integrating poo... by AtlasBarfed on Sunday May 01, 2022 @09:26PM (#31230453)
A couple annotations and a base application class and you're up and running with a REST service. That's considered hard?
Re:90% of software engineering done today is integrating poo... by presentation on Sunday May 01, 2022 @10:22PM (#31230761)
Translated to React: a single render function and you're up and running with a webpage. That's considered hard?
Re:90% of software engineering done today is integrating poo... by mdoms on Sunday May 01, 2022 @06:47PM (#31229481)
Spring is a simple MVC framework, it follows the same patterns as similar Ruby, Python, C#, PHP etc frameworks. React very much blazes its own complicated trail.
Re:90% of software engineering done today is integrating poo... by ratww on Sunday May 01, 2022 @10:47PM (#31230902)
That statement is beyond the absurd. The API of React is several orders of magnitude smaller than Spring and similar MVC frameworks with the same feature. There is even a React replacement with feature parity, Preact, that clocks around 3kb.
Re:90% of software engineering done today is integrating poo... by erik_seaberg on Sunday May 01, 2022 @07:34PM (#31229759)
Spring is a powerful but pretty complicated DI framework. That MVC stuff is also there but for many use cases (microservices, batch, CLI) it’s not really helpful.
Re:90% of software engineering done today is integrating poo... by Blackthorn on Sunday May 01, 2022 @07:29PM (#31229739)
Well, nowadays anyway. It's come a long way from the point where an AbstractSingletonProxyFactoryBean seemed like a viable solution to a problem in the framework.
Re:90% of software engineering done today is integrating poo... by eastbound on Sunday May 01, 2022 @04:28PM (#31228353)
One major problem React solves is HTML injection. It used to be an interview question to work at our place, and since React, developers don’t often realize that old frameworks like Freemarker didn’t escape HTML. By default.
Re:90% of software engineering done today is integrating poo... by arcbyte on Sunday May 01, 2022 @06:15PM (#31229239)
I remember html escaping being a problem in the early 2000s, but promptly solved. Its been solved in every language for over a decade. React didnt do jack to solve it because it was already table stakes and had been for over a decade.
Re:90% of software engineering done today is integrating poo... by bennysomething on Sunday May 01, 2022 @05:13PM (#31228722)
Genuine question, what do you mean escape html by default?
Re:90% of software engineering done today is integrating poo... by likecarter on Sunday May 01, 2022 @05:37PM (#31228927)
If someone submits a text field with the contents `<bold>Injection</bold>` that will then be reflected on the site (i.e. a comment section), React will display the literal string, rather than bolded text.
Re:90% of software engineering done today is integrating poo... by bennysomething on Monday May 02, 2022 @10:30AM (#31235587)
Ah I see! Thanks