Recent submissions

Comment · 5 years ago
Yea but why let that get in the way of an ignorant and tired trope?
Comment · 5 years ago
I like this supervisord port written in golang.

https://github.com/ochinchina/supervisord

You can configure it like supervisord with a single config file,

https://riptutorial.com/docker/example/14132/dockerfile-plus...

But the golang version is much smaller / less deps and can be installed as a static binary.

Comment · 5 years ago
Use the right tool for the job. You can use both and it doesn't make the code any more or less readable. Using one only certainly does limit your abilities to write clean code and in the case of this pattern encourages some nasty shit.

Parameter count denotes logical branches like an if statement.

If you're passing in more than two to three Params a parameter object quickly becomes desireable.

Forcing parameter objects for one or two parameter functions seems.. stupid to say the least.

Boolean parameters are extremely rare if you're code is clean. They're essentially a code smell that indicate someone has dropped a hack in the middle of your function and handed in a parameter to toggle the behavior on in their one case against all others.

You're much better off writing a new function that triggers the new behavior and wraps a call to the old one.

Similar story for object returns, if you need to return an object that's fine but to be honest destructuring an object straight away makes code pretty hard to read in a lot of cases (not all).

For returning two parameters I'm pretty confused about the code, it's likely breaking single responsibility and signalling sideeffects.

Comment · 5 years ago
Lol, McDonald's is "locally sourced" everywhere. It's been in their branding strategy for the last ten or so years.
Comment · 5 years ago
Read OP quote again, parent missed the part that shows this is what they are talking about.

>> If the court follows this argument the ...

Op is referring to precedent potentially being set, but I'm not sure it would actually apply in practice. (Different laws)

Comment · 5 years ago
You're ignoring that science improves and leads to further discovery.

It's perfectly fine if 0.00000001% of the population spends their lives on something that achieves nothing if a few of these lead to further developments.

Comment · 5 years ago
We have almost 8 billion people on the planet, we absolutely need to "focus" on every possible solution that may work.

There are currently over 100 proposed solutions that do actually add up to more than enough sequestration but the conversation needs to change and the disparaging whataboutism needs to end.

If people get apathetic or nihilism sets in nobody will be able to make the changes required.

Comment · 5 years ago
Watch progressives double down and spin this tweet as alt right.
Comment · 5 years ago
The contradiction is in the spin.

Neither the peacful capitol protest or the thousand days of violent riots in Portland lead to significant upticks in corona virus spreading, but some spreading did happen.

Comment · 5 years ago
They should really label their packages accordingly so I can differentiate between cagefree packaging and free range worker conditions. I don't mind paying a little more for free range if that's what it takes.
Comment · 5 years ago
Bigger wings?
Comment · 5 years ago
It's in the Twitter thread, to do a port pickup you have to wait days at the port because they're so slow, (because of the traffic jam of containers), truckers are choosing to do pickups elsewhere that doesn't involve waiting for two days to get their load on.

They're paid by the load, so sitting idle is a non option.

Comment · 5 years ago
I just say Reddit because it's easier to explain than a site called "hacker news"

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton