Click here to Skip to main content
15,879,239 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: Best Practices turned into Coding Horrors. Pin
Brady Kelly16-Apr-13 21:45
Brady Kelly16-Apr-13 21:45 
GeneralRe: Best Practices turned into Coding Horrors. Pin
jschell17-Apr-13 8:17
jschell17-Apr-13 8:17 
GeneralRe: Best Practices turned into Coding Horrors. Pin
KP Lee22-Apr-13 9:34
KP Lee22-Apr-13 9:34 
GeneralRe: Best Practices turned into Coding Horrors. Pin
KRucker16-Apr-13 5:17
KRucker16-Apr-13 5:17 
GeneralRe: Best Practices turned into Coding Horrors. Pin
Paulo Zemek16-Apr-13 5:29
mvaPaulo Zemek16-Apr-13 5:29 
GeneralRe: Best Practices turned into Coding Horrors. Pin
BobJanova16-Apr-13 23:01
BobJanova16-Apr-13 23:01 
GeneralRe: Best Practices turned into Coding Horrors. Pin
jschell16-Apr-13 10:06
jschell16-Apr-13 10:06 
GeneralRe: Best Practices turned into Coding Horrors. Pin
KP Lee22-Apr-13 10:17
KP Lee22-Apr-13 10:17 
KRucker wrote:
The concatination(sic) that you are showing should be fine, unless it is being performed in a loop.
How many const declarations run in a loop? Unless you are instantiating a class in a loop... which indicates the const field should also be static.
You should really read posts more clearly, he wasn't complaining about the use of concatenations, but about people spouting off about best practices where the practices clearly don't apply. Makes those people look like they are doing things by rote without thinking about what they are saying or if what they say makes sense.
Of course I have been guilty of that, I shouldn't throw stones when I live in a house with glass all around it. Smile | :)
You forgot to mention each of those string parts get stuck in the intern table until the GC gets around to cleaning it up. Poke tongue | ;-P
PS "that" I am guilty of includes: misreading items, not thinking things out, and saying inappropriate things.
PPS Edited my post because Preview clearly showed your statement. On checking why posting didn't show, I missed some HTML tags that removed it from post.
GeneralRe: Best Practices turned into Coding Horrors. Pin
RafagaX16-Apr-13 7:09
professionalRafagaX16-Apr-13 7:09 
GeneralRe: Best Practices turned into Coding Horrors. Pin
Chad3F16-Apr-13 12:25
Chad3F16-Apr-13 12:25 
GeneralRe: Best Practices turned into Coding Horrors. Pin
jschell17-Apr-13 8:22
jschell17-Apr-13 8:22 
RantRe: Best Practices turned into Coding Horrors. Pin
Chad3F17-Apr-13 17:53
Chad3F17-Apr-13 17:53 
GeneralRe: Best Practices turned into Coding Horrors. Pin
jschell18-Apr-13 10:10
jschell18-Apr-13 10:10 
GeneralRe: Best Practices turned into Coding Horrors. Pin
KP Lee22-Apr-13 10:41
KP Lee22-Apr-13 10:41 
AnswerRe: Best Practices turned into Coding Horrors. Pin
Chad3F22-Apr-13 11:38
Chad3F22-Apr-13 11:38 
GeneralRe: Best Practices turned into Coding Horrors. Pin
PIEBALDconsult16-Apr-13 15:23
mvePIEBALDconsult16-Apr-13 15:23 
GeneralRe: Best Practices turned into Coding Horrors. Pin
Pete O'Hanlon17-Apr-13 5:10
mvePete O'Hanlon17-Apr-13 5:10 
GeneralRe: Best Practices turned into Coding Horrors. Pin
Paulo Zemek17-Apr-13 5:19
mvaPaulo Zemek17-Apr-13 5:19 
GeneralRe: Best Practices turned into Coding Horrors. Pin
Pete O'Hanlon17-Apr-13 5:58
mvePete O'Hanlon17-Apr-13 5:58 
GeneralRe: Best Practices turned into Coding Horrors. Pin
BobJanova17-Apr-13 5:53
BobJanova17-Apr-13 5:53 
GeneralRe: Best Practices turned into Coding Horrors. Pin
KP Lee22-Apr-13 0:13
KP Lee22-Apr-13 0:13 
GeneralRe: Best Practices turned into Coding Horrors. Pin
KP Lee22-Apr-13 0:04
KP Lee22-Apr-13 0:04 
AnswerRe: Best Practices turned into Coding Horrors. Pin
Clifford Nelson22-Apr-13 9:13
Clifford Nelson22-Apr-13 9:13 
GeneralRe: Best Practices turned into Coding Horrors. Pin
Paulo Zemek22-Apr-13 9:15
mvaPaulo Zemek22-Apr-13 9:15 
GeneralRe: Best Practices turned into Coding Horrors. Pin
Tim Yen22-Apr-13 14:02
Tim Yen22-Apr-13 14:02 

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.