2,676 reputation
11225
bio website andreaferretti.it
location Bonn, Germany
age
visits member for 3 years, 11 months
seen Dec 22 at 10:23

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?
Jun
12
comment Is making my own copyright licence safe?
A useful LaTeX package had a license that (if I recall correctly) asked to email the author the work produced with the package. It was obviously a way for the author to please himself that his library was used. But the license was not considered to be free, and the author email was dead anyway, so kuvio has disappeared from Debian. :-(
Jun
11
comment Is there a phrase or word to describe an algorithim or program is complete in that given any value for its arguments there is a defined outcome?
I think we agree. But I still do not understand the question :-)
Jun
11
comment Is there a phrase or word to describe an algorithim or program is complete in that given any value for its arguments there is a defined outcome?
That seems to me predictable and deterministic. It just does not spit out a result, and this is what you expect.
Jun
11
comment Is there a phrase or word to describe an algorithim or program is complete in that given any value for its arguments there is a defined outcome?
In the abstract sense (without an underlying language) if you missed the else clause you would not have an actual algorithm, only part of it
Jun
11
comment Is there a phrase or word to describe an algorithim or program is complete in that given any value for its arguments there is a defined outcome?
To be more precise, even if your example lacked the else clause, you still would have a pretty well-defined behaviour: either a compilation error, which means that you failed to specify correctly your algorithm after all, or some default return value, such as nil, depending on the language
Jun
11
comment Is there a phrase or word to describe an algorithim or program is complete in that given any value for its arguments there is a defined outcome?
I am actually struggling to find out what would be an algorithm where it is false that "given any possible value for its arguments there is a predicatable outcome". Ok, the C specification sometimes uses undefined behaviour, but even in this case implementations actually define one. Even random number generators can only be pseudo random, and look random because we do not consider in the input state such as the computer clock.
Jun
7
comment Advice for learning Javascript with prior knowledge of C++?
Function scope has not much to do with dynamic this. The reason this is dynamic is that objects are just hash maps whose members may happen to be functions. As such, there is a need for this functions to get a reference to the containing object you are using in a given moment.
Jun
6
answered Getting data from a webpage in a stable and efficient way
Jun
5
comment Challenges in multi-player Android Game Server with RESTful Nature
It will definitely be possible. Not all APIs need to be REST. REST is fine for what is designed: accessing resources, creating, changing and deleting them. It is a pull technology. When you need continuous communication - and games are the typical example - sockets are more suitable. On the browser you can even use a library like Socket.IO and have it fake the socket by using continuos polling for browsers that do not support WebSockets
Jun
5
comment Challenges in multi-player Android Game Server with RESTful Nature
Yes, provided the platform support Sockets. In the browser world, you will actually have to use WebSockets, which are a little more limited, but it is definitely feasible.
Jun
5
comment Challenges in multi-player Android Game Server with RESTful Nature
Short story: REST is not suited for the task. You should reconsider using Sockets
May
29
comment Transaction Design Pattern for MVC and location of responsibility?
You want to move the transactions as high in the chain as possible. The entity managing the transactions should be aware of the process as a whole. Hence the controller is usually a good fit.
May
23
awarded  Nice Question
Apr
10
comment What's wrong with JavaScript
Unfortunately, not all libraries will support AMD, which means you have to patch them if you want to use AMD. I agree for use strict. And no, Object.create is anything but elegant - you just cannot set the properties as in object literals; you also have to declare whether they are enumerable, configurable and so on.