Differences

This shows you the differences between two versions of the page.

Link to this comparison view

the_dice_roller_program [2012/01/04 20:57]
thomaslocke created
the_dice_roller_program [2012/01/04 21:07] (current)
thomaslocke [Final thoughts]
Line 155: Line 155:
          ​-- ​ else we just use regular Get_Line.          ​-- ​ else we just use regular Get_Line.
                    
 +         ​--------------------
 +         ​-- ​ User_Command ​ --
 +         ​--------------------
 +       
          ​function User_Command return String          ​function User_Command return String
          is          is
Line 399: Line 403:
  
 package body Dice.CLI is package body Dice.CLI is
 +   ​-------------------------------
 +   ​-- ​ Check_Passed_Parameters ​ --
 +   ​-------------------------------
 +
    ​procedure Check_Passed_Parameters ​    ​procedure Check_Passed_Parameters ​
    is    is
Line 444: Line 452:
 ------------------------------------------------------------------------------- -------------------------------------------------------------------------------
 package body Dice.Help is package body Dice.Help is
 +   ​------------------
 +   ​-- ​ Print_Help ​ --
 +   ​------------------
 +
    ​procedure Print_Help ​    ​procedure Print_Help ​
    is    is
Line 1272: Line 1284:
 ===== Final thoughts ===== ===== Final thoughts =====
  
-Because this project is a bit larger than the usual "​thirty-something lines of code" tutorial program, I decided I would go for a style where the source was heavily commented and available in full. I tried dividing the code up into smaller bits and write some explanations,​ but it felt disjointed and wrong. If you feel that the commented source code is a bad idea, and you would like some additional explanations here and there, please feel free to ping [[https://​plus.google.com/​u/​0/​112815721307813813920/​posts|Thomas Løcke @ Google+]].+Because this project is a bit larger than the usual "​thirty-something lines of code" tutorial program, I decided I would go for a style where the source was heavily commented and available in full. I tried dividing the code up into smaller bits and write some explanations,​ but it felt disjointed and wrong. If you feel that the commented source code is a bad idea, and you would like some additional explanations here and there, please feel free to ping [[https://​plus.google.com/​u/​0/​112815721307813813920/​posts|Thomas Løcke @ Google+]] or any Ada-DK member at the [[https://​plus.google.com/​u/​0/​b/​109362349065401961880/​109362349065401961880|Ada-DK Google+ page]].
  
 Enjoy! Enjoy!
  

Navigation