Click here to Skip to main content
16,008,183 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: DataView - GetEnumerator Pin
PIEBALDconsult25-Jan-08 12:47
mvePIEBALDconsult25-Jan-08 12:47 
GeneralRe: DataView - GetEnumerator Pin
Pete O'Hanlon27-Jan-08 9:21
mvePete O'Hanlon27-Jan-08 9:21 
GeneralRe: DataView - GetEnumerator Pin
codemunch28-Jan-08 8:07
codemunch28-Jan-08 8:07 
JokeRe: DataView - GetEnumerator Pin
PIEBALDconsult25-Jan-08 10:41
mvePIEBALDconsult25-Jan-08 10:41 
JokeRe: DataView - GetEnumerator Pin
Sue H1-Feb-08 1:54
Sue H1-Feb-08 1:54 
GeneralRe: DataView - GetEnumerator Pin
peterchen29-Jan-08 20:17
peterchen29-Jan-08 20:17 
GeneralRe: DataView - GetEnumerator Pin
Mr.PoorEnglish30-Jan-08 0:19
Mr.PoorEnglish30-Jan-08 0:19 
GeneralRe: DataView - GetEnumerator Pin
peterchen30-Jan-08 1:42
peterchen30-Jan-08 1:42 
Interesting results - and good you investigated that! So indeed there are reasonable performance tradeoffs.

In any case, I wouldn't expect the enumerator to be optimized for a "break after first". That's a very uncommon scenario - and if you run into it frequently, and it hits your performance, you could always optimize by "get first, test, then enumerate" on the caller side.

We are a big screwed up dysfunctional psychotic happy family - some more screwed up, others more happy, but everybody's psychotic joint venture definition of CP
blog: TDD - the Aha! | Linkify!| FoldWithUs! | sighist


GeneralInteresting Variable Names PinPopular
Lee Humphries21-Jan-08 13:02
professionalLee Humphries21-Jan-08 13:02 
GeneralRe: Interesting Variable Names Pin
R. Giskard Reventlov21-Jan-08 23:57
R. Giskard Reventlov21-Jan-08 23:57 
GeneralRe: Interesting Variable Names Pin
RichardGrimmer22-Jan-08 5:42
RichardGrimmer22-Jan-08 5:42 
GeneralRe: Interesting Variable Names Pin
Vasudevan Deepak Kumar22-Jan-08 20:32
Vasudevan Deepak Kumar22-Jan-08 20:32 
GeneralRe: Interesting Variable Names Pin
Derek Bartram22-Mar-08 0:59
Derek Bartram22-Mar-08 0:59 
GeneralRe: Interesting Variable Names Pin
Justin Perez22-Jan-08 2:38
Justin Perez22-Jan-08 2:38 
GeneralRe: Interesting Variable Names Pin
Derek Bartram22-Mar-08 1:01
Derek Bartram22-Mar-08 1:01 
GeneralRe: Interesting Variable Names Pin
jhwurmbach22-Jan-08 3:27
jhwurmbach22-Jan-08 3:27 
GeneralRe: Interesting Variable Names Pin
Vasudevan Deepak Kumar22-Jan-08 20:43
Vasudevan Deepak Kumar22-Jan-08 20:43 
GeneralRe: Interesting Variable Names Pin
Kyudos22-Jan-08 15:58
Kyudos22-Jan-08 15:58 
GeneralRe: Interesting Variable Names Pin
Russell Jones23-Jan-08 5:48
Russell Jones23-Jan-08 5:48 
GeneralRe: Interesting Variable Names Pin
RugbyLeague24-Jan-08 1:30
RugbyLeague24-Jan-08 1:30 
GeneralRe: Interesting Variable Names Pin
dighn24-Jan-08 9:08
dighn24-Jan-08 9:08 
GeneralRe: Interesting Variable Names Pin
V.24-Jan-08 21:03
professionalV.24-Jan-08 21:03 
GeneralRe: Interesting Variable Names Pin
Joe Simes30-Jan-08 4:08
Joe Simes30-Jan-08 4:08 
GeneralRe: Interesting Variable Names Pin
Dave Cross31-Jan-08 3:10
professionalDave Cross31-Jan-08 3:10 
JokePrinting a bill at super market shows a ADO error on their console ... Pin
Vasudevan Deepak Kumar21-Jan-08 0:03
Vasudevan Deepak Kumar21-Jan-08 0:03 

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.