764 reputation
37
bio website
location
age
visits member for 2 years, 11 months
seen 2 days ago

Apr
5
comment Does functional programming add complexity in code?
@Izkata: Paradigms have nothing to do with this - you can write bad code using any paradigm in any language. All of the things people have trouble with in different paradigms aren't because the concepts are hard, but are because the syntax the language expects isn't good. 2/2
Apr
5
comment Does functional programming add complexity in code?
@Izkata: If APL was a well designed language it'd be relatively easy for programmers to deduce the meanings of its symbols. If a programmer writes well written code then they can overcome the problems of badly designed languages (e.g. comments), and turn something that would've been confusing into something less experienced programmers can learn from. 1/2
Apr
5
comment Does functional programming add complexity in code?
Also note that the opposite of well written is "obfuscated" - code that's so badly written that even people who do know the language well have trouble reading it. Basically there's a range of programmer familiarity (from never seen the language before to expert in that language) and the "well written to obfuscated" range maps directly to the range of programmer familiarity needed to read it - the more well written something is the less familiarity the reader needs, and the more obfuscated something is the more familiarity the reader needs.
Apr
5
comment Does functional programming add complexity in code?
@bdesham: I believe it's hard to write well written code in some languages. For example, for assembly language often you need a comment on every single line, and this means it's easy to write badly written code in assembly. Other ("better") languages make it easier to write well written code.
Apr
5
comment Does functional programming add complexity in code?
@AndresF.: It's true by definition. If people who aren't familiar with the specific programming language (but are familiar with other programming languages) can't read it, then it's not well written code. How else do you think "well written" should be defined?
Apr
4
answered Does functional programming add complexity in code?
Apr
2
comment How do I prevent unknowningly duplicating code?
@Gangnus: You're missing "4) Excessive code de-duplication leads to a code maintenance nightmare, where the logic (what the code actually does) is obfuscated by scattering many tiny pieces of shrapnel everywhere."
Apr
1
comment How to distribute, one virtual token to each person in this world, and make sure nobody gets more than one?
@Izkata: Also note that there is a related problem of ensuring security after virtual tokens are assigned. This is an entirely separate problem (out of scope here)
Apr
1
comment How to distribute, one virtual token to each person in this world, and make sure nobody gets more than one?
@Izkata: While a tattoo can be removed, you can't get born again and can't be assigned a new virtual token even if the tattoo is removed later. Note that the tattoo isn't actually required at all - assigning virtual tokens at birth is enough (if people can remember the token they were assigned)
Mar
28
comment How to distribute, one virtual token to each person in this world, and make sure nobody gets more than one?
Mostly all I'm saying is that it's not impossible (it's just extremely impractical, and potentially unethical and wrong too).
Mar
28
comment How to distribute, one virtual token to each person in this world, and make sure nobody gets more than one?
It's not impossible. For example, you could tattoo infants at birth. Because no person is born twice nobody can get 2 or more tokens.
Mar
26
comment Why isn't java used as a build language?
A better question might be; why are IDEs/compilers/tools so bad that build tools are needed in the first place.
Mar
22
comment Intel Nehalem/SB/IB/Haswell CPUs, cache vs TLB
Ah - I see now. The wikipedia page says parallel where it means "partially overlapping" (up until tag check) and not "entirely parallel".
Mar
22
answered Intel Nehalem/SB/IB/Haswell CPUs, cache vs TLB
Mar
22
comment Intel Nehalem/SB/IB/Haswell CPUs, cache vs TLB
Either the Wikipedia page is wrong or you misinterpreted it. It doesn't matter to me which. The idea that you think "set associative" allows the CPU to use the translation (to fetch from physical memory or caches) before it has the result of the translation makes me think you've misinterpreted.
Mar
22
comment Intel Nehalem/SB/IB/Haswell CPUs, cache vs TLB
CPU can't know physical address until after it converts virtual address into physical address; so doing both at the same time isn't possible.
Mar
22
comment Intel Nehalem/SB/IB/Haswell CPUs, cache vs TLB
I'm not sure you know what a TLB is (Translation Lookaside Buffer, used for caching "virtual addresses to physical address" translations). These have little to do with caches that cache normal data, and if there's a L1D miss it makes no sense to try fetching from L1 DTLB.
Mar
14
comment Asterisks in Multi-line comments
I'd assume this originated in C
Mar
9
revised Is Java Bytecode interpreted?
added 77 characters in body
Mar
9
answered Is Java Bytecode interpreted?