News for hackers. Stuff that matters.
Re:The number input is the worst input by vsareto on Thursday September 15, 2022 @01:56PM (#32855920)
Someone should write a bot to post a reminder to "start with strings unless you're doing math" to reddit/twitter/youtube every week and the world would probably be way better for it. We could even have compiler warnings for type-safe languages when someone declares an int with a name containing 'address/zip/postal/credit/card'
Re:The number input is the worst input by r-w on Thursday September 15, 2022 @02:49PM (#32856719)
> We could even have compiler warnings for type-safe languages when someone declares an int with a name containing 'address/zip/postal/credit/card'

That sounds like it would be a better job for a linter than for a compiler.

Re:The number input is the worst input by gibolt on Thursday September 15, 2022 @04:07PM (#32857796)
Why not both! Not everyone uses a linter (unfortunately). Compiler would be a nice second catch (for any tooling that has a compiler)
Re:The number input is the worst input by fsckboy on Thursday September 15, 2022 @03:18PM (#32857177)
"start with strings unless you're doing math"

lambda calculus tells us, stick with strings even when you're doing math

Re:The number input is the worst input by LoganDark on Saturday September 17, 2022 @03:45AM (#32875564)
With lambda calculus you don't need strings