Clean code #9 - How to write clean Classes!

  Рет қаралды 643

100 GB

100 GB

Күн бұрын

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: • Clean Code #1 - What i...
Episode #2: • Clean Code #2 - Meanin...
Episode #3: • Clean code #3 - Writin...
Episode #4: • Clean code #4 - Why co...
Episode #5: • Clean code #5 - Why co...
Episode #6: • Clean code #6 - Using ...
Episode #7: • Clean code #7 - Error ...
Episode #8: • Clean code #8 - Writi...
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: / hundred_gb
Telegram: t.me/hundred_gb
Linkedin: / gaurav-bhola
Twittter: / gauravbhola_in
--------------------------------------------------------------
My Setup details (In the US):
🖥 27 Monitor ($299) GIGABYTE M27Q 27" 170Hz with KVM switch: amzn.to/3oQEQGz
🦾Monitor arm - HUANUO Dual monitor arm: amzn.to/3OXlpq7
⌨️Keyboard: KINESIS GAMING Freestyle Edge RGB Split Mechanical Keyboard (MX Brown) ($199): amzn.to/3Soyv2q
📱 Phone - Pixel 5 128: amzn.to/3JvAXjH
🖥CPU case ($129) - SSUPD Meshlicious: www.ssupd.co/products/meshlic...
📸Camera - Sony a6600: amzn.to/3JrNLHZ
🔎Lens - Sigma 16mm 1.4: amzn.to/3oQi4i7
🎙️Mic - Boy BY-M1: amzn.to/3QbvJvS
--------------------------------------------------------------
Setup details:
Budget Table: amzn.to/3qe3Yql
Budget Electrical sit-stand (~₹34000): www.purpleark.in/products/sit...
🖥 27 Monitor (One I use) (~₹40000): amzn.to/2Phdpno
🖥 Best 27 Monitor(Budget) India: amzn.to/3gprICn
💻Old Laptop - Acer Nitro 7: amzn.to/3cWqfnj
📱 Phone - Pixel 5a 128: amzn.to/3qakGal
🍎Tablet - Chromebook duet: amzn.to/3vImlVM
🎧Earphones - Galaxy Buds+: amzn.to/3zCRc9p
🎙️Mic - Boya: amzn.to/2RqJCNW
On My Desk:
Cello carbon ballpen: amzn.to/3gMv8R1
Speed triple (₹350): amzn.to/2BXAE2U
Earphone pouch (₹299): amzn.to/2PxDY8d
Under table wire management-IKEA SIGNUM (₹1299): amzn.to/3i5X3Ky
Primary Keyboard: KINESIS GAMING Freestyle Edge RGB Split Mechanical Keyboard (MX Brown) ($199): 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: amzn.to/2BXEAkc
MousePad (₹699): amzn.to/3fop2nk
6-axis Monitor Arms (Dual ₹6999) (Single ₹4999): amzn.to/3fq35ny
Monitor Arms (Budget) (Less flexibility) (₹2999): amzn.to/3fm9ArD
Dual vertical laptop Stand (₹2499) (₹2999 now): amzn.to/2Pj0AZE
Wire Management
Clips (₹249): amzn.to/3fqJzaO
Velcro cable straps (₹258): amzn.to/3fpQRvo
Tidy Up Wire Bin (₹599): amzn.to/33msKvi

Пікірлер: 8
@hitesh2293
@hitesh2293 11 ай бұрын
Thanks for sharing this valueable Content
@subhamcoder
@subhamcoder 11 ай бұрын
wating foooooooooooor it
@100GB
@100GB 11 ай бұрын
Please share it with your friends as well.
@navneetkumar9516
@navneetkumar9516 11 ай бұрын
Sorry for being off topic. I am the one who asked for help in choosing college when counseling starts. I am getting DTU ECE and BIT Mesra CSE. What should I choose? Is BIT Mesra considered a good college?
@yashdevgan1364
@yashdevgan1364 11 ай бұрын
Shutter on wheels 🛞
@vrishab14
@vrishab14 11 ай бұрын
hello sir are you on h1b visa or l1 visa?
@anonymous.u.s.e.r
@anonymous.u.s.e.r 11 ай бұрын
cpp
@exstrut
@exstrut 11 ай бұрын
What's is this everybody is trying to teach ,please go back to previous type content that was awesome,try to upgrade that. #feedback
Clean code #10 - Concurrency best practices!
18:28
100 GB
Рет қаралды 841
Challenges in Learning Android App Development!
12:46
100 GB
Рет қаралды 2,9 М.
MEGA BOXES ARE BACK!!!
08:53
Brawl Stars
Рет қаралды 34 МЛН
How To Write Cleaner Code - A Practical Example
24:45
Tech With Tim
Рет қаралды 84 М.
My MODERN Desk Setup 2024 (ft. Desky Dual Sit Stand Desk)
14:52
Alex Robinson
Рет қаралды 7 М.
Why do big Companies use Java, and NOT PHP?
12:34
Stefan Mischook
Рет қаралды 221 М.
How to Write Neatly + Improve Your Handwriting
5:50
Charm
Рет қаралды 25 МЛН
Back to College After 10 Years!
9:56
100 GB
Рет қаралды 6 М.
A Color Test That Can Tell Your Mental Age
7:37
BRIGHT SIDE
Рет қаралды 44 МЛН
I-Team: Hidden cameras reveal dark side of solar power
6:21
FOX 5 Atlanta
Рет қаралды 4,4 МЛН
Learning to Hack as a Kid
5:03
TimTom
Рет қаралды 10 МЛН
My Ultimate Home Office Set Up as a SWE!
8:27
100 GB
Рет қаралды 3,8 М.
MEGA BOXES ARE BACK!!!
08:53
Brawl Stars
Рет қаралды 34 МЛН