[CentralOH] 2015-09-28 會議 Scribbles 落書/惡文?: Non-standard Dunder Names; Eric Floehr APIs; Private Keys on Github; Travis Risner IDE PyCharm; ubuntu make; emacs; but tracker; how to use projectors
jep200404 at columbus.rr.com
jep200404 at columbus.rr.com
Tue Sep 29 17:39:13 CEST 2015
>From PEP8:
__double_leading_and_trailing_underscore__ : "magic" objects
or attributes that live in user-controlled namespaces.
E.g. __init__ , __import__ or __file__ .
Never invent such names; only use them as documented.
For the sake of discussion,
I will call __double_leading_and_trailing_underscore__ names, "dunder names".
There was a question about which (non-method) dunder names are standard.
Certainly, __name__ and __doc__ are standard.
__version__ is standard[2].
Dunder names such as the following were seen in PyCharm.
__author__
__project__
__creation_date__
Are those dunder names standard,
or are they non-standard extensions by PyCharm?
It seems that Guido is not keen[3] on making standard dunder
names like __author__, and __credits__.
PEP 345[4] seems to not talk about this.
pyohio bags for free: Take one, please!
Eric Floehr gave a presentation on API
It was extraordinarily legible with high contrast text and
filled the screen with less than 24x80.
What is an API?
There were definitions given that were probably true, but that were so
complicated that I did not recognize what they were talking about.
This was not helpful for people who do not know what an API is.
More simply:
APIs are how software talks to some other software.
api.wunderground.com/api?MR=1
free 500 calls per day
api key
import json
import urllib2
jsondata
urllib2
requests is external
urllib2 is builtin
eric at intellovations.com
never check in private keys
http://www.theregister.co.uk/2015/01/06/dev_blunder_shows_github_crawling_wi
th_keyslurping_bots/
http://vertis.io/2013/12/16/unauthorised-litecoin-mining.html
http://it.slashdot.org/story/15/01/02/2342228/bots-scanning-github-to-steal-
amazon-ec2-keys
http://www.itnews.com.au/news/aws-urges-developers-to-scrub-github-of-secret
-keys-375785
19:05 Travis Risner gave a presentation about IDEs
To IDE or to Not IDE
pycharm
what is an ide?
editor
viersion control
run program
debug
set breakpoints
virtualenv environment
fonts were too small
tr: __author__, __project__, and __creation_date__
are standard python variable names
big benefit is gui which allows one to explore multiple choice menus
without knowing exactly what one is looking for
drawback is needs much screen resolution
for pycharm 1024x768 is minimum, but feels cramped.
Ubuntu Make
https://wiki.ubuntu.com/ubuntu-make
https://github.com/ubuntu/ubuntu-make
The one true operating system.
http://xkcd.com/378/
should we use bug tracker?
send reminders to presenters before meeting about projectors
[1] PEP 0008 -- Style Guide for Python Code
https://www.python.org/dev/peps/pep-0008/#names-to-avoid
[2] PEP 0396 -- Module Version Numbers
https://www.python.org/dev/peps/pep-0396/
[3] [Python-Dev] __credits__ and __author__ variables
http://mail.python.org/pipermail/python-dev/2001-March/013328.html
[4] PEP 0345 -- Metadata for Python Software Packages 1.2
https://www.python.org/dev/peps/pep-0345/
More information about the CentralOH
mailing list