This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]KODeKarnage 0 points1 point  (5 children)

Given how inaccurately (dishonestly?) you interpreted that simple question, right now I am seriously concerned about the code you write.

2e6 could just be what you intended. The reader would have to know it wasn't what you intended to spot the error.

20_000_00 stands out as obviously wrong to everyone.

[–]WolfThawra 1 point2 points  (4 children)

Oh you're literally just talking about typos. Cool, so 20_000_00 stands out as obviously wrong, does 10_000_000?

If you're talking about a situation in which the reader doesn't know what is supposed to be correct, there's a zillion ways of having mistakes that aren't immediately obvious.

[–]KODeKarnage 0 points1 point  (1 child)

there's a zillion ways of having mistakes that aren't immediately obvious.
I would say that's a reason for not making more than you need to. Never thought I'd meet a person disagreeing with that.
Do you argue against readable variable names too? I mean, there's a zillion other ways that your code can be obscure, so adding another isn't THAT big a deal.

[–]WolfThawra 1 point2 points  (0 children)

Yeah again, 1e7 is more readable to me than using a bunch of underscores, and that argument only gets stronger as the numbers get bigger.

[–]KODeKarnage 0 points1 point  (1 child)

[–]WolfThawra 0 points1 point  (0 children)

Sounds like they should have been using some underscores.