zeekay
|
10 years ago
|
on: The Beauty of Clojure
(reduce + (map (partial + 2) (range 10)))
...reads great in my opinion. Surprised no one else has brought it up.
zeekay
|
10 years ago
|
on: The Beauty of Clojure
Ranges are inclusive, so:
sum $ map (+2) [0..9]
Nitpick, but it confused me for a second.
zeekay
|
11 years ago
|
on: Show HN: A stupid hack to crash tab and/or browser
At least on OS X, Firefox is as well behaved as you might expect when forcefully triggering an infinite loop on beforeunload.
zeekay
|
11 years ago
|
on: The ups of downs of porting 50k lines of C++ to Go
I've also found the lack of parametric polymorphism a huge pain point. Type safety is constantly sacrificed to allow for code-reuse and nicer APIs, leading to really awful code using type switching at best, inscrutable amounts of reflection at worst. This seems to plague the Google developers as well, just look at the Go App Engine APIs.
zeekay
|
11 years ago
|
on: Google, Our Patron Saint of the Closed Web
zeekay
|
11 years ago
|
on: Show HN: Exa, a replacement for ls written in Rust
A better ls! I love the git integration.
zeekay
|
11 years ago
|
on: Ask HN: Experienced dev having career lull
I concur. I was in a similar situation at the beginning of the year. Started a new company with a couple friends, and it's rekindled my passion for programming and forced me to grow not only as a developer, but in numerous other areas as well.
The challenges associated with starting a new company will be varied and entertaining, drag you outside of your comfort zone and demand the most of you.
Build something cool. Build value for yourself and others. Find other people that believe in you and want to work with you. Very little is more exciting or rewarding.
zeekay
|
11 years ago
|
on: Hamlet – Simple and powerful reactive templating
Would be extremely appealing if it borrowed more inspiration from Jade than Haml.
zeekay
|
13 years ago
|
on: Python Generators in Depth
Not much different, really. The biggest practical difference is that Python generators implement the iterator protocol which means it's possible to easily iterate over them with for loops, etc.
zeekay
|
13 years ago
There is some history of irc channels associated with HN, consider visiting ##hackernews or #startups on irc.freenode.net instead.
zeekay
|
14 years ago
|
on: Your first Node.js module
I've noticed that, and have been taking advantage of it. Any downside to using `this`, besides potential scoping issues?
zeekay
|
14 years ago
|
on: A good developer has a natural, almost visceral aversion to complexity
zeekay
|
14 years ago
|
on: Best of Vim Tips
zeekay
|
14 years ago
|
on: Programming With Only Functions
With a bit more background (on lambda calculus) I think this would make an interesting intro to lambda calculus for Python developers.
zeekay
|
14 years ago
|
on: Back on Linux (after one year of Apple and OS X)
I have experienced OSX's "swappiness", having gone as far as disabling dynamic paging in an attempt to avoid it. Upgrading memory was the only real solution. A little bit of research would reveal a lot of other people have run into the same problem, you aren't alone at all in that.
I split my time between OSX/Linux and it's pretty obvious to me that Linux is vastly superior in terms of performance, in a wide-range of scenarios. I prefer to use Linux on older and/or memory-constrained systems.
zeekay
|
14 years ago
|
on: Ask HN: JavaScript Dev Tools
Using jslint has saved me a lot of time (I lint everything on write in vim using syntastic). Syntax errors can pass silently leading to difficult to find bugs. Using strict mode helps with this as well. I have also started to prefer Chrome for client-side JavaScript development, it seems to let less slide than Firefox, although Firebug is pretty dang nice.
zeekay
|
14 years ago
|
on: Five-minute Multimethods in Python
I usually just provide a default argument to get:
dispatch.get('two', default_strategy)
zeekay
|
14 years ago
|
on: Dart language
Who wants to begin work on CoffeeScript-for-Dart? Possibly call it Arrow or Bolt, although I'd find Dash endlessly amusing.
zeekay
|
14 years ago
|
on: Arch Linux – "It is what you make it"
I'm not about to remove Gentoo from my older servers, but I'm probably never going to install it again. Not having to compile everything is a huge win. The Arch build system is fantastic. It's easier to create/maintain your own packages. Arch's packages seem to be of higher quality, and more frequently updated. I've found the last few months of using Arch to be completely delightful.
zeekay
|
14 years ago
|
on: Google to announce "new programming language for structured web programming"
I prefer the crippled lambda. If you need more than a simple expression, you should write another function anyways. The restriction leads towards easier to read/maintain code.