13,476 reputation
43760
bio website
location Minneapolis, MN
age
visits member for 4 years, 7 months
seen 3 hours ago

Aug
4
comment Why do VMs not execute the assembly directly?
Whenever someone uses the phrase "ones and zeros" 99% of the time they are confusing whatever they are trying to describe. Don't think of "ones and zeros", everything is in bytes.
Jul
26
comment Is too much whitespace a bad thing?
An example would be helpful.
Jul
24
comment How much data should exceptions hold?
Never say never. Furthermore, exceptions are often used for error conditions you do expect to have to deal with, and often are. Even something as simple as opening a file is best handled via exceptions.
Jul
23
comment Why is polling accepted in web programming?
There are many perfectly sensible solutions and algorithms in computer-space that would be completely absurd to do in meatspace.
Jul
3
comment How does the “Fourth Dimension” work with arrays?
@ColtonAllen: I'm not aware of any term for that. That just sort of begins to be conceptualized as a hierarchical data structure rather than an array.
Jun
22
comment How to determine number of resources to be allocated in a software project?
When you say "resources", do you really mean people?
Jun
15
comment Whole Program in CASE
You should not be worrying about the efficiency of a function call yet. Write idiomatic, sensible code first, then measure for optimization only after a problem is identified.
Jun
3
comment Infinite loop with a singleton - does this type of issue have a name?
Best way to avoid it: Don't use singletons.
Jun
2
comment Is it good practice to analyse who introduced each bug?
This is both a duplicate questions and a terrible idea, for reasons documented in the duped question.
May
27
comment Should a package manager modify your .bashrc file?
Furthermore, this answer's suggestion to create a wrapper script is the only answer that will work for all shells.
May
27
comment Should a package manager modify your .bashrc file?
@GlenH7: This question is essentially an XY problem: meta.stackexchange.com/questions/66377/what-is-the-xy-problem, where the need for environment variables is the true problem to be solved.
May
21
comment Dealing with not knowing parameter names of a function when you're calling it
I think the answer is "Don't name your variables 'deserializedArray'" ?
May
19
comment Should I feel “uncomfortable” using auto in C++?
@ereOn: Using iterators announces that the body of the loop will only deal with a single element at a time, whereas indexing you may use multiple by offsetting the index. Each has its advantages. Additionally, while the performance of iterator vs indexing for vectors is pretty much the same, that is not necessarily true for other containers, where one can be significantly faster than the other. stackoverflow.com/questions/131241/…
May
1
comment How and when should I design a simple mark-up language parser?
@tp1: It's not strictly required. There is a lot of valuable information to be learned from taking a stab at it, and figuring everything out on your own, and having to work through many of the problems that the originators of formal language theory had to work out.
Apr
28
comment How to explain that catch(…) is wrong?
catch(...) like most software constructs, is not inherently evil, only when it is misused.
Apr
26
comment How to make consistent progress towards the goal of becoming better, as opposed to just coding for fun?
The answer is simple: always be working on something that is currently too difficult and is outside your familiarity zone.
Apr
20
comment Do compiler-writers actually need to 'understand' machine code?
I would add there is really no substantial difference between assembly and machine code, conceptually. You are not really going to have much benefit, once knowing how to use a particular instruction, what that instruction's opcode is. If you know how to use MOV, it doesn't really matter if you don't know that it is instruction 27, which I think is similar to what @SK-logic is describing.
Apr
19
comment Why convert to assembly language instead of machine code?
It's worth adding that since assembly language is basically just giving mnemonics to registers and op codes, and is a pretty straight translation between the two, its not like there is any meaningful difference. It's somewhat like asking "why does a newspaper writer delivers a text file instead of setting up the printing press".
Apr
18
comment Encyption for passwords in config file?
@RobY: because then he could not decrypt them and use them to connect. Using asymmetric encryption would require support on the external services end.
Apr
16
comment When is it worth NOT using a Factory?
Don't go crazy and have everything be some super ridiculous abstract system, you'll often be solving non-existant problems and in the process creating new problems for no benefit. Consumers of factories need to know details of the factories too, in many situations using a factory just adds an unnecessary layer of abstraction over the constructor.