Home » 2021 » October

How to use Comments in JavaScript

JavaScript Comments

This short article will explain how and why you should use comments in JavaScript. First up, how to comment. What is a Comment? A comment in programing is one or more lines of text that aren’t interpreted as programming instructions. Instead, the computer skips them when executing your code, completely ignoring them. Therefore, comments don’t have to conform to any valid syntax. They’re just text that you read, and the computer doesn’t. Single-Line Comments in JavaScript Commenting is easy. How easy? This easy: // This is a comment … Read more

Home » 2021 » October

How to Unzip Files in Linux with the unzip Command

Linux unzip

We’ve zipped files from the Linux command line; now, let’s unzip them. This short article will show you how. Zipping Files Zipping files is common parlance for compressing one or more files or directories into a .zip file – a compressed file format. We cover how to do that in this article, so there’s no need to repeat too much of it here. The Unzip Command The unzip command may not be installed on your system by default. If it isn’t, it can be installed on Debian/Ubuntu-based OS by running: … Read more

Home » 2021 » October

/etc /bin /etc /dev – Linux Filesystem Directories and What’s in Them

/etc /bin /etc /dev - Linux Directories and What's in Them

If you’re new to the Linux operating system, you might be a bit confused about exactly what is stored where on your hard drive.  Directories like /etc and /bin might seem confusing to you if you’re used to Windows‘ directory structure. This article will tell you what everything is. As an end-user, you’ll probably only need to worry about the actual contents of a few of these directories – /home, /etc/, /var, /srv, /media. The contents of the other directories are mostly managed by package managers (for installing software) and system services … Read more

Home » 2021 » October

How to Execute PHP from the Command Line (Bash/Shell)

Execute PHP from the Command Line/Bash

This article will quickly run through the ways PHP can be used from the Bash shell/command line, with examples. PHP is usually used for generating content to be served on the web – but it can also be used from the command line. This is usually done for the purposes of testing or finding out information about the PHP environment – but PHP can also be used for writing command-line scripts (though, again, it’s not really done that frequently – probably because there are better … Read more

Home » 2021 » October

Bash Scripts Set Environmental Variables with EXPORT [HowTo]

Bash Set/Export Environmental Variable

This tutorial will show you how to set environmental variables in Bash/Shell scripts using the export keyword. Generally, variables declared in Bash/Shell scripts exist only within the scope of that running Bash/Shell script. To make them available elsewhere, they can be set as an environmental variable – meaning that the variable will be available when executing commands outside of the script on your system – for example, making the variable available from the command line after the script has completed. The export keyword does this – … Read more

Home » 2021 » October

JavaScript Libraries We’re Using to Build Apps in 2022

Javascript Libraries

JavaScript libraries take the legwork out of building complex applications. Here are some of the most useful libraries to use in 2021/2022. Once you’ve graduated from ‘Hello World!‘ and understand how JavaScript works, you’ll probably want to dive into building something more useful – a website, or a service, or a mobile app. These all have many moving parts – Authentication so users can log in, database support for storing data, file uploads so users can store their cat pictures in the database – all of these … Read more

Home » 2021 » October

The JavaScript Frameworks We’re Using for 2022

Javascript Frameworks

When building a JavaScript application, you don’t need to write everything from scratch. Instead, javaScript frameworks provide the base to build your app. Here are the ones we’re using in 2021 and into 2022. Node.js https://nodejs.org/en/ JavaScript originated as a scripting language for use on web pages – to be executed within a web browser. Node.js breaks JavaScript out of the browser and allows it to run stand-alone. It’s not technically a framework, but you’ll need to know what it is as some frameworks will run … Read more

Home » 2021 » October

Kibibytes, Mebibytes, Gibibytes, Tebibytes… What are They?

Kibibytes, Mebibytes, Gibibytes, Tebibytes

This article will explain what the kibibytes, mebibytes, gibibytes, tebibytes storage units are in relation to Kilobytes, megabytes, gigabytes, and terabytes. … So What are They? Simply, they are a different set of storage units used to express/measure file sizes. They are analogous to kilobytes, megabytes, gigabytes, and terabytes – and often used interchangeably – but they are not the same. Kilobytes, megabytes, etc., all measure units in thousands – 1000 kilobytes to a megabyte, 1000 megabytes to a gigabyte, and so on. This is the decimal measurement system of … Read more

Home » 2021 » October

Check if a JavaScript Variable is an Array with isArray() [Examples]

Javascript Array.isArray()

Here’s a short article that explains arrays and how to check if a JavaScript variable is an array using the Array.isArray() method. Want to check out whether an array contains a value? Find out how here. What is An Array? An array is a type of JavaScript variable that can hold other variables, or references to other variables, in a list at a certain position. Declaring an Array in JavaScript An array is declared in JavaScript the same way as any other variable – by assigning the value … Read more

Home » 2021 » October

Checking for null values in JavaScript, With Examples

Javascript Null Check

What is null in JavaScript, and how can you check if a value is equal to null? Read on to find out. What is Null? Null is a term with a special meaning in computing and computer programming. Null is not 0 (zero). Null means that something has no value. Zero is a value (a number). An empty string has a value (though sometimes called a null string, they aren’t null). A variable with a value of null is considered to be empty. It is not undefined – it has been defined … Read more