When you need to code fast, efforts to type “transaction” look somewhat funny. Why don’t just use abbreviations that will save you from a lot of typing? However, they need to be consistent, so some system of abbreviations is necessary. Such system may look like this:
kwkwargsinstinstancetxntransactionctxcontextpth (sometimes is useful)pathclsclassfmtformatmwmiddlewareththreaddfddeferredcbcallbacktmpltemplatefnfilenamedirdirectoryextextensionappapplicationprprocessor (thing that is called middleware in Django)fsformsetcmdcommandFor futher reading: PEP 8, Sergey Schetinin’s style guide and Pocoo’s one.
This blog is about things I encounter while doing web and non-web software development.