Hacker News new | comments | show | ask | jobs | submit login

As an Ops guy, I preach Ansible + systemd all day everyday, but so many of our Devs (and Ops) have drunk the containerization Kool-aid.

Unfortunately, the same culture which fucked modern web design (a new JS framework every 6 months) is starting to creep into Ops; some REALLY smart people make a tool which promises to be X but with X's main problem solved. They do the easy 80% and then abandon the project when the hard 20% needs to be fixed (and forget documentation).

> They do the easy 80% and then abandon the project when the hard 20% needs to be fixed (and forget documentation).

That's a nice summary. The 2nd level ignorance of those people is astounding.

Oh, sure, write the 618th package manager, I'm sure you'll be the one who finally gets it right.

I suspect that systemd will end up in the same state...

The JavaScript situation is grossly exaggerated. It's doing very well. It's just that the people who aren't productive are also the ones shouting the loudest on HN. Meanwhile, a lot of people are being very quiet getting tons of stuff done really efficiently. (Source: Me, very happy React developer who is so glad we're finally out of the terrible "wilderness years" of server templates and jQuery.)

I will rather take any server templates and jQuery over flavour of the month JS framework, and will keep doing that until my boss or customer tells me otherwise.

No need for JS for what can be done in plain HTML/CSS.

Offloading view changes to clients can both give a better experience (changes are reflected ~instantly vs a refresh and a round-trip to the server) and can scale much better (e.g. Server only used to process CRUD operations, CDN or nginx / Apache used to distribute static assets like the JS app, index html, CSS + images etc).

It can also potentially help with things like caching, but more traditional server-side templated designs can also use things like Varnish with the ESI feature, utilizing caching mechanisms in the framework / app (e.g. Memcache or whatever), etc.

I used to think SPAs were dumb, but now I love Rails 5 API-only mode + EmberJS + EmberData. It also makes server-to-server a breeze, because you already have your API. Mix in JSONAPI, swagger, and oauth and it's a pretty happy environment to build software in.

It can give benefits but all too often I'm left looking at a spinner wondering what the hell is going on before eventually being presented with a simple page that would have been trivial to render server side.

c2.com being a tragic example of this.

At first I said to myself, "C2, wtf is this guy talking about I could load that on a calculator".

I was wrong. Load time was an abysmal 14 second(!) wait. I normally don't make jokes on HN but today I'll be pouring out a sip of dark roast for my metaphorical 'dead homie'.

> and can scale much better

Offloading everything like that to client is antisocial behaviour. Seriously. This goes beyond "bad engineering"; for any popular website, this literally means saving a bit on your servers while causing lots of electricity being wasted by your millions of visitors. This is the computing equivalent of selling extremely fuel-inefficient cars to regular people.

Changes on the client still usually roundtrip to the server to get the data (via a Rest call these days, then parse the JSON response, then render and apply the diffs to the DOM).

And I don't buy the argument that javascript-based client apps scale better than servers rendered partials where there's been over a decade worth of solutions for scaling out the server layer. Also, you'd be applying a lot of the same techniques for scaling a pure API as something spitting out partial web views.

> changes are reflected ~instantly vs a refresh and a round-trip to the server

You can achieve that with a little sprinkle from jQuery.

For UI/UX rich experiences, taking advantage of OS animation frameworks and widgets, I would anyway advise native applications.

> terrible "wilderness years" of server templates


That's fine, it's:

> terrible "wilderness years" of server templates and jQuery

where things go off the rails.

I reckon

> terrible "wilderness years" of ... jQuery

is the part where things go off the rails (and literally off the Rails).

Didn't Rails originally ship with Prototype? I liked Prototype.

I've been exploring Docker lately, but I've just launched a small project using Ansible and systemd, much much simpler to setup and deploy updates.

Ansible + systemd + containers is a match made in heaven.


Funny, i consider systemd very much a part of the containerization cool-aid...

Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | Legal | Apply to YC | Contact