programming

How to find length of Set in Python?

Use len() function to check length of a set in Python

Deepak Prasad4 min read
programming

Golang SQL Tutorial [CRUD Operation]

Step by Step instructions to create and manage QL database using golang sql module. Perform CRUD Operation using GO.

Tuan Nguyen10 min read
programming

Golang Testing Examples | How to test GO Code?

Step by Step instructions to understand golang testing and write unit tests in go code.

Antony Shikubu8 min read
programming

Matplotlib.pyplot.vlines() - Draw vertical lines

Use matplotlib.pyplot.vlines to draw vertical lines in Python with examples.

Azka Iftikhar3 min read
programming

How to add items to array in Node.js

We can use 3 different methods to add items to array in Node.JS using push, unshift or concat method

Olorunfemi Akinlua4 min read
programming

Wait For Loop to Finish in Node.js

We can use promise.all to check and wait for loop to finish in Node.js

Olorunfemi Akinlua4 min read
programming

Golang Constructor Tutorial

we learn about Go constructors. Go does not come with constructors natively but provides ways to construct new types. Constructor functions are ordinary functions

Antony Shikubu6 min read
programming

Python calculate 6 months ago from today

In this article we have shared multiple ways to calculate date and time of 6 months ago from today in Python

Azka Iftikhar3 min read
programming

Create HTTPS Server with Node.js [Simple Steps]

Step by step instructions to create HTTPS Server with Node.js with example web server

Steve Alila5 min read
programming

Update key with new value in JavaScript

We can either use foreach loop of maps function to update key with new value in Javascript

Olorunfemi Akinlua4 min read
programming

Check if file or directory exists in Node.js

Check synchronously if file/directory exists in Node.js, How to check whether a directory exists in node.js?, NodeJs: fs.stat() or fs.access() to check if a folder exists, Node - Check to see if a directory exists, …

Steve Alila5 min read
programming

Node.js Child Process Tutorial [With Examples]

The exec() and spawn() methods are some of the frequently used Node.js child process module methods. Use the exec() method to run shell-like syntax commands on a small data volume. Otherwise, use the spawn() command, as …

Steve Alila6 min read
programming

Node.js get all files in directory recursively

The simplest way to achieve a Node.js get all files in directory and subdirectories recursively is through the glob module.

Steve Alila6 min read
programming

How to sort a map by value in JavaScript?

Different methods to sort map by value in javascript (JS) in both ascending and descending order.

Olorunfemi Akinlua7 min read
programming

How to loop through array in Node.js [6 Methods]

6 different methods to loop through an array in node.js. Using while loop, do- while loop, 1for loop, forEach method, for-of loop and for-in loop

Steve Alila6 min read
programming

Using try catch finally in Node.js [Best Practices]

node.js try catch finally can be used in synchronous and asynchronous code. It is used to handle run time code errors and exception handling

Steve Alila6 min read
programming

Node.js Error Handling Best Practices with Examples

Learn about node.js error handling in synchronous and asynchronous (callback and promised-based) code using Node.js process module, try-catch block, and then- catch block.

Steve Alila6 min read
programming

Monitor HTTP(s) traffic in Node.js

Step by step instructions to setup and monitor https traffic using node.js with practical examples

Steve Alila6 min read
programming

Create 10 second timer countdown in JavaScript

There are different timer functions available in javascript which can be used to create 10 second timer countdown such as setTimeout(), setInterval(), and setImmediate()

Steve Alila6 min read
programming

Golang Tabs vs Space for indentation - Formatting Tips

The official recommendation is to use golang TABs for indentation and formatting. We can format go code automatically using go fmt or goimports command

Tuan Nguyen5 min read
programming

println JS alternative available?

The alternative of java println in javascript is console.log()

Olorunfemi Akinlua4 min read
programming

Set GOPATH Variable in Linux & Windows PROPERLY

Steps to modify or set GOPATH variable in go env in both Linux and Windows. Make the changes permanent (persistent)

Antony Shikubu5 min read
programming

How to upload, display and save images in Node.js

Step by step instructions in node.js to upload file, then display and save files with practical examples

Steve Alila7 min read
programming

HashSet Java Explained [Easy Examples]

HashSet Java class is used to create a collection that uses a hash table for storage. It inherits the AbstractSet class and implements the Set interface. HashSet stores the elements by using a mechanism called hashing

Bashir Alam11 min read
programming

Java Regular Expression (RegEx) Explained [Easy Examples]

A Java regular expression is a special sequence of characters that helps us to match or find other strings or sets of strings, using a specified syntax held in a pattern

Bashir Alam10 min read
programming

Java User Input - Multiple Ways [Easy Examples]

In java programming language, we have three different kinds of methods through which we can take java user input including Scanner class, Buffered class, and console class

Bashir Alam11 min read
programming

Java Boolean Operator Explained

There are multiple java boolean operators such as logical operators that include logical operators, like the logical AND and logical OR as discussed above, unary operators like NOT and bitwise operators

Azka Iftikhar8 min read
programming

Java DecimalFormat Explained

The java DecimalFormat class is used to apply decimal formats that are user- defined, to apply java DecimalFormat we use the class java.text.DecimalFormat.

Azka Iftikhar7 min read
programming

List vs LinkedList in Java Explained

In Java, List is an interface in java.util package whereas LinkedList is a class in the java.util package. Both of this data structure is used to store the ordered collection of an elements of same type. The advantage of …

Deepak Prasad6 min read
programming

LinkedList in Java Explained [Complete Tutorial]

In Java, the LinkedList class is a member of Java Collections Framework present in java.util package. This class implements List interface along with other interface like Serializable, Cloneable, Iterable, collection, …

Deepak Prasad12 min read