Python ranting

  • Thread starter Deleted member 43669
  • Start date
Status
You're currently viewing only Richard Berg's posts. Click here to go back to viewing the entire thread.
Not open for further replies.

Richard Berg

Ars Legatus Legionis
43,037
Subscriptor
Are you really sure you think that? It seems to me like some of the things you like about Python, are at least partially related to dynamic typing.
Uh, no. Giving #2 and #4 friendly syntax requires type inference, not dynamic typing.

It's the only way for each user to see the code in his/her preferred tab width *and* allow alignment to happen.
I don't give a fuck what your "preferred" tab width is. Every good codebase has a standard style. Only through a finely-tuned process of social Darwinism does it stay that way.
 

Richard Berg

Ars Legatus Legionis
43,037
Subscriptor
No, because font preferences aren't part of source control / the build process. Nor are key bindings, paren matching, or code snippets....unless those editor features lead you to commit files with inconsistent brace alignment or copy/paste bugs, I suppose, but we already have techniques like RPH* to confront such issues.

Some perspective, please. Text size and color scheme are important for many folks' comfort. (The latter less so, now that the CRT era is thankfully behind us). Windows vs VI vs Emacs key bindings have major productivity implications; full fluency with an unfamiliar layout could take months. Tab width is a very minor tweak by comparison. The world has more or less standardized @ 4, which seems perfectly fine. Even if you're already accustomed to skimming Python @ 2 or 8, it should take very little time to adjust -- far less than learning the codebase itself.

...unless the platform / IDE forces you to work at 800x600, or you're in the habit of writing deeply nested loops / conditionals, or "TransactionAwareFactoryDelegatePerTargetObjectIntroductionAdapterFactory" is a typical identifier...in which cases I don't consider it a good codebase...

*Ritual Public Humiliation
 

Richard Berg

Ars Legatus Legionis
43,037
Subscriptor
But it takes time to avoid clicking in the middle of a tab and having to press backspace 3 times to outdent
Shift-Tab
or to have to click in just the right spot to put the cursor at the beginning of the line
Home
Not to mention that on every project that I've worked on with others that used spaces, I'd find blocks accidentally indented by 3 spaces instead of 4, and individual lines indented with either one too many or one too few spaces
Ctrl-K-F
so apparently others have trouble with them as well
Burn them with fire! ;)

...sorry Python guys...
 
Status
You're currently viewing only Richard Berg's posts. Click here to go back to viewing the entire thread.
Not open for further replies.