78 karma · joined Apr 15, 2011 (15y ago) · 32 submissions
comment 13y ago · link · parent
It seems that Fidia's revenue jumped a 1000 folds thanks to Cronassial, apparently from 600 million Lire to 420 billion, with the drug representing 82% of the revenue, but I wasn't able to find a source for that.
It's quite unfortunate Levi-Montalcini never came clean of this scandal, refusing to comment on anything related to Cronassial and claiming ignorance of the facts.
Disappointing as all this might be, NGF is a great discovery which is well worth a Nobel prize and she seems to have been a very good scientist too.
1) Nilsson M. Nobel committee refutes allegations of corruption. Lancet 1995; 346: 763-4.
comment 14y ago · link · parent
comment 14y ago · link · parent
https://developer.mozilla.org/en-US/docs/JavaScript/Referenc...
comment 14y ago · link · parent
comment 14y ago · link · parent
http://docs.python.org/library/stdtypes.html#dict.setdefault
comment 14y ago · link · parent
(
) http://math.stackexchange.com/questions/54506/is-this-batman...comment 14y ago · link · parent
comment 14y ago · link · parent
I use the elements collection because the behaviour of adding each input as a property to the parent form element is a mistake.
I use the bracket notation because it highlights the difference between the implementation symbols and the actual data which is being manipulated. What I mean is that I see a property specified with the dot notation on the same level as an identifier and as such its name is just to remind us humans of its purpose, whereas a property accessed using bracket notation is important both to us and to the program since it specifies a data point.
comment 14y ago · link · parent
This behaviour seems quite unreasonable to me, but I haven't been able to find explanations about it, other than it's expected behaviour.
comment 14y ago · link · parent
I really don't understand why this isn't being fixed: doesn't global by default break encapsulation? I'm probably missing something, but this is the main reason I haven't tried coffeescript yet.
comment 15y ago · link · parent
The faith people on the other side of the Atlantic put in strangers astonishes me every time. Leaving the keys to your car inside the car, leaving the front door open go against the most basic sense of responsability I've been taught, to the point that I feel uneasy the whole travel when I have to leave the car unlocked while on a ferry boat.
L'occasione fa l'uomo ladro - Opportunity makes a thief
comment 15y ago · link · parent
The server would offload as many procedures to the client as possible (that is none if js is disabled, some if you don't want to expose your guts).
The server html renderers would be the exact same code in the client, the api would be a simple thin wrapper around your "protected" procedures.
You could event support ecmascript5 features on IE6, executing the js in the server.
comment 15y ago · link · parent
You still can use it for setting late binding event handlers though.
comment 15y ago · link · parent
The answer is "Because it helps you to manage complexity in the long run".
To continue the "just add a simple global" analogy: after a while you add another, then you peek from a completely different function inside the global variable, modify it if the day is odd and soon you have made a mess of your program. In this case globals are simply a patch to an outdated design.
"It [all the restrictions] says a lot about what functional programming isn’t (it has no assignment, no side effects, no flow of control) but not much about what it is. The functional programmer sounds rather like a mediæval monk, denying himself the pleasures of life in the hope that it will make him virtuous. To those more interested in material benefits, these “advantages” are totally unconvincing."[1]
But the new kinds of glue functional programming brings about are usually worth the squeeze (for some kind of programs in some kind of situations, maybe).
comment 15y ago · link · parent
Especially considering the history of javascript, it's a miracle we're having it this good. Not so much with the DOOM.
comment 15y ago · link · parent
Of course due to a bug in the old (v3) spec, you could redefine the builtin undefined as well as some other builtins like NaN and Infinity, but you shouldn't really be doing that and the spec at least is now fixed.
In the meanwhile, to fight that, this is a commonly used pattern for browsers: (function(window,undefined) {
// code //
})(this);
comment 15y ago · link · parent
Making the filesystem the actual package database rather than a snapshot of what should be installed is quite tempting.
comment 15y ago · link · parent
comment 15y ago · link · parent