44,817 reputation
8113192
bio website tech.turbu-rpg.com
location Seattle, WA
age 31
visits member for 3 years, 7 months
seen 26 mins ago
A lifelong programmer who's been coding in Delphi since its initial release and currently makes a living at it.

Apr
21
awarded  Good Answer
Apr
20
comment Is machine language always binary?
@Prog: That's right. Our abstractions are way beyond that stage now. Heck, there are some cases where the computer doesn't even execute machine code exactly literally as it's written, due to superscalar architecture--the CPU optimizes things internally to run faster.
Apr
20
comment Is machine language always binary?
@Prog: That depends on the CPU. Some CPUs have it hard-wired into the transistors, others are programmed in microcode. Some do both.
Apr
20
comment Is machine language always binary?
@Prog: There's always a lower level. Machine code is the lowest level that programmers have to worry about, but below that is microarchitecture (the stuff you're talking about), which is based on transistors and logic gates, which are based on the principles of electronics, which are based on the laws of physics and quantum mechanics. There isn't really something that says "do a high voltage, do a low voltage", because it's not always a voltage. (For example, when you store it to disc, it's a magnetic state instead.) That's why we use 1 and 0 as convenient abstractions.
Apr
20
comment Is machine language always binary?
@prog: No; reading instructions one bit at a time and making decisions based on it would take too long, and CPUs are designed to be fast. When reading machine code, it's like Whatsisname said in his answer: the computer doesn't look at individual bits any more than you or I read by looking at individual letters. They're arbitrary numbers that map to values using an agreed-upon mapping. Sometimes the meaning of the machine code is hard-wired into the CPU transistors, and sometimes it's actually programmed in!
Apr
20
awarded  Nice Answer
Apr
20
comment Is machine language always binary?
@Prog: Like I said, all numbers have a binary representation. 202 is 11001010, for example. But the 1s and 0s are an abstraction. Instruction #204 could mean "load a value from memory into a CPU register," for example.
Apr
20
answered Is machine language always binary?
Apr
9
answered Is there any performance benefit in checking the item count prior to executing a foreach loop?
Apr
7
awarded  Nice Answer
Apr
7
comment What are the advantages of recursion compared to iteration?
When solving the maze, the recursive solution is only "perfectly clear" if there are guaranteed to be no cycles in the maze. Otherwise, it gets messy too.
Mar
30
reviewed Approve suggested edit on Is it wise to invest time to learn another technology that you don't need to use at work?
Mar
30
reviewed Reject suggested edit on Forking GPL project: Do I have full rights on the new fork or still dependencies with the original owner(s)
Mar
24
answered What are the origins of the Public/Private function declarations?
Mar
24
awarded  Nice Answer
Mar
13
awarded  Necromancer
Mar
2
comment Was there ever a serious push for partial classes in java
@CodesInChaos has it right. C# introduced a really bad feature (partial classes) so that they could do UI generation the wrong way. You would think, for a system that got started as a blatant ripoff of Delphi rewritten to look more like Java syntax, that they could at least have copied the basic concept behind Delphi's declarative UI system while they were at it...
Feb
28
answered Why is my page load time so closely correlated with number of database queries?
Feb
27
comment What exactly is procedural programming? How exactly is it different from OOP? Is it the same as functional programming?
Procedural programming is not the same thing as functional programming; it's actually essentially the same thing as object-oriented programming, minus the objects and classes.
Feb
22
awarded  Popular Question