Keynote


Turicas aka Álvaro Justen


Python Sudeste 2017

2017-05-06 - Rio de Janeiro/RJ, Brazil

Hello, world!

{twitter,
github,
youtube,
slideshare,
instagram}
/turicas

turicas@pythonic.cafe

turicas.info


cursodearduino.com.br


pythonic.cafe

...


generonumero.media


escoladedados.org


simplefractal.com


mentis.institute

bit.ly/pyse-kn-turicas

define:Keynote

# Keynote**s** - Like lightning talks - Linked (`weakref`)

Part 1:

Enjoy the Commons


(Image by DarwinPeacock, Maklaan, CC-BY-SA)

A Bit of History...

Álvaro Justen e suas mochilas

Ecuador: Nature


Antisana, Ecuador
(Photo by Álvaro Justen, CC-BY-SA)

Ecuador: Population


(Graph by Google Public Data, data by World Bank)

Ecuador: Python?


(Data by Facebook Search)

pythonquito.tk

## PythonQuito: Challenges - Portuñol - Contacts in Ecuador: almost zero - No community

PythonQuito: DjangoGirls

(~35 girls)

PythonQuito: Money

## PythonQuito: Lessons Learned - Think how good is **to have a community** - And to have an inclusive and very active one - Cultural aspects count - Laws can disturb
## PythonSudeste: ## A Great Privilege ## **ENJOY!** ## And **thank the organization**

Part 2:

To The Definitions


(Picture by Max Pixel, CC-0)

![](images/copyright-law-brazil-software-license.png) [planalto.gov.br/ccivil_03/LEIS/L9610.htm](http://www.planalto.gov.br/ccivil_03/LEIS/L9610.htm)
“Software license is a legal instrument (usually by way of contract law, with or without printed material) governing the use or redistribution of software”
-- Wikipedia
## Have you read the copyright law?
![](images/copyright-law-brazil.png) [planalto.gov.br/ccivil_03/LEIS/L9610.htm](http://www.planalto.gov.br/ccivil_03/LEIS/L9610.htm)
![](images/copyright-law-brazil-2.png) [planalto.gov.br/ccivil_03/leis/L9609.htm](http://www.planalto.gov.br/ccivil_03/leis/L9609.htm)
## You're probably not the owner ![](images/copyright-law-brazil-software-owner.png)
## Ask for permission by default ![](images/copyright-law-brazil-software-owner-rights.png)
![](images/copyright-law-brazil-software-reproduction.png)
![](images/copyright-law-brazil-rights-violation.png)
(Almost) Never ends ![](images/copyright-law-brazil-public-domain.png)
## Have you read the license? ![](images/i-agree.png)
## Rights in copyright (from [Wikipedia](https://en.wikipedia.org/wiki/Software_license#/media/File:Software-license-classification-mark-webbink.svg)) ![](images/rights-in-copyright.png)
## Richard M. Stallman (picture by [Wikipedia](https://en.wikipedia.org/wiki/Richard_Stallman#/media/File:Richard_Stallman_-_F%C3%AAte_de_l%27Humanit%C3%A9_2014_-_010.jpg)) ![](images/richard-stallman.jpg)
## The four essential freedoms (from [gnu.org](https://www.gnu.org/philosophy/free-sw.en.html)) - (0) To run the program as you wish - (1) To study how the program works - (2) To redistribute copies - (3) To distribute copies of your modified versions
## General Public License ![](images/gplv3.png) [gnu.org/licenses/gpl-3.0.en.html](https://www.gnu.org/licenses/gpl-3.0.en.html)
## “**G**NU's **N**ot **U**nix” ![](images/gnu.png) [gnu.org](http://www.gnu.org)
## Which license? - GPL - LGPL - BSD - MIT - Apache - ...
![](images/copyleft.png) (from [Google Search](https://www.google.com.br/search?q=copyleft))
![](images/software-licenses.png)
### Free Software != Freeware (gratis) ### Free Software != Shareware ### **Free Software != Open Source Software**
## Licensing tips - Read carefully (eg: Microsoft Visual Studio Code) - If you'd like to support the ecosystem, go with copyleft - Understand more about Free Software and Open Source history - “[A História do GNU - 30 anos de criação de software livre](http://hemingway.softwarelivre.org/fisl15/high/41b/sala41b-high-201405091403.ogv)”, by [Aracele Torres](https://twitter.com/araceletorres) - Understand the risks of not using copyleft - “[copyleft: e eu com isso?](http://hemingway.softwarelivre.org/fisl17/41a/sala41a-high-201607151003.ogv)”, by [Thadeu Cascardo](http://cascardo.eti.br/)
## Non-Software Works ![](images/creative-commons.png) [creativecommons.org](https://creativecommons.org/)

Part 3:

rows (library and CLI)

LIVE CODING

Part 4:

Writing good software

## “Good” - Easy to use - User interface/experience - Empowering - Purposeful features - Reliable, consistent - Code quality
## Be **really** self-taught - “Self-taught” - Curious - Proactive - **Learn how and why things work** - Read the f*cking code, it's libre! - Example usage of `ipython`
## Don't reinvent the f*cking wheel... - Know and use the [standard library](https://docs.python.org/3/library/) - Search on [Python Package Index](https://pypi.python.org/) - Use the [UNIX Philosophy](https://en.wikipedia.org/wiki/Unix_philosophy) - Example: [rows](https://pypi.python.org/pypi/rows)
## ... Unless you really know what you're doing! - Innovation comes here - By rational need - But always use the [Ockham's razor (law of parsimony)](https://en.wikipedia.org/wiki/Occam%27s_razor) - And write [tests](https://en.wikipedia.org/wiki/Test-driven_development) - Examples: - [rq](http://python-rq.org/) (vs [celery](http://www.celeryproject.org/))
## DON'T BE FOOLED BY THE TECH HYPE - Buzzwords don't solve real problems: - Machine learning - Big data - Internet of things - Data science - Async I/O - Be **pragmatic**, not passionate - You're a problem solver, not an actor - Good practices - Follow the [Python Enhancement Proposals](https://www.python.org/dev/peps/) - `import this`
## Purposeful features - [Why? Why? Why? Why? Why?](https://en.wikipedia.org/wiki/5_Whys) - **Talk to humans** - technology is here to help them - [Gênero e Número](http://generonumero.media/) - [baixar-comentarios](https://baixar-comentarios.herokuapp.com/) - etc.

Code quality

“Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live.”
-- John F. Woods

User interface/experience

“Code as if your software were to run in a bullet train”
-- Álvaro Justen
## Let's put the machines to work for us ![](images/automate-all-the-things.jpg) ## (while we're still smarter)

?

Thanks! (:

Turicas aka Álvaro Justen

{twitter,
github,
youtube,
slideshare,
instagram}
/turicas

turicas@pythonic.cafe

turicas.info

bit.ly/pyse-kn-turicas