Skip to main content

Posts

Showing posts from May, 2019

How To Code? Functions in Programming

unsplash-logo Fabian Grohs 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: Name Body Input Output 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

How to Code? Learn These 5 Basic Concepts of Programming

unsplash-logo Lewis Ngugi If you are intrigued by the title and you are reading this, it means that you are interested to learn how to code. You might have heard people saying that programming is a God gifted skill and not everybody is blessed with it or programming is not for people like you or me or whatever. Believe me, that's bullshit. Computer programming is the most interesting and the easiest skill to acquire in computer sciences. At least, I think so. It is said that one can do almost everything with programming and its true. If you can do everything with something, it then definitely worths a lot of your time. A question arises here that how much time one should dedicate daily to learn how to code fast and effect? I would say 8 hrs if you are on your own. To reduce the time and effort you need to learn programming, you should benefit from those who have experience and are good at it. As far as I think, you can boost up your learning process if you learn the bas