Algorithms are a set of steps to complete a task. Algorithms can be written in natural language, which is our speaking language; pseudocode, which is a combination of natural language and a programming language;
I have no objection to capturing them in pseudocode, or even real code. However, I would not commit any such pre-written code. I would likely hold it in a text file, and consult it while following the TDD cycle. I might feel safe enough to copy and paste from the text file into ...
When I'm evaluating an idea related to software design, I ask whether it will reduce complexity. This usually means either reducing the amount of information a developer has to know, or making the required information more obvious. Now over to you: are there general principles that you use w...
3.1.2. AP Clustering Algorithm Pseudocode Algorithm 1: AP clustering algorithm: tag RSSI value clustering. Input: Input similarity matrix S,damping factor α; Output: f clustering centers and category members; 1: Set parameter p value; 2: Initialize A(i, k) = 0, R(i, k) = 0; ...
Now over to you: are there general principles that you use when deciding which ideas to endorse? UB: I agree with your approach. A discipline or technique should make the job of programmers easier. I would add that the programmer we want to help most is not the author. The programmer wh...
Now over to you: are there general principles that you use when deciding which ideas to endorse? UB: I agree with your approach. A discipline or technique should make the job of programmers easier. I would add that the programmer we want to help most is not the author. The programmer wh...
And of course software designers will need to use judgment: it isn't possible to provide precise recipes for software design. But good judgment requires principles and guidance. TheClean Codearguments about decomposition, including the One Thing Rule, are one-sided. They give strong, concrete, qu...