Reputation
9,846
Top tag
Next privilege 10,000 Rep.
Access moderator tools
Badges
1 20 51
Impact
~464k people reached

Feb
14
comment Writing code with language features yet to come in mind
Just a reminder (to non-C# programmers) as to the relevance of this question: see CallerMemberNameAttribute class (link to MSDN)
Feb
14
comment How do you usually compile C/C++ source code ? (Large code bases)
The first step is to understand the C++ compilation and linking process (FAQ on Stackoverflow). Pay attention to the intermediate files - the object files, and the static libraries.
Feb
14
comment Say I wanted to create a cross platform program that does not require a runtime/VM, am I stuck with C/C++?
OP is probably asking about Single File Application, which is quite common. Additional requirement is that this single-file application do not create additional files or modify the system in any way during its operations, i.e. it can be removed by merely deleting the application file. A third requirement is Cross-platform, which shouldn't be taken literally to mean "one binary file to rule them all", but rather "one code base that can compile to all platforms" with minimal workaround around platform differences on the programmer's shoulder.
Feb
14
comment Do algorithms depend on computer architectures?
Algorithms are specified against an Abstract Machine. A typical one that is an idealization of today's multi-core personal computers is called PRAM (Parallel Random Access Machine, sometimes further classified into EREW (exclusive memory read/write) or CRCW (concurrent memory read/write).
Feb
13
comment Should naming conventions be consistent or not across multiple programming languages in one project?
Regarding the duplicate vote, even though the title of the question is not an exact match, the currently accepted and highest-voted answer provides the strongest rationale for cross-language naming convention issues, which is to go with each language's conventions, and to remain pragmatic and flexible and to tolerate a small amount of inconsistencies.
Feb
12
comment Staying productive by keeping focus on a feature while developing
Learn how to refactor your code commits, bidirectionally.
Feb
11
comment Is it ok to replace optimized code with readable code?
Go ahead, but verify afterwards. In general, you must always verify your code changes, whether it's an optimization, functionality change, or code cleanup (including readability optimizations).
Feb
10
awarded  Sportsmanship
Feb
10
comment Why is the 'out' keyword used in two seemingly disparate contexts?
The connection is slightly more understandable if you look at the covariance and contravariance usage in System.Func<in T, out TResult> delegate.
Feb
10
answered Why Java is a factor 2-3 slower than equivalent C++ program?
Feb
9
revised “Design patterns”, “Reactive programming”, etc…How do these terms fit together?
tagged terminology
Feb
8
revised Is a programming language a set of programs or a set of instructions?
edited tags
Feb
8
comment Is a programming language a set of programs or a set of instructions?
A programming language is not the same as a "machine" ... Even though they may both use the phrase "to execute a program", the word "execute" has different meanings.
Feb
8
revised Dynamic Programming Problem - To find smallest integer number 'x' which contains only digits 1's and 0's such that x mod n = 0
added 1 character in body
Feb
8
answered Dynamic Programming Problem - To find smallest integer number 'x' which contains only digits 1's and 0's such that x mod n = 0
Feb
8
comment How does a DMA controller work?
This is a textbook on Operating Systems. It teaches a sufficient level of understanding to students who will be using or developing operating systems. It teaches what the software driver needs to do to make use of a DMA (by programming it), and to know the operations and the side-effects of DMA (such as the bus that will be occupied by DMA during its operation), so that the OS or software driver will know how to workaround such issues (such as allowing some less-critical system interrupts to be delayed. It is not a textbook for hardware design.
Feb
8
comment Accuracy proportional to size
To be frank I don't have a good understanding of what is the correct way to measure variance either, but maybe you can read about variance in general, on Wikipedia ...
Feb
8
comment How does a DMA controller work?
hmm... book?
Feb
8
comment How does a DMA controller work?
The "Ack" in step 4 is also suspicious. Doesn't the DMA already know the number of bytes to be copied?
Feb
8
comment How does a DMA controller work?
The arrow 3 in the diagram doesn't seem to match the text description ... congratulations. To determine which one is correct, the bus timing diagram for step 3 will be needed. More importantly, one needs to find out which device is responsible for holding the data signal in step 3. Does the disk controller sends out the data to DMA controller first, and then the DMA controller repeat the data (putting its own voltage onto the bus) to the memory?