2,214 reputation
1025
bio website linkedin.com/pub/…
location Los Angeles, CA 90066
age
visits member for 2 years, 4 months
seen yesterday

Oct
8
comment In domain driven design, how do I convert a database table with a primary key into a Value Object?
@SpaceTrucker I don't think I've read anything that says that should factor into your decision of making a model a Value Object.
Oct
8
comment In domain driven design, how do I convert a database table with a primary key into a Value Object?
I don't feel like this is answering all (or even a majority) of my questions
Oct
7
comment In domain driven design, how do I convert a database table with a primary key into a Value Object?
Can you show some concrete implementations (can be pseudo code)?
Oct
7
comment TDD: how to test file outputs?
ApprovalTests has the same issue I mentioned in my answer (see "100 broken tests"). Although it is a good tool to be aware of, I think it's better for building a safety net around something that's difficult to test rather than an end result.
Oct
7
comment TDD: how to test file outputs?
@CésarGarcíaTapia I thought you have a library to parse the files already? I was writing my answer assuming that. There are definitely java libraries for parsing Excel files and probably PDF.
Oct
7
comment TDD: how to test file outputs?
That's another good alternative. Technically you could still be practicing TDD without doing this though as TDD doesn't have to be done with unit tests (not that you said otherwise). But, if this gives you enough confidence in your code, it'd be preferred.
Oct
6
revised TDD: how to test file outputs?
added 64 characters in body
Oct
6
comment What are the disadvantages of test-first programming?
Your first point is very interesting to me. How many enterprise apps are actually unit-testable? Most software uses an ORM that performs black magic and only works when deployed. Same with the front end. In DDD terms, it seems to me that only the Domain Layer can be unit tested (fortunately that's one of the most important parts). Now consider the concept of "Tracer Bullets" and the situation where you need them. How can you possibly start test first?
Oct
6
revised TDD: how to test file outputs?
deleted 4 characters in body
Oct
6
answered TDD: how to test file outputs?
Oct
6
revised In domain driven design, how do I convert a database table with a primary key into a Value Object?
edited title
Oct
6
revised In domain driven design, how do I convert a database table with a primary key into a Value Object?
added 21 characters in body
Oct
6
revised In domain driven design, how do I convert a database table with a primary key into a Value Object?
added 2 characters in body
Oct
6
revised In domain driven design, how do I convert a database table with a primary key into a Value Object?
deleted 15 characters in body
Oct
6
asked In domain driven design, how do I convert a database table with a primary key into a Value Object?
Sep
4
revised Is it a bad idea to return different data types from a single function in a dynamically typed language?
edited title
Sep
3
reviewed Approve suggested edit on Is it a bad idea to return different data types from a single function in a dynamically typed language?
Aug
28
awarded  Notable Question
Aug
6
awarded  Nice Question
Jul
29
comment “Everything is a Map”, am I doing this right?
I now know why I bother passing it around even though it's a global variable: It allows me to write pure functions. If I change my gameState = f(gameState) to f(), it's much more difficult to test f. f() may return a different thing each time I call it. But it's easy to make f(gameState) return the same thing every time it's given the same input.