Today I stumbled upon GRASP. I give it a 5 out of 10.
Category Archives: Design
Gallery of Processor Cache Effects, MMUs, CPUID, etc.
Found Gallery of Processor Cache Effects… also of interest CPU cache, Memory Management Unit, and CPUID on Wikipedia.
What every programmer should know about memory
Just stumbled upon What every programmer should know about memory:
C++ Virtual Destructors and Base Classes
I’ve been wondering what happens when a derived class defines a virtual destructor. What about its base destructors? Are they called? If so, when? I finally read the right paragraph in The C++ Programming Language (pg 70):
A virtual destructor is essential for an abstract class because an object of a derived class is usually manipulated through a pointer to a base class. Then, the virtual function call mechanism ensures that the proper destructor is called. That destructor then implicitly invokes the destructors of its bases and members.
Still not sure when the bases and members are destructed, presumably after the derived virtual destructor…
C++ nested classes
Am reading The C++ Programming Language, 4ed, by Bjarne Stroustrup and his sixteenth suggestion for Java programmers (pg 21) is:
A C++ nested class does not have access to an object of the enclosing class.
I didn’t know that!
C++ variables and references
Am reading The C++ Programming Language, 4ed, by Bjarne Stroustrup and his sixth suggestion for Java programmers (pg 21) is:
Remember: a variable is never implicitly a reference.
I didn’t know that!
Tufte CSS
Check out Tufte CSS…
Local language names
See here for a list of languagse along with their code and local name.
Favicon & App Icon Generator
Kickass Favicon & App Icon Generator…
USA Time Zones in PHP
See here for a list of US time zones.
Eastern ........... America/New_York Central ........... America/Chicago Mountain .......... America/Denver Mountain no DST ... America/Phoenix Pacific ........... America/Los_Angeles Alaska ............ America/Anchorage Hawaii ............ America/Adak Hawaii no DST ..... Pacific/Honolulu