Click here to Skip to main content

The Weird and The Wonderful

   

The Weird and The Wonderful forum is a place to post Coding Horrors, Worst Practices, and the occasional flash of brilliance.

We all come across code that simply boggles the mind. Lazy kludges, embarrasing mistakes, horrid workarounds and developers just not quite getting it. And then somedays we come across - or write - the truly sublime.

Post your Best, your worst, and your most interesting. But please - no programming questions . This forum is purely for amusement and discussions on code snippets. All actual programming questions will be removed.

 
GeneralRe: for(int i=0; i<size; i++) PinmemberDanielSheets6-May-13 8:12 
GeneralRe: for(int i=0; i<size; i++) PinmemberDerekTP1238-May-13 1:26 
Generalwhile(life!=death) PinmemberBikash Prakash Dash11-May-13 6:03 
GeneralRe: for(int i=0; i<size; i++) PinmemberPeterTheSwede20-May-13 0:58 
GeneralRe: for(int i=0; i<size; i++) PinmemberJohn Hunley29-May-13 9:46 
GeneralRe: for(int i=0; i<size; i++) PinmemberBCantor31-May-13 10:54 
GeneralInteresting Observation Pinmembervirang_2129-Apr-13 15:45 
GeneralRe: Interesting Observation PinmemberPablo Aliskevicius29-Apr-13 20:47 
declare is not an 'executable' statement.
This means thet the if in your code relates to the set @currdate.... statement only.
Personally, I always use BEGIN...END, even for one liners, but that's a matter of individual preference.
 
Anyway, thanks for sharing.
Pablo.
 
"Accident: An inevitable occurrence due to the action of immutable natural laws." (Ambrose Bierce, circa 1899).

GeneralRe: Interesting Observation Pinmemberagolddog1-May-13 4:42 
GeneralRe: Interesting Observation PinprofessionalRaja Sekhar S5-Jun-13 22:14 
GeneralRe: Interesting Observation PinmemberPablo Aliskevicius5-Jun-13 22:21 
GeneralRe: Interesting Observation PinprofessionalRaja Sekhar S5-Jun-13 23:05 
GeneralRe: Interesting Observation PinmemberPablo Aliskevicius6-Jun-13 0:31 
GeneralRe: Interesting Observation PinprofessionalRaja Sekhar S6-Jun-13 0:39 
GeneralNot 'Clap' but 'CLAP', dammit. [modified] PinmemberBrady Kelly24-Apr-13 23:36 
GeneralRe: Not 'Clap' but 'CLAP', dammit. [modified] Pinmemberdusty_dex25-Apr-13 0:19 
GeneralRe: Not 'Clap' but 'CLAP', dammit. PinmemberBrady Kelly25-Apr-13 0:33 
GeneralRe: Not 'Clap' but 'CLAP', dammit. PinmemberH.Brydon25-Apr-13 15:59 
GeneralRe: Not 'Clap' but 'CLAP', dammit. PinprofessionalBrisingr Aerowing25-Apr-13 2:16 
GeneralRe: Not 'Clap' but 'CLAP', dammit. PinmemberBrady Kelly25-Apr-13 3:56 
GeneralRe: Not 'Clap' but 'CLAP', dammit. Pinmemberhvanzyll26-Apr-13 6:26 
GeneralRe: Not 'Clap' but 'CLAP', dammit. PinmemberRob Grainger1-May-13 4:23 
GeneralProduction code adds a BCC to email account of developer Pinmember0bx24-Apr-13 6:48 
AnswerRe: Production code adds a BCC to email account of developer PinprotectorAspDotNetDev24-Apr-13 6:54 
GeneralRe: Production code adds a BCC to email account of developer PinmemberCIDev25-Apr-13 10:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web02 | 2.8.1411019.1 | Last Updated 22 Nov 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid