Better HN
topnewbestaskshowjobs
Log inSign up

usrbinbash

4,687 karma · joined Dec 4, 2021 (4y ago) · 1,693 submissions

Submissions

comment 4y ago · link · parent

Pretty sure my mum would love for her recipe websites to fit the entire recipe on screen at once, instead of having to scroll over a gigantic font, interlaced with 4+ irrelevant pictures of smiling people holding fruits and 2 ad banners, canceling the ubiquitous "we use cokkies balabla.." popup and maybe some full-page ad-overlay.

I am also sure she would love these selfsame pages to load instantly when shes accessing them via her old cell phone at my uncles house where reception is bad and the device has to revert to 3G.

No, "other" people don't want bloat, tons of adds and "clever designs" (aka. a huge useless picture-banner that contains zero information) either.

comment 4y ago · link · parent

The "Getting Started" is meant to get one going with a "try-it-out" setup as fast as possible, not as a comprehensive guide on what to look out for in a production setting.

Admins can be expected to Read-The-Fine-Manual.

comment 4y ago · link · parent

> It's a lot of code, but it's not a lot of logic.

The exact reason why I compare microservices to OOP ;-)

comment 4y ago · link · parent

All ideas that are good in principle, become absurd the moment they are elevated to a kind of dogma, applied to every problem, no matter if it makes sense to do so or no.

Microservices are no exception from that rule, and often repeat the same mistake as OOP did with its promise of "reusable code".

Does it sometimes make sense to break some larger services up in smaller ones? Yes.

Does it make sense to "factor out" every minor thing of the implementation into something that can individually be manhandled into a docker container because at some point in the far future, someone may save a few minutes of typing by talking to that service? No.

Why not? Because on the 1:1000 chance that what the service does is actually exactly what that other thing requires, it will probably take more time to implement an interface than it would to simply implement a clone of the functionality.

comment 4y ago · link · parent

Well, it literally says so in the documentation...

https://docs.docker.com/network/iptables/

By default, all external source IPs are allowed to connect to the Docker host. To allow only a specific IP or network to access the containers, insert a negated rule at the top of the DOCKER-USER filter chain.

comment 4y ago · link · parent

That was my first thought as well.

comment 4y ago · link · parent

A cool idea in theory.

However, loads waaaay to long at least for me. I guess some better caching may be required.

comment 4y ago · link · parent

"The C Programming Language" - Ritchie & Kernighan

"The Go Programming Language" - Donovan & Kernighan

Even knowing the language when I started reading each of them, both these books had a lot to teach: Clarity of Expression, building things yourself to get an understanding how more complex versions function, building code that is extensible, understandable and testable, and most importantly: Understanding software engineering not as an academic exercise but as a craft.

Both of them also showcase the virtue of simplicity. It's much easier to avoid getting drawn to a new tech fad when you can just look at it saying: "Basically, all this really does for us is X, so why do we need the whole XYZ?"

comment 4y ago · link · parent

Uh huh.

I would like to have 3 questions answered:

1. How can the telomere shortening be reversed in an adult without inducing abberant cell growth?

2. How do we stop stem cell populations from reaching senescence?

3. How do we deal with the fact that continued mitosis leads to an accumulation of copy-errors in aforementioned cell populations?

comment 4y ago · link · parent

> and you have to add tons of js and css to get something acceptable

No we don't.

As I have written before in this topic, HN is the perfect example. It pulls in a small css and js file, both of which are so slim, they don't even require minifying. The resulting page is small, looks good, is performant and most importantly does its jobs.

We don't need megabytes worth of cruft to display a good looking page.

comment 4y ago · link · parent

>It's significantly better.

Its not better if the only thing that keeps it afloat is the fact that broadband is ubiquitous by now (and that isn't even true for most of the world), and hardware got alot better.

The main difference is that many people started using the web after the gamification and bloatation took over, so they are used to adbanners flying in, random videos which start playing, and phone batteries going flat just by looking at a news article.

> It's just that there's more work to be done.

But is that extra work necessary? Look at this threads page on HN. It loads 402 kb worth of content: the html, a tiny amount of JS that isn't even minified (and doesn't have to because its so slim), a small css file, 3 small gifs and the favicon.

That's it. That's all the network-load required to display a usable, information-dense, not hard to look at and performant experience.

comment 4y ago · link · parent

The "lack" of "features" that are prevalent in other languages is a virtue of Go, not a flaw.

comment 4y ago · link · parent

Agreed.

There are only 2 kinds of languages: Those people complain about, and those nobody cares about.

comment 4y ago · link · parent

>The important bit is that they hinder deep learning of CSS.

Something like CSS, the original purpose of which is simply to tell the browser how to render certain elements, shouldn't be complicated.

If it is, then we are moving in the wrong direction.

comment 4y ago · link · parent

>Which sites are you actually complaining about here?

Every website which loads way more content than its use case justifies. If the high quality of my device and ubiquitous broadband is the only reason that something appears to be loading fast, that's not good.

