Five Min Tech
Five Minute tech articles. Meant to be a quick read, expressing my opinion or advice on a specific topic concerning.....whatever really.
So, you might have noticed the badges on the left. Let me give you a run down. I'll be presenting the C# Variety Show at the following places, at the following dates...feel like i'm on tour Lansing .Net Usergroup April 17th Central Ohio Day Of .Net April 19th West Michigan Day of .Net May 10th Eastern Tenn. .Net User Group June 24th So, i'm going to be busy. I'm still waiting to hear back from the Cleveland Day of .net and a few user groups in Texas. Keep an eye out, The C# Variety show may be comming...
In my travels around .Net land, I've come to know, love and exploit several denizens of the tribe of C#. Some of these have already been written about, such as Yield return and the => operator. But more recently, I've had the opportunity to educate some fellow travelers on two of the most useful, but least used operator. Those being the Comparison Operator (?:) and the Null Coalescing Operator (??). Lets start our adventure by watching the Comparison Operator in it's natural environment. If you...
We've all heard the buzz acronym TDD. But has anyone actually put these things to use in a practical way? I know of a couple of guys who have, but for the most part, a majority of developers tend to shy away from this new fangled gadgetry. The main reason, I believe, is that it can be difficult to justify a learning curve when: A solution in a current ver. of code exists Management is on your ass to just "Get it done" Open source projects are a natural contraceptive Now that I've stated the obvious,...
So, how often do you get to sit around with your penis thinking about how you can use it to write less code? Apparently the guys over at MS were when they introduced Lambda expressions and the penis operator "=>" to C# 3.0. At any rate, what follows is my take on a bit of history leading up to promiscuous use of "=>". Ok, let me back up a little bit. Lambda expressions are essentially just Functions. They are common in functional programming languages like Lisp, F# and ML. They are also a new...
Welcome back to our newest installment of Tech in 5 minutes. Today were going to discuss the age old question that every modern family has to confront: Excellent point...however, not today, I meant this one. Special Huggings...yeah in my world that means: Kid k = mom + dad; OR Kid k = (mom + alcohol) + (dad+ alcohol) So now I will be your doctor of love and teach you to make kids. Not only that, but we can illustrate all the major aspects of life via operator overloading, Like The first job, The...
In the sprit of the coming New Year, I thought I’d bring you all this little egg of wisdom. By egg I mean code and by wisdom I mean code I could write before I got hammered. When I go out with the Wife to drink, (Yes she can do more than fill the fridge and get me beer….hell, half the time she doesn’t even get me the beer, I have to get off my ass and do it myself!) We like to drink as much as possible, not only that, but we love to sample every brewery possible. We have a few requirements, for...
(This one is maybe more of a 10 min post. you'll survive) Lots of code in this one, so I'll cut to the chase. I have a woman. Shocking i know. Right now your thinking "But Dave, your such an awesome code ninja! how could you allow yourself to be tied down" (you didn't know i was a mind reader too did ya). To that i have to say, My womans job is to: Fill the fridge Get me beer I know, isn't she lucky? I appreciate my wife so much that i will show you here how i have immortalized her in code. Not only...
This is for all of you out there who say "I use design patterns that I don't know by name". I'm sure everyone does. So, here is one you probably use in some likeness that you may not have known, and a simple example of how it's used. singleton noun a single object (as distinguished from a pair) a set containing a single member the playing card that is the only card in a suit held in a bridge hand as initially dealt Long and short. I only have/want one of it. Kinda like what you say after your first...