6,615 reputation
11630
bio website
location
age
visits member for 3 years, 6 months
seen Jul 10 at 19:16

Apr
27
reviewed Reject suggested edit on Why are many programmers moving their code to github?
Feb
18
awarded  Good Answer
Feb
17
answered How to draw a spiral using segments of varying circles?
Jan
29
comment Which mathematical properties apply to XOR Swap algorithm (and similar bitwise operator algorithms)?
yes. (Note that the volume 4A is far more recent than the others and that it may be absent of your full set depending on when you bought it, I know it was published after I bought mine).
Jan
29
comment Which mathematical properties apply to XOR Swap algorithm (and similar bitwise operator algorithms)?
"Are there mathematical properties of these bitwise operators that these algorithms are derived from?" Yes. "What are those mathematical properties?" that's too broad for here. See Knuth volume 4A for a start if you have a mathematical mind.
Jan
25
comment Mapping 40 unique integers to 41 and back
It will just add 1 to set.
Jan
25
revised Mapping 40 unique integers to 41 and back
deleted 112 characters in body
Jan
25
answered Mapping 40 unique integers to 41 and back
Jan
24
comment Where can I find Turbo Pascal dialect description/reference?
There is a good archive of historical documents at bitsaver, and they have a turbo pascal directory directory.
Jan
20
comment Why do C++ and Java both use the notion of “reference” but not in the same sense?
What makes reference in Algol 68 particularly painful is the automatic dereferencing. That's something convenient as long as it is limited to one level. But the fact that it could be done several times combined with the syntactic sugar which hided some of the references to the unaware eyes made it confusing.
Jan
20
comment Is using non-standard single-line comments fine in C?
@Phil, AFAIK C99 had just standardized what was already a common extension at the time.
Jan
17
comment Syntactic Sugar for old languages
Then it isn't the goal, it's a mean to achieve the goal.
Jan
16
revised Syntactic Sugar for old languages
added 4 characters in body
Jan
16
answered Syntactic Sugar for old languages
Dec
30
answered Teaching a course on intro to programming, in C++: Do I teach C-style casts?
Dec
30
comment Teaching a course on intro to programming, in C++: Do I teach C-style casts?
I've upvoted you as it is also what I'd do, but with the caveat that I would not state that it is save, I've seen too many people typedefing pointers (and I've even seen cases in C where I agree it was reasonable). The major issue with teaching C++ (even if incidentally while pursuing a more general purpose) is not teaching a reasonable save subset, it is to prepare your students to the variety of existing code they will meet (from other reasonable subsets to absolutely non reasonable idioms going through things which where state of the art when it was designed, 20 years ago).
Dec
30
comment Teaching a course on intro to programming, in C++: Do I teach C-style casts?
I would not call it fairly save, it is equivalent to a C style cast (but unusable with types which don't have a simple type specifier).
Dec
25
answered Which is better to use? (Enum or Constant)
Dec
25
revised Which is better to use? (Enum or Constant)
Syntax
Dec
24
awarded  Yearling