- Feature Articles
- CodeSOD
- Error'd
-
Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Edit Admin
The frist thing I noticed was the discrepancy between using
Convert.TodateTime(string)in one place andDateTime.Parse(string)in another. The only difference is that if the argument is null,Convert()returnsDateTime.MinValuewhereasDateTime.Parse()throwsArgumentNullExceptionGood bet the devs in question a) didn't know that and b) aren't trying to null-guard. They just hate being consistent in anything they do. Just like with their f-ed up naming. Maybe "hate" is too strong a word. Perhaps better said they're too haphazard a thinker to be consistent.
In terms of quality, haphazard thinking and software development go together about like water and electricity. In terms of commonality, it's more like peanut butter and jelly. Sigh.
Edit Admin
I was actually consider stop reading after Convert.ToDateTime but they lost me at ) with no CultureInfo in sight. At this point it really doesn't matter what the rest of the article has to say, because there's no coming back from that point.
Admin
I worked many years in a big engineering company, one with 100k people and B$ of revenues, where SAP was used to manage working hours in a decimal number format
Admin
To be fair if you are charging by the hour just keeping the hours logged rather than some sort of date structure makes perfect sense.
Edit Admin
I always say .NET's conversions should have defaulted to InvariantCulture instead of localized stuff.
Edit Admin
You hate Hungarian Notation, well, I hate Hungarian Notation and ASP.NET webforms. 😆
Edit Admin
Yeah, and InvariantCulture should have defaulted to ISO standards than some random local nonsense pretty much nobody in the world uses :-) But eh, .net is far from perfect by any means even though it is superior in many ways over it's direct and even indirect competitors.