172 reputation
6
bio website
location
age 29
visits member for 3 years, 3 months
seen Jun 2 '13 at 12:53

Latte art is much, much more difficult than even I imagined.


Sep
24
awarded  Autobiographer
Sep
13
awarded  Supporter
Apr
19
awarded  Popular Question
Apr
5
comment How do you maintain focus when a particular aspect of programming takes 10+ seconds to complete?
How about making the browser take ~20 seconds to startup, so that your attention wanders and you arrive back at your original code?
Apr
1
awarded  Nice Question
Apr
1
comment Using C++ but not using the language's specific features, should switch to C?
Nice. One more nit: functions in C can be overloaded (think printf), but in doing so you lose any type checking. There is no way to have a finite set of acceptable declarations: it's either 1 (and you get type checking) or "many" (and lose all type checking, at great personal risk). As with most things in C, it's possible but often uncomfortable.
Apr
1
awarded  Student
Apr
1
awarded  Citizen Patrol
Apr
1
comment Using C++ but not using the language's specific features, should switch to C?
structs in C can, in fact, be used to encapsulate methods. You simply create a struct of function pointers, and initialize them to point to whichever functions you want. Have a look at lxr.linux.no/linux+v3.3/include/linux/fs.h#L1598 for an example.
Apr
1
asked Is there a language between C and C++?