this post was submitted on 21 Mar 2025
640 points (99.5% liked)

Programmer Humor

21772 readers
1752 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
 

Original post: hachyderm.io (Mastodon)

(page 2) 32 comments
sorted by: hot top controversial new old
[–] pHr34kY@lemmy.world 5 points 1 day ago (1 children)

The backend and frontend on the product I work on are like this.

As long as you remember that booleans are not strings and should always be parsed if they are, this won't be a problem.

I am yet to see a boolean.parse() implementation in the wild that is case sensitive.

[–] computergeek125@lemmy.world 1 points 2 hours ago

The could be using .js and .py files directly as config files and letting the language interpreter so the heavy lifting. Just like ye olde config.php.

And yes this absolutely will allow code injection by a config admin.

[–] roofuskit@lemmy.world 3 points 2 days ago (3 children)

But if it needs to be both why the case difference?

[–] FiskFisk33@startrek.website 4 points 2 days ago

different languages I presume

load more comments (2 replies)
[–] ConstantPain@lemmy.world 2 points 1 day ago

Why have the options be "frontend", "backend", or "none" when you can be this creative?

if publicRegistration.equalsIgnoreCase("true")

load more comments
view more: ‹ prev next ›