Click here to Skip to main content
15,867,985 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: ThreadPool explosion Pin
Rage12-Sep-14 5:11
professionalRage12-Sep-14 5:11 
GeneralFunction name choice Pin
Otto Grunf8-Sep-14 6:14
Otto Grunf8-Sep-14 6:14 
GeneralRe: Function name choice Pin
DaveAuld8-Sep-14 6:24
professionalDaveAuld8-Sep-14 6:24 
GeneralRe: Function name choice Pin
  Forogar  8-Sep-14 6:26
professional  Forogar  8-Sep-14 6:26 
GeneralRe: Function name choice Pin
Otto Grunf8-Sep-14 6:36
Otto Grunf8-Sep-14 6:36 
GeneralRe: Function name choice Pin
PIEBALDconsult8-Sep-14 7:14
mvePIEBALDconsult8-Sep-14 7:14 
GeneralRe: Function name choice Pin
Richard Deeming8-Sep-14 8:02
mveRichard Deeming8-Sep-14 8:02 
GeneralRe: Function name choice Pin
Smart K88-Sep-14 7:57
professionalSmart K88-Sep-14 7:57 
I don't understand language of your tribe, but I would go with extension method in C#. Something like this:

public static Int32 GetStringLength(this Int32 value)

s.Length.GetStringLength()

Big Grin | :-D
GeneralRe: Function name choice Pin
John M. Drescher8-Sep-14 8:12
John M. Drescher8-Sep-14 8:12 
GeneralRe: Function name choice Pin
Smart K88-Sep-14 8:20
professionalSmart K88-Sep-14 8:20 
GeneralRe: Function name choice Pin
Otto Grunf8-Sep-14 8:31
Otto Grunf8-Sep-14 8:31 
GeneralThe Sandbox Pin
ColborneGreg30-Aug-14 8:12
ColborneGreg30-Aug-14 8:12 
GeneralMessage Closed Pin
30-Aug-14 10:21
professionalBrisingr Aerowing30-Aug-14 10:21 
JokeRe: The Sandbox Pin
DaveX8630-Aug-14 14:20
DaveX8630-Aug-14 14:20 
GeneralRe: The Sandbox Pin
ColborneGreg30-Aug-14 18:13
ColborneGreg30-Aug-14 18:13 
GeneralKill me Pin
PhilLenoir28-Aug-14 9:04
professionalPhilLenoir28-Aug-14 9:04 
GeneralRe: Kill me Pin
Gary R. Wheeler7-Sep-14 2:38
Gary R. Wheeler7-Sep-14 2:38 
GeneralWhat is null equal to? Pin
sloosecannon25-Aug-14 5:59
sloosecannon25-Aug-14 5:59 
GeneralRe: What is null equal to? Pin
PIEBALDconsult25-Aug-14 6:27
mvePIEBALDconsult25-Aug-14 6:27 
GeneralRe: What is null equal to? Pin
R. Giskard Reventlov25-Aug-14 6:56
R. Giskard Reventlov25-Aug-14 6:56 
AnswerRe: What is null equal to? Pin
Afzaal Ahmad Zeeshan25-Aug-14 6:59
professionalAfzaal Ahmad Zeeshan25-Aug-14 6:59 
GeneralRe: What is null equal to? Pin
sloosecannon25-Aug-14 7:45
sloosecannon25-Aug-14 7:45 
GeneralRe: What is null equal to? Pin
OriginalGriff25-Aug-14 8:15
mveOriginalGriff25-Aug-14 8:15 
GeneralRe: What is null equal to? Pin
Brisingr Aerowing25-Aug-14 12:06
professionalBrisingr Aerowing25-Aug-14 12:06 
GeneralRe: What is null equal to? Pin
sloosecannon25-Aug-14 18:01
sloosecannon25-Aug-14 18:01 

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.