Readit News logoReadit News
gindely commented on Ignoring Docker updates is a paid feature now?   twitter.com/moyix/status/... · Posted by u/andreareina
kemitche · 4 years ago
To me, starting with Docker makes a lot of sense. I can isolate my development machine from the code execution environment. It makes it a lot easier for everyone on my team to run their preferred OS (Mac, Ubuntu, Arch, even Windows) and still be easy to run the built code.

Containerization isn't really that hard. At its most basic level, a Dockerfile is just a list of commands needed to build/run your program. I'd personally much rather have that as a sort of self-documenting build process than dig into "how does Visual Studio build things? Why is my local dev build process (F5 in Visual Studio) so different from our release build process (msbuild commands or whatever)?" Or worse, "why does our release process involve Joe hitting F5 on his machine?"

Deploying a container isn't that hard - I agree that k8s and such is likely overkill for most startups. A basic "docker run" bash script or something in that vein is not terribly difficult to write, maintain, and hook up to CI/CD. Even so, with growing cloud support from GCP/AWS/Azure etc, the leap from "We built an isolated container for local dev" to "Now we run that container in prod via k8s" is shrinking.

As you pointed out, there are other ways to do this, but at least right now Docker is fairly widely used and it's not limited to certain toolchains/languages. Using something just because it's popular seems like a bad idea on the surface, but if two tools are both reasonably sufficient, I'm definitely leaning towards the more widely used one - it means it's more likely new hire will be familiar with it on some level, there's more blog posts with best practices, etc.

> Imagine being able to unzip a build of your software to a blank windows/linux server and expect that it work flawlessly 100% of the time, regardless of any prior/lack of configuration or other supporting dependencies on that machine

I mean, that's basically _why_ Docker exists.

gindely · 4 years ago
> > Imagine being able to unzip a build of your software to a blank windows/linux server and expect that it work flawlessly 100% of the time, regardless of any prior/lack of configuration or other supporting dependencies on that machine

> I mean, that's basically _why_ Docker exists.

It is, but Docker isn't it. At the least, Docker won't run side-by-side with Virtual Box on Windows, so "regardless of prior configuration" is not met. In general, Docker adds an extra dependency on top of a blank system: Now you need to get Docker set up and running first, and then you can deploy your app. The alternative in question is about controlling the build to such an extent that you can reliably deploy the artefacts onto any system without having some runtime environment prepared.

gindely commented on Ignoring Docker updates is a paid feature now?   twitter.com/moyix/status/... · Posted by u/andreareina
sn_master · 4 years ago
> I still don't understand why every software shop on earth feels the need to start with docker/k8s/et. al.

YES YES YES

I am certain at this point they're doing it only to show off and to have something complicated enough to talk about the train new hires on.

One big argument for Docker is no dependencies, but Go and C# already can create fat native binaries that have no dependency on anything else (no .net framework or even VM, all native, same thing in Go). I believe Rust too offers the same thing. There is no excuse with all those different languages all supporting that.

There absolutely are complicated apps that justify Docker and k8s, but the vast majority in the real world do not fall into that, and most certainly that includes small ad-hoc internal services.

gindely · 4 years ago
> One big argument for Docker is no dependencies, but Go and C# already can create fat native binaries that have no dependency on anything else (no .net framework or even VM, all native, same thing in Go). I believe Rust too offers the same thing. There is no excuse with all those different languages all supporting that.

Using Nix, you can build a self-contained deployment for just about any language/rutime you can imagine, and the target machine doesn't need to run Nix.

gindely commented on Turn recipe websites into plain text   plainoldrecipe.com/... · Posted by u/vincent_s
DavidVoid · 5 years ago
Huh, here in Sweden we use volumetric measurement for most things (milk, flour, sugar, etc.), usually in milli- centi- or deciliter.

The exception is usually butter, which is measured in grams (and conveniently indicated on the packaging).

