Better HN
topnewbestaskshowjobs
Log inSign up

Existenceblinks

1,102 karma · joined Jun 12, 2015 (11y ago) · 1,205 submissions

Submissions

comment 4y ago · link · parent

Newcomers started doing this on twitter for a while and turn social media from platform ads to federation ads network .. it's getting worse, like everybody is literally selling to each other. Remember old "long time no see" friends shown up trying to sell you something? Aghh now everyone pretends to be friend and sell you something.

comment 4y ago · link · parent

It destroys pure view layer as pure function and that makes it less compostable/reusable. Not be able to just a view function by just passing arguments.

comment 4y ago · link · parent

Tldr; use frequent iteration / feedback loop as enterprise-advantage alternative to build trust. Ahh, people really do like fashion though, peer testimonial, network effect etc involving kinda semi-real value construct just like the enterprise does (just spend more money because they can afford to)

comment 4y ago · link · parent

Seems like https://millionjs.org/benchmarks is hanging (tested on firefox with 4GB RAM machine) and the page shoot me 4.8 GB of memory.

comment 4y ago · link · parent

I hope developers with decent skills move on on Hook style api (I've seen at least 3 better-than-react libs still copy this) I'm 100% sure it's not going to last long, someone will come up with a better api very soon.

comment 4y ago · link · parent

Majority of frontend developers don't even appreciate a simple aspect of science; browser performance get worse as javascript bundle size increases. I think we also need software engineers to appreciate more on science.

comment 4y ago · link · parent

Try my app link:

data:text/html, <details style="padding-left: 1.5rem;" open> <summary><button onclick="fetch(location.href) .then(resp => resp.text()) .then(text => this.parentNode.insertAdjacentHTML('afterend', text))">+</button></summary> </details>

comment 4y ago · link · parent

All you need is a tiny view lib like lit-html/uhtml, and event dipatcher (DOM element can do that, or use bare EventTarget), now you get a MVC pattern loop; event fired -> state changed (+ optional effect) -> re-render.

comment 4y ago · link · parent

Also there is a transformation on js before handing diffs to Morphdom. There was no "replace the whole thing" without having to perform recursive diffs back then, not sure if it has now.

comment 4y ago · link · parent

react-dom is pretty much a sole purpose, there is no subpackage or its form of plugin. So shaking out unused functions isn't doing much since it's supposed to be * imported anyway.

comment 4y ago · link · parent

Sorry, I mean it should be in html spec.

comment 4y ago · link · parent

That's the only aspect of complaining. Size is one thing, it's also javascript for everything.

comment 4y ago · link · parent

The point is javascript-only obsession/perspective. Javascript should be fine as well as other languages.

comment 4y ago · link · parent

I had seen a lot of devrels meme pre-covid, now they seem to come back.

comment 4y ago · link · parent

340kb is quite impressive for an OS, it seems browser/web has a lot of great apis that are underused.

comment 4y ago · link · parent

Yep, anything else works, they are mostly sub 10kB view lib. It's fascinating that the current situation is widely acceptable.

comment 4y ago · link · parent

True, start innovation with javascript will not lead us to anywhere because the design is not going to be generic enough to form an innovative pattern that can be used everywhere. It's called "client-server" arch for reasons.

comment 4y ago · link · parent

Yeah, an html attribute on <head> or <body> for not having full page reload would make a big impact.

comment 4y ago · link · parent

There is a javascript size usage graph yearly .. I don't have a link bookmarked but it's getting insane. Note that 130kB is without starting writing any application.

comment 4y ago · link · parent

Does that mean abstraction leak from inside out? (No, not outside in)

comment 4y ago · link · parent

Solid.js is very small (sub 7-8kB IIRC), very similar to React.

comment 4y ago · link · parent

The tricky part of edge compute though is write operation and where the data store is.

comment 4y ago · link · parent

I used Liveview before (on very early version), now I use PhoenixChannel and javascript, it's great balance.

comment 4y ago · link · parent

It's "client-server" architecture for reasons though. Client and server mean to have completely different roles, architecture, languages. However, browsers just happened to support one language. There are also protocols between that.

I don't hate javascript as I write it too, but I also write many other languages. And I also think more of the web generally.

comment 4y ago · link · parent

Literally break the mantra "the right tools for the job". Now it's everything is a nail.

comment 4y ago · link · parent

For many years, Firefox is my development browsers because I thought I would run into perf issue, problematic/weird behaviour more often. But recently I develop on app on Firefox for many months, then test it on Chrome, dang! It's almost 3x slower (rendering lots of dom nodes). So now I've switched to Chrome for development because if it's fast on Chrome it's going to be very fast on Firefox.

777.

Ask HN: Why the web lately is all about JavaScript?

108 points · by Existenceblinks · 4y ago · 137 comments

comment 4y ago · link · parent

There is tons of photo viewers, tons of pdf viewers, to the point the market is max saturated because it IS SO EASY to create and lots of demands drive the creation. Unlike file format for developers with sophisticated spec. You can also claim that Postgresql is just a bunch of files and folders, it's just viewer, it's just a binary code that read it blah blah.

comment 4y ago · link · parent

Yeah, practically, it's the same. They don't even own git tbh, and won't even make noise on git core mailing list. I can even go extreme, practically, whether they even can.

comment 4y ago · link · parent

> Its a file, you open it, and boom you got a database.

Boom! What is the program to open (understand) it? Even my elixir's core lib cannot understand it.

1
252627
41