summaryrefslogtreecommitdiffstats
path: root/.md/thoughts/syntax
diff options
context:
space:
mode:
Diffstat (limited to '.md/thoughts/syntax')
-rw-r--r--.md/thoughts/syntax/random-python-idiosyncrasies.md17
1 files changed, 17 insertions, 0 deletions
diff --git a/.md/thoughts/syntax/random-python-idiosyncrasies.md b/.md/thoughts/syntax/random-python-idiosyncrasies.md
index 22e9e25..b6683b6 100644
--- a/.md/thoughts/syntax/random-python-idiosyncrasies.md
+++ b/.md/thoughts/syntax/random-python-idiosyncrasies.md
@@ -114,3 +114,20 @@ r = requests.get("www.debian.org")
pageSize = r.json()['pageSize'] # camel case ok
```
+## 6) If it's over 100 lines, you probably need a new file (and a class)
+
+This is more of a general coding thing, but I've encountered so many
+1000 line monster out there, I need to reiterate it. I understand how
+these things come to be, having made a few myself in the beginning. You
+get an idea and want to see it through in full. Like *On the Road* it
+comes out as a scroll Merlin himself would be proud of.
+
+But coming back to the scroll in a week half-drunk and half-tired is not
+a situation you want to be caught in. You can always import *any* python
+code you write with a simple:
+
+```python
+import filename
+```
+
+As long as it's in the same directory.