Learning to Code – Programming 101

Programming is the process of writing code for the computer to execute. It’s like writing a command and giving it to someone so that he can perform the task. When you write the code, your computer will do exactly what you tell it and therefore, writing a good program will have a great difference between writing an excellent program. Your programming skill will determine how efficient your program will be, thus, best coding practices are taught early to the students of computer programming in order to ensure a quality final product.

Levels of Programming

 

There are two levels of programming namely low-level and high-level. Low-level programming languages are often more difficult to learn because of their closeness to hardware. However, learning a low-level programming language will allow you to understand how computers function and will provide you with a greater wisdom in programming. Examples of low-level programming languages are C, C++ and Assembly. In addition, low-level programming languages can create faster programs than higher level programming languages.

High-level programming languages are programming languages that are “far” from hardware. They are easier to learn than low-level programming languages however, they tend to produce slower final products. Well, the difference is not huge anymore nowadays and when I mean slower, it’s only in a matter of milliseconds. Examples of high-level programming languages are JavaScript, Java, PHP and Python.

Simple Programming – JavaScript

I’ll teach you the very basic of programming. On this lesson, we’ll use JavaScript. Why JavaScript? There are some key points:

  • No need for additional software
  • All you need is a text editor and your browser
  • The code structure is easy to understand
  • Derived from C

Simple Programming Basics

Open a notepad (if you’re on windows, I suggest notepad++ and on mac, textedit) and save it as program.js. Then we will create another file and save it as test.html file and put the following content inside the html file then save it. The test.html and program.js file must be in the same directory.

<html>

<head>

<title>Test Page</title>

<script src="program.js"></script>

</head>

<body>

This is a test page

</body>

</html>

A Simple Code

Now, open the program.js file and put the following:

var name="Erik";

 

if(name=="Erik") {

alert("You're Erik!");

}

else {

alert("You're not Erik!");

}

We will explain them one by one. The var is called a reserved keyword and that means it’s a part of the JavaScript programming language. What it does is it tells JavaScript that you are create a variable which is called “name”. A variable is like a container that can hold a data and the data that we assigned for the variable called name is Erik.

Now, we create a condition here using the if keyword. The condition says that if the variable called name’s content is equal to Erik, then it will create a popup that says “You’re Erik”, but if the variable’s value’s content is other than Erik, then it will popup “You’re not Erik”.

Try opening the test.html using your browser and you’ll see that it will popup “You’re Erik”. Now open the program,js and change the value of name to other data and you’ll get “You’re not Erik” as a popup.

Read More

What is UX Design?

Many of us visits different websites and use different software and apps every day, either to purchase something online, socialize or do our tasks. Have you ever wondered who’s behind the beautiful UI and easy navigation around those websites and apps? It’s the UX designer, people who practices UX design (short for user experience design). They ensure that your experience and the navigation will be pleasant and easy throughout the app/website and the duration of your visit/use. Sounds interesting right? Let’s talk about the technical definition of UX Design.

The Definition of UX Design

UX design

In the early days of websites and apps, their goals and uses were almost always simple like a simple text editor, a simple website that provides some information about a business to a user. As the time goes, software and websites became more and more complex that they provide a richer and more interactive experience than before.

As a result of this, websites and software became hard to use when poorly designed. That’s where user design came into play. Their role is to create a user experience and design that will help most users accomplish what they need to do with ease. In a more technical term, user experience design is the process of enhancing your customer’s satisfaction and loyalty by providing an improved usability and ease of use and the pleasure provided in the interaction between a customer and the product.

The Benefits of UX Design

UX design is often integrated into software development and web development. This is to enable feature requirement and design the website based on the end user’s possible need for an effective use of the particular final product.

By integrating the principles of UX design, you will avoid unnecessary product features. These are often additional features that aren’t even used much and as a result, a waste of time or code. Take a look at google search. They’ve taken most of the features out from time to time and adds new one (based upon the user’s interaction).

By starting with the design before the coding begins, the development life cycle becomes much easier as the bugs and code discrepancies can be uncovered early on. It’s much easier to change design before the coding begins and thus, you can easily create a better finished product.

Elements of UX Design

There are basically four elements of UX design which are value, usability, adoptability and desirability.

Usability asks the question: “are the tasks easy to complete?” This is how a user can easily accomplish their desired task using a product.

Value asks the question: “does it have any value to the user?” The product’s features must be designed in such a way that they support the user’s needs.

Adoptability asks the question: “will they start using the product?” This means the users will buy, download, install and use the product.

Desirability asks the question: “is the experience fun and engaging?” The product needs to be fun and engaging to the user. Think of video games, their usability is often poor, but people enjoy them nonetheless.

Read More