Better HN
topnewbestaskshowjobs
Log inSign up

zeekay

39 karma · joined May 6, 2011 (15y ago) · 22 submissions

i <3 hacking and open source code.

wanna chat? curl zeekay.io/say-hi | python

[ my public key: https://keybase.io/zeekay; my proof: https://keybase.io/zeekay/sigs/P_IC92gaCh3icvX2XQR2ChiARIaK5e1XZj41zOSZCpE ]

Submissions

comment 11y ago · link · parent

  (reduce + (map (partial + 2) (range 10)))
...reads great in my opinion. Surprised no one else has brought it up.

comment 11y ago · link · parent

Ranges are inclusive, so:

  sum $ map (+2) [0..9]
Nitpick, but it confused me for a second.

comment 11y ago · link · parent

At least on OS X, Firefox is as well behaved as you might expect when forcefully triggering an infinite loop on beforeunload.

comment 11y ago · link · parent

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.

comment 11y ago · link · parent

Personally I'd prefer .dev for local development ala http://passingcuriosity.com/2013/dnsmasq-dev-osx/.

Let's petition Apple to make this default in OSX. Game, set match.

comment 11y ago · link · parent

A better ls! I love the git integration.

comment 12y ago · link · parent

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.

comment 12y ago · link · parent

Would be extremely appealing if it borrowed more inspiration from Jade than Haml.

comment 13y ago · link · parent

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.

comment 14y ago · link · parent

There is some history of irc channels associated with HN, consider visiting ##hackernews or #startups on irc.freenode.net instead.

comment 14y ago · link · parent

I've noticed that, and have been taking advantage of it. Any downside to using `this`, besides potential scoping issues?

comment 14y ago · link · parent

Speaking of McIllroy, reminded of this relevant story: http://www.leancrew.com/all-this/2011/12/more-shell-less-egg....

comment 14y ago · link · parent

I found this is an attractive and well thought-out resource for understanding vim motions: http://naleid.com/blog/2010/10/04/vim-movement-shortcuts-wal....

comment 14y ago · link · parent

With a bit more background (on lambda calculus) I think this would make an interesting intro to lambda calculus for Python developers.

comment 14y ago · link · parent

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.

comment 14y ago · link · parent

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.

comment 14y ago · link · parent

I usually just provide a default argument to get:

dispatch.get('two', default_strategy)

comment 15y ago · link · parent

Who wants to begin work on CoffeeScript-for-Dart? Possibly call it Arrow or Bolt, although I'd find Dash endlessly amusing.

comment 15y ago · link · parent

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.

comment 15y ago · link · parent

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.

comment 15y ago · link · parent

I've found uwsgi is great for multiple site hosting. There are numerous ways to configure uwsgi for this purpose, one of my favorites: http://projects.unbit.it/uwsgi/wiki/VirtualHosting. Newer versions of uwsgi also have a feature called emperor mode which is pretty slick: http://projects.unbit.it/uwsgi/wiki/Emperor.

22.

Using PyPy to speed up MyHDL simulations(myhdl.org ↗)

6 points · by zeekay · 15y ago · discuss