Categories
react native

React Native: Working With State

When working with React, in this case React Native, there are times when you might need a value to be globally accessible by a particular component and you, for some reason as it suits your application, want to constantly update that value. React provides a sleek way of doing so using states. React lets you […]

Categories
javascript programming

What are Relational Operators?

Unlike logical operators which connect two or more expressions, relational operators test and establish some type of relation between two or more operands. There are six (6) relational operators, which are: Equal to (==) Yes, I know what you are thinking. We should have used the well-know equal sign (=) right? Well, that falls under […]

Categories
php

Function Parameters in PHP | Fast & Easy

Function parameters in PHP are small units of a program which can take some input in the form of parameters and does some processing and may return a value. You declare a function parameter after the function name, and inside a parenthesis. You can declare function parameters in PHP in much the same way as […]

Categories
php

PHP Arrays

An array is a data structure that stores one or more similar type of values in a single value. For example, if you were to store 100 numbers, then instead of defining 100 variables, it is easy to define an array of 100 length. Each value in the array is accessed using an id, which […]

Categories
php

PHP Sessions: Count Number of Site Visits

Sessions in PHP are a way to make data accessible across the various pages of an entire website. It is a useful way of both storing and passing data across in software development. When a session is started in PHP, a file is created in a temporary directory on the server where registered session variables […]

Categories
node.js

Create a Login Form With Node.js & MySQL

In our previous example, we saw how we can create a registration form using Node.js and MySQL. Using that same setup, let us proceed to authenticate the user after he has completed his registration. First, we create an HTML form for the user to enter his login credentials. We create a login.html file Next, we […]

Categories
node.js

Create a Registration Form With Node.js & MySQL

A registration form is used to collect data from potential users of your website. This is necessary, especially if you want these users to subscribe to a certain service in which they would have to login to access. In this tutorial, we will look at how to create a registration form using Node.js and MySQL. […]

Categories
node.js

Node.js: Working With Modules

Modules are generally set of functions that you can include in your application. These could be built-in functions that are part of the Node.js library or imported from a third-party library. Built-in Modules Node.js has a set of built-in modules which you can use without any further installation. These include: Module Description assert Provides a […]

Categories
node.js

Getting Started With Node.js

Created by a Joyent software engineer Ryan Dahl in 2009, Node.js is an open-source and cross-platform runtime environment for creating almost any kind of project. Before the creation of Node, Javascript codes must and have always been run on the browser. This means that for your Javascript project to run, you had to pass it […]

Categories
programming

What is REST?

REST stands for REpresentational State Transfer. REST is a system that allows users to request information from a server via an API and then receive appropriate responses in different data formats. The responses themselves are resource representations, such as a list of Github commits or weather forecasts, that can be delivered as XML or JSON […]

Categories
javascript

Javascript: Class Inheritance

Inheritance is an important concept in Object Oriented Programming. Inheritance is the process whereby one class, also called the sub-class, acquires the properties and methods of another class, also known as the super class. To create a class inheritance in Javascript, we use the “extends” keyword. Notice that we use the “super” keyword to access […]

Categories
javascript

Javascript: Object Oriented Programming

Object Oriented Programming (OOP) is a way of writing code such that you can create different objects (also called “instances”) from a common blueprint. Each created instance has properties that are not shared with other instances. For example if we have an Animal blueprint, we can create other animal instances with different names. Typically, object […]