Do not implement a code that you don't understand

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.

image.png

Source

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.

image.png

Source

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.

image.png

Source

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 neoxian.city | The City of Neoxian



0
0
0.000
24 comments
avatar

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

0
0
0.000
avatar

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. 😀

0
0
0.000
avatar

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.

0
0
0.000
avatar

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! 😀

0
0
0.000
avatar

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

0
0
0.000
avatar

Yes life of a developer becomes easier. 😀

0
0
0.000
avatar

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

0
0
0.000
avatar

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

0
0
0.000
avatar

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

0
0
0.000
avatar

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.

0
0
0.000
avatar

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.

0
0
0.000
avatar

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

0
0
0.000
avatar

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

0
0
0.000
avatar

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

0
0
0.000
avatar

You used to be very active before. 😀

0
0
0.000
avatar

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

0
0
0.000
avatar

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

0
0
0.000
avatar

Yeah, but since the work is more. I have to concentrate more and thus I have to stay away from the distraction.

0
0
0.000
avatar

Yes discord can be a big distraction at times. 😀 The only place I'm very active is on my discord. I don't even use whatsapp or Facebook. For the past 2 years I live in discord. 😀😉 I cannot be without that. 😀

0
0
0.000
avatar

Yes I was once like that but with the home network, which sucks at times, discord takes a lot of data too and thus need to keep data as well as distraction away I need to follow this. Might be again I will be active once I start going to office.

0
0
0.000
avatar

Yes that's great 👍 Here we have almost unlimited data with a good speed so I don't have to worry about data so much. 😉

0
0
0.000