Do not implement a code that you don't understand

in NeoxianCity •  last month 

Most of the developers in today's world have a practice of referring to code online. Not all the developers write their code from scratch instead develop the code from an existing piece of code. There is nothing wrong with that and that is how the modern-day coding works. We don't have to invent the wheel which was already built. This is one of the reasons why they are called developers and not coders. When this is the case on one side, there are also hardcode coders who write code from scratch. Their knowledge level would be very different from that of the developers.



I have been a developer for like around 10 years and most of the time I also develop applications from existing code and it is quite a rare situation where I write code from scratch. It could even be because my working environment is like that and the opportunity I get. 15 years back when some of the most experienced colleagues in my office were coding, books were the only source from where they can get the knowledge about a programming language and they will have to write spike code to understand the concept and see if that would work well for the application or not.

But in today's world, most of the applications we try to build in our day to day life would be available already as an open-source application online. We can just refer to that and take the code that we want for our own application. It is like doing our final year project. In most of the colleges, the final year students buy their code from some companies that sell final year projects. I even bought an application for my final year project and completed the course. But today the final year students need not go and buy any code from any company. If they sit with the internet for like one or two hours they will have their own unique project in their hand.



I guess this is enough for the introduction part, coming back to the topic all I wanted to say was that when we have the opportunity to get code online or from internet sources, it would be ideal to first understand the code before we implement it in our project. If we don't understand the code and just implement it blindly it can give so many problems in the future. The code can stop working someday especially when it is in production and we will not be able to troubleshoot it without the knowledge. We will end up writing the same piece of code again with a different logic instead of fixing the issue alone in the code.



Getting a reference code from online sources is good and also an easy way to complete the project that we are doing. But it will be even greater if we first try to understand the code we got from online sources and implement it. It can take some of our time to read and understand that code but spending that time would be worth it. Learning things from existing code is always the best learning because we would have the use case and it will be easy to understand the code and how they have approached the solution. To my subordinates in the office, I always suggest to learn from the code we got from online sources, understand it, and implement it in our projects.

If you find my article interesting, please vote, share and follow. Also, let me know your thoughts in the comments section.

Kani Bot notification service

Posted via | The City of Neoxian

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

This is well thought out. Well done!

Thanks for the comment @tykee.

One cannot but agree, but it's quite shocking that you thought that it might not be quite obvious for everyone.

lol trust me I personally know people who don't do that obvious thing. Which is also one of the reasons why I thought of writing this article. 😀

A piece of good advice, I am not a person who has computer science education but understand what you write. Sometimes it takes a long time, resources, and efforts to make code from scratches that could work immediately, so many people take a shortcut to do it by looking code source at internet and implement it without study first.

But it is good to conduct if we try to give a little time to learn code from scratch and then we know the basic concept of how that code should work. I totally agree with you.

Yes even if we get the code from online sources, there is a high possibility that there can be something that may not even be relevant for us. So it is better to learn it first and implement it in our project. Thanks for the comments. Cheers! 😀

you are right big brother now a days this is like peace of cake 😋

Yes life of a developer becomes easier. 😀

I am thinking to start an carrier in this field also 😋

Yes it is easy and you can easily get started. 😀

ok I will try to learn the BASICs first 🙏⁦✌️⁩

Cool 👍

The problem is now a days people don't have much of the time, because of deadline or any other things and thus they usually stop reading and trying to implement as soon as possible.

Yes, that happens most of the time. They just want to complete it sooner. And another problem with modern developers is that they also lack patience. They just want the task to be out from their plate that's all. Because of this learning also becomes difficult.

That's true and thus they tend to learn something new and barely scratch the surface

Wow, I get faster replies here but no on Discord. I guess you are not very active on discord these days. 😉

Hahah, yes I usually I check discord twice, morning and evening

You used to be very active before. 😀

All because of the work from home, no time man.

But even when you were working from office you used to say that discord will be always on in your browser window. 😀