this post was submitted on 05 Sep 2023
179 points (91.2% liked)

Programmer Humor

24993 readers
164 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 

Every line of code has been audited by all security researchers. The implementation is language agnostic and extremely slim (0 LOC). It runs all the JavaScript I want (none).

all 18 comments
sorted by: hot top controversial new old
[–] fckreddit@lemmy.ml 38 points 2 years ago (2 children)

No bugs, no security issues. It's the perfect runtime.

[–] fkn@lemmy.world 13 points 2 years ago (1 children)

And yet, somehow there is still a bug in the datetime implementation.

[–] Acters@lemmy.world 3 points 2 years ago

Then we can just catch the error and pretend it never happened

[–] newIdentity@sh.itjust.works -1 points 2 years ago* (last edited 2 years ago)

Ironically, such a site would more bugs then of it would use Javascript. And security issues are still an issue too.

Basically everything has to be handled through forms and a site reload and hidden components and lots of css :hover events. Have you ever tried making a dropout without Javascript? It isn't impossible, but really hard.

And such sites exist. Just that they're mostly Darknet sites like like Dread or Bohemia

[–] ICastFist@programming.dev 25 points 2 years ago

It's not at all compatible with my katamari ball of totally required libraries and dependencies - 0/10

[–] rentar42@kbin.social 20 points 2 years ago (2 children)

I really like it and it clearly passed the code review without any issues. But I find the diagnostic messages a bit lacking, it can be hard to debug.

[–] aksdb@feddit.de 16 points 2 years ago (1 children)

But I find the diagnostic messages a bit lacking

That's weird. Every line of business logic has an infinite amount of logging. Ticket closed; works for me.

[–] rentar42@kbin.social 7 points 2 years ago (1 children)

Oh, but at the same time every single line of business logic logs nothing of value at all!

[–] aksdb@feddit.de 5 points 2 years ago

Well, it's best practice to only log errors. So .....

[–] lockhart@lemmy.ml 6 points 2 years ago* (last edited 2 years ago)

No need to de-bug if there is no bugs *taps head*

[–] glad_cat@lemmy.sdf.org 12 points 2 years ago (1 children)

But you can’t compress or obfuscate it, that’s a downside.

[–] aksdb@feddit.de 19 points 2 years ago (1 children)

The runtime doesn't need to be obfuscated. Only the code you run with it. You can still compress and obfuscate that and it will run just as well as it did before. Actually you can completely scramble your code and it would still run exactly the same.

[–] jadero@programming.dev 6 points 2 years ago

Sweet! That means I can encrypt my code to keep prying eyes away.

[–] executivechimp@discuss.tchncs.de 10 points 2 years ago
[–] knF@lemmy.world 5 points 2 years ago (1 children)

Can you share the github link? I'm really eager to use it in one of my key projects where JS is a core component :D

[–] malloc@programming.dev 3 points 2 years ago

Honestly, many of my colleagues need to use this instead of the balls of mud they manage to create.

[–] xuxebiko@kbin.social 2 points 2 years ago

Perfection!