Click here to Skip to main content
15,890,438 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.

 
GeneralWhy Static Const Almost Always Trumps Const Pin
David A. Gray2-Jul-18 10:30
David A. Gray2-Jul-18 10:30 
GeneralRe: Why Static Const Almost Always Trumps Const Pin
Chris Maunder2-Jul-18 10:35
cofounderChris Maunder2-Jul-18 10:35 
GeneralRe: Why Static Const Almost Always Trumps Const Pin
David A. Gray2-Jul-18 10:37
David A. Gray2-Jul-18 10:37 
GeneralRe: Why Static Const Almost Always Trumps Const Pin
Peter_in_27802-Jul-18 17:41
professionalPeter_in_27802-Jul-18 17:41 
GeneralRe: Why Static Const Almost Always Trumps Const Pin
David A. Gray2-Jul-18 21:08
David A. Gray2-Jul-18 21:08 
GeneralGood Regular Expression Fiddle Pin
David A. Gray27-Jun-18 8:20
David A. Gray27-Jun-18 8:20 
GeneralRe: Good Regular Expression Fiddle Pin
Mike Hankey27-Jun-18 9:21
mveMike Hankey27-Jun-18 9:21 
GeneralRe: Good Regular Expression Fiddle Pin
David A. Gray27-Jun-18 9:52
David A. Gray27-Jun-18 9:52 
Thank you for reminding me about Expresso. Though I've seen it before, I've never put forth the effort to install it.

A quick look at the screen shot on his home page tells me right away why you like it; it's a full-service regular expression editor that looks like it would meet most needs of anyone whose use of regular expressions is infrequent, and would be a nice productivity tool for experienced regular expression authors.

Working with Perl for the last 20 years has required becoming fairly comfortable reading and writing regular expressions. Although I write less Perl today than I did fifteen years ago, my general purpose text editor, UltraEdit, has supported Perl/AWK style usage of regular expressions in its find and replace dialog boxes for at least the last nine years, and I use them regularly. Hence, between the two, I can usually cobble together a usable expression pretty quickly. I found this online fiddle form when I went in search of a regular expression idiom that I have almost never used, the "not followed by" idiom. Incidentally, I needed it in a regular expression to search for a particular type of syntax error in a manually edited Visual C++ project configuration file. (I know, I have no business editing those .vcxproj files by hand, but I've become somewhat obsessed lately with fully parameterizing my build configurations, which can be done much more quickly by editing the configuration directly than by clicking around in the Visual Studio property page editor.

While I will probably download Expresso for use in my home office, there remains, nevertheless, a place for online fiddle forms when I must use a computer that doesn't belong to me, meaning that I must get permission to install tools of my choosing on it. That goes double when I need to borrow a clients's computer for only a few minutes to help them solve a problem.
David A. Gray
Delivering Solutions for the Ages, One Problem at a Time
Interpreting the Fundamental Principle of Tabular Reporting

GeneralRe: Good Regular Expression Fiddle Pin
David A. Gray27-Jun-18 10:01
David A. Gray27-Jun-18 10:01 
GeneralRe: Good Regular Expression Fiddle Pin
Mike Hankey27-Jun-18 10:19
mveMike Hankey27-Jun-18 10:19 
GeneralRe: Good Regular Expression Fiddle Pin
David A. Gray27-Jun-18 10:22
David A. Gray27-Jun-18 10:22 
GeneralRe: Good Regular Expression Fiddle Pin
inch29-Jun-18 1:22
inch29-Jun-18 1:22 
GeneralRe: Good Regular Expression Fiddle Pin
David A. Gray29-Jun-18 7:56
David A. Gray29-Jun-18 7:56 
GeneralPrepping for SQL Server Update Pin
#realJSOP21-Jun-18 5:13
mve#realJSOP21-Jun-18 5:13 
GeneralRe: Prepping for SQL Server Update Pin
S Douglas21-Jun-18 5:29
professionalS Douglas21-Jun-18 5:29 
GeneralRe: Prepping for SQL Server Update Pin
#realJSOP21-Jun-18 6:33
mve#realJSOP21-Jun-18 6:33 
GeneralRe: Prepping for SQL Server Update Pin
S Douglas21-Jun-18 10:13
professionalS Douglas21-Jun-18 10:13 
GeneralRe: Prepping for SQL Server Update Pin
#realJSOP21-Jun-18 10:27
mve#realJSOP21-Jun-18 10:27 
GeneralRe: Prepping for SQL Server Update Pin
Dave Kreskowiak21-Jun-18 7:45
mveDave Kreskowiak21-Jun-18 7:45 
GeneralRe: Prepping for SQL Server Update Pin
#realJSOP21-Jun-18 8:33
mve#realJSOP21-Jun-18 8:33 
GeneralRe: Prepping for SQL Server Update Pin
Dave Kreskowiak21-Jun-18 10:28
mveDave Kreskowiak21-Jun-18 10:28 
GeneralRe: Prepping for SQL Server Update Pin
#realJSOP26-Jun-18 5:56
mve#realJSOP26-Jun-18 5:56 
GeneralRe: Prepping for SQL Server Update Pin
Dave Kreskowiak26-Jun-18 6:19
mveDave Kreskowiak26-Jun-18 6:19 
GeneralRe: Prepping for SQL Server Update Pin
#realJSOP26-Jun-18 7:04
mve#realJSOP26-Jun-18 7:04 
GeneralRe: Prepping for SQL Server Update Pin
Dave Kreskowiak26-Jun-18 7:33
mveDave Kreskowiak26-Jun-18 7:33 

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.