Open in app

Sign In

Write

Sign In

Chris Geelhoed
Chris Geelhoed

584 Followers

Home

About

Jun 17, 2020

How to Paginate Results with Shopify’s GraphQL API

Limitations, strategies, and examples of building performant pagination for Shopify Apps — This article is written as a practical guide to implementing pagination in a Shopify App. The example code assumes a tech stack of React.js and PHP Laravel, but the concepts discussed can be applied to other tech stacks fairly easily. Why is Pagination Important? Pagination is an essential concept in application development for two…

Shopify

8 min read

How to Paginate Results with Shopify’s GraphQL API
How to Paginate Results with Shopify’s GraphQL API
Shopify

8 min read


May 22, 2020

How to Save Empty Strings when using Shopify’s Metafields API

Or more accurately… how to get around this limitation — Shopify’s Metafield REST API is an excellent resource for App and Theme developers, but it comes with a notable limitation — empty strings cannot be saved! This post explores this problem and presents two approaches that can be used to solve it. The Problem Let’s look at an example. Say that you…

Shopify

3 min read

How to Store Empty Strings in Shopify’s Metafields API
How to Store Empty Strings in Shopify’s Metafields API
Shopify

3 min read


Published in Better Programming

·Jan 29, 2020

In Defense of the Simple For Loop

Map, filter, and reduce are great, but the simple for loop is still a great tool for JavaScript programmers — I’ve read a lot of articles lately that recommend that developers “stop using for loops” in favor of more specialized looping techniques like map, filter, reduce, forEach, etc. I agree with this recommendation to some extent. …

JavaScript

5 min read

In Defense of the Simple for Loop
In Defense of the Simple for Loop
JavaScript

5 min read


Published in Better Programming

·Jan 16, 2020

What’s the Difference Between Primitive Values and Object References in JavaScript?

A critical distinction between immutable and mutable data — All data types in JavaScript can be put into one of two categories: primitive values and object references. Primitive values and object references behave differently. This difference in behavior affects how variable assignments are made, how equality operators get their results, and how JavaScript programs run in general. Understanding the…

JavaScript

8 min read

Intermediate JavaScript: What’s the Difference Between Primitive Values and Object References?
Intermediate JavaScript: What’s the Difference Between Primitive Values and Object References?
JavaScript

8 min read


Published in Better Programming

·Jan 13, 2020

The Dangers of the ‘+’ Operator in JavaScript

How simple addition can misfire and break JavaScript applications in ways you might not expect — Like most programming languages, JavaScript has a + operator that can be used to perform addition. Unlike other programming languages, however, the operator also serves a second purpose: string formatting. This piece explores how the + operator works, and how it can misfire and cause bugs if you aren’t careful…

JavaScript

4 min read

The Dangers of the ‘+’ Operator in JavaScript
The Dangers of the ‘+’ Operator in JavaScript
JavaScript

4 min read


Jan 3, 2020

How to Deploy Node.js Shopify Apps to Digital Ocean

A comprehensive guide to deploying your Node.js Shopify App to a production-grade Digital Ocean server — Node.js has emerged as the preferred technology stack for Shopify app development. It pairs perfectly with React and Shopify’s Polaris UI library, making it ideal for apps that embed directly into the online stores of Shopify merchants. This tutorial shows how Node.js Shopify apps can be deployed to a Digital…

Nodejs

9 min read

How to Deploy Node.js Shopify Apps to Digital Ocean
How to Deploy Node.js Shopify Apps to Digital Ocean
Nodejs

9 min read


Published in Better Programming

·Dec 9, 2019

You Might Need Those Semicolons in Your JavaScript After All

Leaving them out looks pretty, but it could break things — When I first started writing JavaScript I thought that semicolons were mandatory. I was learning about jQuery at the time and all of the documentation I was reading showed a semicolon at the end of every statement. I had a bit of background in some other programming languages and this…

JavaScript

5 min read

You Might Need Those Semicolons in Your Javascript After All
You Might Need Those Semicolons in Your Javascript After All
JavaScript

5 min read


Published in Better Programming

·Dec 2, 2019

How to Overcome Tough Bugs Without Pulling Your Hair Out

8 tips for breaking through roadblocks as a programmer — Programming is hard. The ability to translate an idea into code isn’t something that comes naturally to most people, and sometimes we get stuck. Even after coding for years, you will still hit roadblocks regularly. …

Programming

6 min read

A Framework for Overcoming Tough Bugs Without Pulling Your Hair Out
A Framework for Overcoming Tough Bugs Without Pulling Your Hair Out
Programming

6 min read


Published in Better Programming

·Nov 25, 2019

Stop Putting So Many If Statements in Your JavaScript

4 other ways of handling conditional logic in your code — “To a man with a hammer, everything looks like a nail” — Abraham Maslow I like to think of conditional logic as the bread and butter of software. It gives developers the power to build things that are interesting, useful, and fun. The most popular way of handling conditional logic…

Programming

6 min read

Stop Putting So Many If Statements in Your JavaScript
Stop Putting So Many If Statements in Your JavaScript
Programming

6 min read


Published in Better Programming

·Nov 18, 2019

JavaScript: Sets vs. Arrays

Introducing Sets, the ES6 data type you didn’t know you needed — The Set object type was introduced in the 2015 ECMAScript specification and is ready to be used in Node.js and most browsers. Sets are a lot like Arrays, but a bit different. This article explores these differences and explains when one should be used over another. Let’s take a look. Sets, the New Kid on the Block …

JavaScript

5 min read

JavaScript: Sets vs. Arrays
JavaScript: Sets vs. Arrays
JavaScript

5 min read

Chris Geelhoed

Chris Geelhoed

584 Followers

Software developer and teacher

Following
  • Aphinya Dechalert

    Aphinya Dechalert

  • Christopher Beards

    Christopher Beards

  • Krzysztof Czernek

    Krzysztof Czernek

  • Hans McMurdy

    Hans McMurdy

  • Rick West

    Rick West

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech