Anthony Shaw - Wily Python: Writing simpler and more maintainable Python - PyCon 2019

preview_player
Показать описание
"Speaker: Anthony Shaw

Everyone starts with the best intentions with their Python projects, ""this time it's going to be clean, simple and maintainable"". But code evolves over time, requirements change and codebases can get messy and complicated quickly.

In this talk, you will learn how to use `wily` to measure and graph how complicated your Python code is and a series of practical techniques to simplify it. `wily` will show you which parts of your projects are becoming or have become hard to maintain and need a refactor. Once you know where the skeletons are, you will learn practical techniques for refactoring ""complex"" code and some resources to use to take your refactoring to the next level.

Рекомендации по теме
Комментарии
Автор

05:12 Cyclomatic Complexity
10:12 Halstead Metrics
13:18 Maintainability Index
14:56 Radon
16:12 Wily
16:54 Demo
20:08 Gravity of Complexity
21:36 Testing and refactoring
24:01 Summary
26:40 QnA

stalinthomas
Автор

Had anyone ever had an idea to measure code complexity of popular libs / frameworks such as pandas or Django, with this nice tool? That would be a nice research.

dmitriyg
Автор

Great Pycon talk, you should definitely do more of those

TLE
Автор

Very useful tool in production! Thank you, authors.

dmitrysysoev
Автор

Nice talk. Would have appreciated some more complex practical examples of good refactoring from complex->simpler code.

I will be using Wily :)

hotharvey
Автор

Do we have a github action file/docs for wiley ?

disenchitilapillydevassy
Автор

How to record and (visually) replay the keystrokes on the shell, as he shows at around 17:00?

patrickmullan
Автор

Is there a way to identify why cc or mi affected?

sreeragm
Автор

github link mentioned is not correct. it opens "page not found". could not get the slides from speakerdeck as well. :( Please help.

jayprakashs
Автор

Anyone who is willing to use radon and wily should also read this:
In particular the original formula is for languages like C and pascal, but it hasn't been updated fo python.

unperrier
visit shbcf.ru