Step away from your keyboard right now.
Grab a pen. Grab a piece of paper 📄🖋️
Good code starts on paper. Not on a computer.
1/5
@AcademicChatter #phdchat #coding
1) What's the ultimate goal?
2) What output do I want?
3) What input do I need?
Then write down each step you need to take to get from Input to Output.
2/5
Are they functions, classes? Can you start writing a bit of pseudo code to guide you?
Are your functions small enough or should you break them down further?
3/5
Think about what you're going to throw at it to show it works (e.g. some input you know the answer to) and what you're going to throw at it to see what happens when it breaks (e.g. Some bogus input).
4/5
Happy coding!
5/5