4,891 reputation
22046
bio website
location
age
visits member for 3 years, 7 months
seen Sep 16 '13 at 22:05

no blog, no github yet.


Feb
19
comment Changing behaviour of abstract class without modifying subclasses
The pattern is called functional programming (as opposed to OOP).
Feb
19
awarded  Caucus
Feb
11
comment Does a “QA Programmer” style job exist?
Maintenance programmer maybe? The funny thing is that many people hate to do only maintenance, so people like you are hard to find, and therefore these positions will be given some weird, fancy-sounding titles in order to find people who like to do maintenance.
Feb
4
comment What's a good way to explain the need for pointing to a pointer?
Even a higher-level language like C# has [under the hood] a pointer to pointer void foo (ref myObject){...} as opposed to using a single pointer - void foo (myObject){...}. In the second case you can change the content of myObject but not its address. In the first case you can also change the address of myObject, say by doing myObject = new MyObject(). When passed by "ref" (pointer to a pointer), this address change will survive after the method is done. This is useful if you need to return multiple things and you hate using Tuples, because .Item1, .Item2, .Item3 do not help
Feb
4
comment Design guidelines for this scenario in C#?
@Praveen, can't you just find a few dlls that are installed on your friend's computer and include them in your project as binary?
Jan
19
comment Need some input on storing stdin, stdout, stderr information for debugging
@ratchet freak, and then dump them all into the same file? How can I know with precision which exact line of stdin corresponds to which line of stdout? I do not suppose there exists a way to echo stdin automatically, so I would need to log it every time I read from stdin, right?
Jan
19
asked Need some input on storing stdin, stdout, stderr information for debugging
Jan
7
comment Is code duplication a necessary evil in C?
One could also generate repetitive C code using external templating languages / tools or a shell script or using ant or ...
Jan
4
comment What are the differences between algorithms using data structures and algorithms using databases?
As a general rule I would say - use a database if you can, but if it becomes too slow, then resort to using the data structures. Data duplication (e.g. caching) is bad because you have to keep the two in sync, so avoid it unless you cannot.
Jan
4
comment What are the differences between algorithms using data structures and algorithms using databases?
The datomic.com database is closer to the user than the traditional relational ones. Are you only looking at the traditional databases?
Dec
25
comment Maintenance wise, is `else while` without intervening braces considered safe?
+1 Smart C++ compilers can inline a function. In .Net environment small functions are better due to JIT.
Dec
11
comment What's so great about Clojure?
Any teenager living in a basement can pick up Python and Ruby in a matter of few months. If that is all they ever want to use, then they will never get out of the basement. I am not saying that someone who has done professional Python development for many years is a lesser mortal comparing to someone who writes embedded C, but if Python and Ruby is all they know and all they ever want to know, then something is fishy. By the way, it took me personally over 6 years after graduating to discover and appreciate functional programming and Lisps. My first reaction to Scheme was a knee-jerk.
Dec
9
comment What steps should be taken to make sure your software is usable by disabled people?
You need a double blind blind usability study - e.g. try to get some real feedback instead of trying to imagine something.
Dec
6
comment How can I track programming productivity on a daily basis?
codinghorror.com/blog/2012/10/todont.html
Dec
6
comment Reading the team git log like a newsfeed every morning?
Your co-workers might feel like their performance/abilities are being measured under a microscope. I work at a place with a lot of git commits. Git encourages very frequent commits. I have read code changes in the past under a different VCS - one that encouraged less frequent and more complete checkins.
Dec
6
comment Do there exist programming languages where a variable can truly know its own name?
Great! One more thing - please take a look at my edit above. How would you define an error-checking function in C that would survive automatic refactoring (renaming of the variable name) if it is at all possible?
Dec
6
revised Do there exist programming languages where a variable can truly know its own name?
added 75 characters in body
Dec
6
comment Do there exist programming languages where a variable can truly know its own name?
@David Cowden, per my edit above, error-checking code could benefit from such feature.
Dec
6
revised Do there exist programming languages where a variable can truly know its own name?
added 1049 characters in body
Dec
6
comment Do there exist programming languages where a variable can truly know its own name?
Anton, could you provide an example of a macro and the address of? I am familiar with the address of, but I think that other readers would benefit from seeing more details in the answer. Thanks.