TDD with repository pattern
In my new project, I decided to try with TDD. And in very beginning I encountered a problem. First thing that I want to do in my application is to give ability to read data from data source. For this purpose, I want to use repository pattern.
And now:
Combining Patterns: Fluent Builder and Null Object Pattern
I am currently wrestling around with some GUI code where I have a table whose rows correspond to some object, let’s say a Person object. When the table initializes, it fills the table with the Person objects that it knows about – say Bob, Andy, and Tom. The rest of the rows item’s (row.getItem()
) are null. In this particular GUI framework, one cannot highlight/select rows who’s getItem()
returns null – but in my particular use case I want to allow this functionality.
Combining Patterns: Fluent Builder and Null Object Pattern
I am currently wrestling around with some GUI code where I have a table whose rows correspond to some object, let’s say a Person object. When the table initializes, it fills the table with the Person objects that it knows about – say Bob, Andy, and Tom. The rest of the rows item’s (row.getItem()
) are null. In this particular GUI framework, one cannot highlight/select rows who’s getItem()
returns null – but in my particular use case I want to allow this functionality.
Combining Patterns: Fluent Builder and Null Object Pattern
I am currently wrestling around with some GUI code where I have a table whose rows correspond to some object, let’s say a Person object. When the table initializes, it fills the table with the Person objects that it knows about – say Bob, Andy, and Tom. The rest of the rows item’s (row.getItem()
) are null. In this particular GUI framework, one cannot highlight/select rows who’s getItem()
returns null – but in my particular use case I want to allow this functionality.
Combining Patterns: Fluent Builder and Null Object Pattern
I am currently wrestling around with some GUI code where I have a table whose rows correspond to some object, let’s say a Person object. When the table initializes, it fills the table with the Person objects that it knows about – say Bob, Andy, and Tom. The rest of the rows item’s (row.getItem()
) are null. In this particular GUI framework, one cannot highlight/select rows who’s getItem()
returns null – but in my particular use case I want to allow this functionality.
Is it a good idea to have a database row that represents an unknown value within a system [closed]
Closed 9 years ago.
Is it a good idea to have a database row that represents an unknown value within a system [closed]
Closed 9 years ago.
Is it a good idea to have a database row that represents an unknown value within a system [closed]
Closed 9 years ago.
Is it a good idea to have a database row that represents an unknown value within a system [closed]
Closed 9 years ago.
Check a boolean before setting it in a loop, or just set it
I have a rather tight loop with the following check to see if balance
had ever been positive: