Mongoose with Node.js - Object Data Modeling

Introduction 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...
Continue Reading

Guide to String Interning in Python

Introduction

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

Continue Reading

Java: Convert Array to Stream

Introduction

In this tutorial, we'll be converting a Java Array into a Java Stream for primitive types, as well as objects. This can be done either via Arrays.stream(), as well as Stream.of().

Arrays.stream()

A good way to turn an array into a stream is to use the

Continue Reading

Java: Convert Stream to Array

Introduction

In this tutorial, we'll be converting a Java Stream into a Java Array for primitive types, as well as objects.

Stream.toArray()

The toArray() method is a built-in method from the Stream class which is really convenient to use when converting from a Stream to an array. It works

Continue Reading