this post was submitted on 05 Sep 2023
197 points (91.6% liked)

Programmer Humor

19149 readers
1197 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
 

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

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 40 points 1 year ago (2 children)

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

[–] [email protected] 14 points 1 year ago (1 children)

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

[–] [email protected] 3 points 1 year ago

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

[–] [email protected] 0 points 1 year ago* (last edited 1 year ago) (1 children)

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

[–] [email protected] 6 points 1 year ago* (last edited 1 year ago) (2 children)

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

[–] [email protected] 1 points 1 year ago (1 children)

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.

[–] [email protected] 2 points 1 year ago

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

[–] [email protected] 1 points 1 year ago (1 children)

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?

[–] [email protected] 1 points 1 year 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)