4,851 reputation
22146
bio website
location
age
visits member for 4 years
seen Sep 16 '13 at 22:05

no blog, no github yet.


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 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.
Dec
6
asked Do there exist programming languages where a variable can truly know its own name?
Dec
1
comment Is testable code actually more stable?
OOP is largely a problem news.ycombinator.com/item?id=3061907
Nov
30
revised Which is more maintainable — boolean assignment via if/else or boolean expression?
added 75 characters in body
Nov
30
comment Which is more maintainable — boolean assignment via if/else or boolean expression?
@Andres F., thanks, I brain-farted. I meant "hard to read and understand".
Nov
30
comment Which is more maintainable — boolean assignment via if/else or boolean expression?
@Ondra Morský, thanks ... the compiler would have caught this for me.
Nov
30
revised Which is more maintainable — boolean assignment via if/else or boolean expression?
deleted 1 characters in body