- 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
Admin
Now who changed wives to spouses? If Hilary engaged in husband swapping she'd never make it through the primary.
Admin
That wouldn't return 1/1/2012 00:00:00.000
Admin
so let the boffins that created your RDBMS handle it.
Admin
Admin
Admin
Wait, modern programming languages allow that? That's a worse pattern than referencing an item in a collection blindly by index.
Admin
GPS software requires extremely precise timing and needs to take into account things like time changes due to relativity. However, the only thing it's really looking at is how long it takes a signal to get from the satellite to your receiver. SO, you don't really need to worry about things like DST, because you're never going to need hour resolution. Hell, just knowing what second it is within the current minute (and milliseconds and such within that) may be enough. But if you're off by a second or even fractions of a second it may locate you somewhere hundreds of miles away. So for a GPS receiver leap seconds are more important than daylight savings, while in most other applications it's the other way round.
Admin
The "private final boolean workOnArchive;"-declaration suggests there's a constructor missing in this code snippet... perhaps it sets the variable you're looking for...
...however, just like you I reacted to the static CustIdUtil-call. I suspect it's hot wired into some HttpSession or similar... really clarifying code though! (not)
I use to think of programming as communication. Communication with the computer and user (obviously - or maybe not always that obvious?) AND communication with other programmers.
Crap like that static call is a good example of gobbledygook-type of communication.
Admin
It's interesting how this kind of shit is always done by someone coding in Java.
Admin
Unless you meant str_replace(" IS ","<=>",$this->statement), but I really hope you did not, as this is rather stupid.
Admin
I think it's reasonable. This way you're guaranteed not to have typos when you use the constants later. If you type out "WHERE" 100 times it's likely you'll make a typo on one, which won't be caught by the compiler. If you have autocompletion like intellisense, it'll actually make it faster typing the commands later on.
Admin
ONE_DAY_MINUS_ONE_MILLISEC = 86399999; WTF?
Admin
SQLBase copied that syntax, but went with a slightly different outer join behaviour.
The advantage of sticking to right outer joins is so that you can easily switch to the Sybase version =* which SQL Server copied before it supported ANSI join syntax.
Admin
Smart asses like these created ORMs...
Admin
so, you're recommending one should be "not easily offended", in a comment solely dedicated to publicly taking offence regarding whom you deem "the easily offended"? so logicky!
Admin
It could make sense with any software that can interface with 1С (Russian database system). It uses a language that is basically SQL, but with all the strings translated into Russian.