News for hackers. Stuff that matters.
Re:Ask HN: Which front-end tool would you use to build an e-... by PaulHoule on Wednesday May 25, 2022 @12:11PM (#31506565)
Depends on the app.

MobX + React + Websockets looks good for some things. (Controller apps for my home IoT system)

For other things where agility really matters (say a system for building machine learning training sets where you might want to add new tasks) I'd ditch the SPA because I wouldn't want to have to modify the front end just to add a new task.

I'm also dreaming about making systems that are WebGL based and not quite sure how I'll do it.

Re:Ask HN: Which front-end tool would you use to build an e-... by r0b05 on Wednesday May 25, 2022 @12:22PM (#31506703)
Let's say it's a simple e-commerce app.

React is one option. I've used it but I'm not terribly excited about using it.

What do you mean by system for building machine learning training sets?

Re:Ask HN: Which front-end tool would you use to build an e-... by PaulHoule on Wednesday May 25, 2022 @12:59PM (#31507233)
People had e-commerce apps long before there were SPAs. Amazon is not an SPA. The main reason to make an e-commerce app be an SPA is because you want your competitors to win.

To create a training set you might have to ask people 1000 to 20,000 questions like "Is this a dog or a cat?", "Did the patient survive the operation?" Usually you're asking the same question about different prompts, for instance, photographs or clinical case report. Answering a form is called "making a judgement".

If you're adding a new task (say "click on the person's nose") you need to add a new form. In an old-school web app you can add a new form when people are making judgements, there is nothing to it. In the case of an SPA you might need to make a new React component, compile the app, force people to reload it, etc. It really slows the process down.

Re:Ask HN: Which front-end tool would you use to build an e-... by r0b05 on Wednesday May 25, 2022 @02:37PM (#31508674)
I just read up on MobX and came across Mantine so I am leaning towards React again.