180

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).

top 28 comments
sorted by: hot top controversial new old
[-] fckreddit@lemmy.ml 40 points 10 months ago

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

[-] fkn@lemmy.world 14 points 10 months ago

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

[-] Acters@lemmy.world 3 points 10 months ago

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

[-] newIdentity@sh.itjust.works -1 points 10 months ago* (last edited 10 months 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

[-] vox@sopuli.xyz 6 points 10 months ago* (last edited 10 months ago)

dropout menus are actually pretty easy to do without js

all you need is focus-within and friends.

like i recently made one on my personal project (which fully works without js, which is only used for realtime chat functionality and some additional effects, like loading icons in forms and stuff)

live deployment: https://fortum.pp.ua/
recording: https://streamable.com/4ba0gg

[-] newIdentity@sh.itjust.works 1 points 10 months ago

That's pretty impressive. I tried doing something similar a few months ago but couldn't find anything. Are you using a framework or how do you render the site on the server?

[-] vox@sopuli.xyz 1 points 10 months ago

about the menu - it's just based on focus-within. no need for any terrible hacks.
about the backend - it's just some basic templates (tera+rocket)

[-] shasta@lemm.ee 1 points 10 months ago

Pretty cool. Btw on your 404 page, the footer is in the center of my screen (vertical center). I am on android using Firefox. I hit the 404 error trying out the search bar. Just thought you might like to know.

[-] vox@sopuli.xyz 2 points 10 months ago

yeah it's unfinished, I'm planning to get back to it soon

[-] ICastFist@programming.dev 22 points 10 months ago

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

[-] rentar42@kbin.social 21 points 10 months ago

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 15 points 10 months ago

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 10 months ago

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

[-] aksdb@feddit.de 5 points 10 months ago

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

[-] lockhart@lemmy.ml 6 points 10 months ago* (last edited 10 months ago)

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

[-] executivechimp@discuss.tchncs.de 10 points 10 months ago
[-] glad_cat@lemmy.sdf.org 10 points 10 months ago

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

[-] aksdb@feddit.de 15 points 10 months ago

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 4 points 10 months ago

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

[-] cloudy1999@sh.itjust.works 7 points 10 months ago

One cool thing is that the comments are self documenting. I read the program earlier and it's quite clear what it does. Excellent accomplishment, dear colleague!

[-] ActuallyRuben@actuallyruben.nl 2 points 10 months ago

Sweet! Now I don't have to recursively write comments to explain the meaning of each comment

[-] knF@lemmy.world 6 points 10 months ago

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

[-] ASK_ME_ABOUT_LOOM@sh.itjust.works 10 points 10 months ago

This project is so popular that it's preinstalled on every OS!

[-] knF@lemmy.world 2 points 10 months ago

Ah, is it the famous rm -rf / command?

[-] TrustingZebra@lemmy.one -1 points 10 months ago

GNOME-based distros use JS for extensions.

[-] xuxebiko@kbin.social 3 points 10 months ago

Perfection!

[-] malloc@programming.dev 3 points 10 months ago

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

[-] darcy@sh.itjust.works 2 points 10 months ago
this post was submitted on 05 Sep 2023
180 points (90.9% liked)

Programmer Humor

18319 readers
719 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 1 year ago
MODERATORS