HN user

lerpapoo

-6 karma
Posts2
Comments23
View on HN

preact has worse performance than react at the expense of size and hooks are basically on the only reason I’m still using react. Without hooks I would be forced to create react component classes instead of simple functions… they are very very handy

Wow, I made same GUI in react and got 0 stars :(, but I would still rather use mine since it is more performant, has less css bloat (don't need css in middleware), and has more useful functionality and features which I need such as precise range dragging, infinite menus, anchor snapping to edges of screen, some realtime line/bar charts, and a more slim ui. https://lerp-io.github.io/editor-gui/

if this is about react then...xml inside javascript is for scrubs, just rename your createElement to 1 letter (mine is h) and use coffeescript lol.

i also renamed my "className" to "cn" so i dont have to type it but i wouldn't recommend that.

  h 'div',
    cn: 'myclass'
    h 'span',{},"mytext"
    h 'span,{},"asd"

would be cool with one that just shows a fresh copy of the times on a wall everyday but picks one for the current day from random ones in the past. or maybe make it fun where it picks one from the past with similar headlines.

yea, I don't like articles like this for the same reason. nobody has the brain power (yet) to rewrite the entire stack in a gpu shader and add in complex logic and a dynamic interface. it's an optimization vs delivery tradeoff. If someone is getting payed to build a product, they must deliver it with the tools at hand, you can invest time to optimize it but it will come at a cost of less features. This also depends on the industry, if you are building lower stack drivers that others will depend on, you care about performance more. Higher level applications are more user oriented and care more about ui and features. organically, people tend to spend their time and braincells in the most valuable way they can. a lot of products, especially in the web world, features hold more value than performance. Once we get the agi thing going, we can just task it to strip and redesign the entire OS down to the kernel and tailored for every user, strip everything down to only the buttons that the user clicks. some granny only knows how to open up google and read her newspaper website, all that other code can be removed lol.

It looks so nice, I always look at admin dashboards and compare the style to what i have and then i think how much hell it is to build all the functionality compared to just designing buttons, I wish all I had to do was just design the look and it would just automagically decide what kind of hellish logical backend it plugs into lol.