The most effective way to deal with open programming problems

I am programming in C ++. Sometimes there are 1000 ways to do something, and depending on inspiration / energy, etc., I can take the β€œright” or not and spend 10 minutes or three days to solve a problem or find a solution or do a task for the boss.

When you program, how do you deal with these β€œopen” situations? Use your intuition? Prefer to plan a lot earlier?

Thank you so much

+3
source share
7 answers
  • From all possible solutions, choose the one that is easily tested.
  • run test
  • implement code.

, , .

, . . , .

: , , , . .

, , , .

.

+6

.

, .

, . , , , . , . , / .

+2

:

  • unit test,
  • ,

, . , "" 2, , ...

+1

; ; .

:

  • , .
  • , . ; , .
  • , ! , , . , , .
+1

, . , , , , , .

, , , , - .

, , .

0

- .

, , - . , , , , .

DDD , .

0

, , .Net--;)
, ++ Dev :

SolutionRefining()
{
    result= Requirements.Brianstorming(Current_Experience_Knowledge);
    if(!result.Equals("Its Time To Design and Code"))//Assuming analysis is already done!
    {
        do
        {
            this.TakeRest_Break_HaveFun();//Multi-Processes OS ;)
            result = QuickResearchSession(searchEngine Google, softwareCommunity StackOverflow, inHouseGuru Anonymous);
        }
        while(!result.Equals("Its Time To Design and Code"));
    }
    else
    {
        while(Testing().MajorBugs >= 1 && !Coding().Finished)
            Develop().Review_UnitTesting().Commit();//artificial .NET! Don't try it in VS 2010.

        SubmitProject().GetMoney().GetLaid();
        WakeUp().GoToWork().BeReadyForNewFeaturesAttack();
    }


    MeanWhile (!Solution.Equals("Standard & Best Practice")) //MeanWhile can be found in .NET Framework 11.7301 Beta RC.45

    {
                    //this method shall always invoked during the developer journey in the Software Life Cycle.
        Study("Design Patterns").Understand().UnderstandMore().Apply();
        UpdateTheToolKit();
        SearchFor("Standard & Best Practice").Consume();
    }

    finally("Write your own A-Z framework").GetRetired();
}
0

Source: https://habr.com/ru/post/1734793/


All Articles