Stories
Slash Boxes
Comments

SoylentNews is people

SoylentNews is powered by your submissions, so send in your scoop. Only 2 submissions in the queue.
This discussion has been archived. No new comments can be posted.
Display Options Threshold/Breakthrough Mark All as Read Mark All as Unread
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
  • (Score: 2) by turgid on Tuesday June 04 2024, @08:32PM (3 children)

    by turgid (4318) Subscriber Badge on Tuesday June 04 2024, @08:32PM (#1359333) Journal

    One might argue you need to refactor your code.

    Starting Score:    1  point
    Karma-Bonus Modifier   +1  

    Total Score:   2  
  • (Score: 0) by Anonymous Coward on Wednesday June 05 2024, @02:16AM (2 children)

    by Anonymous Coward on Wednesday June 05 2024, @02:16AM (#1359375)
    So that it's split into multiple functions and even harder to view and understand?

    Job security FTW! 😉
    • (Score: 2) by turgid on Wednesday June 05 2024, @07:00AM

      by turgid (4318) Subscriber Badge on Wednesday June 05 2024, @07:00AM (#1359392) Journal

      No, so that it's easier to understand and to maintain, and so that each function can be unit tested.

    • (Score: 0) by Anonymous Coward on Wednesday June 05 2024, @08:11AM

      by Anonymous Coward on Wednesday June 05 2024, @08:11AM (#1359394)

      Just use a language other than old versions of old languages like C or FORTRAN and you can have identifiers that actually identify instead of having to guarantee uniqueness of short names. Much easier to read a stack of properly named functions called on properly named arguments than having to keep the entire state of the nested inlined basic blocks in mind.