locci | 14 years ago | on: Functional Programming Doesn't Work (and what to do about it)
locci's comments
locci | 14 years ago | on: EBay Patents 10-Click Checkout
locci | 14 years ago | on: I hate computers. But I love what you can do with them.
I wish they would sell it.
It never does quite what I want
But what I tell it.
locci | 14 years ago | on: Bruce Eckel on JavaScript
Especially considering the history of javascript, it's a miracle we're having it this good. Not so much with the DOOM.
locci | 14 years ago | on: Ask HN: What's your most-used function that you wrote yourself?
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);
locci | 14 years ago | on: Ask HN: How do you manage your *nix binary package updates? (first post. eek)
Making the filesystem the actual package database rather than a snapshot of what should be installed is quite tempting.
locci | 14 years ago | on: Sega says hackers stole data of 1.29 million users
locci | 14 years ago | on: JSON users: Avoid CSRFs by not using top-level arrays
locci | 14 years ago | on: JSON users: Avoid CSRFs by not using top-level arrays
locci | 15 years ago | on: Wisconsin public Internet fights telecom attempts to kill it off
locci | 15 years ago | on: Nuclear reactor on Kickstarter
http://video.google.com/videoplay?docid=1996321846673788606#
(and it's the first google talk video I watched, some quadrillion ticks ago)
locci | 15 years ago | on: Peacetime CEO/Wartime CEO
Did suddenly all the techies buy in the "social" buzzword? I don't really think so: what infrastructural and, in general, technical challenges would Facebook be facing which aren't faced at Google too?
I tend to perceive Google as the technical innovator, bringing magic (1 gB email??? watching the world from above??? and free???) to the real world, whereas Facebook, despite it's cool API and Cassandra, is just vendor lock in.
But I digress: maybe the problem is that Google's already solved the problem leaving no space for new ideas?
Why would Facebook appeal more smart techies?
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).
[1] http://www.cse.chalmers.se/~rjmh/Papers/whyfp.pdf