451 reputation
37
bio website
location Grosse Pointe, MI
age 47
visits member for 4 years, 2 months
seen Mar 19 at 20:04

Android, Java, .NET, and Web developer. I've used a variety of languages, from various dialects of assembly language to Python and Ruby. I've toyed with some other languages that I don't know well, like Lisp, Scheme, Smalltalk, Scala, Erlang, and Go.


Mar
19
comment What is the best way to prove that in-code documentation is greater than extensive external documentation?
In-code documentation isn't better than external documentation, so you can't prove it. They serve different purposes, and ... wait, did you say code screenshots?
Mar
19
comment When is it a good idea to force garbage collection?
You can't force GC, can you? Certainly not on the JVM, and I didn't think you could force it on .NET either. You can suggest that now might be a good time for GC, but the system is free to ignore you.
Mar
13
comment Working with static constructor in Java
There is no such thing as a "static constructor".
Feb
26
comment Constructor-only subclasses: Is this an anti-pattern?
Of course, having square be a subclass of rectangle can be okay if they're immutable. You really have to look to the LSP.
Feb
25
comment Is it reasonable to assume that any physical quantity can be represented by a 64-bit integer without overflow or underflow?
It wouldn't matter. You still shouldn't use (low + high) / 2 because it isn't correct. Do the math correctly, and it will work with all values.
Feb
4
comment Why doesn't Java 8 include immutable collections?
@Tom And they are considering adding value types in a future version.
Feb
2
comment Is a 1 < 10 comparison less expensive than 1 < 1000000?
(A decent optimizing compiler will elide those loops entirely.)
Jan
5
comment What are 4th & 5th programming language generations? Are there more of them?
I'm making a 14th generation language, and it's going to be pure wizardry, because it's the seventh son of a seventh son....
Nov
24
comment How Best Can I Use Git When My Employer Uses VSS?
Step 1: Convince your employer to switch to Git...
Oct
15
awarded  Yearling
Oct
14
comment As back-end developers, should we learn software testing?
@phresnel Oh, a compile-time ray tracer in C++ is so evil. Respect.
Sep
24
awarded  Autobiographer
Aug
21
comment Passing functions into other functions as parameters, bad practice?
@ChrisCirefice Javascript is really an OO language. It's a prototypical language, which is a kind of OO language.
Aug
18
comment Where did the notion of 'calling' a function come from?
In some dialects of assembly language (such as x86 assembly) the opcodes are named call and ret or some variant thereof. It is possible that programming languages inherited the terminology from the underlying hardware, although that would still leave the question of why the hardware designers chose those names for the operations.
Jul
17
answered Calling same method on different object - Recursion?
Jul
8
comment Pointer indexing
I was thinking of adding "with a compiler switch". Obviously you wouldn't want that for optimized code. But, you're right, and that's why I gave up writing C ten years ago.
Jul
8
comment Pointer indexing
If you really want to use indices from 1 without invoking undefined behavior, you could instead allocate space for n + 1 floats and then legally use indices from 1 to n instead of 0 to n - 1.
Jul
8
comment Pointer indexing
I disagree that that is "fortunate". I think it would be much better if compilers emitted code that immediately crashed whenever you invoked undefined behavior.
Jun
26
awarded  Enlightened
Jun
26
awarded  Nice Answer