2,083 reputation
1039
bio website
location
age
visits member for 2 years, 4 months
seen 21 hours ago

Learn PHP the right way: http://www.phptherightway.com

twitter: @songoko20000


2d
comment What is the ideal length of a method?
In his series Clean Coders; Uncle Bob mentions that functions should optimally have 4 lines of code. Actually, if you followed along his videos you will be very convinced.
Jul
21
comment Is it a bad practice to give two very different files with the same general purpose the same name?
Clean Code (i.e. longer meaningful names)
Jul
8
asked Databases and the single responsibility principle
Jul
7
comment Locking database records
Thanks for the reply. This sounds great, but this does the problem of multiple users selecting the same record. Between the moment a record is selected and updated to be locked another query may select the record. I was hoping for automatic lock handling like in SQS, but it seems inapplicable in mysql.
Jul
7
asked Locking database records
Jul
6
awarded  Notable Question
Jul
2
awarded  Inquisitive
Jul
2
awarded  Curious
Jun
12
comment What should a domain object's validation cover?
Create an Email value object that encapsulates the validation in its constructor. If your validation is complex create the value object using a factory.
Jun
6
comment Do cross reference database tables have a place in domain driven design?
You may want to take a look at the specification pattern.
Jun
6
comment Liskov substitution principle with abstract parent class
Thanks for the answer. About ur point "code that works correctly with the superclass should also work correctly with all subclasses", since we can't instantiate an abstract class doesn't that make it impossible to substitute with a child?
Jun
6
comment Liskov substitution principle with abstract parent class
@pdr I lost the link, but I'll try to search for it again.
Jun
6
comment Liskov substitution principle with abstract parent class
@Doval I understand that, but my question is more like will using an interface or abstract class make it likely that I violate LSP? or will it make no difference at all?
Jun
6
asked Liskov substitution principle with abstract parent class
Jun
4
comment Designing a social network with CQRS, graph databases and relational databases in mind
@SirajMansour Have you read Implementing Domain-Driven Design? It is a valuable resource for doing DDD and CQRS.
May
26
revised From a DDD perspective is a report generating service a domain service or an infrastructure service?
added 14 characters in body
May
26
revised How does a search functionality fit in DDD with CQRS?
added 9 characters in body
May
26
awarded  Enthusiast
May
22
comment How does a search functionality fit in DDD with CQRS?
@Darien "should be part of the same domain" Did you mean part of the same bounded context? I don't see why I should separate them into 2 different bounded contexts. Picture a search page for an e-commerce website. A user gets to search for some orders and then gets to call different operations on these orders such as order.refund(), order.cancel(), order.ship(),...etc.
May
20
asked How does a search functionality fit in DDD with CQRS?