• Coreidan@lemmy.world
    link
    fedilink
    English
    arrow-up
    7
    ·
    8 months ago

    Because the point of the lesson is to demonstrate that you can solve the same problem multiple ways where some paths are more efficient than others.

    Bad programmers are the ones that find the first solution and implement it no matter how inefficient it is.

    Good programmers spend time on figuring out the solution with the least amount broken or inefficient code. You don’t learn this by jumping straight to the best answer every time.