2,613 reputation
11125
bio website andreaferretti.it
location Bonn, Germany
age
visits member for 3 years, 7 months
seen Sep 20 at 15:46

Sep
17
comment Front end written in languages used for back end!
Given your last sentence, you may enjoy code.google.com/p/php-to-js :-P
Aug
12
comment Where should an object in CQRS+ES be fully initialized: in the constructor, or when applying the first event?
I understand better the question. So, I would say, the correct answer should be the third one. I think your entities should always be in a valid state. If this requires that a shopping cart has a customer id, then this should be provided at creation time, hence the need of a constructor that accepts a customer id. I am more accustomed to CQRS in Scala, where domain objects would be represented by case classes, which are immutable and have constructors for all possible combinations of parameters, so I was giving this for granted
Jul
2
awarded  Curious
May
30
comment Do input template languages exist?
He is not looking for a recommendation, he is asking if a library like this even exists, or if the concept has a name. Please, please, do not be so rush in closing questions. This site is becoming unusable
May
28
answered Should data structures be integrated into the language (as in Python) or be provided in the standard library (as in Java)?
May
21
comment Why don't we completely de-couple frontend JS frameworks and backend APIs?
I am not sure why you wouldn't do it, but I do it all the time :-)
May
15
answered Where should an object in CQRS+ES be fully initialized: in the constructor, or when applying the first event?
May
12
awarded  Good Question
May
3
awarded  Popular Question
Apr
24
comment Is test coverage an adequate measure of code quality?
I was maybe a little rushed when I wrote - I was on a phone - but I still think there is a point. I do not want to bash on PHP, but I think that saying that in comparison Haskell gives a much greater degree of reliability is an objective statement
Apr
24
comment Is test coverage an adequate measure of code quality?
@gnat this is of course my opinion. Still, it says what is says. I took Haskell as an example of language whose compiler is very strict and gives many guarantees about the well-formedness of input, the types, the side effects, the mutation of data. I took PHP as an example of a language whose interpreter is very lenient and which does not even have a specification. Even in the absence of tests, the presence of all the guarantees from the types and effects system usually yields a decent degree of reliability. To compensate that with tests, one would need to have a very comprehensive suite
Apr
24
comment Is test coverage an adequate measure of code quality?
Then I am left to wonder what testing is
Apr
23
answered Is test coverage an adequate measure of code quality?
Apr
8
awarded  Good Answer
Mar
25
answered How can I use different versions of an evolving library in different projects?
Mar
10
comment How to avoid duplicating the domain model in a multi-language distributed application?
If you only need to share data classes and not application logic, you may want ti have a look at avro or protobuf
Mar
5
awarded  Popular Question
Jan
30
awarded  Yearling
Nov
20
awarded  Notable Question
Oct
17
comment What will be correct answer to “why is NoSQL faster than SQL” on interview?
As I have said in the answer, one can do the same in SQL; it is just that when this becomes the rule instead of the exception, NoSQL databases are usually faster and more natural to use. In theory, SQL is the best model one can use, but when data grows over a certain size, it just cannot accomodate some models, and data duplication becomes faster and easier to reason about.