1084
Always try sudo (programming.dev)
you are viewing a single comment's thread
view the rest of the comments
[-] Fades@lemmy.world 3 points 10 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
1084 points (93.9% liked)

Programmer Humor

23844 readers
2658 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