Click here to Skip to main content
13,796,533 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: Is it my fault? Pin
Jon McKee14-May-18 19:17
professionalJon McKee14-May-18 19:17 
GeneralRe: Is it my fault? Pin
Eddy Vluggen15-May-18 2:01
professionalEddy Vluggen15-May-18 2:01 
GeneralRe: Is it my fault? Pin
Jon McKee15-May-18 9:36
professionalJon McKee15-May-18 9:36 
GeneralRe: Is it my fault? Pin
Eddy Vluggen16-May-18 1:46
professionalEddy Vluggen16-May-18 1:46 
GeneralRe: Is it my fault? Pin
F-ES Sitecore16-May-18 2:21
mvpF-ES Sitecore16-May-18 2:21 
GeneralRe: Is it my fault? Pin
Eddy Vluggen16-May-18 2:39
professionalEddy Vluggen16-May-18 2:39 
GeneralRe: Is it my fault? Pin
F-ES Sitecore16-May-18 3:33
mvpF-ES Sitecore16-May-18 3:33 
GeneralRe: Is it my fault? Pin
Eddy Vluggen16-May-18 4:03
professionalEddy Vluggen16-May-18 4:03 
F-ES Sitecore wrote:
Contains = cheap
Exception = expensive

As I said, it's a no-brainer.
Exceptions aren't expensive, and in case of an addition to a collection, it might be even cheaper to do a blind insert.

Thumbs Up | :thumbsup:
Bastard Programmer from Hell Suspicious | :suss:
If you can't read my code, try converting it here[^]
"If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.

GeneralRe: Is it my fault? Pin
F-ES Sitecore16-May-18 4:28
mvpF-ES Sitecore16-May-18 4:28 
GeneralRe: Is it my fault? Pin
Eddy Vluggen16-May-18 4:56
professionalEddy Vluggen16-May-18 4:56 
GeneralRe: Is it my fault? Pin
F-ES Sitecore16-May-18 5:09
mvpF-ES Sitecore16-May-18 5:09 
GeneralRe: Is it my fault? Pin
Eddy Vluggen16-May-18 11:35
professionalEddy Vluggen16-May-18 11:35 
GeneralRe: Is it my fault? Pin
F-ES Sitecore16-May-18 23:27
mvpF-ES Sitecore16-May-18 23:27 
GeneralRe: Is it my fault? Pin
Eddy Vluggen18-May-18 1:03
professionalEddy Vluggen18-May-18 1:03 
GeneralRe: Is it my fault? Pin
F-ES Sitecore18-May-18 1:10
mvpF-ES Sitecore18-May-18 1:10 
GeneralRe: Is it my fault? Pin
Eddy Vluggen18-May-18 1:16
professionalEddy Vluggen18-May-18 1:16 
GeneralRe: Is it my fault? Pin
Jon McKee17-May-18 19:21
professionalJon McKee17-May-18 19:21 
GeneralRe: Is it my fault? Pin
Eddy Vluggen18-May-18 0:57
professionalEddy Vluggen18-May-18 0:57 
GeneralRe: Is it my fault? Pin
Jon McKee18-May-18 11:13
professionalJon McKee18-May-18 11:13 
GeneralRe: Is it my fault? Pin
Eddy Vluggen18-May-18 14:09
professionalEddy Vluggen18-May-18 14:09 
GeneralRe: Is it my fault? Pin
David A. Gray25-Jun-18 12:19
memberDavid A. Gray25-Jun-18 12:19 
GeneralRe: Is it my fault? Pin
PIEBALDconsult16-May-18 18:09
protectorPIEBALDconsult16-May-18 18:09 
GeneralRe: Is it my fault? Pin
Jon McKee17-May-18 15:35
professionalJon McKee17-May-18 15:35 
GeneralRe: Is it my fault? Pin
PIEBALDconsult17-May-18 15:42
protectorPIEBALDconsult17-May-18 15:42 
GeneralRe: Is it my fault? Pin
Jon McKee17-May-18 16:16
professionalJon McKee17-May-18 16:16 

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.


Advertise | Privacy | Cookies | Terms of Service
Web03 | 2.8.181207.3 | Last Updated 12 Dec 2018
Copyright © CodeProject, 1999-2018
All Rights Reserved.
Layout: fixed | fluid