23 karma · joined Jun 14, 2012 (14y ago) · 17 submissions
comment 13y ago · link · parent
I picked tab-based indentation because of the flexibility it gives me and anyone else reading the code. Savings elsewhere are icing on the cake.
IDEs can automate bad behaviour as well as good, and yet spaces remain intra-word separators and tabs remain the character designed for indentation and alignment.
comment 13y ago · link · parent
Saying you don't conform to a use case does not invalidate said use case.
comment 13y ago · link · parent
You don't keep your source code in a minified state, nor do you keep it gzipped; the storage/bandwidth/IO considerations are for SCM-tracked code where there are potentially many, many copies of the same file in different states.
If you could reduce a 34-line (1KB) diff by 20% (average of two indentation levels of four spaces each across those lines), why wouldn't you?
comment 13y ago · link · parent
The lines that are 81 characters long benefit greatly from the increase to 120 characters. That was the primary reason for increasing the limit beyond PEP-8's default 80 in my FOSS codebases. There were far too many lines whose wrapping was clearly stupid, and too much developer time spent worrying about it.
I have 4 screens (2@1024x768, 1@2560x1440, 1@1280x800) and frequently utilize multi-column splits. I only turn soft-wrapping on when I need it, which is almost never. If I were utilizing your setup I wouldn't enable it on your mvim display; <2% of the lines in any of the codebases I work on exceed 90 characters.
comment 13y ago · link · parent
My FOSS libraries follow a 120-character wrapping limit and avoids alignment, but otherwise follows PEP-8. The main reason it was upped was the stupid arbitrary wrapping of lines that were only a few characters over the limit.
comment 13y ago · link · parent
thing = {
[→][→]some_key_1: some_var_1,
[→][→]some_key_2: some_var_2,
[→][→]some_key_3: some_var_3,
[→]}
Several benefits: easier to insert lines at the head or tail without making the SCM diff ugly, also avoids merge conflicts in those cases, and I use indentation of two levels to separate it from code.Why suffer a problem when it's easily avoided? :)
comment 13y ago · link · parent
comment 13y ago · link · parent
comment 13y ago · link · parent
comment 13y ago · link · parent
13.
Your code style guide is crap, but still better than nothing.(tech.matchfwd.com ↗)
16 points · by amcgregor · 13y ago · 48 comments
comment 14y ago · link · parent
I think "better" needs to be defined. "More accurate results?" Possibly, but probably not by much. Less disturbance to general conversion rates (since the 'successful' case is presented most often barring random variability), sure. But the point is to try out every option, not try out the seemingly more successful option the majority of the time.
15.
Poor Man's Template A/B Testing (in Django)(tech.matchfwd.com ↗)
11 points · by amcgregor · 14y ago · 2 comments
comment 14y ago · link · parent
Hardly sexist. In this context I was referring to the more flexible and less restrictive use of models. See the comment threads on the original post for additional detail.
If you really want to raise that subject I can highly recommend a few good E3 video game trailers for you to comment on. ;P