1,114 reputation
512
bio website
location Sarajevo, Bosnia and Herzegovina
age 26
visits member for 4 years
seen Dec 7 at 20:59

A colorful individual apt in the use of technology for social progress; exerting passion for people—hardly ever flabbergasted by anyone's occasional demotion from rationale; oft loves sharing great new comedic material in the ongoing joke…


Nov
27
awarded  Yearling
Nov
3
answered Alternative to printing debug information to stdout\stderr
Nov
2
comment Software engineering - “Precious project” syndrome?
Or, instead of changing, you can find a company that allows you to write code where your perfectionism isn't an issue.
Nov
1
suggested rejected edit on Safe serial numbers generation
Nov
1
awarded  Talkative
Oct
31
comment DDD: placement of method whose behavior may be implemented with single database query
Let us continue this discussion in chat.
Oct
31
comment DDD: placement of method whose behavior may be implemented with single database query
I would just like to add that having these smart entities lends itself to the resulting design. If you can reuse their behavior and transform these additional objects as intrinsic features of an entity, your entities would literally sit directly on top of the repositories, since the services, their repository client and other delegates are literally inlined and no longer a member of your DDD. This would allow you to fully focus on the business requirements.
Oct
31
comment DDD: placement of method whose behavior may be implemented with single database query
Yes, exactly! Dynamically typed languages have sophisticated reflective capabilities and statically typed languages can make use of dependency injection and factories to facilitate this reference. Aside from anemic models, Fowler also conceptualized the Active Record pattern and it's implementations are still evolving. This approach twines all those different designs to be exposed on the entity's resulting type, and instances of, for service-like operations. Essentially, your entity is fully aware it is persisted in some data store and part of a collection.
Oct
31
comment DDD: placement of method whose behavior may be implemented with single database query
Depends on how the persistence plumbing is designed, but yes, there are some naked designs circulating in the wild which have this implementation. Observe the use of class and instance methods which discriminate operations on the whole collection or a single entity: new Book(data).save() and Book.create(data); in such a design, you would use book.delete() instead of something like Books.delete(book). See this for an example docs.djangoproject.com/en/dev/topics/db/queries/….
Oct
31
revised DDD: placement of method whose behavior may be implemented with single database query
added 293 characters in body
Oct
31
answered DDD: placement of method whose behavior may be implemented with single database query
Oct
27
comment Whiteboard Interviews - Does choice of language matter?
To an extent, it's even allowed that your code is incorrect, such as calling a wrong instance method on a object for a particular computation, or simply writing that foo() is a stub for some built-in you cannot fully qualify, but know that exists somewhere in the language. The focus is on articulating your thought process as you attempt to solve the problem at hand.
Jul
26
answered Server should accumulate several requests and to retrurn response for all
Nov
27
awarded  Yearling
Apr
2
answered Custom use of Authorization header in a REST API
Feb
19
awarded  Caucus
Feb
8
awarded  Peer Pressure
Nov
27
awarded  Yearling
Oct
3
revised Examples of non open source projects on Bitbucket or Github
deleted 5 characters in body
Oct
3
answered Examples of non open source projects on Bitbucket or Github