A
Arduino•2mo ago
TheStudier

What is the best way to improve at coding?

So right now I lack the ability to do pretty basic logical coding stuff with leds and stuff. What is the best way to get the basics of coding down? Should I get a book or something?
8 Replies
MaderDash
MaderDash•2mo ago
Sure there are lots of books. Also in #Resources, tutorials, and more for this server. There are 2 free pdf's that come with most kits that walk you though the basics.
TheStudier
TheStudierOP•2mo ago
So does factoring mean to make the code prettier simpler looking
AnonEngineering
AnonEngineering•2mo ago
Rather than have a very long function that is hard to read and maintain you "factor out" the various functions within the function into a series of smaller, easier to read and maintain functions. Often you'll write some code and then say to yourself "I'm doing this bit over and over in this function", a good clue that that code should be re-factored into its own function.
TheStudier
TheStudierOP•2mo ago
ukay ty but, when I start to work on coding, like today, I havent got anyting done I have only tried to undestands a piece of code is this that beneficial? Should I do easier coding instead, that takes less time to undestand
AnonEngineering
AnonEngineering•2mo ago
once you become more proficient you'll notice repetitious code and want to reduce it. when starting out, if the code does what you want - take the win 😉
MaderDash
MaderDash•2mo ago
@TheStudier so where did the code come from that your trying to understand
TheStudier
TheStudierOP•2mo ago
well I could't get this project to work, so I said AI to do it so that I could learn from the AI code but couldn't understand and then your code too
MaderDash
MaderDash•2mo ago
Yeh. Don't do that. Just start off with the basics and hand code it all. Leave ai alone

Did you find this page helpful?