2,291 reputation
1025
bio website sleepeasysoftware.com
location Los Angeles, CA 90066
age
visits member for 2 years, 5 months
seen Nov 20 at 1:37

Mar
3
asked I'm struggling with abstracting my animation code in my game using a functional style. How can I do this?
Jan
30
comment So Singletons are bad, then what?
@Lucas ah, so is he saying the impl of that Cache class uses those interfaces on the side but implements the interfaces below?
Jan
30
comment So Singletons are bad, then what?
@Lucas that didn't clarify. Maybe because of your typos.
Jan
30
comment So Singletons are bad, then what?
I'm not sure if I understand this last picture or not. Why are there interfaces on the side? How are these interfaces different from the ones below the cache?
Jan
28
comment Is it a bad idea to return different data types from a single function in a dynamically typed language?
By coincidence, I'm dealing with this with a Java Rest API I'm building. I made it possible for one resource to return either XML or JSON. The lowest common denominator type in that case is a String. Now people are asking for documentation on the return type. The java tools can generate it automatically if I return a class, but because I chose String I can't generate the documentation automatically. In hindsight/moral of the story, I wish I returned one type per method.
Jan
28
comment Is it a bad idea to return different data types from a single function in a dynamically typed language?
It seems that it makes sense to return multiple types in one function in all the same places it makes sense to return a generic type in Java. Unfortunately, I don't know how to articulate it better than this.
Jan
28
awarded  Notable Question
Jan
28
awarded  Good Question
Jan
28
awarded  Popular Question
Jan
27
accepted In TDD, if I write a test case that passes without modifying production code, what does that mean?
Jan
27
accepted Does functional programming ignore the benefits gained from the “On the Criteria To Be Used in Decomposing Systems into Modules” (data hiding)?
Jan
27
comment Is it a bad idea to return different data types from a single function in a dynamically typed language?
Sorry, I led you astray with my poor example. Forget I mentioned it in the first place. Your first paragraph is on point. I also like your second example.
Jan
27
revised Is it a bad idea to return different data types from a single function in a dynamically typed language?
deleted 149 characters in body
Jan
27
awarded  Nice Question
Jan
27
comment Is it a bad idea to return different data types from a single function in a dynamically typed language?
@TrueWill I address that in the next sentence.
Jan
27
asked Is it a bad idea to return different data types from a single function in a dynamically typed language?
Jan
27
awarded  Notable Question
Jan
24
accepted In scrum, how do you give an estimate for a backlog item that is primarily research?
Jan
22
revised In scrum, how do you give an estimate for a backlog item that is primarily research?
added 502 characters in body
Jan
22
comment In scrum, how do you give an estimate for a backlog item that is primarily research?
I think this is good advice in general. But like I said, "I could never tell if I was almost done or far from it.".