Click here to Skip to main content
15,895,192 members

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, embarrassing 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: Return of an old friend PinPopular
Richard A. Dalton19-Oct-10 2:11
Richard A. Dalton19-Oct-10 2:11 
GeneralRe: Return of an old friend Pin
Sauro Viti19-Oct-10 2:19
professionalSauro Viti19-Oct-10 2:19 
GeneralRe: Return of an old friend Pin
_Erik_19-Oct-10 2:53
_Erik_19-Oct-10 2:53 
GeneralRe: Return of an old friend Pin
Rob Grainger19-Oct-10 3:13
Rob Grainger19-Oct-10 3:13 
GeneralRe: Return of an old friend Pin
Richard A. Dalton19-Oct-10 3:29
Richard A. Dalton19-Oct-10 3:29 
GeneralSome more pain (the non-local local) Pin
leppie17-Oct-10 20:28
leppie17-Oct-10 20:28 
GeneralRe: Some more pain (the non-local local) Pin
Bernhard Hiller17-Oct-10 20:45
Bernhard Hiller17-Oct-10 20:45 
GeneralRe: Some more pain (the non-local local) [modified] Pin
leppie17-Oct-10 20:50
leppie17-Oct-10 20:50 
Bernhard Hiller wrote:
What about the implementation in _presenter.Controller?


Quite possible, but now I am too scared to look! Sniff | :^)

Edit: Not quite as bad (but 99% there)!

bool bStandardMandatory = false;

internal bool CheckMandatory(object rep, string entityname)
{
  return bStandardMandatory = ReportConfigurationService.CheckMandatory(DataContext.DataContext, rep, entityname);
}


With nothing else touching bStandardMandatory... OMG | :OMG:

I guess now you want to know what that one's implementation looks like? Smile | :)

Edit 2: I had to ask... well here it is.

public bool CheckMandatory(dboDataContext datacontext, object rpt, string entityname)
{
  return ReportInterface.CheckMandatory(datacontext, rpt, entityname);
}


At least no useless non-local local here.

I wonder how it goes on...

Edit 3: Finally we have some code at that destination!
xacc.ide
IronScheme - 1.0 RC 1 - out now!
((λ (x) `(,x ',x)) '(λ (x) `(,x ',x)))
The Scheme Programming Language – Fourth Edition
modified on Monday, October 18, 2010 2:56 AM

GeneralRe: Some more pain (the non-local local) Pin
BillW3318-Oct-10 5:45
professionalBillW3318-Oct-10 5:45 
GeneralI just got greeted by this PinPopular
leppie17-Oct-10 19:02
leppie17-Oct-10 19:02 
GeneralRe: I just got greeted by this Pin
Jeroen De Dauw17-Oct-10 20:20
Jeroen De Dauw17-Oct-10 20:20 
GeneralRe: I just got greeted by this Pin
leppie17-Oct-10 20:23
leppie17-Oct-10 20:23 
GeneralRe: I just got greeted by this Pin
Richard A. Dalton18-Oct-10 0:17
Richard A. Dalton18-Oct-10 0:17 
GeneralRe: I just got greeted by this Pin
BillW3318-Oct-10 5:42
professionalBillW3318-Oct-10 5:42 
GeneralRe: I just got greeted by this Pin
Jeroen De Dauw18-Oct-10 10:49
Jeroen De Dauw18-Oct-10 10:49 
GeneralRe: I just got greeted by this Pin
Keith Barrow18-Oct-10 6:28
professionalKeith Barrow18-Oct-10 6:28 
GeneralMessage Removed Pin
19-Oct-10 5:02
professionalN_tro_P19-Oct-10 5:02 
JokeRe: I just got greeted by this Pin
fjdiewornncalwe19-Oct-10 6:16
professionalfjdiewornncalwe19-Oct-10 6:16 
GeneralRe: I just got greeted by this Pin
leppie19-Oct-10 18:50
leppie19-Oct-10 18:50 
GeneralDoes C++ long for VB? PinPopular
Tsuda Kageyu15-Oct-10 10:04
Tsuda Kageyu15-Oct-10 10:04 
GeneralRe: Does C++ long for VB? Pin
megaadam17-Oct-10 21:13
professionalmegaadam17-Oct-10 21:13 
GeneralRe: Does C++ long for VB? Pin
leonej_dt18-Oct-10 17:59
leonej_dt18-Oct-10 17:59 
GeneralRe: Does C++ long for VB? Pin
Tsuda Kageyu18-Oct-10 20:40
Tsuda Kageyu18-Oct-10 20:40 
GeneralRe: Does C++ long for VB? vs Redefining == Pin
pg--az20-Oct-10 1:06
pg--az20-Oct-10 1:06 
GeneralRe: Does C++ long for VB? vs Redefining == [modified] Pin
leonej_dt20-Oct-10 4:35
leonej_dt20-Oct-10 4:35 

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

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