How To Write Cleaner Code - A Practical Example
Welcome back to another video! In this video, I'll be showing you how to write cleaner code. I'll be going through some script that I wrote a few years ago and clean it up. We'll just be doing some basic things to make the code look cleaner and easier to read.
💻 AlgoExpert is the coding interview prep platform that I used to ace my Microsoft and Shopify interviews. Check it out and get a discount on the platform using the code "techwithtim" https://algoexpert.io/techwithtim
📄 Resources 📄
Pygame Projectile Motion Tutorial: https://www.youtube.com/watch?v=Y4xlUNfrvow
Original Code: https://github.com/techwithtim/Projectile-Motion-Physics-Engine
⭐️ Timestamps ⭐️
00:00 | Introduction & Context
01:26 | Code Output Demo
01:57 | Writing Clean Code!
◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️
💰 Courses & Merch 💰
💻 The Fundamentals of Programming w/ Python: https://tech-with-tim.teachable.com/p/the-fundamentals-of-programming-with-python
👕 Merchandise: https://teespring.com/stores/tech-with-tim-merch-shop
🔗 Social Medias 🔗
📸 Instagram: https://www.instagram.com/tech_with_tim
📱 Twitter: https://twitter.com/TechWithTimm
⭐ Discord: https://discord.gg/twt
📝 LinkedIn: https://www.linkedin.com/in/tim-ruscica-82631b179/
🌎 Website: https://techwithtim.net
📂 GitHub: https://github.com/techwithtim
🔊 Podcast: https://anchor.fm/tech-with-tim
🎬 My YouTube Gear 🎬
🎥 Main Camera (EOS Canon 90D): https://amzn.to/3cY23y9
🎥 Secondary Camera (Panasonic Lumix G7): https://amzn.to/3fl2iEV
📹 Main Lens (EFS 24mm f/2.8): https://amzn.to/2Yuol5r
🕹 Tripod: https://amzn.to/3hpSprv
🎤 Main Microphone (Rode NT1): https://amzn.to/2HrZxXc
🎤 Secondary Microphone (Synco Wireless Lapel System): https://amzn.to/3e07Swl
🎤 Third Microphone (Rode NTG4+): https://amzn.to/3oi0v8Z
☀️ Lights: https://amzn.to/2ApeiXr
⌨ Keyboard (Daskeyboard 4Q): https://amzn.to/2YpN5vm
🖱 Mouse (Logitech MX Master): https://amzn.to/2HsmRDN
📸 Webcam (Logitech 1080p Pro): https://amzn.to/2B2IXcQ
📢 Speaker (Beats Pill): https://amzn.to/2XYc5ef
🎧 Headphones (Bose Quiet Comfort 35): https://amzn.to/2MWbl3e
🌞 Lamp (BenQ E-reading Lamp): https://amzn.to/3e0UCr8
🌞 Secondary Lamp (BenQ Screenbar Plus): https://amzn.to/30Dtafi
💻 Monitor (BenQ EX2780Q): https://amzn.to/2HsmUPZ
💻 Monitor (LG Ultrawide 34WN750): https://amzn.to/3dSD7tS
🎙 Mic Boom Arm (Rode PSA 1): https://amzn.to/30EZw9m
🎚 Audio Interface (Focusrite Scarlet 4i4): https://amzn.to/2TjXsih
💸 Donations 💸
💵 One-Time Donations: https://www.paypal.com/donate?hosted_button_id=CU9FV329ADNT8
💰 Patreon: https://www.patreon.com/techwithtim
◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️
⭐️ Tags ⭐️
- Tech With Tim
- Clean Code
- Write Clean Code
- Coding
- How To Write Clean Code
⭐️ Hashtags ⭐️
#TechWithTim #CleanCode
-
7:54
Tech With Tim
1 year ago $0.01 earnedThese 7 Coding Skills Give You an UNFAIR Advantage
253 -
LIVE
Right Side Broadcasting Network
2 days agoLIVE REPLAY: President Trump Holds a Rally in Latrobe, PA - 10/19/24
10,706 watching -
29:59
MYLUNCHBREAK CHANNEL PAGE
15 hours agoThe Old World, Under Our Feet?
90.5K57 -
52:56
TheTapeLibrary
17 hours ago $2.95 earnedThe Most Haunted Object in the World | The Terrifying True Story of the Dybbuk Box
72.2K8 -
30:45
World Nomac
13 hours ago$500 First Class on Amtrak's 28 Hour Texas to Chicago Route 🇺🇸
55K23 -
1:59:33
Mally_Mouse
8 hours agoLet's Hang!!
64.6K4 -
4:36:34
GamerGril
8 hours agoLFD! LOOKING FOR AN ABSTRACT DADDY! 😉 | SILENT HILL 2
53.4K5 -
5:25
BuddyBrown
2 days agoThe "Disastrous" FOX NEWS Interview! | Buddy Brown
66.9K50 -
2:34:31
Jewels Jones Live ®
1 day agoTRUMP DERANGEMENT SYNDROME | A Political Rendezvous - Ep. 96
80.3K40 -
11:29
Space Ice
11 hours agoRings Of Power Season 2 Pt. 1 - You Owe Amazon An Apology - Best Movie Ever
77.5K24