Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
glassx
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
9 ms
·
31.
▲
by
glassx
14y ago
> most people find advertising a useful part of their lives Citation needed. "Most people" might not use AdBlock because they don't know about it or don't know how to install it.
32.
▲
by
glassx
14y ago
Well, most early returns are avoided mostly because it makes it harder to understand the code. But when you use guard clauses, like on your Linux Kernel example, you actually improve the code, because you reduce cyclomatic complexity (every
33.
▲
by
glassx
14y ago
Exactly. Also, for example, when you have lots of "if" clauses, those languages force us to use mutable state (and a variable initialized as null) just to avoid early exits. But we can avoid both by treating the "if" as an expression, as in
34.
▲
by
glassx
14y ago
> I don't have to download monstrosity that is Xcode just to get a damn compiler. They fixed that. On newer OS X versions you can download the Command Line Tools (just 110mb) from Apple's website. You just need a free account: https:/
35.
▲
by
glassx
14y ago
Interesting changes to the API. We now have an observer API, instead of just a function that invokes the login window. https://developer.mozilla.org/en-US/docs/DOM/navigator.id I believe this merges the old BrowserID Session Management pa
36.
▲
by
glassx
14y ago
It's not really a "password manager", it uses signed assertions instead of plaintext passwords. It is similar to client certificates, but with a much better UI. Plus, your keys are stored in the browser, according to callahad, so Mozilla do
37.
▲
by
glassx
14y ago
Agreed, that wouldn't be too terrible, but then, again, I think that I always end up using a while loop for those cases when I have to "redo" stuff.
38.
▲
by
glassx
14y ago
The article mentions that as well: "Backward gotos could be ok when it makes sense that your error case would repeat the last iteration" Btw, in Ruby there are two keywords that are basically backward gotos: redo and retry.
39.
▲
by
glassx
14y ago
I like the position of this C2 article on goto: http://c2.com/cgi/wiki?GotoConsideredHarmful It argues that forward gotos (that work like continue, break, returns mid-function) don't contribute to spaghetti code, while backward gotos are
40.
▲
by
glassx
14y ago
And it's not just with computers. I have a Sony Bravia TV and with every update its "UI" got slower and slower, until I disabled updates. I know it's got a lot of cool features in it, but I just wanted a simple TV.
41.
▲
by
glassx
14y ago
Only up to 2006, at least according to this link: http://www.quora.com/Orkut/Why-was-Googles-Orkut-built-on-AS...
42.
▲
by
glassx
14y ago
Isn't the problem with JSBin (or CoderWall)? His updated version of Hacker News isn't really that complex or incompatible with older browsers.
43.
▲
by
glassx
14y ago
He's talking about intermediate representation and how some optimizations, such as SSA [1], are closer to functional style. In the end it's all imperative assembly, but during the optimization phase it can be something else. [1] http://en.
44.
▲
by
glassx
14y ago
I really don't know why people seem to think that post is the final position of Joe Armstrong about OOP. It's a very old post, without any context, and since then he has gone on record praising Smalltalk and Alan Kay's take on objects man
45.
▲
by
glassx
14y ago
Agreed. And Joe Armstrong himself used this argument here: http://www.infoq.com/interviews/johnson-armstrong-oop
46.
▲
by
glassx
14y ago
I don't know the context of the post, but remember that Erlang is a community effort, not a dictatorship. He has to expose his arguments and motives in order to keep using his favourite methodology.
47.
▲
by
glassx
14y ago
It's hard to explain, but it's not much a "service" - the current implementation is just a "shim", since no browser supports it natively. Client-wise, it's just a JavaScript API. In the future, your browser will store your keys, not Mozilla
48.
▲
by
glassx
14y ago
I believe that a native implementation has been on their plans from the start, but I haven't heard much about it lately. Here's some mockups: http://people.mozilla.com/%7Efaaborg/files/projects/firefoxA... There's also some work on integr
49.
▲
by
glassx
14y ago
Nope. In this line he's talking about a web app he's writing and how he considered writing it in PHP to boost adoption. Here's it in context: "I'm starting a new open source web project with the goal of making the code as freely and easily
50.
▲
by
glassx
14y ago
For Ruby there's Passenger/Ruby Enterprise Edition, which is simple to setup IMO, but it's stuck on 1.8.x, AFAIK...
51.
▲
by
glassx
14y ago
<rant>Okay, not directed at you, but... It was posted yesterday. Does this really have to be posted EVERY SINGLE DAY? Every time anyone suggests improving anything, or make another product in a crowded space, this comic is posted. T
52.
▲
by
glassx
14y ago
> When Steve Jobs came back, he terminated all those projects and discontinued most of the product catalog. Woah, that was a crazy idea...
53.
▲
by
glassx
14y ago
Similar results here, we're an university with about 16 thousand: 41% hotmail, 21% yahoo, 10% gmail.
54.
▲
by
glassx
14y ago
Well, to nitpick, the first, fourth and fifth example are just variations of the other ones, and they're (ab)using Haskell features - respectively n+k patterns, laziness and point-free programming. Those features aren't available on every f
55.
▲
by
glassx
14y ago
> How many ways can a reasonable programmer write the factorial function imperatively This page is a terrible example. Most of these are not not what a "reasonable programmer" would do. An unreasonable programmer would be able to screw
56.
▲
by
glassx
14y ago
Ooops, yes, you're right on both!
57.
▲
by
glassx
14y ago
The chord choices in Garageband are the chords found within the scale of C, plus Bb (even the Bdim - but, to be pedant, it should actually be a B7b5). Having Bb you can modulate (or "change the key") to F without having to switch scales etc
58.
▲
Configuration Complexity Clock
(mikehadlow.blogspot.co.uk)
1 points
by
glassx
14y ago
|
1 comments
59.
▲
by
glassx
14y ago
Yes, but the statement is still wrong. By default, apps signed with the free-certificates aren't discouraged, they're as first-class as AppStore apps (however, there's a setting to disallow them). Not that Apple is making any effort to clea
60.
▲
by
glassx
14y ago
The sessions are probably stored on the server, and they expire after some time. It happens a lot here where I work: our legacy ASP.NET WebForms use Sessions (because it used to be easier this way) and once in a while people complain that t
More ›