Click here to Skip to main content
11,630,144 members (77,102 online)

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: Why is my code so slow?? Pin
@AmitGajjar25-Sep-13 1:58
professional@AmitGajjar25-Sep-13 1:58 
GeneralRe: Why is my code so slow?? Pin
SortaCore1-Oct-13 10:58
memberSortaCore1-Oct-13 10:58 
GeneralRe: Why is my code so slow?? Pin
Bernhard Hiller25-Sep-13 21:45
professionalBernhard Hiller25-Sep-13 21:45 
GeneralNot really a question of how-do-I... Pin
SortaCore22-Sep-13 23:41
memberSortaCore22-Sep-13 23:41 
Hmmm... is this dumb or brilliant?
if ((logicalTabs ? tabs_General1.cbException.Focused : tabs_General1.cbJobStatus.Focused) &&
    e.KeyCode == Keys.Up)
{	

as opposed to:
if (( (logicalTabs && tabs_General1.cbException.Focused) || 
      (!logicalTabs && tabs_General1.cbJobStatus.Focused) )  &&
    e.KeyCode == Keys.Up)
{	

I can't decide now. Unsure | :~
Readability contrasting with good practice?
GeneralRe: Not really a question of how-do-I... Pin
d@nish 23-Sep-13 0:45
member d@nish 23-Sep-13 0:45 
GeneralRe: Not really a question of how-do-I... Pin
OriginalGriff23-Sep-13 0:51
protectorOriginalGriff23-Sep-13 0:51 
GeneralRe: Not really a question of how-do-I... Pin
Member 205300623-Sep-13 1:01
memberMember 205300623-Sep-13 1:01 
QuestionRe: Not really a question of how-do-I... Pin
Eddy Vluggen23-Sep-13 3:40
mvpEddy Vluggen23-Sep-13 3:40 
GeneralRe: Not really a question of how-do-I... Pin
Suvabrata Roy23-Sep-13 3:26
professionalSuvabrata Roy23-Sep-13 3:26 
GeneralRe: Not really a question of how-do-I... Pin
Dan Neely24-Sep-13 2:57
memberDan Neely24-Sep-13 2:57 

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
Web03 | 2.8.150723.1 | Last Updated 28 Jul 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid