Live data from Hacker News

Left-pad as a service

left-pad.io

211–220 of 269 posts

Re: Left-pad as a service

#211
post #207

I'm ready to get downvoted to hell with this comment but here we go..: I feel like only non-javascript devs are bashing against small modules and NPM. All great javascript devs I know LOVE that mentality. Let me offer some reasons why I (as a current Javascript dev having professionally coded in C/C++/Java/Python/PHP/Scheme) think this is great: - Unlike most other languages, javascript doesn't come with a battery st…

>2 months later I clone and start the project and everything breaks. Oh, X and Y libraries decided to fuck everything

Are you not using semver? A common mistake I've seen is to depend on the "*" or "latest" version of a package, which obviously will break when the package releases a major update.

Also, applications should use shrinkwraps to pin their dependency versions to versions they've been tested with.

Re: Left-pad as a service

#212

I don't understand why this community has to have a weekly cycle of bashing different programming communities. Every week there's a new drama thread bashing Java devs, Go devs, Javascript devs etc. The thing that I come to this community for every week is to read about new developments in our industry, if you don't come here for that then what are you coming here for? And wasn't it just a few months ago people were p…

> I come to this community for every week is to read about new developments in our industry That's what slashdot is/was for. Here you come to find highly opinionated and more-often-than-not wrong commenters.

> Here you come to find highly opinionated and more-often-than-not wrong commenters.

You can find those on slashdot too!

Re: Left-pad as a service

#213

I don't understand why this community has to have a weekly cycle of bashing different programming communities. Every week there's a new drama thread bashing Java devs, Go devs, Javascript devs etc. The thing that I come to this community for every week is to read about new developments in our industry, if you don't come here for that then what are you coming here for? And wasn't it just a few months ago people were p…

> I don't understand why this community has to have a weekly cycle of bashing different programming communities. It's funny if done in good taste. You should be able to take a joke with good humour, even if it's at your own expense, and this is a pretty good joke.

I don't think the general commentary is in good taste. To me the difference between a good faith joke and a bad faith joke is whether you actually like the people you are making fun of. I don't think that's the case here. My sense is that the people laughing actually think NPM and JavaScript suck. The tone I am getting is "haha, you are bad and I am a better programmer than your whole community".

Is that not how you perceive it? Am I just imagining contempt where there is none?

It's like, I can joke about you being an alcoholic if I think you're actually just a fun heavy drinker. If I think you're actually a violent alcoholic, it's not funny for me to joke about that.

Re: Left-pad as a service

#214
post #126

Earlier quoted context omitted.

its called self-regulation. Each community has its own quirks and extremes as seen by everyone else. Without the bashing, they would become even more extreme. At least after this a lot of devs will think twice about making "micro-modules".

I'm pretty sure that attitude is called "paternalism". Self-regulation works better when it's self-directed, as opposed to other-directed (as in, someone else doing the regulation). `I shouldn't do ${foo} because people will make fun of me` is a horrible attitude to foist on anyone else, and anyone who tries to propagate that attitude isn't helping the community at all.

> `I shouldn't do ${foo} because people will make fun of me...`

`... but why are they laughing from ${foo} in the first place? They're smart people, so there might be a reason. Let me research it more first...`.

This is how self-regulation works.

Re: Left-pad as a service

#215
post #14

This is really exciting!!! I was a bit disappointed that the right-pad will be out only in 2017. I am looking forward to that release because there is a high demand for it now. What kind of load balancing is being used on the back-end? I called leftpad(str, ch, len) with the length I needed and noticed that is not very scalable because it is blocking. A better approach I would recommend to those using it is to call t…

Can we also get a containerized on-premise version of this service? We'd like the ability to spin up a couple of these behind a load balancer to let us achieve web-scale.

Re: Left-pad as a service

#217
post #206

Earlier quoted context omitted.

No, it's not an NTS fallacy. No True Scotsman is so often mis-attributed, that the mis-attribution needs to be its own fallacy.

Exactly. That's the No True No True Scotsman Fallacy Fallacy.

Compare also with Fallacy Fallacy - just because the argument is fallacious, doesn't mean the overall point is wrong.

Re: Left-pad as a service

#218
post #72

Earlier quoted context omitted.

"Zero" isn't a cost of anything -- there's no free lunch. NPM, like any package manager, pretty much blindly accepts user input. I, as a module maintainer, could happily change every single function in my modules to function whatever() { return "WHHEEEEEEE!!!"; } and check it in. Doing that will result in no fewer problems than just deleting the module entirely, and it's not NPM or any other similar package manager's…

You could, and that's why it's trivial package manager hygiene to pin versions and always test before upgrading versions.

Yeah, except nobody does it. It's really the case where stupid ideas should be make harder to implement. Otherwise you get the present web, where a lot of companies fetch all dependencies from GitHub every time their CI server wants to run a build.

About the only good thing that comes from this is that we get to laugh out loud every half a year when there's a random GitHub outage and those companies all scream bloody murder.

Re: Left-pad as a service

#219
post #14

This is really exciting!!! I was a bit disappointed that the right-pad will be out only in 2017. I am looking forward to that release because there is a high demand for it now. What kind of load balancing is being used on the back-end? I called leftpad(str, ch, len) with the length I needed and noticed that is not very scalable because it is blocking. A better approach I would recommend to those using it is to call t…

You can get right-pad today by using starboard-pad, which is heavily optimized for marine applications and comes with an open seas license.
Post reply on HN