Open in app

Sign In

Write

Sign In

Patrick Divine
Patrick Divine

562 Followers

Home

About

Sep 11, 2021

What is a UUID (or GUID)?

Our favorite statistically unique identifier (00000000–0000–0000–0000–000000000000) TL;DR A UUID (universally unique identifier) is a statistically unique identifier It looks like this: 60f9496b-621c-48d8–8cba-1ebdd866a030 There are more possible UUIDs than there are grains of sand on Earth It is 128-bit value expressed as 32 hexadecimal characters plus dashes for readability A GUID (globally…

15 min read

What is a UUID (or GUID)?
What is a UUID (or GUID)?

15 min read


Published in

The Startup

·Sep 13, 2020

What Does Gigahertz (GHz) Actually Mean?

How fast is a 2.5 GHz computer and what does that mean? — The term “gigahertz” is composed of two parts, “giga” and “hertz”. To understand “gigahertz” we’ll dive into what each of these parts mean separately, and then apply this understanding to what in relation to a computer, and more specifically a computer’s CPU. Let’s start with the “hertz” part of “gigahertz.” Hertz (Hz) and Frequency …

Hertz

6 min read

What Does Gigahertz (GHz) Actually Mean?
What Does Gigahertz (GHz) Actually Mean?
Hertz

6 min read


Published in

JavaScript in Plain English

·May 2, 2020

A Nice Way to Iterate Over Collections in JavaScript

Reduce cognitive load with a consistent approach — Intro There are many ways to loop over collections, objects and arrays. Many of them are great for specific use cases. We’ll discuss a “nice” way to iterate over the items of collections, which will cover most use cases. What is “Nice”? Before I talk about the method of looping over collections, let me…

JavaScript

4 min read

A Nice Way to Iterate Over Collections in Javascript
A Nice Way to Iterate Over Collections in Javascript
JavaScript

4 min read


Published in

Better Programming

·Mar 21, 2020

How to Carefully Migrate a Collection From One Mongo Server Onto Another

Using mongodump with mongorestore — The exercise here is to move the records of a Mongo collection from one Mongo server to another. One use case for this is to copy a collection, or part of a collection, from a production environment into a development environment. Our Setup In our example, we’ll have two database servers that…

Mongo

4 min read

How to Carefully Migrate a Collection From One Mongo Server Onto Another
How to Carefully Migrate a Collection From One Mongo Server Onto Another
Mongo

4 min read


Published in

Better Programming

·Feb 2, 2020

Nested Destructuring Assignments in JavaScript

How to get the data inside the data — Javascript Destructuring Assignment Modern JavaScript allows us to define variables quickly from existing collections, objects, and arrays, or values. This shorthand is called destructuring assignment, or destructuring for short. If a collection contains other collections as elements, those collections can also be destructured. Simple Object Destructuring Here we have a simple object obj from which we…

Destructuring

2 min read

Nested Destructuring Assignments in JavaScript
Nested Destructuring Assignments in JavaScript
Destructuring

2 min read


Published in

Better Programming

·Feb 2, 2020

JavaScript Ellipses: The Spread and Rest Syntax

Helpful shorthands for modern JavaScript — Enter Javascript Ellipses (…) Modern JavaScript allows us to use three dots, …, also known as an ellipsis, to perform certain transformations and shorthand methods. The use of ellipses falls into two categories: rest syntax and spread syntax. I’ll explain each of these in turn. Rest Syntax Rest syntax allows a programmer to retrieve the remaining…

JavaScript

5 min read

JavaScript Ellipses: The Spread and Rest Syntax
JavaScript Ellipses: The Spread and Rest Syntax
JavaScript

5 min read


Published in

Better Programming

·Dec 24, 2019

Enough Vim to Be Dangerous

Tips for the beginner Vim user — What Is Vim? Vim is the de facto text editor for Linux. It can be thought of as the equivalent of Notepad for Windows or TextEdit for Mac. …

Vim

5 min read

Enough Vim to Be Dangerous
Enough Vim to Be Dangerous
Vim

5 min read


Published in

Better Programming

·Nov 7, 2019

My Round-1-New-Language Checklist

The first things to pick up when learning a new programming language — At some point, all engineers will have to pick up a new language. Here’s how I go about my first approach of a language. Avoidance of Syntactic Sugar In my first round, I avoid anything that makes the language nice. …

Software Engineering

8 min read

My Round-1-New-Language Checklist
My Round-1-New-Language Checklist
Software Engineering

8 min read


Published in

Better Programming

·Oct 19, 2019

The Main Reason To Write Tests

Hint: It isn’t to make sure new code works The Common Reasons Here are some reasons commonly cited in support of writing tests: To make sure new code works To find bugs before they happen To document your code If you’re an attentive engineer, most of the time when you’re finished with your…

Software Engineering

2 min read

The Main Reason To Write Tests
The Main Reason To Write Tests
Software Engineering

2 min read


Published in

Better Programming

·Oct 15, 2019

Serialization and Deserialization

What are they — and when are they used? — Serialization Serialization converts an in-memory data structure to a value that can be stored or transferred. Let’s say we have a users object in a JavaScript script that contains a total user count and a list of users, as follows: const usersObject = { "total": 2, "users": […

Software Engineering

3 min read

Serialization and Deserialization
Serialization and Deserialization
Software Engineering

3 min read

Patrick Divine

Patrick Divine

562 Followers

Software engineer.

Following
  • Tim Denning

    Tim Denning

  • Sean Kernan

    Sean Kernan

  • Darius Foroux

    Darius Foroux

  • Jennifer Fu

    Jennifer Fu

  • Prof Bill Buchanan OBE

    Prof Bill Buchanan OBE

See all (94)

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech

Teams