Image for post
Image for post

Let’s imagine that a worker in a factory is assembling a product. For assembling he need screws. He takes some screws and put it in a box near him. He takes the screws when he needed them. He is actually storing the screws in a place and uses it when he needs them. This is the concept of variables.

Variables

In programming a variable is a place where we can store values. Here variable resembles the box and value resembles the screw. So using variables we can store them and use them later when we need them.

Data Types

Even if the worker…


Image for post
Image for post

‘Hello World’ program is the most basic and introductory programs in every programming languages. Let’s see how we could write it and then explain it with the factory analogy. Before running the program make the setup needed to run the program in case you don’t have anything installed. We will be using C program to explain the concepts. You could install the C compiler or IDE(Integrated development environment), which is a software that is intended to making your coding easier and fun with lots of tools and features. Just a google search on “install C compiler and IDE to run…


Image for post
Image for post

This is an attempt to explain the basic concepts of programming with the analogy of a factory. Out of the many analogies I searched it was found to be the most convenient. Studying coding with the help of analogy will make it more easy to understand, less confusing, less boring and also helps to approach coding in the same way we interact with the world. For those who knows how to code already, it would be interesting to see it from another perspective.

This article explains what is a software, computer program, hardware and microcode using the factory analogy. …


“Any sufficiently advanced technology is indistinguishable from magic”. — Arthur C. Clarke(Science fiction writer)

Image for post
Image for post

We program machines. Our programs and machine hardware become more advanced, then again more advanced and again more advanced. From two bits: 0 and 1 and transistors, the digital world grown from mere digital calculators to machine learning and artificial intelligence. More and more objects from the physical world are being cloned to the digital world.

The algorithms become so intelligent and so the machines that contain them. The intelligent machines start to create new improved machines. This creates a cycle where the intelligent machines create…


Image for post
Image for post

The notification bell rings. You get the urge to check it. You took your phone and checked it. “Wow…One more like for my pic” or no bell and “Why my pic don’t get likes?”.

Just after watching a YouTube video, you are shown another video with similar interest. You feel the urge to watch it.

Completed a difficult level in a video game. You got a sense of achievement. You feel like a winner. You want to achieve more and so play more. But you failed, so you tried even harder for more hours.

Scenarios like these are common nowadays…


Image for post
Image for post

Biologically, the cause of addiction is dopamine and the reward system which is hijacked by addictive activities, making the brain believe the activities are good for the individual. But not all people show addictive behaviors. Some may do addictive activities yet they may not reach the point of addiction and at the same time some others do. Rat Park was a series of studies conducted to answer the cause of addictive behaviors.

Rat Park

Bruce K. Alexander and his colleagues at Simon Fraser University in British Columbia, Canada, set up two environments for rats¹. …


“Addiction begins with the hope that something “out there” can instantly fill up the emptiness inside.” — Jean Kilbourne (Public Speaker)

Image for post
Image for post

You started something out of sheer curiosity or as an act of exploration. Initially the substance you started to use or an activity you perform or the person with whom you started to be close provided you some pleasure. You get a very feel good feeling after engaging in either of these . They started to come often into your thoughts. You start to think more about the feeling you get from them. Later the same dose of substance…


“New technology is not good or evil in and of itself. It’s all about how people choose to use it.” — David Wong (Writer)

Image for post
Image for post

From the invention of the wheels to the revolution of the semiconductor industry, internet, artificial intelligence and robots, human civilization has transformed greatly and the transformation has reached to the point where they are irreversible. No one living in current world can imagine living in a world without internet, automobiles, software or any technology. While many technologies grow steadily there is one that grow at an exponential rate — semiconductor industry and software industry. From Gordon…


Image for post
Image for post

Hmm…Maybe you are interested to code or build things but don’t know how to start. With lots of resources and tools, figuring out a way to start learning may become more complicated. Well, here are a few ways to start to learn to code and on how to learn coding effectively.

1. Learn the fundamentals first

Make the basic concepts clear. Don’t be in a hurry. It takes a little amount of time. Learning fundamentals make it easy to learn the advanced concepts, make learning less boring and decrease the tendency to quit in midway. …


“People don’t care about what you say, they care about what you build.” -Mark Zuckerberg

Image for post
Image for post

The mysterious lines of codes, which when put into a machine, magic happens. Obviously coding can be magic as it gives you the key to open the doors of technology but when you grasp the fundamentals of coding or a computer program, it’s no more magic but an Art. Yeah, it’s more of an Art than Science. Coding can be used to translate your ideas or creativity into applications. Still in this era of technological boom many hesitate to get into coding just because of…

Shafi Sahal

Developer, adventure lover and a truth seeker

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store