Click here to Skip to main content
16,020,568 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: Convert.ToInt32 Pin
Argonia2-Dec-13 1:18
professionalArgonia2-Dec-13 1:18 
GeneralRe: Convert.ToInt32 Pin
robocodeboy2-Dec-13 2:27
robocodeboy2-Dec-13 2:27 
GeneralRe: Convert.ToInt32 Pin
Argonia2-Dec-13 2:29
professionalArgonia2-Dec-13 2:29 
GeneralRe: Convert.ToInt32 Pin
robocodeboy2-Dec-13 2:51
robocodeboy2-Dec-13 2:51 
GeneralRe: Convert.ToInt32 Pin
Argonia2-Dec-13 3:19
professionalArgonia2-Dec-13 3:19 
GeneralRe: Convert.ToInt32 Pin
robocodeboy2-Dec-13 3:39
robocodeboy2-Dec-13 3:39 
GeneralRe: Convert.ToInt32 Pin
Argonia2-Dec-13 1:12
professionalArgonia2-Dec-13 1:12 
GeneralRe: Convert.ToInt32 Pin
robocodeboy2-Dec-13 2:16
robocodeboy2-Dec-13 2:16 
Yes, of course.
C++ is so elegant that his grammar is undecidable, and no IDE in the world can give you a decent code completion. But maybe you're Klingon and you remember variable names by heart.

C is elegant, yes. Just as an haiku. I completely enjoyed writing really quick, incomprehensible code that did simple stuff in clever ways, but designing UIs in C or C++ is an exercise in pain. Not mentioning organizing and building complex projects.

C++ templates can do some clever stuff, but generics are pretty similar and less prone to breaking apart your build time. The only thing I miss in C# are mixins, but they are hard to manage even in C++.

Pointers are in C# too, but you don't need to use them, usually. You can, but only if you have tight loops to be optimized.

Friend is useless if you have internal members and friend assemblies. And private is considered more valuable than it is and not unit testable.

Oh, and if "few libraries" means the single most extended library in existence yes, you are right.

To one that makes this kind of statements, I can only suggest to (choose one in three):
- RTFM and stop blaming others for what you get in the toolkit, instead of having to roll your own.
- change language. Maybe the kind of stuff you're doing is not best suited for C# (I doubt, but...)
- write your own language. You seem to be a world class language guru. Way better than that M$ scum. For sure you can tackle that task.

A language is a tool, if you can't do stuff and blame the tool, either you change it or learn to use it.
Blaming is easier (I remember people complaining about that stupid C compiler that was continually raising segmentation faults).

Good luck!
GeneralRe: Convert.ToInt32 Pin
JMK896-Dec-13 6:06
professionalJMK896-Dec-13 6:06 
General... WHY?! Pin
Matt U.19-Nov-13 8:09
Matt U.19-Nov-13 8:09 
GeneralRe: ... WHY?! Pin
Brisingr Aerowing19-Nov-13 9:16
professionalBrisingr Aerowing19-Nov-13 9:16 
GeneralRe: ... WHY?! Pin
Matt U.19-Nov-13 9:36
Matt U.19-Nov-13 9:36 
GeneralRe: ... WHY?! Pin
Brisingr Aerowing19-Nov-13 11:09
professionalBrisingr Aerowing19-Nov-13 11:09 
GeneralRe: ... WHY?! Pin
Quirkafleeg25-Nov-13 22:36
Quirkafleeg25-Nov-13 22:36 
GeneralRe: ... WHY?! Pin
Bernhard Hiller19-Nov-13 22:22
Bernhard Hiller19-Nov-13 22:22 
GeneralRe: ... WHY?! Pin
ZurdoDev20-Nov-13 1:24
professionalZurdoDev20-Nov-13 1:24 
GeneralRe: ... WHY?! Pin
Matt U.20-Nov-13 3:15
Matt U.20-Nov-13 3:15 
GeneralRe: ... WHY?! Pin
Bernhard Hiller20-Nov-13 23:12
Bernhard Hiller20-Nov-13 23:12 
GeneralRe: ... WHY?! Pin
Matt U.21-Nov-13 3:14
Matt U.21-Nov-13 3:14 
GeneralRe: ... WHY?! Pin
Bernhard Hiller21-Nov-13 21:56
Bernhard Hiller21-Nov-13 21:56 
GeneralRe: ... WHY?! Pin
Matt U.22-Nov-13 3:38
Matt U.22-Nov-13 3:38 
JokeRe: ... WHY?! Pin
walterhevedeich25-Nov-13 22:54
professionalwalterhevedeich25-Nov-13 22:54 
GeneralRe: ... WHY?! Pin
Bernhard Hiller25-Nov-13 23:35
Bernhard Hiller25-Nov-13 23:35 
GeneralRe: ... WHY?! Pin
Giuseppe Tollini21-Nov-13 9:33
Giuseppe Tollini21-Nov-13 9:33 
GeneralRe: ... WHY?! Pin
Matt U.21-Nov-13 10:03
Matt U.21-Nov-13 10: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.