Click here to Skip to main content
15,886,362 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: MS SmallBasic? Did you know? Silverlight plugin required Pin
DaveAuld10-Oct-14 9:13
professionalDaveAuld10-Oct-14 9:13 
GeneralRe: MS SmallBasic? Did you know? Silverlight plugin required Pin
Rob Grainger19-Oct-14 4:40
Rob Grainger19-Oct-14 4:40 
GeneralRe: MS SmallBasic? Did you know? Silverlight plugin required Pin
Bernhard Hiller19-Oct-14 23:14
Bernhard Hiller19-Oct-14 23:14 
GeneralTill death, my code and I Pin
eyesark10-Oct-14 7:19
eyesark10-Oct-14 7:19 
AnswerRe: Till death, my code and I Pin
Afzaal Ahmad Zeeshan10-Oct-14 8:06
professionalAfzaal Ahmad Zeeshan10-Oct-14 8:06 
GeneralRe: Till death, my code and I Pin
User 483504710-Oct-14 8:14
User 483504710-Oct-14 8:14 
GeneralRe: Till death, my code and I Pin
eyesark10-Oct-14 8:57
eyesark10-Oct-14 8:57 
GeneralRe: Till death, my code and I Pin
Sander Rossel10-Oct-14 8:56
professionalSander Rossel10-Oct-14 8:56 
Well, it depends... If the entire team decides PascalCasing is the way to go on function names then you'd just be an a-hole if you went all camelCase, or worse, sHungarianNotation (that's s for stupid Smile | :) ).
Where I work we have a common style defined and everyone sticks to that. There's still some freedom of style though. Personally I like using the this keyword, for example this.SomeFunction(), so I know it's an instance method that's called and not a class method. My co-workers don't use this that often though.
If someone asks why I use this that often I can tell them my reason and they can agree with me or be wrong (no hurt feelings either way). Until the entire team decides to not use this, in which case I'll have to adjust my style.
It's an OO world.
C#
public class SanderRossel : Lazy<Person>
{
   public void DoWork()
   {
      throw new NotSupportedException();
   }
}

GeneralRe: Till death, my code and I Pin
eyesark10-Oct-14 9:04
eyesark10-Oct-14 9:04 
GeneralRe: Till death, my code and I Pin
Sander Rossel10-Oct-14 9:06
professionalSander Rossel10-Oct-14 9:06 
GeneralRe: Till death, my code and I Pin
MarkTJohnson10-Oct-14 9:30
professionalMarkTJohnson10-Oct-14 9:30 
GeneralRe: Till death, my code and I Pin
Nelek10-Oct-14 14:18
protectorNelek10-Oct-14 14:18 
GeneralRe: Till death, my code and I Pin
eyesark11-Oct-14 1:20
eyesark11-Oct-14 1:20 
GeneralRe: Till death, my code and I Pin
kmoorevs11-Oct-14 5:23
kmoorevs11-Oct-14 5:23 
GeneralRe: Till death, my code and I Pin
Member 9986689 (PandaLion98)25-Oct-14 21:02
professionalMember 9986689 (PandaLion98)25-Oct-14 21:02 
GeneralWhy does Document still have an uppercase D?? I'm replacing Document with document right? Pin
JMK-NI24-Sep-14 5:19
professionalJMK-NI24-Sep-14 5:19 
GeneralRe: Why does Document still have an uppercase D?? I'm replacing Document with document right? Pin
Vark11124-Sep-14 5:37
Vark11124-Sep-14 5:37 
GeneralRe: Why does Document still have an uppercase D?? I'm replacing Document with document right? Pin
Brisingr Aerowing24-Sep-14 6:36
professionalBrisingr Aerowing24-Sep-14 6:36 
GeneralRe: Why does Document still have an uppercase D?? I'm replacing Document with document right? Pin
PIEBALDconsult24-Sep-14 9:13
mvePIEBALDconsult24-Sep-14 9:13 
GeneralRe: Why does Document still have an uppercase D?? I'm replacing Document with document right? Pin
Nguyen.H.H.Dang1-Oct-14 23:42
professionalNguyen.H.H.Dang1-Oct-14 23:42 
GeneralWhat the clusterf*ck? Pin
Bernhard Hiller17-Sep-14 21:31
Bernhard Hiller17-Sep-14 21:31 
GeneralRe: What the clusterf*ck? PinPopular
Rob Philpott17-Sep-14 22:57
Rob Philpott17-Sep-14 22:57 
GeneralMessage Removed Pin
19-Oct-14 4:47
Rob Grainger19-Oct-14 4:47 
GeneralRe: What the clusterf*ck? Pin
Sentenryu18-Sep-14 0:18
Sentenryu18-Sep-14 0:18 
GeneralRe: What the clusterf*ck? Pin
Marco Bertschi18-Sep-14 1:28
protectorMarco Bertschi18-Sep-14 1:28 

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.