About 263,000 results
Open links in new tab
  1. What is the golden rule for when to split code up into functions?

    Nov 15, 2010 · It's good to split code up into functions and classes for modularity / decoupling, but if you do it too much, you get really fragmented code which is also not good. What is the …

  2. Splitting up a very large function/program into smaller functions ...

    Apr 1, 2017 · I know function names can be very expressive. And therefore it can be tempting split up a program into particular functions and call them from a large "oversee-able" functions file. …

  3. Dividing a Large file into Separate Modules in C/C++, Java and …

    Jan 18, 2019 · Use static functions to restrict to the file where they are declared. Use extern keyword to use variable(s) that reference external files. If using C++, be careful about …

  4. Is it a good practice to split the code in functions even ... - Reddit

    Nov 23, 2021 · It depends. Your code should be split into functions where it makes sense. If that code is not going to be anywhere else , and the only reason it exists is to always call the three …

  5. What is the advantage of breaking a code into several small functions

    By splitting a program in functions, you can introduce multiple levels of abstraction in the code. In the main function you get a broad overview of what the program does and each level down on …

  6. c - How can I split up my monolithic programs into smaller, separate ...

    Apr 12, 2012 · This way explicitly separate the inner functions (which are needed only inside the .c file) from the functions interesting to the outer "universe" of your program. Some more …

  7. How do you balance out code structuring (few big functions vs.

    The main idea is to split items that are too large to be understood and to push the complexity to the upper abstraction layers until you have enough abstraction layers to manage the …

  8. Day 21: Splitting Code Into Multiple Files - Teclado

    Splitting your code into multiple files is a great way to produce smaller, more focused files. Navigating theses smaller files will be easier and so will understanding the content of each of …

  9. When is it appropriate to make a separate function when there …

    Bob Martin's book Clean Code gives good guidelines on when to split a function: Functions should be small; how small? See the bullet bellow. Functions should do only one thing. So if the …

  10. How to appropriately/efficiently break up programs/functions

    Aug 19, 2022 · What I struggle with is determining how to break up my program into functions and when to "just get it done." The best I can explain is with an example. Say you have to write a …

  11. Some results have been removed
Refresh