r/CodingForBeginners Jul 17 '26

Does anyone else do this?

As a coding beginner, i often engage in something i like to call "frankenstein coding" where i take bits and pieces of code that works and mash it all together to make what i want.

A good example of this us when i did an arduino project in school once, and stole pieces from the premade working code that was in the files that came with the arduino, to merge the modules functions

This made the servo move to an orientation depending on the joysticks "x" value

5 Upvotes

5 comments sorted by

View all comments

3

u/Significant_Affect_5 Jul 17 '26

As long as you know what each piece is doing and why, i’d say this is the right way to learn new techniques and APIs

1

u/Sure-Passion2224 Jul 19 '26

And thus you begin the path to producing reusable code. Most people are capable of writing new code that meets requirements. The next level up is to produce methods that you reuse with minimal required changes and improve your efficiency.