Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
anthonyb
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
66 ms
·
601.
▲
by
anthonyb
14y ago
Exactly, and I have exactly the same eye twitch every time someone recommends tearing out Django's ORM "because it's shit" and replacing it with SQLAlchemy. Each of those arrows from slide 25 on should have a little label: "Things that you
602.
▲
by
anthonyb
14y ago
Which is why you use different passwords on different sites.
603.
▲
by
anthonyb
14y ago
It's basically a "find any file really quickly" command, with fuzzy matching. Hit ctrl+P, type the filename (or part of the name) and it'll flash up the files that it's matching in real time, as well as display the most likely in the backgr
604.
▲
by
anthonyb
14y ago
Vim is good once you get the hang of it, for the same reason that Ctrl-P is so good in Sublime.
605.
▲
by
anthonyb
14y ago
You're missing the point - if a new programmer has to learn vim or emacs first, chances are they just won't learn to program. What's next? Grow a neckbeard? It's all about reducing the number of hoops that they have to jump through to get r
606.
▲
by
anthonyb
14y ago
There's very little evidence that it does . You just have to look at the recent article on salt ( http://news.ycombinator.com/item?id=4069613 ) to see that conventional wisdom is often flawed. Similar cases were made for eating cholesterol
607.
▲
by
anthonyb
14y ago
I you haven't seen it, go read The Programmer's Stone, http://the-programmers-stone.com/the-original-talks/ , which goes into detail about dopamine, stress, brain states and group dynamics, and how it impacts programming and creative thin
608.
▲
by
anthonyb
14y ago
The distribution is the context of an average. Also, your example makes exactly the same point as the number of legs one, but is much harder to understand. I'm not sure why you used it.
609.
▲
by
anthonyb
14y ago
If you have a decent part-time job, where you're treated and paid well, why would you be any more likely to leave than a full-time employee? I know I'm not.
610.
▲
by
anthonyb
14y ago
All of the things that you've mentioned apply to full-time employees too. Flip it around again: As a business, employing just part-timers (ie. using the part-time as a carrot) could be a very good way to build a decent team. Doubly so if th
611.
▲
by
anthonyb
14y ago
Depends on how you structure your hours. Three days a week instead of 4 hours per day is usually better. In any case, everyone has to context switch when they go home and come back in the morning. The real reason, I think, is that it's weir
612.
▲
by
anthonyb
14y ago
From the article: > writing an XSLT stylesheet to transform an in-memory representation of a customer's bill into an HTML version for display on our site. If you decide to counter-preach, it helps to read the article and understand it f
613.
▲
by
anthonyb
14y ago
But if you delete the branch, how are they supposed to see the history? You'll just have a bunch of commits appear in master. The commit message will help - if they've left something decent.
614.
▲
by
anthonyb
14y ago
I've never really understood the way that you can rewrite history in Git. It seems really odd to me - completely counter to the idea of having a repository in the first place. From the article: That is why git branches are so useful;
615.
▲
by
anthonyb
14y ago
Specifically wget -m -k -nH <http://site.url/>
616.
▲
by
anthonyb
14y ago
Now go read the hardware compatibility list: http://www.menuetos.net/hwc.txt . It only apparently supports 4 network cards, 2 audio cards and a handful of video cards, and all of them are very old tech. It's essentially a niche operating s
617.
▲
by
anthonyb
14y ago
They're all inspired by Agile, and the way it avoids large specs in favour of lighter processes like ... index cards, and moving them around on a board.
618.
▲
by
anthonyb
14y ago
I think Agile had it first...
619.
▲
by
anthonyb
14y ago
Also reminds me of Derek Sivers' classic on learning to sing: http://sivers.org/15-years
620.
▲
by
anthonyb
14y ago
The author's making a slightly different point to the one you're trying to argue: > the benefits of exercise massively outweigh the risks of even a dangerous activity like climbing. In other words, the risks of heart attack, diabetes an
621.
▲
by
anthonyb
14y ago
The other option is to create your own cache object and pass that in (and around, if it's a recursive function). Of course, in Python pretty much every cache object follows the dictionary interface anyway, so it doesn't really matter. One o
622.
▲
by
anthonyb
14y ago
Ok, I see now. You've still got that &optional argument though. I don't see a huge amount of difference from a semantic point of view between that and the Python version though (ie. if x == None: ...).
623.
▲
by
anthonyb
14y ago
What's that lambda thingo in the middle then? Pretty sure that's another function, redefined every time your function is called.
624.
▲
by
anthonyb
14y ago
I disagree. If you want your programs to be robust like that, you now have to check for every case where someone might pass in something stupid (dict instead of int, maybe?). Much better to catch errors further up the chain and keep your lo
625.
▲
by
anthonyb
14y ago
Ah, Guido's time machine strikes again :) Here's my (now mostly obsolete) version: def count(string): counts = {} for item in set(string): counts[item] = string.count(item) return counts
626.
▲
by
anthonyb
14y ago
There are a few use cases for default variables on effbot's site: http://effbot.org/zone/default-values.htm Basically, sometimes you do want to reuse the mutable between function calls, and in those cases it can save a fair bit of code pa
627.
▲
by
anthonyb
14y ago
My lisp is a bit rusty, but it looks like what you're doing there is returning a function which gets redefined every time you reuse the function. The equivalent Python would be something like this: def function(): x = 3
628.
▲
by
anthonyb
14y ago
Because it's a very short hop from what's described here to full-on tracking, and some marketing company knowing where you are, what you're doing and who you're with at all times. It's a similar situation to Google's street view - sure, it'
629.
▲
by
anthonyb
14y ago
They're not as cheap though, are they? Here are a couple of articles on poverty, obesity and cheap calories that you might find interesting: http://www.guardian.co.uk/commentisfree/2011/dec/14/obesity-... http://www.huffingtonpost.com/
630.
▲
by
anthonyb
14y ago
Decent food. There are two main effects at work: If all you can afford is ramen/bread/fast food, your body makes you overeat to get enough other nutrients (eg. vitamin C, B). The second is that your insulin goes crazy with all those simpl
More ›