Mark Bowytz

Besides contributing at @TheDailyWTF, I write DevDisasters for Visual Studio Magazine, and involved in various side projects including child rearing and marriage.

Mar 2011

No Letters Allowed!

by in CodeSOD on

"The data validation requirements for a telephone number are dead simple," writes Chris M., "Just the numbers and that's it. The user can enter their numbers with dashes, brackets, parens, whatever.  Only the numbers should be saved."

"You would think that filtering out the non-numeric characters should be a simple thing to do with regluar expressions or heck, even walking the string would be feasible."


Only Spicy Food Gives Me an Explosive Gain

by in Error'd on

“One of our developers (who has since left) scoured the internet and grabbed every single Spam Assassin rule that he could find,” writes Vivin P., “Even the weird ones.”


A Spoonful of Sugar

by in CodeSOD on

John S. was doing some work on the search feature of a client's website when he noticed that he would receive a 500 Server Error if he tested against the API with an empty string.

This struck John as being pretty strange since not only had the search feature had been in place for years, but also, he could go to the search page, click on the "Search" button without entering anything and receive an "Item Not Found" response.