Earlier quoted context omitted.
Why does it make him sound like a wanker? That’s a very uncharitable reading for no particular reason.
[flagged]
Left-Pad (2024)
151–160 of 224 posts
Re: Left-Pad (2024)
#152Earlier quoted context omitted.
They are citing something which changed their life significantly, and leaving pointers to the same thing if you're interested (or need further explanation). If getting wisdom from others is not your thing, I can respect that, but low-key insulting them for leaving you pointers for a more enlightened place is rude. You can instead say "I don't understand why Al-Ghazali relates to this", and that would be completely OK…
The author made an implicit assumption, and you're making the same one, that they're filled with wisdom received straight from al-Ghazali. Firstly, only wankers act like they're wise and their audience isn't. Secondly, they said "haven't read al-Ghazali yet ", implying that it's only a matter of time before everyone reads him. Lastly, it's fine to quote someone but you need to explain how it's relevant to the convers…
Re: Left-Pad (2024)
#153I have to admit that I don't understand half of this blog post, feels like I'm missing some context, but I do like that the "left pad guy" does a post mortem. That said, this seems like a weird argument to me: > but I still don't understand why NPM didn't take the time to find out if any of my modules were widely used and consider ways to handle the unpublishing without breaking anything Sure, NPM's unpublish mechani…
> NPM the company isn't curating NPM the registry They do in fact curate the registry, mainly for reporting vulnerabilities to consumers and to remove malicious packages.
Re: Left-Pad (2024)
#154Earlier quoted context omitted.
There used to be the general wisdom of, "Don't re-invent the wheel. Let the hive-mind craft utility functions and use those because they'll be battle-hardened, well tested, and you can focus on your core business". I think the left-pad incident helped shatter that myth. He we had huge packages depending on a package which padded a string in an inefficient manner. It turns out that the many eyeballs of the bazaar had…
> the left-pad incident helped shatter that myth In what way? Have the dependency trees gotten significantly smaller since then?
I installed `pass` (the lightweight password manager) on a fresh headless system the other day and it brought in like 60 packages including a bunch of X stuff.
Re: Left-Pad (2024)
#155Why Java can have reliable utility libraries such as Apache Commons and Google Guava, but JS somehow cannot?
Re: Left-Pad (2024)
#156> I have to admit that I don't understand half of this blog post It's because you haven't read al-Ghazali yet. (definitely the most pompous and self-important part of this post)
Re: Left-Pad (2024)
#157Earlier quoted context omitted.
You're missing the point. Nobody with a serious background in software development should ever need to pull in a package to pad a string or check if a number is even or odd. If someone is smart enough to use a package manager, they should be more than capable to write a function to pad a string (assuming the standard library doesn't include one already)!
How does serious background help the argument for wasting your time writing code that's already been written. By the way, why should serious people use padding from the standard library?
Re: Left-Pad (2024)
#158Earlier quoted context omitted.
The author made an implicit assumption, and you're making the same one, that they're filled with wisdom received straight from al-Ghazali. Firstly, only wankers act like they're wise and their audience isn't. Secondly, they said "haven't read al-Ghazali yet ", implying that it's only a matter of time before everyone reads him. Lastly, it's fine to quote someone but you need to explain how it's relevant to the convers…
[flagged]
Re: Left-Pad (2024)
#159Earlier quoted context omitted.
[flagged]
Let's consider an example about a tangible phenomena: Gaussian Integration, Quantum Entanglement, Crystalline Structure Formation in Alloyed Metals with Heat Treatment, Combustion Dynamics in a Gasoline Engine, etc. Let's put the same sentence: "I'd love to explain to you, but if you haven't read $SOURCE_MATERIAL, you wouldn't understand it anyway". Does it sound pompous and insufferable?
Re: Left-Pad (2024)
#160Earlier quoted context omitted.
How does serious background help the argument for wasting your time writing code that's already been written. By the way, why should serious people use padding from the standard library?
I would argue that a leftpad/is-odd package is the equivalent of writing a for loop. The time it cost you to search the internet, download the package, and rerun your build script cost more than the time to write the function from scratch and the behavior is indentical. Duplicate code across the ecosystem is fine. Not every function must be unique for an entire programming language.
And the behavior could also be worse, there is no guarantee of perfection.
The last argument is too generic to offer any guidance. Why is it better for this function be duplicated?? Should it not be part of std to avoid uniqueness?