ArtsAutosBooksBusinessEducationEntertainmentFamilyFashionFoodGamesGenderHealthHolidaysHomeHubPagesPersonal FinancePetsPoliticsReligionSportsTechnologyTravel

Programming - What's that? Can I do it?

Updated on January 18, 2015

What's a programming language?

A programming language is the language the developer uses to communicate with the computer.

There are a lot of programming languages :)

What happens to that language ?

That language will run into a compiler (which is the program that compiles your code), such as Visual Studio, Eclipse... and that compiler will transform your code in the so-called binary code (that's a bunch of 0's and 1's, which is the only thing your computer understands)

Compiler VS Editor

The compiler converts your code into binary code allowing your computer to understand it.

The editor, like any editor allows you to write your code out of any development environment and compile it using, of course a compiler.

You might have heard about IDE, which means Integrated Development Environment, some good examples of that are Visual Studio and Eclipse.

Compiler VS Editor

I know the difference between a compiler and an editor

See results

Can I be a programmer?

Sure you can!

There are kids as young as 6 yrs old programming :)

Programming is easier than you think, and you've been doing that all your life, just in a different way.

And you are a programmed as well!

What do I need to know?

  1. Why am I programmed?
  2. How do I've been programming all my life?

What's a program?

Before you start programming you need to know what a program is.

And a program isn't more than a set of logical instructions in the right order, written in a certain language.

You are programmed!

Imagine that your mom is a developer and you are the program she is creating.

She gives you a set of instructions in a logical way, right? If she is sane I think so!

Let me explain!

If I ask you to clean your room, my words are the code to program your brain, so as "computer", you understand what you have to do, which is get the room clean, and I get my "program" done, a clean room.

Got it? I hope so.

That's why you are programmed and have been programming all your life, because even teaching a new trick to your dog follows the same process of building an application, because you both "speak" different languages, but are working for the same goal, if your dog is smart and if your "code" is good.

So where do I start?

Well, when somebody wants to start programming, he needs to learn something called "Programming Logics", that's common to all the programming languages and you really need to get good at it before you chose any language to program.

But I'll help you with that, so you can teach your dog :)

Programming logic parts

  • The Algorithm -- A set of instructions in the right order to accomplish a goal
  • The conditional statements -- The instructions that allow you to follow a logical order of instructions
  • The numeric operators -- These ones are pretty simple and you've learned them a long time ago, they are the ones from Maths as its name suggests
  • The comparison operators -- These operators are used to compare one thing (value) to another
  • Boolean operators -- They are just two, TRUE or FALSE, basically you use them to confirm of deny something
  • Boolean statements -- These little words, or, and, not combined with the boolean operator help you checking if something is true, or false, or both things, well, that's confusing but we will get into that later.

What's a program?

A program, to the developer, is a problem that he has to solve to reach a certain goal, simple as that.

To the user, is a solution for his problem.

I think that's why in Visual Studio, a new project is called a Solution.

Programming Logics -- The Algorithm

  • What's an Algorithm?

The Algorithm is a set of instructions in the right order to accomplish a goal, for example, the steps you take, to drink water, are an algorithm, take a look:

  1. Go to the kitchen
  2. Look for a glass
  3. Hold it under the tap
  4. Open the tap
  5. Wait
  6. Close the tap
  7. Hold the glass to your mouth
  8. Drink it


Simple, isn't it? But I had to speak your language and give you the instructions in the right and logical way right?

What if I didn't? You wouldn't probably drink the water, so I had another problem instead of a solution.

When the algorithm goes wrong, it creates failed or buggy software.

Keep going!

If you want to learn how to program, you are almost there!

We are getting close.

So you need to know where to start and where to go to reach your goals

Programming Logics -- The conditional statements

Well, we've seen before that we need instructions to reach a goal, but we can do the same thing in many different ways right?

That's why there are logical conditions in the programming world, take a look:

  • If -- If this happens, If this is the same
  • Then -- If this happens Then do this
  • Else -- If this and that doesn't work Then do this but if that fails Then do something Else

For example:

