2,628 reputation
11125
bio website andreaferretti.it
location Bonn, Germany
age
visits member for 3 years, 7 months
seen 4 hours ago

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.
Jan
31
comment Error checking in actor-based paradigm
Moreover, one has to send back the failure explicitly, as the docs say: "To complete the future with an exception you need send a Failure message to the sender. This is not done automatically when an actor throws an exception while processing a message."
Jan
31
comment Error checking in actor-based paradigm
Yes, this is what I added parenthetically "One can have a return value using Futures, but it certainly not customary to ask for futures on every message.". But this requires generating a Future for every call, which basically means doing away with ! and getting a fixed overhead. I do not think this is the customary way to build an actor-based application.
Jan
31
asked Error checking in actor-based paradigm
Jan
30
awarded  Yearling
Jan
25
comment Is Groovy going away?
I beg to disagree about Scala being academic. It is actually very productive and helpful, and currently in use in many financial institutions, on Linkedin, Twitter and so on. I actually tried both Scala and Groovy here where I work, and I would never choose Groovy for projects over a mild threshold of complexity.
Jan
23
awarded  Popular Question
Jan
11
comment Is Neo4j graph database sufficient to itself for all query types?
Given that the only operations in SQL are essentially join and filters, and that filters are trivial in Neo4j, while joins can be simulated by following a relation with a given name, I would say yes. I am not sure that it would be a very efficient way to query, though.
Jan
8
comment How will the new development of Java influence its interoperability with languages like Scala and Clojure?
@maple_shaft Yes, a Scala String is a Java String. As with any other class, the mechanism of implicits can be used to add new methods to the existing class at compile time, but these are translated by the compiler in calls to methohds on a wrapper class.
Jan
4
answered Are there any advantages of SASS over LESS?
Jan
4
comment Are immutable/stateless singletons bad?
It is not bad, to the point that Scala has a keyword for it (object) and that these objects are the basis of Scala's module system
Dec
18
awarded  Nice Question
Nov
13
comment Forbidding or controlling “Hidden IT…” Who should write and maintain ad-hoc software applications?
This seems to be on spot thedailywtf.com/Articles/Excellent-Design.aspx
Nov
13
awarded  Nice Answer
Nov
12
answered What will be correct answer to “why is NoSQL faster than SQL” on interview?
Nov
12
comment Would a cut and paste coder ever get past a job interview?
Worst answer ever read on this site
Nov
9
comment Android: Not able to experiment on own?
Yes, you definitely should learn the language you are using from simple examples, before trying to learn a complex platform.
Nov
7
answered How should I implement a command processing application?
Nov
7
answered What is the difference between development and R&D?