Programming

Ruby vs Python

Ruby vs Python – Which Programming Language to Learn in 2022?

Learning to program but aren’t sure which language to choose? Python and Ruby are popular choices. This article will provide info to help you decide. What is Python? Python is a general-purpose programming language that can be used for everything from scripting to building full-blown web and desktop… Read More »Ruby vs Python – Which Programming Language to Learn in 2022?

Programming Variable Types

Why Using the Right Variable Type is Important (Especially in Javascript)

Variable types are a fundamental programming concept that often confuses beginners – especially those learning JavaScript. This article will show you the consequences of using the wrong variable types. What is a Variable Type? In computer programming, the type of a variable determines what values… Read More »Why Using the Right Variable Type is Important (Especially in Javascript)

How to Remove First/Last Characters from String in JavaScript

JavaScript: Remove the First/Last Character from a String [Examples]

This tutorial will explain a few ways to remove the first or last character (or both!) from a string in the JavaScript programming language. This can be useful if you need to capitalize names or sentences or remove punctuation. Remove First/Last Character Using The substring() Method The… Read More »JavaScript: Remove the First/Last Character from a String [Examples]

PHP_SELF

PHP_SELF – What It Is, and Why It’s Too Dangerous to Use [WARNING]

This article outlines the PHP_SELF attribute of the $_SERVER system information variable and why you should never, ever use it. What is _$SERVER? Check out our full article on $_SERVER here – but in short, it’s a variable containing an array with information about your PHP environment – including server… Read More »PHP_SELF – What It Is, and Why It’s Too Dangerous to Use [WARNING]

JavaScript substring/substr Difference

JavaScript substr() and substring() – What’s the Difference?

JavaScript has two similar-looking methods for extracting substrings from strings – substr() and substring(). This article explains the difference. These two functions perform almost the same function and have almost the same name, and at a glance, even seem to have the same syntax – but they’re… Read More »JavaScript substr() and substring() – What’s the Difference?