Skip to main content

Posts

Showing posts with the label Coding

How To Code: How To Improve Logical Thinking For Programming

There are multiple techniques shared on the internet on how to improve logical thinking or # logic building tips for programmers or how to think like a programmer. But those techniques does not work. I mean they work but... the hard way. It is like someone is asking you to taste a delicious food without opening your mouth. Can you do that? Probably you can come up with a super creative way but that's not the way it works. There is one most important process to follow before applying those techniques. You can say, it is a prerequisite to fully utilize those logic building technique. And it is, understanding the flow of data inside your code. The code that you haven't written yet. Wait... What?
I am not kidding. You can understand your code that does not exists yet by using your imagination power. The power that makes us human, human. If you want something done and you cannot imagine it, you will never get it done. Here, I will tell you how programmers in the beginning develop …

How To Become A Successful Programmer?

How To Become A Successful Programmer? I have heard many novice programmers saying I want to get better at programming but there is hardly a slight improvement in their skills. I have observed that most of them say they want to get better but that is just a wish. They do not really mean it. They mere wish to improve their skills. They do not work for it. Your wish does not guarantee that you will become a successful programmer. Many other people who have developed an interest in computer programming do not know how to reach to a point where they will be called successful programmers. They either keep wandering in the middle of nowhere or just give up. The same response is for them too as it was for the wishers. Your interest does not guarantee that you will succeed. Programming is a field which requires intensive work to master. Along with improving your technical knowledge of programming, you need to work on your interest. You need to develop a habit of not giving up. You need to…

How To Code? Function Overloading

If you are thinking how does this image relates to the topic, don't think. Keep calm and keep reading. What is function overloading? Function overloading is a concept in programming where there are multiple functions with the same name having different parameters. Different parameters mean either the number of parameter is different or the data type or the order of input parameters is different. If the names of multiple functions are the same then how does a compiler/interpreter recognize which function has been called? Recall function signature from the previous post. Compiler recognizes each function by its signature and function signature includes function name, number of parameters passed to it, their data type and the order in which they are provided. Each version of an overloaded function is almost same for us but entirely a different function for compiler. It just executes the function to which a call has been made irrespective of it is an overloaded function or not provide…

How To Code? Types Of Functions In Programming

Types Of Functions In Programming: In previous post we briefly discussed what are functions in programming and how to use them  in a generic way. Here, you will learn what are different types of functions.
Functions are divided into two categories based on where their definition exists.
Built in functionsUser define functions 1. Built-in Functions Built-in functions are those which are already defined in a library. All you need to do is to import the library and call the function. There is no need to define and declare the required function. Steps to use Built-in function: Each and every language has a rich set of libraries developed for specific purposes. It is really hard to remember all of these libraries and functions and there is no need to remember at all. Here are listed some steps that I would suggest you to find a library and its functions for certain task. Understand both the problem and your solutionSearch a library suitable for your needFind your required function and read…

How To Code? Functions in Programming

What is a function in programming? A function in computer programming is just a block of related and reusable code which performs a single task or activity.
Function is also called method, procedure, sub-routine etc. I will try to cover each and every aspect of functions here. I have divided this post into two sections. One section explains the structural components and the other explains non-structural components. I am categorizing these things because I think it will help you better understand functions. These categories are not official. Tell me in the comments whether you liked the categorization or not. Based on your response, I will update this post. Structural Components:  There are four structural components of a function: NameBodyInputOutput 1. Name: Function name is the same as a variable name. It follows the same conventions a variable name follows. Special characters and spaces are not allowed in function name. Name of a function is used latter in the code to call/execute t…