481
parseInt(5) (lemmy.ml)
you are viewing a single comment's thread
view the rest of the comments
[-] miellaby@jlai.lu 21 points 1 day ago

I've seen code in my workplace using parseInt to round JS Number. Made me cringe coming from system programing but I didn't see the danger.

It's sad the only way to prevent such a bad code in production is to use transpilers.

this post was submitted on 05 May 2025
481 points (98.8% liked)

Programmer Humor

23053 readers
2053 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