gindely · 5 years ago
Well, the conveniently indicated grams on the packet are not units of weight - they're units of volume. So you've got two kinds of units of volume in your recipes: milli/centi/decilitres, and grams of butter. But it's fairer than the grams of flour I've been ranting about elsewhere here because at least the manufacturer can have some responsibility for fine tuning it to their product!
gindely commented on Turn recipe websites into plain text   plainoldrecipe.com/... · Posted by u/vincent_s
adwww · 5 years ago
ML is fine for liquids, but you wouldn't (or shouldn't) measure flour in ml.
gindely · 5 years ago
Well, tell that to Europeans, who don't use millilitres to measure their flour or sugar by volume - they use bizarre units of volume called "grams of flour" or "grams of sugar". Check their cup measures! It's crazy.

Apparently it works perfectly fine for household cooking to use units of volume for flour and sugar. Close enough is good enough!

gindely commented on Turn recipe websites into plain text   plainoldrecipe.com/... · Posted by u/vincent_s
tobr · 5 years ago
Measuring volume is not great for flour for the same reason, it contains very different amounts of air depending on whether it’s packed or sifted.
gindely · 5 years ago
Which is why most recipes say something like "1 cup of flour, sifted" - you have to measure it, then sift it.
gindely commented on Turn recipe websites into plain text   plainoldrecipe.com/... · Posted by u/vincent_s
kuschku · 5 years ago
Just use a german measuring cup which has like 30 different scales for everything you might want to measure in volume and weight, e.g. https://www.amazon.de/dp/B01BAU2N62/ ?

That’s what we commonly use which is easier to use than just weighing everything, but still just as accurate.

gindely · 5 years ago
But you have to admit, a gram of flour and a gram of sugar are very strange units of volume. Better to just use millilitres or cups or something.
gindely commented on Turn recipe websites into plain text   plainoldrecipe.com/... · Posted by u/vincent_s
encom · 5 years ago
I don't know how americans manage to feed themselves, while measuring things with cups! It's such a bizarre and archaic unit. Like the english stone.

https://en.wikipedia.org/wiki/Stone_(unit)

gindely · 5 years ago
Australians, Indonesians, Germans all measure recipes with two kinds of spoons (!). Australians also use cups (that are 10-12 mL bigger than American ones); other countries may too.

I wonder if the ideal country where no-one uses units of volume other than litres and millilitres actually exists.

The really bizarre units of volume are certainly the ones I've seen in Europe - where you get measures marked in "grams of flour" and "grams of sugar". I suppose no-one has ever asked for a hundred grams of sugar of flour, but I'm tempted to every time I see one of them.

gindely commented on Turn recipe websites into plain text   plainoldrecipe.com/... · Posted by u/vincent_s
aspenmayer · 5 years ago
Very nice insight. I might even go a step further and archive the entire page[1]; hard drive space is cheap, and how many recipes is one person going to save, honestly? 1-2 LOCs worth? Then you can just parse the content you want, with the ability to drop down into the original page as you first saw it.

As a person with better visual memory for certain kinds of data, having the original page content may have as much meaning as the recipe, for entirely different reasons. Food can be very personal, and recipe books doubly so. A recipe archive can be as personal as we like, or all of that can abstracted away when we don’t need it.

[1] https://www.gwern.net/Archiving-URLs

gindely · 5 years ago
LOC? Line of Code? Surely 1-2 LOCs is significantly less than any recipe.
gindely commented on Virgin Australia administrators agree to sell airline to Bain Capital   theguardian.com/business/... · Posted by u/merricksb
ferros · 5 years ago
Virgin’s unrealised value is in the government handouts and concession that are still to come.

Virgin is the second and only competitor to Australia’s main carrier QANTAS, and sole carrier for some routes.

The government will not let them fade away. Big money and concessions will be forthcoming.

gindely · 5 years ago
Why will Virgin be treated differently than Ansett? (I was pretty young when Ansett went bankrupt, but Virgin's reputation seems to have been "trying to be Ansett and make a duopoly again".)
gindely commented on We use too many damn modals (2018)   modalzmodalzmodalz.com/... · Posted by u/juancampa
saagarjha · 5 years ago
In case that wasn’t a joke: https://support.apple.com/en-us/HT204352
gindely · 5 years ago
Oh, another of Apple's hidden features. Once upon a time, one button mice were a feature so that features weren't hidden and even beginner users could quickly become power users.

u/gindely

KarmaCake day114February 6, 2020View Original