Skip to content

Monthly Python Meetup

Photo of Chris S
Hosted By
Chris S. and Evgeny D.
Monthly Python Meetup

Details

Hey Peking Pythonistas,

Our monthly meetup for October is next Monday night (17th) at 7:30pm. For this month, we're going to try a new venue, Yard House in Sanlitun SOHO, graciously offered by our friend Jeff!

I'm going to first present a talk "Refactoring Python Code" and then we'll have an informal chat as usual about Python and other nerdy things.

北京的 Python 爱好者,大家好

我们每月一次的 Python 聚会将在下周一(10月17日)晚上七点半开始

本月我们将去一个新的场地,是坐落于三里屯 SOHO 的 Yard House,特别感谢提供场地的 Jeff!

我首先会做一个关于 Python 代码重构的分享,然后我们会像往常一样讨论 Python 或其他有趣的事情。

---

Yard House address:

2-310 Sanlitun SOHO, Gongti North Road, Chaoyang District

Phone: 186 0113 7578

If you get lost call Zhenya (185 0015 2969) or Jeff (186 0113 7578)

See you there!

Yard House 地址:朝阳区工人体育场北路 8 号三里屯 SOHO 2 号商场 3 层 310 号,电话:18601137578,大众点评地址: http://www.dianping.com/shop/69075045

如果你找不到地方,可以打电话给 Zhenya(18500152969) 或 Jeff(18601137578)

我们到时在那见!

---

Talk Description

Title: Refactoring Python Code

Duration: 1 hour

Level: Intermediate

Summary

Refactoring is an extremely important technical practice for creating clean and maintainable code. It doesn't have to be clean, readable and idiomatic Python code from the beginning of the implementation as long as you don't forget to refactor it at the end.

There are a lot of types of refactoring you can do to make your code better:

• Improve form (names, functions size, nesting)

• Improve style (PEP8/PyLint, pythonic code)

• Reduce duplication (DRY) and complexity (KISS)

• Apply design patterns (such as "Ports and Adapters")

• Apply SOLID principles (such as "Single Responsibility Principle")

• Improve code structure (modularity and composability)

In this talk, we're going to get our hands dirty by walking through some examples of all these types of refactoring applied to an existing application of aggregating movie reviews from multiple sources.

This is an Intermediate level talk but both beginners and advanced developers will find something new or useful here too.

Photo of Beijing Python group
Beijing Python
See more events
Yard House
朝阳区 工人体育场北路8号院2-310三里屯SOHO · Beijing