codengers
Codengers
1 post
Don't wanna be here? Send us removal request.
codengers · 6 years ago
Text
HOW TO MAKE IMPLEMENTATION BETTER
Basically, I already wrote this article on Dev.to community. Dev.to is one of the best communities for Web development and Github but not for programming that’s why I’m writing again here.
This one is a combination of two articles. Yeah, previously I wrote the article in 2 parts. In this article, I shared my 2 and a Half year of coding experience and discussed on how you can make your implementation better or design better. In the 1st part, I focused on purely coding means about how you can make coding implementation better and in the 2nd part, I focused on both i.e. coding and designing.
And one more thing this one is going to be a long article so take a seat with a cup of coffee and enjoy reading.
So let's get started.
Part-1
It’s about almost a 2 and a half year from now when I choose to start code or you can say I heard about programming during taking admission in my college. Before that, I did not know what is coding or programming/programming language even I don’t know coding’s C. Believe me, it’s true. Now in present time, I’m in 2nd year. Yes, I’m a college student. So let’s go back to our topic. So The time when I took admission in college and got a bunch of books. This time I’m so excited and just start looking at the content of books one by one and in last I got a book which for Programming in C language. Yes, my first programming language is C. After seeing content a short description of some chapter and a bunch of code. Now I’m afraid first I thought about drop but the working of computer and lots of applications around us forced me towards learning. That’s why I join a coaching class to learn C language 15 days before my 1st-semester class. Yes in just 15 days I learn C language. And these 15 days are the one why I fell in love with programming. Daily 1 hrs I read some theory part and after that try to code. But as you know it’s not so easy as I thought. But I didn't give up and try harder. And Now I’m able to implement code more efficient. So I just observe what problem I face and make a list which later one by one I’m gonna explain.
First of all before going to the main idea which is quite basic and generally everyone know about it. But during our coding, we miss them due to which we can’t implement very well that’s why it’s important to make them clear. So before start writing codes did you ever thought about some technical words like program, programmer, instruction, code, syntax etc.
Just a simple question I wanna ask you “Do you know what they are actually are?” “What is the basic meaning of these words?”
For simplification just imagine a scenario. You have a task which is given by your superior to teach guy basic of programming but the problem is that he never heard about it and you have to teach programming to a non-geek person, then how will you gonna manage that. Just take a break and think once then start reading remaining.
So now let me explain what are these from my point of view.
Program: If you Google it we will found “A program is a specific set of ordered operations for a computer to perform”. Ok, but what is the real role or to better understanding how will you correlate with our daily life. So let’s take an example from our daily life most of the time our parents/teacher ask us to do a certain task and then we start doing that as they said. Similarly, the same thing a computer does. What you have written in it (in code) takes it as an instruction and follow it all the way at the end and give you some result.
Programmer: Now the second point which comes up is What is a programmer or who are they? So the answer is that simple “ a person who can write some lines of codes or give some instruction through a programming language to get their desire output is well known as a programmer.” Now again this one is a standard definition so what is the simple definition. If you through the definition you will find that instead of asking who is a programmer? All we have to ask actually what a programmer does? Think about it before going through my words. Actually, when you ask this type of question almost 98% of people go through the standard definition. So what they actually do? Then answer is that simple like others(e.g. A mechanical engineer design, construct machines or a builder make a home, offices to stay comfortable, work efficiently, etc.) they also try to contribute on the basis of his knowledge to simplify things in computer world or the technical world.
Now come to our next point INSTRUCTION: What instruction is all about? Simply it is like an order to do things in a given specific way. Does it sound weird or not ?? Let’s take another example. You are going to the office or school or for any other work during this journey a stranger came to you and ask for help “Can you tell me in which direction I can find subway station? As I’m lost.” So now gonna be 2 possibilities 1st one is you know and the 2nd one is no I’m sorry. Now if you know the way then you can guide him “How to reach station” but if you don’t then you will tell him you also don’t know the correct way to reach the station. Then he will go and ask for help to any other. So in both case, if you see he will do the thing as you directed to him. So what you will say to him he will take as a command and follow that. Hope now the point is clear.
So now our next point is Code. Now the question is What is a code? Hmmm, A code is what programmers do. Better, or not. LOL just kidding.
Actually, if you think about it you will see it’s a tough point or question. Think of it and for once because it does a very important role when you start writing a program. When you go deep inside the standard definition
“Computer code or program code is the set of instructions forming a computer program which is executed by a computer. … This source code is translated into machine code by a compiler or interpreter so that the computer can execute it to perform its tasks.”
you will found the there are 2 meaning of this definition. A 1st definition will be according to you or a programmer what is he wants as an output. 2nd will be according to what you write inside the code computer will give output.
Now again take a break and think which one is right 1st one or 2nd one ??
So if read it, again and again, you will find both 1st and 2nd are the partial definitions. Then What is the right definition ??? Let’s see.
First, if we write a code lets take an example a program of adding 2 number then we give simply give 2 number as input then want an output lets say as C but the computer gives the other output lets say D means you did not get a desirable result. Now as a programmer you will start thinking the code you wrote it seems right but the why computer does not get that way in which you thought means he understands different meaning or point so you have to write code in such a way that computer will get what you think overall you need to modify in your code. So the definition of code will complete when we sum up both point i.e. point 1 and point 2.
For now part 1 I’m taking a break or it will be so long because of this become boring too.
One more point I wanna discuss with you i.e. generally many of us start giving up and stop coding because some of them think it’s so hard and they are not made for it let’s try something else or ever some of them think they have no prior knowledge about it or they belong to a different field. Then I wanna just say one thing is that you all are wrong and try to give up because you don’t want to leave your comfort zone that’s it. Then you will never ever get anything because to get something you have to leave your comfort zone and need a dedication for that to learn.
To learn code you need only 3 things which are listed below:-
A desire to learn.
Confidence that you can do it.
Hard work / smart work.
Believe me, only these 3 things need to become a programmer nothing else needed. If you have then congrats. You just move one step forward towards our programming world. And soon you will see how much beautiful it is. So I just wanna say
Welcome to our beautiful and creative world
From here 1st part ends and now 2nd starts.
Part-2
In Short Part 1
In the 1st part, I shared my of the coding journey how I start, how to make the code more efficient. And discussed some basic key concepts like program, programmer, instruction, code, syntax etc. what is standard definition and what is the real meaning of these key concepts or you can say differentiate between standard definition and real-world meaning.
Now let’s come to the present and discussed some more thing have some important role. But before going to the main idea I have a list of questions which you have to ask with yourself. These questions are not language based or field specific. And you do not have to post anywhere so, don’t worry just go for this question.
Are you ready to learn programming/coding
If you are a beginner then which language you are going to choose and why?
Why do you want to learn programming/coding? You want to learn because it’s sound cool or you really have some interest?
How’s your code going to help in our daily life?
Are you able to correlate what you learn with your daily life?
How will you tackle when you or get a programming problem?
How you overcome that problem?
What is some daily life example like any computer software or application name written in that language?
How are you gonna use it for your benefits?
and so many questions like this you have to ask with yourself and these basics key concepts will help you to become a good programmer or make your implementations better. Generally, when we get a problem or an idea that time we directly start thinking about the problem’s solution like if we talk about a question of adding 2 numbers asked from C language or a problem related to design something we directly start thinking about like in C how many variables we are going to use or if talk about in design we directly start working on design without making a blueprint or a test design. Now, this one is the biggest mistake generally beginners do that’s why they can’t implement code efficiently and the computer gives them a bonus result i.e. error or give a bad design as an output. And this one also creates confusion and sometimes due to the confusion they can’t write whole code i.e. after a few steps they start thinking about what was the next steps and this will end up on irritation. Due to this from my point of view, it’s a bad choice or method. Still, most of you think why this method is wrong? If this method is wrong then what is the right way and also tell us what are the disadvantages of that method? First, we look over what are the disadvantages of this method.
Disadvantages :
When we write code directly on the computer in this way we do two things at a time. 1st we think about the logic or design and at the same time we also implementing that logic and this creates confusion or sometimes it’s a breakpoint and we did not know what will be the next step.
If you think in this method makes you a good coder/programmer then you are wrong. Because 1st it makes your debugging skill weaker due to which when you get an error you are not able to understand where is the error in the code and how to fix it.
In so many companies interview, they will not provide you any laptop or computer they will give you a pen and paper to write code or design on that paper. So now in this way you can’t implement better and do some silly mistakes due to which there is a chance of your elimination.
You will always have confusion after writing code on paper when you will get any. i.e. lack of confidence.
Now comes what you have to do or How you have to proceed:
So these are the some most important disadvantages you can face if follow that method. Now what you have to do when you get a problem.
DOs:
When you will get any problem you have to read the first problem twice to clear the concept and then start building the logic for that question how you have to proceed then write down the logic on a paper in your own way i.e. in your own pseudo-code then type the logic and run your program.
If you are a beginner and not able to write or not able to understand pseudo-code then I have another way or solution for this.
In this case, I will suggest you write code in your own way or make design freely just think some daily life example. But parallel tries to understand or try to learn how to write standard pseudocode. I suggest you pseudo code because in this way the logic you are trying to build for that because in this way you don’t have to write the whole code. In just a few steps you will able to give the whole idea and this will helps you in future like when you will get a job or will work for any organization or during online contests.
For more and important points I will suggest you an article “The secret of great programming” is written by Ravi Shankar Rajan on Medium from this article you can make yourself a good article and get motivated.
Hope you like the article and will be helpful for you.
Thank You for reading.
Keep learning.
Happy Coding.
Here the real link of Dev.to community of these two articles :
HOW TO MAKE IMPLEMENTATION BETTER: Part 1 Abhishek Nov 30 ’18 ・6 min read there! I’m Abhishek this one is my first article, so hope you gonna like it. Or you…dev.to
How to make implementation better Final part Abhishek Feb 20 ・4 min read In the 1st part, I shared my of the coding journey how I start, how to make the code more…dev.to
0 notes