Click here to Skip to main content
15,885,032 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: Burn Baby, Burn! Pin
MSBassSinger20-Jul-18 5:36
professionalMSBassSinger20-Jul-18 5:36 
GeneralRe: Burn Baby, Burn! Pin
Richard Deeming20-Jul-18 5:38
mveRichard Deeming20-Jul-18 5:38 
GeneralRe: Burn Baby, Burn! Pin
MSBassSinger20-Jul-18 6:28
professionalMSBassSinger20-Jul-18 6:28 
GeneralRe: Burn Baby, Burn! Pin
Richard Deeming20-Jul-18 6:52
mveRichard Deeming20-Jul-18 6:52 
GeneralRe: Burn Baby, Burn! Pin
MSBassSinger20-Jul-18 7:01
professionalMSBassSinger20-Jul-18 7:01 
GeneralRe: Burn Baby, Burn! Pin
Robert/Not The Pirate20-Jul-18 8:41
professionalRobert/Not The Pirate20-Jul-18 8:41 
GeneralRe: Burn Baby, Burn! Pin
Slow Eddie20-Jul-18 14:31
professionalSlow Eddie20-Jul-18 14:31 
GeneralRe: Burn Baby, Burn! Pin
David A. Gray6-Oct-18 10:56
David A. Gray6-Oct-18 10:56 
Another important factor that is seldom mentioned in such discussions is the practice of assembling new code from reusable code, a practice that dates almost to the beginnings of electronic computing machinery.

Though Microsoft did its part to encourage this with the Base Class Library that ships with the .NET Framework, the BCL has many shortcomings, and was never expected to be the "final solution" to the practice of assembling software from interchangeable parts (reusable code). It's called the Base Class Library for a good reason; it is a set of base classes, intended to provide a solid foundation upon which to build applications.

Soon after I began writing in C# (in late 2005), I began extending the BCL with my own library of helper classes that improve the development experience in several ways.
  • Among the shortcomings addressed by the resulting constellation of libraries is the addition of a set of symbolic constants intended to make the code that uses them easier to read and implicitly better documented.
  • Another shortcoming the library addresses is a simplifcation of certain multi-step processes into single operations. For example, computing a message digest over either a file or a string is a multi-step process comprised of an initialization phase, a processing loop, and a finalization phase. These I simplifed into single static method calls that reduce digesting a file or string to a single method call.
  • A third significant feature of the library is encapsulation of complex formatting and transformation operations into single method calls, such as formatting a byte array into a hexadecimal dump, or transforming the byte array returned by the embedded resource readers into an array of strings of the correct encoding and stripping away the Byte Order Mark put there by the editor that created it to document its encoding.
The WizardWrx .NET API is a constellation of class libraries that encompasses all of the above, and a lot more, about which you can learn by visiting the repository at GitHub - txwizard/WizardWrx_NET_API, where you can obtain a copy of the libraries, in source and binary form, and read the comprehensive HTML documentation available at Introduction to the WizardWrx .NET API.
David A. Gray
Delivering Solutions for the Ages, One Problem at a Time
Interpreting the Fundamental Principle of Tabular Reporting

GeneralRe: Burn Baby, Burn! Pin
André Pereira20-Jul-18 0:24
André Pereira20-Jul-18 0:24 
PraiseRe: Burn Baby, Burn! Pin
Gary Wheeler20-Jul-18 1:44
Gary Wheeler20-Jul-18 1:44 
GeneralRe: Burn Baby, Burn! Pin
jeron120-Jul-18 6:06
jeron120-Jul-18 6:06 
GeneralRe: Burn Baby, Burn! Pin
André Pereira20-Jul-18 6:53
André Pereira20-Jul-18 6:53 
GeneralRe: Burn Baby, Burn! Pin
jeron120-Jul-18 7:23
jeron120-Jul-18 7:23 
GeneralRe: Burn Baby, Burn! Pin
Abbas A. Ali20-Jul-18 6:39
professionalAbbas A. Ali20-Jul-18 6:39 
GeneralRe: Burn Baby, Burn! Pin
André Pereira20-Jul-18 7:18
André Pereira20-Jul-18 7:18 
GeneralRe: Burn Baby, Burn! Pin
Abbas A. Ali20-Jul-18 8:06
professionalAbbas A. Ali20-Jul-18 8:06 
GeneralRe: Burn Baby, Burn! Pin
André Pereira20-Jul-18 8:34
André Pereira20-Jul-18 8:34 
GeneralRe: Burn Baby, Burn! Pin
kalberts20-Jul-18 0:42
kalberts20-Jul-18 0:42 
GeneralRe: Burn Baby, Burn! Pin
André Pereira20-Jul-18 1:23
André Pereira20-Jul-18 1:23 
GeneralRe: Burn Baby, Burn! Pin
MSBassSinger20-Jul-18 5:41
professionalMSBassSinger20-Jul-18 5:41 
GeneralRe: Burn Baby, Burn! Pin
maze320-Jul-18 2:06
professionalmaze320-Jul-18 2:06 
GeneralRe: Burn Baby, Burn! Pin
Richard Deeming20-Jul-18 3:15
mveRichard Deeming20-Jul-18 3:15 
GeneralRe: Burn Baby, Burn! Pin
ttennebb20-Jul-18 3:30
professionalttennebb20-Jul-18 3:30 
GeneralRe: Burn Baby, Burn! Pin
Greg Lovekamp20-Jul-18 3:44
professionalGreg Lovekamp20-Jul-18 3:44 
GeneralRe: Burn Baby, Burn! Pin
Steven121820-Jul-18 6:17
professionalSteven121820-Jul-18 6:17 

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.