Top
Best
New

Posted by fka 1 day ago

Jev-Leftpad(github.com)
229 points | 87 commentspage 2
frangonf 1 day 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');
    });
fnands 1 day ago||
> MIT Licensed

Would have been funnier if it used the GLWTPL: https://spdx.org/licenses/GLWTPL.html

speedping 1 day ago||
How did this guy get a single-letter GitHub username?
azatom 1 day 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

anon48293 1 day ago|||
GitHub clearly didn’t use his left pad
thrance 1 day ago||
His oldest repository was updated in 2011. Looks like he's been there a long time.
unshavedyak 1 day ago||
It's funny, i actually worked with this guy (same small startup, not closely), and recognized him from that unique username on this post. It's been so long i wouldn't have had any idea if not for the oddness of the single letter username.
shawabawa3 1 day ago||
poor implementation

jev should only have the choice of space_0 or space_1, then recurse on n-1

this extends the implementation to infinite padding and is cleaner code

weego 1 day ago|
Maybe for Enterprise scale, for ramen scale hackers if you need 15 spaces you just add 5 to start with then use space_10. Clean and, importantly, dry.
meowface 1 day ago||
But is it Web Scale.
dofm 1 day ago|
It's surely on the Pareto Frontier of something
random_cat_8745 1 day ago||
Next: jev-is-even
larnon 1 day ago||
I already have Jev fatigue.
freakynit 1 day ago||
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/

speedping 1 day ago|
Flaky tests by design is a diabolical idea
freakynit 1 day ago||
Done: https://github.com/freakynit/jev-test-runner
tantalor 1 day ago|
I'm very curious about the performance. Where's the quantitative analysis? Got any graphs or charts? How's the recall/precision? Show me the data!
davidkunz 1 day ago|
I'm afraid the performance won't be great. Definitely needs a caching layer.
More comments...