Skip to main content

Here's what a VPN can't protect you from (but you need to use it)

The abbreviation " VPN " has slowly become established among average Internet users, which is certainly good, but the problem is that people have started to see VPN as the ultimate solution to all problems.

VB – Variables

VB – Variables

When programming, you must understand and learn how variables are used and what they actually represent. You may have encountered the concept of variables before, and certainly from mathematics. You may have noticed when your math teacher says: "variable x".

Why is something called a variable in the first place? A variable is a character, letter, word, or set of words associated with a character that has a value. In terms of programming, a variable can have a number value, a text value, and true and false values. Let's say the variable x is the name of the variable, while its value can be the number five. Now you must understand how each variable must be associated with some type of data. What are data types?

The data type is the value that the computer should predict for a given variable with which it will work and the range of its values. There are two basic groups of data types and they are:

  • Basic
  • Other

What we are interested in now are the basic data types: numbers (integers and reals), characters, logical data (true, false, 1,0), and constants. I will explain each one briefly. For numbers, several types of data can be worked with, but it all depends on what the value of the variable will be. If the value of the variable is a number that does not have a decimal value, then the Integer data type is used. If the value of the variable is a number with a decimal value, we will use the Double data type because it can display decimal values ​​and therefore has a larger range of values ​​and will take up more space in the program. Characters are certain letters, words, and sentences and they are always String data types. Logical values ​​are true (1) and false (0). It remains for me to explain the constants. As for constants, they are no longer variables, they make a variable become a constant. I'm sure this sounds confusing now, but over time, as you master the syntax of the language itself, you'll see how simple it is.

We start with an example of how to declare variables:

Okay, let's explain briefly what I did now. When we start declaring variables in Visual Basic, we do it by typing Dim. After that, we put the name of the variable that we determine as programmers. After that, I put As because I am about to define what data type will be in use for the given variable. In the first example, I use Integer only because the value I entered by putting the equal sign is the number five, and the number five does not have a decimal value to be another data type.

In each of the examples, you notice how I use the name of the variable and the data type, and then assign the value to the variable, and this will always be done in programming. In the second example, we have a Double data type only because the value of the variable is a decimal value. The third variable has a String data type only because it is text. The fourth and fifth variables have a Boolean data type because the value of those variables is true and false, i.e. 1 and 0.

After declaring the variables, I simply printed them out and thus displayed all the variables in the console and it will look like this:

As you can see from the attached image each of the variables will be displayed in the console exactly as they should be displayed. At the very end, you notice that it says True and False, i.e. true and false, and the Boolean data type is responsible for that.

Comments

Popular this month

New Google mobile internet saving application - Datally

I wrote an article on how to save internet traffic on an Android device and I suggested the Onavo Extend and Opera Max apps because they were the most popular back then. Meanwhile, Opera Max has been discontinued and Onavo has been completely redesigned and is now a VPN application with the option to save internet traffic. Their compression technology is probably now used by Facebook in its application because they bought Onavo - link . Google has decided to seize the opportunity and "push" with a new application called " Datally ".

SOPA and PIPA are slowly losing support, the protest yielded results

Controversial U.S. anti-piracy laws, known by the acronyms SOPA and PIPA lost the support of eight members of Congress after major protests by the Internet community. Support was denied, among others, by Marco Rubio of Florida, a rising star of the Republican Party, and his party colleague Roy Blunt of Missouri - who were among the signatories of the bills.

How to change IMEI number on Android phone?

IMEI is an abbreviation of "international mobile equipment identity" and each mobile phone should have a unique IMEI number. You cannot change this number with the operator, but you can temporarily change it on your device. It allows the operator to accurately identify your device and thus enable/disable network services. Also, you can use the possibility of changing the IMEI number, at least for a short time, if you know exactly what you want, but I leave those ideas to you because this is an educational article.

Twitter is celebrating its sixth birthday

Exactly six years ago, one of the founders of Twitter posted his first tweet - " just setting up my twttr ". Although the popularity of this service was modest in the first few years, today Twitter has over 500 million users who send tweets, and messages 140 characters long.

Mobile Browsers

The Internet on mobile devices is becoming more popular and has more and more users. As mobile internet expands, so do mobile browsers. Although the devices themselves already have built-in basic internet browsers, new browsers are constantly appearing. The reason is that each of the programs brings something new and useful. For example, Opera Mini is most popular on older phone models that use Java applications, while on Android platforms Chrome , Firefox ,  Dolphin , and xScope are more represented.