How do you plan before starting to code ?

Per Dalgas Jakobsen pdj at knaldgas.dk
Wed Jul 8 14:34:08 UTC 2020


Hi,

I believe that differs a lot...

If it's something I can't completely get my head around, I start
modeling the problem/solution using UML or BPMN or ...

In this case I would probably start with a simple Actor-Context model
(stick-men), a domain model (class model), and some sequence models and
a state model to give an idea of how the scheduler should act to stimuli
(timer, blocking, request, etc.). Be careful not to fall into the
Analysis-paralysis trap - Just do enough modeling til you understand how
it would work. Documentation should not be redundant with the code itself.

A quick prototype can sometimes be of great value too...

~Per

"Weeks of programming can save you hours of planning.
-- Unknown"


On 7/8/20 2:56 PM, Richi Dubey wrote:
> Hi,
>
> I am working to implement a Strong APA scheduler (a new SMP scheduler)
> in RTEMS. I need to develop a high-level description of my
> implementation so that I can get it reviewed by the maintainers before
> I start coding. 
>
> How do you make a plan before coding? Do you use UML diagrams or do
> you document every function (with argument, prototype and the aim of
> the function) in a pdf file and get that looked at?
>



More information about the users mailing list