1080
Always try sudo (programming.dev)
you are viewing a single comment's thread
view the rest of the comments
[-] Fades@lemmy.world 3 points 4 months ago

Yes absolutely, the parameter even if not in a strongly typed language should be a specific number and the unit should be implied. Overload the method to support different units if necessary or provide a unit as an additional parameter instead of forcing the method to parse the string for any unit type hints that may or may not be there

this post was submitted on 10 Jul 2024
1080 points (93.8% liked)

Programmer Humor

19503 readers
323 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