Rendered at 11:02:44 GMT+0000 (Coordinated Universal Time) with Cloudflare Workers.
ollipal 1 minutes ago [-]
Instead of using Choice with criteria "space_0", "space_1"..., it could be even more elegant to use criteria names like "", " "... which could be directly inserted into response.
sethaurus 41 minutes ago [-]
I have to be honest. While this is obviously a smart and useful idea, it misses one of the core features of Jev: its confidence scores. Partial confidence could easily be mapped to fractional spaces, using unicode characters like U+2009: THIN SPACE. As it stands, this package is not harnessing the full power of Jev.
fwlr 28 minutes ago [-]
The tests mock Jev.
10/10 no notes
mawadev 28 minutes ago [-]
This needs an SBOM and a SonarQube Qualitygate pass to be considered production grade code
> 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.
I'll raise a PR which uses Jev to check if the target length is beyond this range
Tepix 37 minutes ago [-]
I thought you were doing a PR to add an 11th space.
speedping 26 minutes ago [-]
How did this guy get a single-letter GitHub username?
azatom 19 minutes ago [-]
i maintained a system where for .. reasons (like other systems) from early days have users with id: null "null" "" and some i do not even know how to write here
so probably early bird
thrance 16 minutes ago [-]
His oldest repository was updated in 2011. Looks like he's been there a long time.
frangonf 54 minutes ago [-]
Make sure to vendor this package if you want reliable operation.
it('trusts Jev when it chooses the wrong amount', async () => {
answer('space_2');
await expect(leftPad('jev', 8)).resolves.toBe(' jev');
});
freakynit 29 minutes ago [-]
Would be fun to have a test runner that uses Jev for assertions.
On the npm doomsday thing, the scarier version is someone vendoring it and the padding silently drifting between runs.
larnon 18 minutes ago [-]
I already have Jev fatigue.
christkv 10 minutes ago [-]
Terrorist
meowface 41 minutes ago [-]
But is it Web Scale.
rw_panic0_0 32 minutes ago [-]
what if 11 spaces are needed
w-ll 48 minutes ago [-]
im so confused about what i should bring up at the 10am today
fumblebee 1 hours ago [-]
Can someone ELI5?
intothemild 50 minutes ago [-]
Jev is a new type of model that just makes decisions based on given options. It's small and really really fast.
Leftpad is a npm package that chooses if it should or shouldn't pad the left side of a string. It was famous for bringing down everyone's npm installs a few years ago.
This combination is a double joke. Put something stupid in something stupid.
sklivvz1971 55 minutes ago [-]
Uses JEV to do something that's one line of code. Also, "leftpad" was a useless package from years ago that many important packages used instead of writing the code themselves. Its outage at some point broke a lot of packages.
LoganDark 7 minutes ago [-]
It was left-pad, with a hyphen
grokkedit 47 minutes ago [-]
why useless? it did one thing that js didn't natively do
jagged-chisel 40 minutes ago [-]
It did one thing that you could write in one line of code. But it wasted space as a packaged dependency instead.
tesnorindian 20 minutes ago [-]
Jev mania at its peak? HN is full of Jev like today.
yitchelle 37 minutes ago [-]
wait.. is it just me or are we going overboard? I am waiting for jev assistance to exit vim, no wait.. a decision if we should exit vim or not.
r34ct0r14 1 hours ago [-]
why
applfanboysbgon 1 hours ago [-]
> Please don't use this in production. Or anything important.
5 to 10 years from now, after this has worked itself deep into the npm dependency chain, we'll be lamenting how Jev-Leftpad is causing outages in critical services.
cindyllm 59 minutes ago [-]
[dead]
serious_angel 1 hours ago [-]
Now that's a rare GitHub Username!
Though, again, a yet another project for a yet another "AI" to make someone else more dependent on it...
I'll raise a PR which uses Jev to check if the target length is beyond this range
so probably early bird
Btw, this model also has very tiny inherent bias: https://jev-bias-analysis.stupidlabs.lol/
Leftpad is a npm package that chooses if it should or shouldn't pad the left side of a string. It was famous for bringing down everyone's npm installs a few years ago.
This combination is a double joke. Put something stupid in something stupid.
5 to 10 years from now, after this has worked itself deep into the npm dependency chain, we'll be lamenting how Jev-Leftpad is causing outages in critical services.
Though, again, a yet another project for a yet another "AI" to make someone else more dependent on it...
Related: