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

Programmer Humor

24785 readers
893 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
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 47 points 2 months ago (9 children)

I know this is for fun, but as general advice to the homies, if a language or system is doing something you didn't expect, make sure to look at the documentation

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/parseInt

This will save a lot of time and headaches

[–] [email protected] 17 points 2 months ago* (last edited 2 months ago) (1 children)

Holy fuck that is long. When the documentation for the integer parsing function is 10 pages long, there's something seriously wrong with the language

[–] [email protected] 6 points 2 months ago (1 children)

Is it? I've seen longer articles for C# and not as many complaints about it.

[–] [email protected] 5 points 2 months ago

Probably not an article about integer parsing, though. If the docs are that long, then because Microsoft does have a tendency to be overly verbose for things they think you need, just to have no docs for the stuff you actually need.

For reference here's the relevant rust docs.

load more comments (7 replies)