>Or let's pick a technical resource. go.dev's landing page? No noticeable delay in loading for me

Among other things, that's because this is a website loading what it has to, instead of everything and the kitchen sink. 885kB in total, and most of that are the images of "companies using go".

comment 4y ago · link · parent

>In summary: Why not invent a new protocol

Pretty sure I said nowhere that we shouldn't invent new and better protocols. QUIte the contrary (pardon the pun).

What I am saying is: We should not need to rely on new protocols to make up for the fact that we send more and more garbage, we should send less garbage.

If we can get less garbage, and new and improved protocols, all the better!

But if all we do is invent better protocols, the result will be that what buries the internet in garbage now, will use that better protocol to bury us in even more garbage.

comment 4y ago · link · parent

There are cities that tried to solve the problems of having constant traffic congestion on all 4 lanes by demolishing buildings and building 2 more lanes.

The result: traffic congestion on 6 lanes.

comment 4y ago · link · parent

People are also allowed to voice their opinion about the performance characteristics of applications, and their use-case to resource-footprint ratio.

comment 4y ago · link · parent

This comment is not specifically about quic, which I believe is a solid idea and would love to see used and supported more, but about the topic of requiring super fast connections to do things that really shouldn't need them.

Accessing a page where all useful information I am interested in is text, should not require a new protocol developed by genius engineers to work without delay. If I want to read an article that is 50kB of text, it's not unreasonable to expect that information to be here before my finger leaves the ENTER key, regardless of how its transmitted.

Why isn't that the case?

Because said article is not transmitted with a dollop of html to structure it, and a sprinkle of CSS and JS to make it look nice. It's delivered to me buried in a mountain of extraneous garbage, pulled in from god-knows-where, mostly to spy on me or trying to sell me crap I don't need.

I am not saying "don't invent new protocols". But maybe think about why it was perfectly possible to have functional, fast, and reliable webpages and applications in the 90s and early 00s, despite the fact that our networks and computers were little more than painted bricks and paper-mache by todays standards.

https://idlewords.com/talks/website_obesity.htm

If we don't think about this, then neither QUIC, nor QUIC2 or REALLY_QUIC will save us from being wading through a pool of molasses slow crap. Because inevitably, following each techical improvement that could makes our stack faster, is an even bigger pile of bloat that drags it down again.

comment 4y ago · link · parent

The wikipedia definition talks about terminals in the general sense of the word as in "something where some interface connection terminates."

In that strictest sense of the word, even an RDP client onto a windows desktop is a "terminal".

As the article points out itself however: The colloquial semantic meaning of the word, aka. what is usually meant by it, is TEXT TERMINAL.

And btw.: Even for a fully featured RDP client, I wouldn't accept a size of 200+MB. The one I use at work is barely 4MB.

comment 4y ago · link · parent

As I have written elsewhere in this thread: Storage is free, RAM isn't.

And neither is battery power. A terminal application is supposed to be small, and next to invisible in terms of resources required. If it isn't, it will be uninstalled.

comment 4y ago · link · parent

>Konsole is not actually 50kb, you need to include the libraries it imports to do an apples to apples comparison.

No, we really don't, because these libraries are available to other programs as well, whereas a huge packaged application is availabe to nothing than itself.

comment 4y ago · link · parent

>Our children will complain about 1000GB bundles.

Our children will still complain about a 10MB application, if it does something that could be done by a 500KB solution.

>Comparing a complete bundle for an advanced graphical application framework with a TUI application is apples to oranges,

And what do I need a "advanced graphical application framework" for if the intended use case is displaying text in a grid?

comment 4y ago · link · parent

So is my current terminal app, which clocks in at 250 kilobyte. And its memory and CPU footprint is so low, I can't find it in htop without filtering.

comment 4y ago · link · parent

Storage is free. RAM isn't.

And even if it were, the size of an application in relation to its purpose is a relevant metric.

comment 4y ago · link · parent

The gzipped tar for this is 90MB. It's 265MB unzipped.

That's bigger than my kernel, my initramfs, all my terminal emulators, my media player, glibc and the gnu coreutils together, and I'd still have room to spare for some mp3s.

No.

comment 4y ago · link · parent

> HN has a boring design

It has a simple design that doesn't get in the way of its functionality.

And because of that, the entire page for this Ask is 19.4 KB in size at the time I write this reply. It would load instantly even via EDGE or a godamn 56kbaud modem.

Whereas with some website "designs", even a 3-paragraph 200 word nugget of wisdom, may well clock in at several megabytes.

What's also nice about "boring" designs: They render predictably, and well, on all devices. HN works on my laptop, my widescreen, my phone, my older phone, and even my terminal:

    links https://news.ycombinator.com/item?id=29540330`
This works, and the result is even usable.

> Most devs that I know prefer CLI over GUI, even when GUI makes their life easier.

How exactly does a GUI make my life easier?

1
5354555657