5 Reasons Why You Should Use Type Hints In Python

ArjanCodes ยท Beginner ยท๐Ÿ—๏ธ Systems Design & Architecture ยท3y ago
๐Ÿ’ก Learn how to design great software in 7 steps: https://arjan.codes/designguide. Even though you don't see type hints all that often in Python code, and they'll probably never become obligatory, I still think you should use them. Here are 5 reasons why. ๐ŸŽ“ ArjanCodes Courses: https://www.arjancodes.com/courses. ๐Ÿ’ฌ Join my Discord server: https://discord.arjan.codes. โŒจ๏ธ Keyboard Iโ€™m using: https://amzn.to/49YM97v. ๐Ÿ”– Chapters: 0:00 Intro 1:27 What are type hints? 3:35 Criticisms of type hints 4:36 #1 Type hints help write shorter documentation 5:50 #2 Type hints improve the editing experโ€ฆ
Watch on YouTube โ†— (saves to browser)

Chapters (11)

Intro
1:27 What are type hints?
3:35 Criticisms of type hints
4:36 #1 Type hints help write shorter documentation
5:50 #2 Type hints improve the editing experience
8:25 #3 Type hints make coupling more explicit
9:08 #4 Type hints force being explicit about data structures
9:50 Sidestep: Type-driven development
11:31 #5 Type hints simplify your code
12:02 Type hints vs unit tests
12:43 Final thoughts

Playlist

Uploads from ArjanCodes ยท ArjanCodes ยท 60 of 60

