2,787 reputation
11428
bio website andreaferretti.it
location Milano, Italy
age
visits member for 4 years, 3 months
seen 2 hours ago

Postdoc student in Lille


Jul
20
comment Why is a small fixed vocabulary seen as an advantage to RESTful services?
Get a list of all resources, get a list of all resources with given constraints, update or delete a bunch of resources at the same time, create two different types of resources together atomically (so that both creations fail or succeed), delete all resources satifying a given condition... The list of things that one may want to do is quite long. One can fit them into a REST API, but it is not always natural. It also does not help that GET does not allow a body, so complex filtering conditions become akward.
Jul
20
comment If python compiles to assembly and an OS is written in it, will it compete favorably with C in benchmarks?
The point is that it is not clear that a "well optimized compiler" can be done, even in theory (there are limitations about what can be done algorithmically) and certainly in practice.
Jul
18
comment Why aren't design patterns added to the languages constructs?
Even object orientation can be thought as a particular pattern that was deemed useful and hence baked into many languages. In general, the presence of a pattern is an indicator of the lack of a language feature.
Jul
2
comment OAuth2 vs Public API
You got it almost right: essentially what you miss is that User A may want to give Site B only part of its data on Site C, or read-only access to this data, or revoke this permission at a later time. None of these things is doable if you just give away your password. Moreover, User A may want to change the password without revoking access to Site B. And for sure, he will not want Site B to be able to log him off. So here is where OAuth steps in. Of course, if the data is public, there is no need for OAuth and a public API is fine.
Jun
30
comment New insights I can learn from the Groovy language
We are now at 3 vote to close and still no indication whatsoever of what makes this a bad question :-(
Jun
30
comment New insights I can learn from the Groovy language
Thank you. I want to investigate Scala as well, but I have to learn Groovy since it is used where I am going to work.
Jun
30
revised New insights I can learn from the Groovy language
edited title
Jun
30
revised New insights I can learn from the Groovy language
added 301 characters in body
Jun
30
comment New insights I can learn from the Groovy language
I just received a downvote and a vote to close. Mind explaining why? The question seems fine to me, but I can improve it if it violates some rules.
Jun
30
accepted How should I evaluate new browser languages?
Jun
30
accepted What is the accepted style for using the `this` keyword in Java?
Jun
30
asked New insights I can learn from the Groovy language
Jun
29
comment one single compressed js file VS compressed requirejs module files
I am not sure I understand your concerns. With the optimizer you can get away with just two files: requireJS itself and the optimized file. Is it a problem loading two files instead of one?
Jun
27
comment Licensing a JavaScript library
You can just state the name of the license, providing a link to the full text. I do not see a way to make sure that the license is associated to the software if you do not want to write it in the comments.
Jun
19
comment Benefits of classic OOP over Go-like language
Yes, what I meant is that it does not have classes in the Java sense
Jun
19
awarded  Nice Answer
Jun
19
answered Benefits of classic OOP over Go-like language
Jun
19
comment How to deal with colleagues refuse to follow practices?
I am not sure what the problem is with your colleague's approach. As long as you have a unique natural key, and assuming you keep that indexed for performance reasons, what are the issues? You could even consider using that human-readable key as primary, so both of you are happy
Jun
16
comment Is 100% code coverage a pipe dream?
Even 100% branch coverage, including all execution paths is not enough. Maybe some error only happens when you take some combination of branches and you have some external input, say a malformed date. There is no possibility that all cases will ever be covered. At the same time, one can have a good confidence with less than 100% coverage but suitably chosen edge cases as input.
Jun
12
comment Am I personally liable for bugs in medical software I've developed as an employee?
You may not be liable, but I would not feel much at ease in releasing an undertested application for medical dosage. By the way, is it even legal to distribute such an application without some form of testing from the local medical authorities?