Clean code #9 - How to write clean Classes!
Folks, welcome to the 9th episode of Clean Code Series! In this episode, I'll take you on a journey to master the art of class-oriented coding and elevate your programming skills to new heights. Did you know that as developers, we often miss the mark when it comes to writing clean and organized code using classes? But fear not! Together, we'll explore common pitfalls to avoid, such as tight coupling, poor encapsulation, and excessive inheritance. Join me as we dive into the importance of class organization, from following Java conventions to adopting Robert C. Martin's fine-grained order. Discover the magic of small classes, adhering to the Single Responsibility Principle and achieving optimal cohesion for better readability and maintainability. I'll also share invaluable insights into making classes open for extension and closed for modification, as well as the advantages of favoring composition over inheritance while taking practical examples. Let's embrace clean coding and write exceptional software together! Happy coding! 😄👨💻 #readability #cleancode #objectorientedprogramming Episode #1: https://www.youtube.com/watch?v=-xiEX7AEJ_o&list=PLz1zqwR7fgeHv5z_phgWhC_BPOJuSaOZe Episode #2: https://www.youtube.com/watch?v=sAEHNSvJF7Q&list=PLz1zqwR7fgeHv5z_phgWhC_BPOJuSaOZe&index=2 Episode #3: https://www.youtube.com/watch?v=mvgTQAVRpKA Episode #4: https://youtu.be/ntpgP8m5s9w Episode #5: https://www.youtube.com/watch?v=e77W11yB41w Episode #6: https://www.youtube.com/watch?v=Ykf4PXaFtuU Episode #7: https://www.youtube.com/watch?v=74wjp_Ra2vM Episode #8: https://www.youtube.com/watch?v=KWmjWOM5sPg 0:00 Intro 0:58 What are classes 2:08 Class organization 4:04 Encapsulation 5:32 Classes should be small 8:31 Open for extension closed for motivation 12:29 Isolating from change 13:49 Composition over inheritance 17:55 outro ----------------------------------------------------------------------------------- Got questions? Reach out to me here: Instagram: https://www.instagram.com/hundred_gb Telegram: https://t.me/hundred_gb Linkedin: https://www.linkedin.com/in/gaurav-bhola/ Twittter: https://twitter.com/gauravbhola_in -------------------------------------------------------------- My Setup details (In the US): 🖥 27 Monitor ($299) GIGABYTE M27Q 27" 170Hz with KVM switch: https://amzn.to/3oQEQGz 🦾Monitor arm - HUANUO Dual monitor arm: https://amzn.to/3OXlpq7 ⌨️Keyboard: KINESIS GAMING Freestyle Edge RGB Split Mechanical Keyboard (MX Brown) ($199): https://amzn.to/3Soyv2q 📱 Phone - Pixel 5 128: https://amzn.to/3JvAXjH 🖥CPU case ($129) - SSUPD Meshlicious: https://www.ssupd.co/products/meshlicious 📸Camera - Sony a6600: https://amzn.to/3JrNLHZ 🔎Lens - Sigma 16mm 1.4: https://amzn.to/3oQi4i7 🎙️Mic - Boy BY-M1: https://amzn.to/3QbvJvS -------------------------------------------------------------- Setup details: Budget Table: https://amzn.to/3qe3Yql Budget Electrical sit-stand (~₹34000): https://www.purpleark.in/products/sit-stand-desk-electric 🖥 27 Monitor (One I use) (~₹40000): https://amzn.to/2Phdpno 🖥 Best 27 Monitor(Budget) India: https://amzn.to/3gprICn 💻Old Laptop - Acer Nitro 7: https://amzn.to/3cWqfnj 📱 Phone - Pixel 5a 128: https://amzn.to/3qakGal 🍎Tablet - Chromebook duet: https://amzn.to/3vImlVM 🎧Earphones - Galaxy Buds+: https://amzn.to/3zCRc9p 🎙️Mic - Boya: https://amzn.to/2RqJCNW On My Desk: Cello carbon ballpen: https://amzn.to/3gMv8R1 Speed triple (₹350): https://amzn.to/2BXAE2U Earphone pouch (₹299): https://amzn.to/2PxDY8d Under table wire management-IKEA SIGNUM (₹1299): https://amzn.to/3i5X3Ky Primary Keyboard: KINESIS GAMING Freestyle Edge RGB Split Mechanical Keyboard (MX Brown) ($199): https://amzn.to/3Soyv2q Keyboard-2 : HyperX RGB Cherry MX Blue Elite (₹13000): I bought this as a renewed one and costed me ₹8000. Mouse: Logitech G402: https://amzn.to/2BXEAkc MousePad (₹699): https://amzn.to/3fop2nk 6-axis Monitor Arms (Dual ₹6999) (Single ₹4999): https://amzn.to/3fq35ny Monitor Arms (Budget) (Less flexibility) (₹2999): https://amzn.to/3fm9ArD Dual vertical laptop Stand (₹2499) (₹2999 now): https://amzn.to/2Pj0AZE Wire Management Clips (₹249): https://amzn.to/3fqJzaO Velcro cable straps (₹258): https://amzn.to/3fpQRvo Tidy Up Wire Bin (₹599): https://amzn.to/33msKvi
Download
0 formatsNo download links available.