Category Archives: Code

Petzold Ported

Charles Petzold’s “Programming Windows Fifth Edition” has been sitting on my bookshelf since a year or so after it was first published. My copy is worn. Very, very worn. I’ve gotten more mileage out of that book than nearly any … Continue reading

Posted in Code, News | Tagged , , | 1 Comment

D.NET Source Released

Cristi Vlasceanu has released the source to the D.NET compiler backend under the Microsoft Public License, with the qualifier that the code “is not of production quality” and “is intended for research and educational purposes.”

Posted in Code, News | Tagged | Leave a comment

Self-Configuration of Classes With Delegates

Sometimes you need to execute different code paths depending upon certain runtime parameters. For example, in graphics applications it is quite common to create different rendering paths based upon the graphics API features supported by the user’s graphics card. In … Continue reading

Posted in Code, D Programming | Leave a comment

Singletons In D

The intent of the Singleton pattern is described by the Gang of Four thusly: Ensure a class only has one instance, and provide a global point of access to it. Singletons are ubiquitous in object oriented programming. They are also, … Continue reading

Posted in Code, D Programming | 5 Comments

Some Useful Templates

Erik Rasmussen has posted a collection of D templates on his blog. You can use them to, as he says, “avoid the deadly programming sin of code duplication.” Thanks, Erik! Technorati Tags: D Programming Language, templates

Posted in Code | Leave a comment