โ† Previous Next โ†’
1 Full stack WEB DEVELOPMENT in 2021 - the ULTIMATE tech stack for FAST web app development
Full stack WEB DEVELOPMENT in 2021 - the ULTIMATE tech stack for FAST web app development
ArjanCodes
2 FROM PRODUCT IDEA TO SOFTWARE - turn your idea into reality in a few steps
FROM PRODUCT IDEA TO SOFTWARE - turn your idea into reality in a few steps
ArjanCodes
3 Cohesion and Coupling: Write BETTER PYTHON CODE Part 1
Cohesion and Coupling: Write BETTER PYTHON CODE Part 1
ArjanCodes
4 Build a GLASSMORPHISM React Component - Typescript & Material-UI
Build a GLASSMORPHISM React Component - Typescript & Material-UI
ArjanCodes
5 Observer Pattern Tutorial: I NEVER Knew Events Were THIS Powerful ๐Ÿš€
Observer Pattern Tutorial: I NEVER Knew Events Were THIS Powerful ๐Ÿš€
ArjanCodes
6 100% CODE COVERAGE - Think You're Done? Think AGAIN.โ˜
100% CODE COVERAGE - Think You're Done? Think AGAIN.โ˜
ArjanCodes
7 Two UNDERRATED Design Patterns ๐Ÿ’ก Write BETTER PYTHON CODE Part 6
Two UNDERRATED Design Patterns ๐Ÿ’ก Write BETTER PYTHON CODE Part 6
ArjanCodes
8 1000 Subscribers! ๐Ÿš€ WHY I Started this Channel and WHAT'S NEXT
1000 Subscribers! ๐Ÿš€ WHY I Started this Channel and WHAT'S NEXT
ArjanCodes
9 Channel Trailer ArjanCodes - March 2021
Channel Trailer ArjanCodes - March 2021
ArjanCodes
10 Exception Handling Tips in Python โš  Write Better Python Code Part 7
Exception Handling Tips in Python โš  Write Better Python Code Part 7
ArjanCodes
11 Monadic Error Handling in Python โš  Write Better Python Code Part 7B
Monadic Error Handling in Python โš  Write Better Python Code Part 7B
ArjanCodes
12 GW BASIC Games I Wrote When I Was a Kid ๐ŸŽฎ Running 30 Year Old Code
GW BASIC Games I Wrote When I Was a Kid ๐ŸŽฎ Running 30 Year Old Code
ArjanCodes
13 Why You Should Think About SOFTWARE ARCHITECTURE in Python ๐Ÿ’ก
Why You Should Think About SOFTWARE ARCHITECTURE in Python ๐Ÿ’ก
ArjanCodes
14 Uncle Bobโ€™s SOLID Principles Made Easy ๐Ÿ€ - In Python!
Uncle Bobโ€™s SOLID Principles Made Easy ๐Ÿ€ - In Python!
ArjanCodes
15 QUESTIONABLE Object Creation Patterns in Python ๐Ÿค”
QUESTIONABLE Object Creation Patterns in Python ๐Ÿค”
ArjanCodes
16 If Youโ€™re Not Using Python DATA CLASSES Yet, You Should ๐Ÿš€
If Youโ€™re Not Using Python DATA CLASSES Yet, You Should ๐Ÿš€
ArjanCodes
17 CODE ROAST: Yahtzee - New Python Code Refactoring Series!
CODE ROAST: Yahtzee - New Python Code Refactoring Series!
ArjanCodes
18 7 UX Design Tips for Developers
7 UX Design Tips for Developers
ArjanCodes
19 Going All-in on Software Design in Python + an ANNOUNCEMENT ๐ŸŽ™
Going All-in on Software Design in Python + an ANNOUNCEMENT ๐ŸŽ™
ArjanCodes
20 ๐ŸŽ™ Interview with Sybren Stรผvel, Developer @ Blender 3D
๐ŸŽ™ Interview with Sybren Stรผvel, Developer @ Blender 3D
ArjanCodes
21 Do We Still Need Dataclasses? // PYDANTIC Tutorial
Do We Still Need Dataclasses? // PYDANTIC Tutorial
ArjanCodes
22 Answering Your Most Frequently Asked Python Questions // Q&A 07-2021
Answering Your Most Frequently Asked Python Questions // Q&A 07-2021
ArjanCodes
23 GitHub Copilot ๐Ÿค– The Future of Software Development?
GitHub Copilot ๐Ÿค– The Future of Software Development?
ArjanCodes
24 More Python Code Smells: Avoid These 7 Smelly Snags
More Python Code Smells: Avoid These 7 Smelly Snags
ArjanCodes
25 Test-Driven Development In Python // The Power of Red-Green-Refactor
Test-Driven Development In Python // The Power of Red-Green-Refactor
ArjanCodes
26 5 Tips To Keep Technical Debt Under Control
5 Tips To Keep Technical Debt Under Control
ArjanCodes
27 Refactoring A Tower Defense Game In Python // CODE ROAST
Refactoring A Tower Defense Game In Python // CODE ROAST
ArjanCodes
28 The Factory Design Pattern is Obsolete in Python
The Factory Design Pattern is Obsolete in Python
ArjanCodes
29 Why the Plugin Architecture Gives You CRAZY Flexibility
Why the Plugin Architecture Gives You CRAZY Flexibility
ArjanCodes
30 Refactoring A Data Science Project Part 1 - Abstraction and Composition
Refactoring A Data Science Project Part 1 - Abstraction and Composition
ArjanCodes
31 Refactoring A Data Science Project Part 2 - The Information Expert
Refactoring A Data Science Project Part 2 - The Information Expert
ArjanCodes
32 Refactoring A Data Science Project Part 3 - Configuration Cleanup
Refactoring A Data Science Project Part 3 - Configuration Cleanup
ArjanCodes
33 Purge These 7 Code Smells From Your Python Code
Purge These 7 Code Smells From Your Python Code
ArjanCodes
34 Running A Software Development YouTube Channel
Running A Software Development YouTube Channel
ArjanCodes
35 Refactoring A PDF And Web Scraper Part 1 // CODE ROAST
Refactoring A PDF And Web Scraper Part 1 // CODE ROAST
ArjanCodes
36 Refactoring A PDF And Web Scraper Part 2 // CODE ROAST
Refactoring A PDF And Web Scraper Part 2 // CODE ROAST
ArjanCodes
37 How To Easily Do Asynchronous Programming With Asyncio In Python
How To Easily Do Asynchronous Programming With Asyncio In Python
ArjanCodes
38 The Software Designer Mindset
The Software Designer Mindset
ArjanCodes
39 NEVER Worry About Data Science Projects Configs Again
NEVER Worry About Data Science Projects Configs Again
ArjanCodes
40 Powerful VSCode Tips And Tricks For Python Development And Design
Powerful VSCode Tips And Tricks For Python Development And Design
ArjanCodes
41 8 Python Coding Tips - From The Google Python Style Guide
8 Python Coding Tips - From The Google Python Style Guide
ArjanCodes
42 What Is Encapsulation And Information Hiding?
What Is Encapsulation And Information Hiding?
ArjanCodes
43 8 Tips For Becoming A Senior Developer
8 Tips For Becoming A Senior Developer
ArjanCodes
44 Building A Custom Context Manager In Python: A Closer Look
Building A Custom Context Manager In Python: A Closer Look
ArjanCodes
45 GraphQL vs REST: What's The Difference And When To Use Which?
GraphQL vs REST: What's The Difference And When To Use Which?
ArjanCodes
46 You Can Do Really Cool Things With Functions In Python
You Can Do Really Cool Things With Functions In Python
ArjanCodes
47 Announcing The Black VS Code Theme (Launching April 1st)
Announcing The Black VS Code Theme (Launching April 1st)
ArjanCodes
48 7 DevOps Best Practices For Launching A SaaS Platform
7 DevOps Best Practices For Launching A SaaS Platform
ArjanCodes
49 Refactoring a Rock Paper Scissors Lizard Spock Game // Code Roast Part 1
Refactoring a Rock Paper Scissors Lizard Spock Game // Code Roast Part 1
ArjanCodes
50 Refactoring a Rock Paper Scissors Lizard Spock Game // Part 2
Refactoring a Rock Paper Scissors Lizard Spock Game // Part 2
ArjanCodes
51 Things Are Going To Change Around Here
Things Are Going To Change Around Here
ArjanCodes
52 Dependency Injection Explained In One Minute // Python Tips
Dependency Injection Explained In One Minute // Python Tips
ArjanCodes
53 How To Setup A MacBook Pro M1 For Software Development
How To Setup A MacBook Pro M1 For Software Development
ArjanCodes
54 A Simple & Effective Way To Improve Python Class Performance
A Simple & Effective Way To Improve Python Class Performance
ArjanCodes
55 How To Write Unit Tests For Existing Python Code // Part 1 of 2
How To Write Unit Tests For Existing Python Code // Part 1 of 2
ArjanCodes
56 How To Write Unit Tests For Existing Python Code // Part 2 of 2
How To Write Unit Tests For Existing Python Code // Part 2 of 2
ArjanCodes
57 Make Sure You Choose The Right Data Structure // Python Tips
Make Sure You Choose The Right Data Structure // Python Tips
ArjanCodes
58 5 Tips For Object-Oriented Programming Done Well - In Python
5 Tips For Object-Oriented Programming Done Well - In Python
ArjanCodes
59 Next-Level Concurrent Programming In Python With Asyncio
Next-Level Concurrent Programming In Python With Asyncio
ArjanCodes
โ–ถ 5 Reasons Why You Should Use Type Hints In Python
5 Reasons Why You Should Use Type Hints In Python
ArjanCodes
Ansible From Basics to Guru: Unit 4
Next Up
Ansible From Basics to Guru: Unit 4
Coursera