Choosing Between C++ and C#
During a recent Stackoverflow.com podcast, Jeff Atwood and Joel Spolsky discussed the question: When is it correct to develop software (Windows software, in particular) in native C and/or C++? Joel’s...
View ArticleThe Language Wars
Anybody who’s ever seen Full Metal Jacket will remember the U.S. Marine Corps Rifleman’s Creed: This my rifle. There are many like it but this one is mine. It is my life. I must master it as I must...
View ArticleHow I Built a Working Poker Bot, Part 1
[Update: two of the original authors of this post have moved on to greener pastures, and have asked us to mothball this content in preparation for an upcoming book. Thanks for all the feedback and stay...
View ArticleCoding the Tweet: Building a Custom Branded Twitter Application
UPDATE: The Coding the Tweet demo application and source code have been updated to support PIN-based authorization through oAuth. With millions of users and an ecosystem saturated with over 700 custom...
View ArticleCoding the Tweet, Redux
A few months ago we built a simple Twitter desktop client with oAuth support using C# and .NET. Since then, there have been some breaking changes in the Twitter oAuth implementation, including a new...
View ArticleSyntax Highlighting a la StackOverflow with Google Prettify
Enclosed find notes for implementing a simple version of Stackoverflow-style code syntax highlighting with Google Prettify in two scenarios: Prettify all code on the page, at load Prettify code as the...
View ArticleMoonlighting with OpenTK
The OpenTK bindings for OpenGL are clean, lightweight, and complete. Definitely recommended for any .NET developer interested in taking a swing at 3D graphics programming under OpenGL. // Draw a...
View ArticleAvoiding Duplicates in Feedburner and Google Reader
Like many sites, we use Feedburner to handle RSS and email subscriptions. Depending on the needs of your site, there are some good reasons to do this—particularly if bandwidth is a concern. But if...
View ArticleOf Gravatars and Robohashes
Webmasters who use Gravatar to decorate comments with custom avatar images will be familiar with the d parameter of the Gravatar image request. <img...
View ArticleDefensive Programming Example #1
The other day I stumbled across this bit of code, intended to randomly return one of four messages. // Choose one of 4 messages to display randomly string theMsg = ""; Random r = new Random();...
View Article