Month: November 2017
C# 8.0 Features: A Glimpse of the Future
It’s been almost 20 years since Microsoft released the first version of the C# language. From its inception—when some unjustly deemed it a mere Java copycat—until now with the upcoming...
Unit Testing Doesn’t Affect Codebases the Way You Would Think
I’ve just wrapped up another study. (The last one was about singletons, if you’re interested.) This time, I looked at unit testing and the impact it has on codebases. It...
5 Tips to Help You Visualize Code
Source code doesn’t have any physical weight — at least not until you print it out on paper. But it carries a lot of cognitive weight. It starts off simply...
A problem with extension methods
We like extension methods. When named accordingly they can both make the caller code clearer, and isolate static methods from classes on which they operate. But when using extension methods,...
CRAP Metric Is a Thing And It Tells You About Risk in Your Code
I won’t lie. As I thought about writing this post, I took special glee in contemplating the title. How should I talk about the CRAP metric? *Snicker* I guess that...
Code Reuse is Not a Good Goal
Wait, wait, wait. Put down the pitchforks and listen for a minute. You’re probably thinking that I’m about to tout the “virtues” of copy/paste programming or something. But I assure...