Archives
-
Your Daily Cup of WTF - færsla
Reader Stefán Jökull Sigurðarson, whose middle name means Glacier (now, how awesome is that!), sent along this chunk of C-code, straight from Iceland.
-
Your Daily Cup of WTF - Because New() Fails Way Too Much
First and foremost, thanks for the WTF submissions! Please keep 'em coming. They don't have to be code snippets or diagrams, just something technical-related that made you say or think What the F--! And now that I think about it, I'd love to see some crazy Boss Emails and Memos. I had a trove of them saved from the last company I was at, but lost them all. So let's see yours! Just use the Contact Form, and feel free to include a website to link back to.
-
Smart Paster 1.1 Add-In - StringBuilder and Better C# Handling
I received some great ideas for new features and thought I'd incorporate them in a new version. Here's what's new:
-
Your Daily Cup of WTF - Who Needs Stored Procedures, anyways?
I'm sure we've all heard, over and over, that inline SQL is generally a bad practice, and that we should use Stored Procedures when possible. But let's be realistic for a minute. Who wants to write a stupid stored procedure for every stupid little simple query needed. Like, for example, this query from an actual, production, report-producin' web page:
-
Your Daily Cup of WTF - Batman()
As a certified Überprogrammer, I get quite annoyed with inexperienced maintenance programmers looking at my code and asking questions that any coder with a clue would instinctually know. Take for example this function:
-
Your Daily Cup of WTF - IsTrue()
Yesterday, we learned that sarcasm is officially dead. Oy. So today, let me disclaim by saying that I am not actually advocating this as a good practice. Just trying to toss in a little humor. And also, let me applogize already for having a weak example today, been too busy to dig for some real gems. And with out further ado, your Daily Cup of WTF:
-
Now "Paste As.." in VS.NET with Smart Paster Add-In
I don't know about you guys (and gals), but I often find myself pasting large string literals (SQL queries or dialogs) into code. It started to become quite a hassle to fire up EditPlus, paste, replace line breaks with quote characters, copy, and paste it into Visual Studio. So, I put together an add-in to help with this task and called it Smart Paster.
-
Your Daily Cup of WTF - tblStaffDirectory
I suspect this one may be a bit less common than tblState ...
-
Your Daily Cup of WTF - tblState
Naturally, all tables referencing tblState link with a column “intStateID”
-
Your Daily Cup of WTF