8000 GitHub - theSage21/SoWrong: Slides/Code for Pycon India 2019 talk
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Jun 10, 2021. It is now read-only.

theSage21/SoWrong

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SoWrong

Code for Pycon India 2019 talk

Code examples in Python that make you go "This is SO wrong"

The idea is to write common stuff in completely absurd ways. For example, why write APIs like this

@app.get('/my/fancy/url')
def handle_in_a_fancy_fashion():
    return 'hi'
    

when you can write them like:

async for request, response in GET('/my/fancy/url'):
    response.body = 'hi'

Unlike WTFPython, this is not about strange things Python can do. It's about doing normal things in strange ways and understanding why those ways are particularly bad.

Slides can be found here

References

About

Slides/Code for Pycon India 2019 talk

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0