Jump to content

Best way to plan out coding and math ?

so im working on a project, and I need to lay out how the math works, and the coding..

 

whats the best way to do that on a computer to make it organised ?

~New~  BoomBerryPi project !  ~New~


new build log : http://linustechtips.com/main/topic/533392-build-log-the-scrap-simulator-x/?p=7078757 (5 screen flight sim for 620$ CAD)LTT Web Challenge is back ! go here  :  http://linustechtips.com/main/topic/448184-ltt-web-challenge-3-v21/#entry601004

Link to comment
https://linustechtips.com/topic/641964-best-way-to-plan-out-coding-and-math/
Share on other sites

Link to post
Share on other sites

5 minutes ago, thekeemo said:

make a naming system for yourself

and then go head in and modify as needed

yes, but how do I put on paper in clean way ?

~New~  BoomBerryPi project !  ~New~


new build log : http://linustechtips.com/main/topic/533392-build-log-the-scrap-simulator-x/?p=7078757 (5 screen flight sim for 620$ CAD)LTT Web Challenge is back ! go here  :  http://linustechtips.com/main/topic/448184-ltt-web-challenge-3-v21/#entry601004

Link to post
Share on other sites

1 hour ago, givingtnt said:

yes, but how do I put on paper in clean way ?

I dont do paper

I work first plan after

Thats that. If you need to get in touch chances are you can find someone that knows me that can get in touch.

Link to post
Share on other sites

Just now, thekeemo said:

I dont do paper

I work first plan after

wha

 

but paper is alredy done kinda

 

I put my rough ideas on paper to not forget anything

but now I want to do clean presantable thing

is word the choice ?

 

~New~  BoomBerryPi project !  ~New~


new build log : http://linustechtips.com/main/topic/533392-build-log-the-scrap-simulator-x/?p=7078757 (5 screen flight sim for 620$ CAD)LTT Web Challenge is back ! go here  :  http://linustechtips.com/main/topic/448184-ltt-web-challenge-3-v21/#entry601004

Link to post
Share on other sites

1 hour ago, givingtnt said:

wha

 

but paper is alredy done kinda

 

I put my rough ideas on paper to not forget anything

but now I want to do clean presantable thing

is word the choice ?

oooh

Yes word is the word for this

Thats that. If you need to get in touch chances are you can find someone that knows me that can get in touch.

Link to post
Share on other sites

Just now, thekeemo said:

oooh

Yes word is the word for this

ok

~New~  BoomBerryPi project !  ~New~


new build log : http://linustechtips.com/main/topic/533392-build-log-the-scrap-simulator-x/?p=7078757 (5 screen flight sim for 620$ CAD)LTT Web Challenge is back ! go here  :  http://linustechtips.com/main/topic/448184-ltt-web-challenge-3-v21/#entry601004

Link to post
Share on other sites

I normally lay it out in steps how the code will run. 

 

ex.

 

  1. step 1
  2. step 2
    1. part 1
    2. part 2
    3. part 3
  3. step 3
    1. part 1
      1. subpart 1

[Out-of-date] Want to learn how to make your own custom Windows 10 image?

 

Desktop: AMD R9 3900X | ASUS ROG Strix X570-F | Radeon RX 5700 XT | EVGA GTX 1080 SC | 32GB Trident Z Neo 3600MHz | 1TB 970 EVO | 256GB 840 EVO | 960GB Corsair Force LE | EVGA G2 850W | Phanteks P400S

Laptop: Intel M-5Y10c | Intel HD Graphics | 8GB RAM | 250GB Micron SSD | Asus UX305FA

Server 01: Intel Xeon D 1541 | ASRock Rack D1541D4I-2L2T | 32GB Hynix ECC DDR4 | 4x8TB Western Digital HDDs | 32TB Raw 16TB Usable

Server 02: Intel i7 7700K | Gigabye Z170N Gaming5 | 16GB Trident Z 3200MHz

Link to post
Share on other sites

Some people draw diagrams that show all their classes and the relationships between them, like UML diagrams for example. There are tools out there for making these. You could combine that with some form of written documentation. People seem to like to use LaTeX for writing math so you could look into that as well.

Link to post
Share on other sites

17 hours ago, DeadEyePsycho said:

I normally lay it out in steps how the code will run. 

 

ex.

 

  1. step 1
  2. step 2
    1. part 1
    2. part 2
    3. part 3
  3. step 3
    1. part 1
      1. subpart 1

 

