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

Postdoc student in Lille


Jun
24
comment What features would you like to have in PHP?
@rjmunro Or PHP could implement named parameters and it would be easy to add a named encoding parameter :-)
Jun
17
answered Multi MVC processing vs Single MVC process
Jun
8
comment How does multitasking work
What bad can happen if the processor is taken away from you without warning? I guess you will get again control of the processor with the same values in the registers. How is that different from just keeping your computation?
Jun
8
accepted How does multitasking work
Jun
8
comment How does multitasking work
Ok, now I see. So, if I understand correctly, it is a hardware-based feature, not something one can just implement in the OS.
Jun
8
comment How does multitasking work
Yes, but who is launching the interrupt? If my code is executing, the OS has no way to execute a INT instruction. Something is still mysterious to me
Jun
8
asked How does multitasking work
Jun
6
comment cakephp admin panel, different controller for different group of tasks or one for all?
Your client should not see anything in particular (unless he is a programmer and looks at the source). The advice I gave you is only about the internal organization of the code. If not, there must have been a misunderstanding, and I apologize for it.
Jun
4
comment cakephp admin panel, different controller for different group of tasks or one for all?
Yes, that is common: all sites but the simplest have an admin section. Nevertheless, the usual way to group the actions in CakePHP is per model, not per user identity. You can have the admin actions split through the various controllers, just like the usual actions. Think it like this: do you group all the actions for a normal user in a single controller?
May
29
comment How do I safely write code in my own 'words' and not plagiarize?
On the other hand a 5 line snippet to do a common task in a given language may be the only/obvious way to do the task, and just posting it on a blog does not grant anyone copyright on it,
May
28
comment Is Bubble Sort the slowest sorting algorithm?
This is fine. If the question is just "What are some fun ways to sort slowly?", CoolBeans' is a perfectly good answer. On the other hand, it may have been the case that you thought that your question admitted a rigorous answer, like the similar-sounding, but actually very different, question "What is the fastest way to sort an array?". In this case, it would have been good to clarify that looking for the slowest algorithm is an ill-posed problem.
May
28
answered cakephp admin panel, different controller for different group of tasks or one for all?
May
28
comment Is Bubble Sort the slowest sorting algorithm?
The fact is that giving a precise definition of "reasonable", and so making this question answerable at all, would be a rather difficult task. By far harder than answering most questions on SO.
May
13
awarded  Civic Duty
May
11
answered Single line comments for multiple indented lines of code
May
10
awarded  Nice Answer
May
10
comment isn't number localization just unnecessary?
I think you have mistunderstood my claim. I contested the OP sentence "but wouldn't this actually cause more confusion to the user (even if he is German)." So I think we agree.
May
10
answered isn't number localization just unnecessary?
May
9
comment Is javascript worth learning if you do not plan on being a web developer?
I disagree. It is the only widespread prototype-based language. Moreover, among widespread languages, it has one of the best support for closures. So one can learn something valuable using it. Finally, it is blazingly fast for an interpreted language.
May
8
comment What is the historical basis of using Javascript in web programming?
Standard libraries for I/O in Javascript are being written. Of course these are not available in the browser. I'm justg saying that if Python was implemented in the browser, unsafe libraries would not be available. And presumably you would not miss them, since they are not meant to be used on a website.