If the water is closed

then open it

else drink juice

Programming logics -- Comparison operators

The numeric operators are very useful, and I don't need to say that because you use them every day in your daily life, but I guess that you use the comparison ones much more, since you have to take decisions and compare values and situations, so let's take a look at it:

  • >= Equal or greater than
  • <= -- Equal or minor
  • != -- different than
  • == -- Equal to

>= Equal or greater than

Imagine that you have to feed 100 people, but you just have food for 20, in your mind what happens is this:

number of people >= food

if the number of people is == (equal) to the amount of food that's ok, we are done, but if it's > (greater), then we need to combine the numeric operators and the comparison ones to solve the problem, for example, we need to divide(/) the food in smaller parts.

Notice that the name of this operator is "Equal or Greater than", this "or" is very important, because you will use this operator just to know if your variable (we will come into that later) is one thing or another, never both (for that we have something else)

Equal or minor than

Ok, let's think about another situation, get yourself in the car, and let's travel.

So, you are on the highway and the speed limit for your vehicle is 190km/h, if you're exactly at that speed, what's wrong? nothing, but if you slow down, your speed is minor compared to the limit, so an equal or minor speed is more secure than an equal or greater one.

Well, that's confusing, let's take a look at what happens in your mind:

  • my speed == speed limit -- if so, no problem
  • my speed < speed limit -- that's ok, that's how it should be
  • my speed > speed limit -- well, that's not a very good idea

See, even if you aren't that good at maths, you use it all the time

Equal to

When you want to know if two or more things are equal, use the operator: == (equal to), represented by two equal signs without space.

For example:

my age == your age?

If my age != (different) your age then...

That's how it works, simple as that.

!= Different than

We use this operator when we want to know if two or more values are different and do something else if they are, or if they aren't, for example:

  • if my age != your age then...
  • if my age not != your age then...

and, or and not are boolean statements, they are used to check if something is true or false, as well as the boolean operators that we will discuss later.

Did you get the difference between the comparison operators ?

See results

Boolean operators


What the TRUE operator does is simply making a variable became true or check if it's true, take a look:

if your_dog == "lazy" then bad_owner = TRUE...

Well, you shouldn't really assign the value TRUE but we can talk about that later.

if not bad_owner then lazy_dog = FALSE

Did you get it?

See results

Before we get to our first Algorithm

I want to tell you about something called variables.

