Which approach is the best

Which approach is the best
0

#1

HI,
often time they’re proposing it some method to use in the doc, like Math.cos(), etc.
Sometimes I have the solution without the method they propose to use to help me.
I have 2 ways to do the same thinks, with a different pseudo code.
wich one is the best, use the method they give us or to do on my way?

Thanks


#2

do it anyway you want and then read up their suggestion methods


#3

If you can accomplish the same end goal using a method that is easier or which makes more sense to you, then do it. The “best practice” way isn’t the only way, especially when you’re still learning. Experimentation pays dividends.