2,623 reputation
11125
bio website andreaferretti.it
location Bonn, Germany
age
visits member for 3 years, 6 months
seen 1 hour ago

Sep
13
comment Are there any advantages of SASS over LESS?
Well, they are different beasts. Bootstrap is a set of conventions and widgets, while Compass os a collection of reusable mixins
Jun
28
comment How do people get rid of conditional branches in Functional Programming?
It depends on the language. Scala, for instance, is a functional language that also has object-oriented capabilities, so you just do the same. Cloure has multimethods. In Haskell you may have a function that are defined on a certain typeclass and different datatype may give different implementations of the function.
May
2
awarded  Popular Question
May
1
awarded  Popular Question
Apr
12
comment Why do some of object oriented languages let programmer use primitive types?
@ratchetfreak There is no reason why one could not have primitive types appear as objects at the language level and be converted during code generation, without losing speed. This is, for instance, the approach of Scala.
Apr
2
awarded  Nice Answer
Mar
29
answered Why is Option/Maybe considered a good idea and checked exceptions are not?
Mar
25
comment Dynamically generating HTML and CSS
I understand that, but this question is more than one year old. The point anyway, was that Opa is a language with native datatypes for Html and Css that maybe would make it easier to write the design logic the OP was looking for.
Mar
20
awarded  Popular Question
Mar
11
awarded  Pundit
Mar
4
awarded  Notable Question
Feb
12
comment Is using '{}' within format strings considered Pythonic?
As the Zen of Python goes, "Explicit is better than implicit". So in my view this does not look very pythonic
Feb
8
accepted Error checking in actor-based paradigm
Feb
7
comment Error checking in actor-based paradigm
Yes, I think that some sort of queue, possibly with a durable mailbox, is needed in front of the actors that are most prone to crashing - think actors connected to db, web services and so on. In your design, you would have a single actor who has the role of saving entities. Have you tried that? Does it become a bottle neck?
Feb
6
comment What's the point of those technique detailed interview question for Senior dev?
I am sorry if I misundesrtood your question. There are lots of people that ask similar questions here, essentially to get support if they performed poorly on interviews. If your point is that you know how to answer those questions, but you'd rather been asked more sophisticated questions about software design, I can only say that these questions are not as bad and mnemonical as may others asked in interviews. It is certainly possible to do better, but they are reasonable.
Feb
6
comment What's the point of those technique detailed interview question for Senior dev?
Those are not memory questions. I can recognize a person talking about, say, garbage collection from memory from one that knows what he is talking about. Now, I may agree that one could want to ask also some questions about design (but isn't the one on event delegation going in that direction?), but this is not an excuse to perform poorly on the questions listed here.
Feb
6
comment What's the worst question you were ever asked at interview?
It actually seems a nice question!
Feb
6
answered What's the point of those technique detailed interview question for Senior dev?
Feb
6
comment NoSQL use cases
I am a little tired of hearing that relational databases are based on set theory, as if that automatically improved their status. Actually, finite set theory is trivial and the first subtleties of set theory start with infinite sets, which of course are not used at all in databases.
Jan
31
comment Error checking in actor-based paradigm
Well, this is enough to prevent the whole system from crashing, but it is not enough to handle errors, as far as I understand. Say I receive some external input: this generates various messages, each of which at the end is sent to an actor that will save it into a database. If the database connection goes down, some of these actors will crash. Supervising is enough to bring back the actor in a working state, but if I understand correctly the message will be lost. This may lead to a situation where some messages are saved and some are not, and thus to inconsistent data.