Think of variables as boxes where you store objects, photos... like boxes, there are different types of variables, take a look:

  • integers: the integer variables are exclusively integer numbers.
  • boolean: this kind of variables holds just one of two values, True or False.
  • characters: any character, numeric or not is ok, but just 1 character per variable
  • floating-point numbers: like the name says, floating-point numbers
  • alphanumeric strings: groups of numbers, letters and symbols


    0 of 8192 characters used
    Post Comment

    • ThatSweetGirl profile imageAUTHOR


      3 years ago

      Thanks but I'm actually working on a second one and looking forward to editing this one.

      I've been programming for about 5 years, for the web, robotics, and desktop, so I've had contact with this world, but I agree with you that my logic wasn't very clear, and reading your bio, it says that you've been programming for 40 years, well, I can't argue with that, but I'm glad that you took some of your time to read my article.

    • gposchman profile image

      Gene Poschman 

      3 years ago from San Francisco Bay Area


      You certainly tackled a complex subject for your first article. You have a pretty good understanding of the elements of programming, but some of the concepts you present are incomplete for example programming logic parts. Each of your definitions needs to be fleshed out a little more.

      Your example of someone being programmed is accurate, but a person is not a program but biological automaton which contains many programs or algorithms that have been developed and inputted into your brain, which is the most sophisticated computer that exists.

      In the end you sort of drop your reader without fulfilling the promise to teaching them how to program. The truth is you couldn't do it in a single article, so you might want to lower expectations and provide a list of resources that are out there.

      An excellent first draft, I look forward to you fleshing it out.

      Gene Poschman


    This website uses cookies

    As a user in the EEA, your approval is needed on a few things. To provide a better website experience, uses cookies (and other similar technologies) and may collect, process, and share personal data. Please choose which areas of our service you consent to our doing so.

    For more information on managing or withdrawing consents and how we handle data, visit our Privacy Policy at:

    Show Details
    HubPages Device IDThis is used to identify particular browsers or devices when the access the service, and is used for security reasons.
    LoginThis is necessary to sign in to the HubPages Service.
    Google RecaptchaThis is used to prevent bots and spam. (Privacy Policy)
    AkismetThis is used to detect comment spam. (Privacy Policy)
    HubPages Google AnalyticsThis is used to provide data on traffic to our website, all personally identifyable data is anonymized. (Privacy Policy)
    HubPages Traffic PixelThis is used to collect data on traffic to articles and other pages on our site. Unless you are signed in to a HubPages account, all personally identifiable information is anonymized.
    Amazon Web ServicesThis is a cloud services platform that we used to host our service. (Privacy Policy)
    CloudflareThis is a cloud CDN service that we use to efficiently deliver files required for our service to operate such as javascript, cascading style sheets, images, and videos. (Privacy Policy)
    Google Hosted LibrariesJavascript software libraries such as jQuery are loaded at endpoints on the or domains, for performance and efficiency reasons. (Privacy Policy)
    Google Custom SearchThis is feature allows you to search the site. (Privacy Policy)
    Google MapsSome articles have Google Maps embedded in them. (Privacy Policy)
    Google ChartsThis is used to display charts and graphs on articles and the author center. (Privacy Policy)
    Google AdSense Host APIThis service allows you to sign up for or associate a Google AdSense account with HubPages, so that you can earn money from ads on your articles. No data is shared unless you engage with this feature. (Privacy Policy)
    Google YouTubeSome articles have YouTube videos embedded in them. (Privacy Policy)
    VimeoSome articles have Vimeo videos embedded in them. (Privacy Policy)
    PaypalThis is used for a registered author who enrolls in the HubPages Earnings program and requests to be paid via PayPal. No data is shared with Paypal unless you engage with this feature. (Privacy Policy)
    Facebook LoginYou can use this to streamline signing up for, or signing in to your Hubpages account. No data is shared with Facebook unless you engage with this feature. (Privacy Policy)
    MavenThis supports the Maven widget and search functionality. (Privacy Policy)
    Google AdSenseThis is an ad network. (Privacy Policy)
    Google DoubleClickGoogle provides ad serving technology and runs an ad network. (Privacy Policy)
    Index ExchangeThis is an ad network. (Privacy Policy)
    SovrnThis is an ad network. (Privacy Policy)
    Facebook AdsThis is an ad network. (Privacy Policy)
    Amazon Unified Ad MarketplaceThis is an ad network. (Privacy Policy)
    AppNexusThis is an ad network. (Privacy Policy)
    OpenxThis is an ad network. (Privacy Policy)
    Rubicon ProjectThis is an ad network. (Privacy Policy)
    TripleLiftThis is an ad network. (Privacy Policy)
    Say MediaWe partner with Say Media to deliver ad campaigns on our sites. (Privacy Policy)
    Remarketing PixelsWe may use remarketing pixels from advertising networks such as Google AdWords, Bing Ads, and Facebook in order to advertise the HubPages Service to people that have visited our sites.
    Conversion Tracking PixelsWe may use conversion tracking pixels from advertising networks such as Google AdWords, Bing Ads, and Facebook in order to identify when an advertisement has successfully resulted in the desired action, such as signing up for the HubPages Service or publishing an article on the HubPages Service.
    Author Google AnalyticsThis is used to provide traffic data and reports to the authors of articles on the HubPages Service. (Privacy Policy)
    ComscoreComScore is a media measurement and analytics company providing marketing data and analytics to enterprises, media and advertising agencies, and publishers. Non-consent will result in ComScore only processing obfuscated personal data. (Privacy Policy)
    Amazon Tracking PixelSome articles display amazon products as part of the Amazon Affiliate program, this pixel provides traffic statistics for those products (Privacy Policy)