Article
Python has a set of built-in library objects and functions to help us with this task. In this tutorial, we'll learn how to check if a file or directory is empty in Python. Distinguish Between a File and a Directory When we'd like to check if a path is empty...
Tapan Pandey
In this article, we'll be going through a few examples of how to check if a variable is a number in Python. Python is dynamically typed. There is no need to declare a variable type, while instantiating it - the interpreter infers the type at runtime: variable = 4 another_variable...
Hassan Saeed
A web application often needs to communicate with web servers to get various resources. You might need to fetch data from or post data to an external web server or API. Using client-side JavaScript, this can be achieved using the fetch API and the window.fetch() function. In NodeJS, several...
Aniuchi Adaobi
NoSQL brought flexibility to the tabular world of databases. MongoDB in particular became an excellent option to store unstructured JSON documents. Data starts as JSON in the UI and undergoes very few transformations to be stored, so we get benefits from increased performance and decreased processing time. But NoSQL does...
Leandro Cofre
One of the first things you encounter while learning the basics of programming is the concept of strings. Similar to various programming languages, Python strings are arrays of bytes representing Unicode characters - an array or sequence of characters. Python, unlike many programming languages, doesn’t have a distinct character...
Muhammad Hashir Hassan
Working with files is a common task with any programming language. File manipulation requires us to know their location. One of the most fundamental ways to interact with files is to list files in a directory. In this article, we'll be using Node.js and the built-in fs module as...
David Landup
Redis is an in-memory data store, which can be used as a NoSQL database, cache, or as a typical message broker. It's written in ANSI C, which compiles into significantly efficient machine code and its ability to store data as key-value pairs makes in-memory caching an attractive use-case for Redis,...
Guest Contributor
In this article, we'll convert a JSON array into a Java Array and Java List using Jackson. Since we're using Jackson, you'll have to add it to your project. If you're using Maven, it's as easy as adding the dependency: <dependency> <groupId>com.fasterxml.jackson.core&...
A common development task is reading data from files. A common file format is the .csv format. While you can read CSV files using the fs module that comes with Node and get the content of the file, in most cases, parsing and further conversion is much easier with the...
© 2013-2025 Stack Abuse. All rights reserved.