Viewing profile — amcgregor
amcgregor
HN member- Joined
- Thu, Jun 14, 2012, 9:35 PM UTC
- HN karma
- 23
- Public activity
- 17 items
- HN profile
- View on Hacker News ↗
About amcgregor
No profile information was provided.
Recent public activity
-
comment
Comment #5060533
Disk, flash, or RAM are concerns any time you have many copies of the files. One large file or millions of small ones, it adds up either way! I picked tab-based indentation because…
-
comment
Comment #5045562
With no downsides to using tabs over spaces, and wanting to preserve readable SCM diffs, saving 20% of the space for such diffs just happens to be a nice side benefit, not the prim…
-
comment
Comment #5045378
Oh, forgot to mention: you can embed in source files editor instructions (between -*- for emacs, something I can't remember for vim) that specify a default presentation format.
-
comment
Comment #5045351
But not disk, flash, or RAM. And network transfers are not always compressed, say, if synchronizing with a WebDAV back-end with naive client software. (The vast majority of iOS Web…
-
comment
Comment #5045332
How often? Daily; I use my phone and iPad while I'm mobile, out having a smoke, or whatever. At home I use my iPad more than my laptop. You don't keep your source code in a minifie…
-
comment
Comment #5045297
The design of the blog is not under my control; if it was, it'd be a lot more flexible. (Responsive design FTW.) The lines that are 81 characters long benefit greatly from the incr…
-
comment
Comment #5045253
Python is one-statement-per-line, which is already a pretty good limiter of line length. Just don't go crazy with ternary operators (which are hard to read anyway and thus against …
-
comment
Comment #5045246
I use an alternate form that doesn't require alignment to an arbitrary column and works with tab indentation without needing to mix: thing = { [→][→]some_key_1: some_var_1, [→][→]s…
-
comment
Comment #5045226
I often use splits on my editors, and with 329 columns in my editor (with side-bar open) there is plenty of room. Fairly recently I was working with five simultaneous vertical spli…
-
comment
Comment #5045207
Tabs not simply because it "looks better", but because it offers me the choice. Unfortunately, like most arguments on this subject, you have brought no logical counter-arguments to…
-
comment
Comment #5045192
Automation is a very nice thing. We, too, use Git hooks to run a wide array of checks and cleanup routines. The base that we use is from my hooks collection: https://github.com/amc…
-
comment
Comment #5045175
If your developers are pressing space four times instead of the tab (key), and the editors aren't capable of reasonable wrapping policies, you should probably replace either the ed…
- story
-
comment
Comment #4131637
Convienently, the solution I wrote allows you to utilize two or as many templates as you want, add and remove to the directory as you wish. For us, setting off a handful of templat…
-
story
Poor Man's Template A/B Testing (in Django)
Ever wanted to A/B test your templates in Django and didn't know where to start? Here is a 50 line function as a drop-in replacement for render_to_response with full breakdown of h…
-
comment
Comment #4113661
Celery natively pickles the arguments to the background callable. Discussion of why we didn't just pass numerical IDs around is covered in the original article's discussion threads…
-
comment
Comment #4113645
promiscuous |prəˈmiskyo͞oəs| 2. demonstrating or implying an undiscriminating or unselective approach; indiscriminate or casual: "the city fathers were promiscuous with their honou…