13 hours ago, madknight3 said:

Some people draw diagrams that show all their classes and the relationships between them, like UML diagrams for example. There are tools out there for making these. You could combine that with some form of written documentation. People seem to like to use LaTeX for writing math so you could look into that as well.

It depends on what I am creating, if it is a program say to calculate the blocks needed for a given structure in minecraft I will use what @DeadEyePsycho posted, If i creating a system that I know it is going to use classes then I will create a class diagram.

 

Use Case's are also very good for showing how the system will work. There are lots of ways to help design programs.

                     ¸„»°'´¸„»°'´ Vorticalbox `'°«„¸`'°«„¸
`'°«„¸¸„»°'´¸„»°'´`'°«„¸Scientia Potentia est  ¸„»°'´`'°«„¸`'°«„¸¸„»°'´

Link to post
Share on other sites

Math: use pen and paper.

Code: UML diagram or just code away. Code, unlike pen and paper, is perfectly editable. Use it to your advantage.

Desktop: Intel i9-10850K (R9 3900X died 😢 )| MSI Z490 Tomahawk | RTX 2080 (borrowed from work) - MSI GTX 1080 | 64GB 3600MHz CL16 memory | Corsair H100i (NF-F12 fans) | Samsung 970 EVO 512GB | Intel 665p 2TB | Samsung 830 256GB| 3TB HDD | Corsair 450D | Corsair RM550x | MG279Q

Laptop: Surface Pro 7 (i5, 16GB RAM, 256GB SSD)

Console: PlayStation 4 Pro

Link to post
Share on other sites

6 hours ago, vorticalbox said:

 

It depends on what I am creating, if it is a program say to calculate the blocks needed for a given structure in minecraft I will use what @DeadEyePsycho posted, If i creating a system that I know it is going to use classes then I will create a class diagram.

 

Use Case's are also very good for showing how the system will work. There are lots of ways to help design programs.

 

5 hours ago, mathijs727 said:

Math: use pen and paper.

Code: UML diagram or just code away. Code, unlike pen and paper, is perfectly editable. Use it to your advantage.

im creating a database plan that will do math with data and create graphs, as well as math to.create a db that will pair with a html form to create squads im a game.

 

complicated shit, and its coding, math and tables all mixed together.

~New~  BoomBerryPi project !  ~New~


new build log : http://linustechtips.com/main/topic/533392-build-log-the-scrap-simulator-x/?p=7078757 (5 screen flight sim for 620$ CAD)LTT Web Challenge is back ! go here  :  http://linustechtips.com/main/topic/448184-ltt-web-challenge-3-v21/#entry601004

Link to post
Share on other sites

7 hours ago, givingtnt said:

 

im creating a database plan that will do math with data and create graphs, as well as math to.create a db that will pair with a html form to create squads im a game.

 

complicated shit, and its coding, math and tables all mixed together.

for database design I suggest you look up EER diagrams

                     ¸„»°'´¸„»°'´ Vorticalbox `'°«„¸`'°«„¸
`'°«„¸¸„»°'´¸„»°'´`'°«„¸Scientia Potentia est  ¸„»°'´`'°«„¸`'°«„¸¸„»°'´

Link to post
Share on other sites

I personally begin by deconstructing the specification/requirement down into a set of fundamental concerns. If I am alone and the task is large I may adopt the Agile approach and prioritise these into a 'backlog'. From there I will tackle each discrete 'story' as a chunk of work. This may involve some planning which can consist of UML if it's a software component, some EERD if it's a database or model that I'm trying to create and/or some experimentation (spike) if it's going to be an algorithmic or technological implementation/integration component i.e. a communications protocol or some kind of data manipulation task.

 

I'd usually be doing much of my UML/EERD on paper or a whiteboard. Depending on the specific scenario I may choose to formalise this planning by creating documentation i.e. particularly if I am going to be delegating some/all of the implementation to my team. If I am in a team context then this planning phase will likely involve the whole team - paper/whiteboard is the best medium for such planning sessions.

 

I will stress that this planning is only to provide a very general or basic direction - a sense of the topology. In general Agile teaches us to spend as little time as possible embroiled or entrenched deeply in planning and architecture. This is especially true if one is following Test Driven Development (TDD) as one writes their tests upfront often against the business language which then facilitates the design and architecture to simply coalesce and evolve.

The single biggest problem in communication is the illusion that it has taken place.

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×