Click here to Skip to main content
15,886,919 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: Color Me Spoiled: XAML for WPF Can't See Uncompiled Resource Strings Pin
CodeWraith15-May-19 2:57
CodeWraith15-May-19 2:57 
GeneralRe: Color Me Spoiled: XAML for WPF Can't See Uncompiled Resource Strings Pin
Gary Wheeler15-May-19 3:00
Gary Wheeler15-May-19 3:00 
GeneralRe: Color Me Spoiled: XAML for WPF Can't See Uncompiled Resource Strings Pin
CodeWraith15-May-19 3:51
CodeWraith15-May-19 3:51 
GeneralRe: Color Me Spoiled: XAML for WPF Can't See Uncompiled Resource Strings Pin
Gary Wheeler14-May-19 8:37
Gary Wheeler14-May-19 8:37 
GeneralRe: Color Me Spoiled: XAML for WPF Can't See Uncompiled Resource Strings Pin
David A. Gray14-May-19 12:22
David A. Gray14-May-19 12:22 
GeneralRe: Color Me Spoiled: XAML for WPF Can't See Uncompiled Resource Strings Pin
Gary Wheeler15-May-19 1:56
Gary Wheeler15-May-19 1:56 
GeneralRe: Color Me Spoiled: XAML for WPF Can't See Uncompiled Resource Strings Pin
David A. Gray15-May-19 5:55
David A. Gray15-May-19 5:55 
GeneralWizzardWrx .NET API Core Available on NuGet Pin
David A. Gray2-May-19 9:26
David A. Gray2-May-19 9:26 
The core features of the WizardWrx .NET API are now available as a set of NuGet packages. Thanks to the dependency chain, you can get all of them in one go by installing the WizardWrx.Core library, found at https://www.nuget.org/packages/WizardWrx.Core/. Otherwise, search for "WizardWrx" to see the list. Since they rely on the existing library documentation at WizardWrx .NET API, the documentation included with the packages is scant. However, each package includes a ReadMe file that points to the real documentation, which is MSDN-style documentation generated by DocFX. The ReadMe opens in Visual Studio when the installation completes, and the package includes a Markdown copy in addition to the text file that displays in Visual Studio.

The WizardWrx .NET API is a set of libraries that expose a rich set of general-purpose helper classes for use in projects that target the Microsoft .NET Framework. Among other things, they offer the following.

1) Syntactic sugar, such as the routines that identify the first, last, and next-to-last iteration of a FOR loop, convert subscripts to and from ordinals (zero-based versus one-based subscripts), compute a modulus (remainder), and perform decimal shifts

2) Prse dynamically generated format control strings (used with string.format and such),

3) Reduce computing message digests to a single method call

4) Transparently convert Registry values of all types into native types (strings, integers of various sizes, and byte arrays)

5) Parse command line arguments for any program (command line or graphical),

6) Add numerous extension methods to system.string and system.IO.FileOnfo

7) Simplify working with the match groups returned by the Regular Expression engine

8) Dynamically generate format strings to compactly represent data in tabular format

9) Implement the Singleton design pattern in a way that fully leverages certain guarantees about the behavior of static constructors

10) Format and log exception reports, optionally recording them in a Windows Event Log and efficiently reporting them on the two standard console output streams, taking into account when either or both has been redirected to a file

11) Accurately identify the type of processor on which the code is executing and the Windows subsystem (character mode, graphical, etc.) in which it is executing

12) Walk the dependency tree of any executing assembly

13) Sort collections of FileInfo objects, so that the files they represent can be processed in any order

14) Provide scores of handy symbolic constants to disambiguate and properly document your code

The3re is much more; these are the highlights, most of which I use daily.
David A. Gray
Delivering Solutions for the Ages, One Problem at a Time
Interpreting the Fundamental Principle of Tabular Reporting


modified 4-May-19 2:57am.

GeneralRe: WizzardWrx .NET API Core Available on NuGet Pin
Dewey2-May-19 16:50
Dewey2-May-19 16:50 
PraiseRe: WizzardWrx .NET API Core Available on NuGet Pin
RickZeeland2-May-19 20:32
mveRickZeeland2-May-19 20:32 
GeneralRe: WizzardWrx .NET API Core Available on NuGet Pin
David A. Gray3-May-19 9:01
David A. Gray3-May-19 9:01 
GeneralRe: WizzardWrx .NET API Core Available on NuGet Pin
RickZeeland3-May-19 20:15
mveRickZeeland3-May-19 20:15 
GeneralRe: WizzardWrx .NET API Core Available on NuGet Pin
David A. Gray3-May-19 20:17
David A. Gray3-May-19 20:17 
GeneralRe: WizzardWrx .NET API Core Available on NuGet Pin
RickZeeland3-May-19 20:34
mveRickZeeland3-May-19 20:34 
GeneralRe: WizzardWrx .NET API Core Available on NuGet Pin
David A. Gray3-May-19 20:58
David A. Gray3-May-19 20:58 
PraiseRe: WizzardWrx .NET API Core Available on NuGet Pin
RickZeeland3-May-19 21:02
mveRickZeeland3-May-19 21:02 
GeneralRe: WizzardWrx .NET API Core Available on NuGet Pin
David A. Gray3-May-19 21:07
David A. Gray3-May-19 21:07 
PraiseRe: WizzardWrx .NET API Core Available on NuGet Pin
RickZeeland3-May-19 23:00
mveRickZeeland3-May-19 23:00 
GeneralRe: WizzardWrx .NET API Core Available on NuGet Pin
David A. Gray5-May-19 16:29
David A. Gray5-May-19 16:29 
GeneralRe: WizzardWrx .NET API Core Available on NuGet Pin
Marc Clifton3-May-19 9:01
mvaMarc Clifton3-May-19 9:01 
GeneralRe: WizzardWrx .NET API Core Available on NuGet Pin
RickZeeland3-May-19 21:07
mveRickZeeland3-May-19 21:07 
GeneralRe: WizzardWrx .NET API Core Available on NuGet Pin
User 110609796-May-19 10:39
User 110609796-May-19 10:39 
GeneralRe: WizzardWrx .NET API Core Available on NuGet Pin
David A. Gray6-May-19 11:10
David A. Gray6-May-19 11:10 
GeneralRe: WizzardWrx .NET API Core Available on NuGet Pin
Chris Copeland7-May-19 4:34
mveChris Copeland7-May-19 4:34 
GeneralRe: WizzardWrx .NET API Core Available on NuGet Pin
David A. Gray7-May-19 4:54
David A. Gray7-May-19 4:54 

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.