2,351 reputation
1126
bio website sleepeasysoftware.com
location Los Angeles, CA 90066
age
visits member for 2 years, 6 months
seen yesterday

Dec
9
revised Is it a bad idea to return different data types from a single function in a dynamically typed language?
deleted 11 characters in body
Dec
8
awarded  Booster
Dec
7
awarded  Announcer
Nov
1
comment In domain driven design, how do I convert a database table with a primary key into a Value Object?
Ah, that makes a lot of sense. Thanks for the help.
Nov
1
accepted In domain driven design, how do I convert a database table with a primary key into a Value Object?
Oct
24
comment “Everything is a Map”, am I doing this right?
How did you come to that conclusion (the "it is ok" one)?
Oct
23
comment “Everything is a Map”, am I doing this right?
"In object-oriented programming, a god object is an object that knows too much or does too much. The god object is an example of an anti-pattern." So god object is not a good thing, yet your message seems to be saying the opposite. That's a little confusing to me.
Oct
22
comment “Everything is a Map”, am I doing this right?
@paul in a sense they have because it's available in ClojureScript, but I'm not sure if that "counts" in your mind. It might exist in PureScript and I believe there's at least one library that provides immutable data structures in JavaScript. I'd hope at least one of them has these, otherwise they'd be inconvenient to use.
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