147 reputation
4
bio website
location
age
visits member for 5 months
seen yesterday
stats profile views 3

Formerly a games developer, I am now studying for a PhD in microbial genetics.


May
25
comment In languages that don't allow underscores in integer constants, is it a good practice to create a constant for 1 billion?
In the UK, at least, we've long since adopted the 1e9 billion.
May
16
awarded  Informed
May
15
comment Is there any reason to use C++ instead of C, Perl, Python, etc.?
There is no case in which C++ is slower than C because you can always use the C way if it is faster (and you care).
May
9
answered Why is there no 'finally' construct in C++?
Mar
6
answered About the usage of assertions
Mar
4
comment What causes floating point rounding errors?
Spot on. But I would also note that some numbers that terminate in decimal don't terminate in binary. In particular 0.1 is a recurring number in binary and so no floating point binary number can exactly represent 0.1.
Feb
12
comment Problems Calculating Big-O Complexity
Are you recalling these from memory? If so, are you sure that list was passed as an int[]? The only way I can think that they might not be O(N) is if you have non-constant access time to elements.
Feb
7
awarded  Supporter
Jan
18
comment Why don't languages include implication as a logical operator?
But C doesn't have it, in turn, because it's not a common part of assembly language. Whereas as all instruction sets I know of include and, or and not, I know of none that include implies - no doubt someone will be along to tell me of some obscure instruction set that does shortly...
Jan
16
awarded  Editor
Jan
16
revised Readability of || statements
added 1 characters in body
Jan
16
awarded  Teacher
Jan
16
answered Readability of || statements