AI-powered
podcast player
Listen to all your favourite podcasts with AI-powered features
The Qualities of Code
modularity means that you can just update one function and everything else will work by properly reusing code. By making every action into a modular piece then when something breaks like say for example, you have a function that performs an API call. If you if that API call is in the script itself and and repeated multiple times editing, if that API changes, editing becomes a hassle. Whereas if you call out to a single function that makes the API call and maybe takes parameters that can change what the API call is, then if something changes in the API, you can just edit that one function andEverything continues working.