I’d be curious to see how reliable it is in practice, it sounds like a cheap and (hopefully) easy benchmark
Can't believe it's already been 10 years...
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.
The tests mock Jev.
10/10 no notes> MIT Licensed
Would have been funnier if it used the GLWTPL: https://spdx.org/licenses/GLWTPL.html
This needs an SBOM and a SonarQube Qualitygate pass to be considered production grade code
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');
});> 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
AI skeptics in shambles. For GOFAI, see: https://swish.swi-prolog.org/p/Proven%20Leftpad.swinb.
Would be fun to have a test runner that uses Jev for assertions.
Btw, this model also has very tiny inherent bias: https://jev-bias-analysis.stupidlabs.lol/
On the npm doomsday thing, the scarier version is someone vendoring it and the padding silently drifting between runs.
I already have Jev fatigue.
github.com/f is more impressive to me than jev-leftpad lol
But is it Web Scale.
what if 11 spaces are needed
im so confused about what i should bring up at the 10am today
Terrorist
> 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.
why
Jev mania at its peak? HN is full of Jev like today.
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.
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...
Related:
https://en.wikipedia.org/wiki/Jev_(AI_model)
https://typesafe.ai/[dead]
[dead]
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.