How to organize the code and explanation in a tutorial?
#1# Explain what you need to do.
#2# Explain how you will do.
#3# Show code doing.
#4# Explain the code doing (comparing 2 and 3)
#1# Explain what you need to do.
#2# Explain how you will do.
#3# Show code doing.
#4# Explain the code doing (comparing 2 and 3)
Ok, so mostly like my 3rd option, but explain everything more before showing the actual code?
#1# Explain what you need to do.
#2# Explain how you will do.
#3# Show code doing.
#4# Explain the code doing (comparing 2 and 3)
Ok, so mostly like my 3rd option, but explain everything more before showing the actual code?
I guess..
Its just how Id like a tutorial to be.
In #2# the explanation would be algorithm wise, in 3 and 4 you explain the algorithm implementation wise.
If the code is obvious enough or commented enough maybe #4# becomes unnecessary.