Back to Browse

Write Code That Doesn't Suck: 10 Laws for Clean Functions

24 views
Jul 11, 2024
28:02

Law 1: Avoid Comments At All Cost: Discover why comments can be misleading and how to write self-documenting code. Law 2: Don't Use Type Attributes in Variable Names: Learn the importance of clean, descriptive names and (if applicable) type annotations. Law 3: Class Names Should Be Nouns: Understand why nouns are the perfect fit for representing objects in your code. Law 4: Function Names Should Be Verbs: Embrace the power of action-oriented names for your functions. Law 5: Functions Should Specify Parameter and Return Types: See how type declarations make your code more predictable and easier to use. Law 6: A Function Should Perform One Functionality Only: Discover the benefits of single-responsibility functions for readability and reusability. Law 7: Functions Should Be at the Same Level of Abstraction: Learn how to keep your code organized by separating high-level logic from low-level details. Law 8: A Function and Its Arguments Should Be Like Brothers and Sisters: Understand why tight coupling between function names and parameters is essential. Law 9: Functions Should Be Small: Find out why concise functions are easier to read, test, and maintain. Law 10: Avoid Noise/Redundant Words: Eliminate unnecessary clutter from your code and make it more elegant. 00:00 - 00:20: Introduction & The Importance of Clean Code 0:20 - 03:14: Law 1: Avoid Comments At All Cost 03:15 - 04:37: Law 2: Don't Use Type Attributes in Variable Names 04:38 - 06:03: Law 3: Class Names Should Be Nouns 06:04 - 07:55: Law 4: Function Names Should Be Verbs 07:56 - 10:29: Law 5: Functions Should Specify Parameter and Return Types 10:30 - 13:48: Law 6: A Function Should Perform One Functionality Only 13:49 - 18:03: Law 7: Functions Should Be at the Same Level of Abstraction 18:04 - 20:56: Law 8: A Function and Its Arguments Should Be Like Brothers and Sisters 20:57 - 24:04 : Law 9: Functions Should Be Small 24:05 - 28:02: Law 10: Open Close Principal (OCP) Subscribe to my channel and hit the notification bell so you don't miss the next video! #datastructure #programming #coding #computerscience #python #Leetcode #pythonprogramming #programmer #coder #javascript #java #programmers #algorithm #datastructures #developer #html #programminglanguage #pythondeveloper #codinglife #codingbootcamp #softwaredeveloper #coderlife #javaprogramming #developerlife #code #codingmemes #algorithms #programmingmemes #datastructuresandalgorithms #css #datascience #programmerlife #computersciencestudent #webdevelopment #appdeveloper #computerprogramming #machinelearning #informationtechnology #coders #pythonlearning #programmerhumor #codingfun #clanguage #software #codingisfun #softwareengineer #javadeveloper #coderslife #backenddeveloper #daysofcode #programmingisfun #datastructureandalgorithm #softwaredevelopment #github #competitiveprogramming #datascientist #stackoverflow #computersciencestudents #computerengineering #programminglife #computer #code #coder #codinglife #programming #coding #java #freeresources #datastrucutres #pepcode #competitive #competitiveprogramming #softwareengineer #engineering #engineer

Download

1 formats

Video Formats

360pmp448.0 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

Write Code That Doesn't Suck: 10 Laws for Clean Functions | NatokHD