Post Profile

CodeSOD: Cases, Cases, Cases

Paul R. shows us a classic example of the sort of case statement that maybe, you know, never should've been implemented as a case statement: It is cut and paste to the extreme.  Even worse, as fields were added, someone would have to go in and update this block of code.  This massive block was replaced with... var fieldName = reader["TemplateFieldName"].ToString(); heCommands = theCommands.
read more


Related Posts

Ava DuVernay Wants To Remake Charlie And The Chocolate Factory

Entertainment / Film : Cinema Blend News

We've been in the middle of a bunch of movie remakes lately, so it shouldn't be surprising that someone out there might be interested in remaking a classic like Charlie and The Chocolate Factory, Roald Dahl's classic and still popul...

ROGER SIMON: The ‘Dreamers’ Can Stay but Never Vote. Under no circumstances can or should someon…

US Politics / Conservative : Instapundit

ROGER SIMON: The ‘Dreamers’ Can Stay but Never Vote. Under no circumstances can or should someone who has arrived in our country illegally, no matter at what age, be allowed ever to vote in our elections at any level — federal, stat...

CodeSOD: We Don't Need no Stinking Elses

Technology / Programming : The Daily WTF

We've all seen it before. I dare say we've all been a party to it. First, we look at a block of code that needs to be modified. Then we determine which criteria needs to be added to address the case that we've been tasked to impleme...

CodeSOD: SQL Splits

Technology / Programming : The Daily WTF

"I should probably start by saying that I am not a SQL expert," Paul wrote. "Sure, I've written my share of SELECT statements, plenty of UPDATE statements, and even a few ALTER statements, but beyond that... nada." "Fortunately, we ...

A practical CASE Statement Example

Programming / Windows Development : CodeProject

What is a SQL case statement? Well, it's much like a switch statement in a development language. It allows you to test several different cases for a field and determine what you would like to do for each one.If you have ever visited...


Copyright © 2016 Regator, LLC