Hacker Newsnew | past | comments | ask | show | jobs | submit | cwilkes's commentslogin

Maybe should be called “iq-string” for Interview Question string.


This implies that the input process did a check when it imported the data from somewhere else.

GIEMGO garbage in even more garbage out


Scammers attract scammers?


I recommend the book “Unwinding Anxiety” by Judson Brewer for further reading. Another book of his “Hunger Habits” is really good.


Most of these entries are Naticks where the two crosses are proper nouns. That’s really unpleasant as it usually means there’s no way to figure out the cross unless you know the two terms.

https://en.wikipedia.org/wiki/Rex_Parker

In 2008, he invented on his blog the crossword term "natick" (after Natick, Massachusetts) for an "unguessable" square crossed in both directions by proper nouns considered obscure.


I’ve heard of that for civil engineering firms but the amount of damages is capped at the yearly contract amount.

Which in this case is probably a lot less than what these companies are paying in clean up costs.


I cannot upvote this enough. They continuously squeeze suppliers either on a bill or to make more faster. Accidents are bound to happen.


“Back in July 2025, six years before Apple introduced Siri, Susan Bennett made some recordings.”

The author is from the future?


God here. There's been a slight hiccup in the linearity of time. Our teams are working on it. Everything should be back to normal in a few hours ago.


You inherit some code. Is that string a username or a phone number? Who knows. Someone accidentally swapped two parameter values. Now the phone number is a username and you’ve got a headache of trying to figure out what’s wrong.

By having stronger types this won’t come up as a problem. You don’t have to rely on having the best programmers in the world that never make mistakes (tm) to be on your team and instead rely on the computer making guard rails for you so you can’t screw up minor things like that.


I agree on the one hand but empirically I don’t think I have seen a bug where the problem was the string for X ended up being used as Y. Probably because the variable/field names do enough heavy lifting. But if your language makes it easy to wrap I say why not. It might aid readability and maybe avoid a bug.

I would probably type to the level of Url, Email, Name but not PersonProfileTwitterLink.


I’ve refactored a large js code base into ts. Found one such bug for every ~2kloc. The obvious ones are found quickly in untyped code, the problem is in rare cases where you e.g. check truthiness on something that ends up always true.


Of those bugs I wondered how much a type would help. For example is it a misunderstanding of business requirements (nosurcharge bool = iscash bool) or a “typo” / copy paste error. If the former types don’t help. The latter they might.


It definitely helps in larger applications where things are named similarly, especially if you're dealing with a massive DB schema. If you have some method to update some data where all the PRs are longs and it has the signature "update(long,long)", passing the wrong long value would be disastrous. Even if this type of error is 1:10k LOC, using wrapper classes pretty much eliminates this bug.

In our codebase, we use wrapper classes and the only time we had a defect with this is when one developer got lazy and used 3 primitive Strings in a class instead of wrapper classes. Another developer needed to update the code and populated the wrong wrapper class as they were not as familiar with that part of the codebase. Had the original developer simply used wrapper classes, the person maintaining the code wouldn't have had that confusion.


MSFT today: $373. Yeah I would say 10x growth vs 4x isn’t comparable.


The point of the comparison was to compare the stock growth during the tenures of the two CEOs in question. Steve Ballmer ceased to be CEO in 2014.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: