Reputation
60,567
Next tag badge:
139/100 score
17/20 answers
Badges
13 179 261
Newest
 Good Answer
Impact
~2.1m people reached

Apr
12
comment Why doesn't the compiler complain when I try to access a non-existent array value?
@WaymanBellIII There are plenty of ways to do that without opening up massive security holes. Civilized languages generally do what you're describing with streams.
Apr
12
comment Why doesn't the compiler complain when I try to access a non-existent array value?
This is not "cool and powerful"; it's a massive security hole masquerading as a language feature for 1337 haxx0rz.
Apr
12
comment Why doesn't the compiler complain when I try to access a non-existent array value?
Compilers aren't stupid in that regard; the C++ language (and the C language on which it's based) is stupid in that regard. This is a well-known problem called "buffer overflow* and it's been a major source of online security holes for literally over a quarter of a century, but a lot of programmers are stupid in that regard, and have failed to abandon C in favor of a less stupidly-insecure language.
Apr
6
comment In which order should lisp functions be defined?
That warning seems a bit silly: what if you have two mutually-recursive functions?
Apr
5
comment Why isn't there a primitive “complex number” type in Java?
@kai I'm claiming that it can't be represented in our common real-number-based mathematics by any simpler representation. This is clearly not the case for integers-as-prime-factor-lists.
Apr
4
comment Why isn't there a primitive “complex number” type in Java?
@RichardTingle It would, because it represents a small amount of data that can easily be treated as a single aggregate value, which you would prefer to copy around like a primitive, and for which the overhead of object allocation doesn't make sense.
Apr
4
comment Why isn't there a primitive “complex number” type in Java?
@RichardTingle You seem to be operating from the premise that an object can have methods and a struct can't. What makes you think this? The essential difference between an object and a struct is that an object is a reference type and can have inheritance, while a struct is a value type and cannot have inheritance.
Apr
3
comment Why is XML called a “language” exactly?
@JamesSnell Not to be confused with the other ML language family, of course. Yay for over-crowded acronyms!
Apr
3
comment Why is XML called a “language” exactly?
@MrLister Because they're not human-readable. When they aren't human-readable we tend to call them formats or data formats instead.
Apr
2
comment Why does :nth-child() in CSS start from 1 instead of 0?
"Should array indices start at 0 or 1? My compromise of 0.5 was rejected without, I thought, proper consideration." -- Stan Kelly-Bootle
Apr
2
comment Why double colon instead of dot?
The::horribly::ugly proliferation::of the::C++ namespace::resolution::operator everywhere is::known::as colon::cancer.
Mar
31
comment Can no Longer open Spyder IDE for Python Programming
Never heard of Spyder, but have you looked at PyScripter?
Mar
28
comment Should I add redundant code now just in case it may be needed in the future?
@KidCode Yeah, Eric's really good at explaining things clearly, even some really complicated topics. :)
Mar
27
comment What is the meaning of “All rights reserved” next to a permissive license?
It means that someone doesn't understand what they're writing, since an assertion of "all rights reserved" directly contradicts the free grant of many rights afforded by a permissive license.
Mar
25
comment Automatically detect offensive images
@StarWeaver Source?
Mar
23
comment Team constantly fails to meet sprint goals
So let me get this straight. You're constantly, consistently setting goals that are beyond the team's realistic ability to meet. You've known that this is happening for 18 months, but you keep setting unachievable goals, and now you think it's the team's fault for not meeting them? Einstein's famous definition of insanity springs immediately to mind.
Mar
21
comment Is there a programming language which requires argument qualifiers (reference/value) to be specified at the call point?
Why would it? Option isn't a collection. Select is for sequences, whereas Option is a single nullable value.
Mar
21
comment Is there a programming language which requires argument qualifiers (reference/value) to be specified at the call point?
The problem with this suggestion is that it makes the usage of the "improved" TryParse more difficult. Right now, you can say if (int.TryParse(myString, intValue)) all in one line. With the new version, it would take two lines, one to do the assignment and unpacking, and one to do the if statement.
Mar
20
comment How does the Python Runtime actually work?
@hgiesel I believe that in Python's case, the interpreter is part of the runtime. This is not the case for every language. of course, but it's fairly common among interpreted languages.
Mar
18
comment Should <= and >= be avoided when using integers, such as in a For loop?
It doesn't avoid the comparisons entirely, it just sweeps them under the rug by moving them into the enumerator implementation. :P