Featured
- Get link
- X
- Other Apps
Don’t reinvent the wheel
One of the first ideas my professors in computer science tried to get across to us, was that we shouldn’t spend time doing things people have already done(unless it’s for efficiency innovation of course I.e. the reimagined airless wheel). For example if I’m programming a game that requires physics algorithms etc… before I make anything, I look to see if someone else has an open source (free shareable) implementation of it first. This way, I can just copy any parts I need without having to become a complete expert on one particular component. I build off of the expertise of others before me.
Copy and paste are two of the most powerful operations a computer can do. Don’t waste that power. Don’t get me wrong, copying and pasting blindly is definitely not advised , but copying with a plan/integration strategy is a priceless skill.
Copying not only forces you to read how other people write code, but also how to read technical knowledge. Usually before you can even copy code, you have to already know how it works and how you can use it. By doing this research you essentially become a student of the component and in some cases an ambassador.
Typically developers leave comments that include their name and the purpose of the code their sharing, and when you copy, their only requirement is that you don’t remove the author info. That’s it, and you can copy and use whatever code they provide.
Conclusion
Unless there are clear guidelines for why you shouldn’t be copying in your codebase, consider using open sourced code. It’s faster and often times shortens the learning curve.
- Get link
- X
- Other Apps
Popular Posts
Raspberry Pi 4 Talking Robot Car Part 2.
- Get link
- X
- Other Apps
Comments
Post a Comment