Hacker News new | ask | show | jobs
by bayesian_horse 1798 days ago
It doesn't look like a very complex application, but already has a ton of abstractions, essentially building your own, unproven and unreviewed framework.

Also I think you got a typo at https://github.com/labmlai/labml/blob/master/app/ui/src/view...

2 comments

Thanks for finding the typo.

Ton of abstractions is an overstatement. https://github.com/vpj/weya is more like a helper function around `document.createElement`.

A function is an abstraction. A JSON object is too. Are we in preschool here, not allowed to create new abstractions because they're "unproven and unreviewed" by a FAANG?

This all seems so narrow and parochial, like people who have never left their own village. There's a wide world of useful technologies and design techniques out there (including React) and the simplest possible design that solves your problems is usually best.

You are allowed to do practically anything. I'm just stating that I don't think it's an improvement to replace battle-hardened well understood abstractions for half-baked new ones you have to learn on every new project.

People running away from "bloated frameworks" very often end up reimplementing a significant portion of the bloat. But usually with fewer ressources and fewer testing, so you can guess what happens most of the time...