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

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 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.
Jul
7
asked What's a good way to make sure that locally serialized data can be deserialized in newer code?
Jul
2
awarded  Curious
Jul
2
comment How can I use unit tests and TDD to test an app that relies mostly on database CRUD operations?
"The only way to test for this is to write an automated UI test to click on the button twice. Maybe check out Selenium." In situations like that, the backend better be preventing that from occurring, otherwise the UI would have direct access to the database.
Jul
1
comment How can I use unit tests and TDD to test an app that relies mostly on database CRUD operations?
I don't think you responded to my first sentence.
Jun
30
comment How can I use unit tests and TDD to test an app that relies mostly on database CRUD operations?
As I said, "The majority of our bugs involve JPA in one way or another.", I think the article's advice would miss all of those. Also, if you consider those Java/C# tests to still be unit tests, we've got very different definitions. I think this is good advice in general, but it still seems like it would take a ton of time to deploy and run the suite and therefore not conducive to TDD. Do you disagree?
Jun
30
awarded  Nice Question
Jun
30
comment How can I use unit tests and TDD to test an app that relies mostly on database CRUD operations?
That's a nice thought, but I'd still have to deploy to the app server, AFAIK. That's a lot of the 3+ minutes. That said, it's definitely worth doing. But it's still difficult to imagine running the tests as often as I would run unit tests and therefore it seems inefficient to develop using TDD.
Jun
30
revised How can I use unit tests and TDD to test an app that relies mostly on database CRUD operations?
added 203 characters in body
Jun
27
comment How can I use unit tests and TDD to test an app that relies mostly on database CRUD operations?
@JeroenVannevel OK what about the TDD aspect? Do I have to drop that? To me a 3+ minute feedback loop for TDD defeats the benefits.
Jun
27
comment How can I use unit tests and TDD to test an app that relies mostly on database CRUD operations?
@gnat ok I edited my question, thanks
Jun
27
revised How can I use unit tests and TDD to test an app that relies mostly on database CRUD operations?
added 509 characters in body
Jun
27
revised How can I use unit tests and TDD to test an app that relies mostly on database CRUD operations?
deleted 9 characters in body