Artwork

Nội dung được cung cấp bởi Real Python. Tất cả nội dung podcast bao gồm các tập, đồ họa và mô tả podcast đều được Real Python hoặc đối tác nền tảng podcast của họ tải lên và cung cấp trực tiếp. Nếu bạn cho rằng ai đó đang sử dụng tác phẩm có bản quyền của bạn mà không có sự cho phép của bạn, bạn có thể làm theo quy trình được nêu ở đây https://vi.player.fm/legal.
Player FM - Ứng dụng Podcast
Chuyển sang chế độ ngoại tuyến với ứng dụng Player FM !

Getting Started With Refactoring Your Python Code

58:00
 
Chia sẻ
 

Manage episode 289545538 series 2637014
Nội dung được cung cấp bởi Real Python. Tất cả nội dung podcast bao gồm các tập, đồ họa và mô tả podcast đều được Real Python hoặc đối tác nền tảng podcast của họ tải lên và cung cấp trực tiếp. Nếu bạn cho rằng ai đó đang sử dụng tác phẩm có bản quyền của bạn mà không có sự cho phép của bạn, bạn có thể làm theo quy trình được nêu ở đây https://vi.player.fm/legal.

Do you think it’s time to refactor your Python code? What should you think about before starting this task? This week on the show, we have Brendan Maginnis and Nick Thapen from Sourcery. Sourcery is an automated refactoring tool that integrates into your IDE and suggests improvements to your code.

Nick and Brendan provide advice on how to start refactoring and setting achievable code objectives. We discuss setting up unit testing and building confidence that you aren’t changing your code’s fundamental meaning. We also talk about technical debt and how it can creep into your organization’s projects.

Course Spotlight: Python Booleans: Leveraging the Values of Truth

In this course, you’ll learn about the built-in Python Boolean data type, which is used to represent the truth value of an expression. You’ll see how to use Booleans to compare values, check for identity and membership, and control the flow of your programs with conditionals.

Topics:

  • 00:00:00 – Introduction
  • 00:01:31 – What is refactoring?
  • 00:03:19 – How is it connected to extensibility?
  • 00:04:33 – What are methods for preparing your code?
  • 00:05:35 – Being confident you are not changing the meaning of the code
  • 00:09:34 – Refactoring as you go
  • 00:11:16 – What is technical debt, how is it generated?
  • 00:19:08 – Sponsor: Digital Ocean
  • 00:19:45 – Code metrics
  • 00:23:32 – Holding code in your head, and design patterns
  • 00:28:03 – Comments in code and function definitions
  • 00:35:04 – Automated refactoring
  • 00:39:34 – Using a code formatter
  • 00:43:19 – Video Course Spotlight
  • 00:44:27 – Team decisions around refactoring
  • 00:47:41 – Examples where refactoring made a difference
  • 00:51:56 – A few additional notes about Sourcery
  • 00:52:59 – What is something you are excited about in the world of Python?
  • 00:55:21 – What do you want to learn next?
  • 00:56:20 – Thanks and goodbye

Show Links:

Level up your Python skills with our expert-led courses:

Support the podcast & join our community of Pythonistas

  continue reading

203 tập

Artwork
iconChia sẻ
 
Manage episode 289545538 series 2637014
Nội dung được cung cấp bởi Real Python. Tất cả nội dung podcast bao gồm các tập, đồ họa và mô tả podcast đều được Real Python hoặc đối tác nền tảng podcast của họ tải lên và cung cấp trực tiếp. Nếu bạn cho rằng ai đó đang sử dụng tác phẩm có bản quyền của bạn mà không có sự cho phép của bạn, bạn có thể làm theo quy trình được nêu ở đây https://vi.player.fm/legal.

Do you think it’s time to refactor your Python code? What should you think about before starting this task? This week on the show, we have Brendan Maginnis and Nick Thapen from Sourcery. Sourcery is an automated refactoring tool that integrates into your IDE and suggests improvements to your code.

Nick and Brendan provide advice on how to start refactoring and setting achievable code objectives. We discuss setting up unit testing and building confidence that you aren’t changing your code’s fundamental meaning. We also talk about technical debt and how it can creep into your organization’s projects.

Course Spotlight: Python Booleans: Leveraging the Values of Truth

In this course, you’ll learn about the built-in Python Boolean data type, which is used to represent the truth value of an expression. You’ll see how to use Booleans to compare values, check for identity and membership, and control the flow of your programs with conditionals.

Topics:

  • 00:00:00 – Introduction
  • 00:01:31 – What is refactoring?
  • 00:03:19 – How is it connected to extensibility?
  • 00:04:33 – What are methods for preparing your code?
  • 00:05:35 – Being confident you are not changing the meaning of the code
  • 00:09:34 – Refactoring as you go
  • 00:11:16 – What is technical debt, how is it generated?
  • 00:19:08 – Sponsor: Digital Ocean
  • 00:19:45 – Code metrics
  • 00:23:32 – Holding code in your head, and design patterns
  • 00:28:03 – Comments in code and function definitions
  • 00:35:04 – Automated refactoring
  • 00:39:34 – Using a code formatter
  • 00:43:19 – Video Course Spotlight
  • 00:44:27 – Team decisions around refactoring
  • 00:47:41 – Examples where refactoring made a difference
  • 00:51:56 – A few additional notes about Sourcery
  • 00:52:59 – What is something you are excited about in the world of Python?
  • 00:55:21 – What do you want to learn next?
  • 00:56:20 – Thanks and goodbye

Show Links:

Level up your Python skills with our expert-led courses:

Support the podcast & join our community of Pythonistas

  continue reading

203 tập

Kaikki jaksot

×
 
Loading …

Chào mừng bạn đến với Player FM!

Player FM đang quét trang web để tìm các podcast chất lượng cao cho bạn thưởng thức ngay bây giờ. Đây là ứng dụng podcast tốt nhất và hoạt động trên Android, iPhone và web. Đăng ký để đồng bộ các theo dõi trên tất cả thiết bị.

 

Hướng dẫn sử dụng nhanh