this post was submitted on 21 Sep 2026
1 points (100.0% liked)

Hacker News

5488 readers
445 users here now

Posts from the RSS Feed of HackerNews.

The feed sometimes contains ads and posts that have been removed by the mod team at HN.

Source of the RSS Bot

founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] kaageej@lemmy.world 3 points 1 week ago (2 children)
[–] artwork@lemmy.world 2 points 1 week ago (1 children)

I see! Thank you very much!

Holy smokes... I had no idea... Though, I still abhor the "AI" involved, the NPM package itself is a dear nonsense... There's dear String.padStart in the most of JavaScript engines!

[–] kaageej@lemmy.world 3 points 1 week ago (1 children)

That feature wouldn't come to JavaScript for another couple of years if I recall correctly. There was a "legit" use case for leftpad... Crazy as it may be.

[–] artwork@lemmy.world 1 points 1 week ago

At this point, it must be related to the following case when some crucial functionality was missing, too:
- https://youmightnotneedjquery.com/

[–] whats_a_lemmy@midwest.social 1 points 1 week ago

This is definitely a bit:

Jev gets one Choice with criteria named space_0, space_1, space_2, and so on, written directly up to space_10. For the example above, it should choose space_5. JavaScript reads the number, creates five spaces, and puts the value after them.

This means the package can add between 0 and 10 spaces. If more than 10 spaces are needed, Jev has no correct option. Which feels appropriate for this project.

There is one TypeSafe API request per call and retries are disabled. The request can fail, Jev can choose the wrong option, and it costs more than padStart(). Please don't use this in production. Or anything important.