oop++
so in the process of converting all my flat c code to a more object oriented paradigm, i created a class that automatically converts endian-ness. it's kinda neat. but it does illustrate many of the things i don't like about oop. old way: short y = 0x1234; short x = NativeToLittleEndian(y); new way: short y = 0x1234; EndianWidget< short> x = y; the class should really only be used as fields in classes that are read from and written to files. but you can easily make all of your variables little endian and cripple your big endian machine.