JavaScript

JavaScript in the gray area between frontend and NodeJS. Build Webpack bundles, create task runners, or endure our criticism of the Javascript ecosystem.

Complex Features in MongoDB Cloud: Add Image Tags with AI

Using functions, webhooks, and values to utilize external APIs.

Friends, family, and most importantly, strangers: I approach you today with a tale of renewed inspiration. After loudly broadcasting my own confusion and mediocre ability to actually implement an effective cloud via MongoDB Stitch, my ineptitude has been answered with an early Christmas gift.

My incessant complaining gained some acknowledgement from a couple of folks over at MongoDB. Perhaps the

NoSQL Todd Birchard avatarTodd Birchard Todd Birchard avatar
toddJan 15
Dec 14
Read

MongoDB Stitch Serverless Functions

A crash course in MongoDB Cloud’s bread and butter: serverless functions

At times, I've found my opinion of MongoDB Atlas and MongoDB Stitch to waver between two extremes. Sometimes I'm struck by the allure of a cloud which fundamentally disregards schemas (wooo no schema party!). Other times, such as when Mongo decides to upgrade to a new version and you find all your production instances broken, I like the ecosystem a

NoSQL Todd Birchard avatarTodd Birchard Todd Birchard avatar
toddJan 15
Nov 26
Read

Image Compression Using Gulp and Imagemin

The simplest way to optimize page speed without breaking everything.

I promised myself I wouldn’t get involved in any more Gulp tutorials; task runners aren’t exactly the sexiest topic in the world, and chances are if you’ve made it to this blog, you’ve either solidified a CI/CD pipeline for going live with software, or you simply don’t need one. We’ll make an exception

JavaScript Todd Birchard avatarTodd Birchard Todd Birchard avatar
toddJan 15
Nov 21
Read

MongoDB Cloud: "Backend as a Service" with Atlas & Stitch

MongoDB's silent transformation from an open-source database to enterprise cloud provider

Unless you've been living under a rock (or only visit this site via work-related Google Searches, like most people) you've probably heard me drone on here and there about MongoDB Atlas and MongoDB Stitch. I even went so far as to hack together an awful workflow that somehow utilized Tableau as an ETL tool to feed JIRA information into Mongo.

NoSQL Todd Birchard avatarTodd Birchard Todd Birchard avatar
toddJan 15
Nov 15
Read

Compile Frontend JavaScript with Babel and Gulp

Using ECMAScript functions on the frontend the quick and dirty way.

As you may have already deduced from the occasional glaring holes in my programming knowledge, I haven’t spent as much of my life programming than, well, anybody who haphazardly threw away an 8-year product management career. Apparently, a lot can happen in 8 years... especially when it comes to JavaScript.
Putting aside that whole server-side  NodeJS thing or whatever

JavaScript Todd Birchard avatarTodd Birchard Todd Birchard avatar
toddJan 15
Oct 06
Read

Upgrading to Gulp 4.0.0

Tackling the breking changes that come with Gulp 4

Back in the day we touched on some of the wonderful upsides of implementing Gulp into your workflow. If you have been following along and happened to install the latest version of Gulp, you may has noticed something horrible happen: nothing worked. I probably should’ve mentioned that the latest major update to Gulp, Gulp 4, is actually a breaking

NodeJS Todd Birchard avatarTodd Birchard Todd Birchard avatar
toddJan 15
Jun 28
Read

Building Page Templates in ExpressJS With Handlebars

Building views in NodeJS by incorporating layouts, partials, and everything in between.

Writing HTML sucks, thus we should do everything to minimize the time we spend writing it as much as possible.  Thus, we have Handlebars: a lightweight templating system for Node. Handlebars allows us to avoid repetitive code by compiling the final DOM structure of our site via logic, typically compiled by task runners such as Grunt or Gulp.

If you're

NodeJS Todd Birchard avatarTodd Birchard Todd Birchard avatar
toddJan 15
Jun 26
Read

Read and Write to Private S3 Buckets in NodeJS

Node’s most popular package interacting with the most popular file store on the world’s most popular cloud.

We here at H+S are dedicated to one simple cause: creating posts about oddly specific programming scenarios. Somewhere in the world as sad soul is looking to programmatically access files from an S3 server while keeping their bucket private. To that person: we heard you.

There are plenty of reasons you'd want to access files in S3. For example,

NodeJS Todd Birchard avatarTodd Birchard Todd Birchard avatar
toddJan 15
Jun 22
Read

Using Gulp: Tasks to Make Frontend Tolerable

Automate tasks to make frontend code production-ready

NOTE:  This tutorial was written for Gulp versions <4.0.0. Check out this post for Gulp >4.0.0


Perhaps the whole obligatory-Gulp-tutorial on [Some Coding Blog] thing has become a bit cliché at this point. Haters may do as they will, but I 'll take any opportunity to jam as many SEO keywords I can get

NodeJS Todd Birchard avatarTodd Birchard Todd Birchard avatar
toddJan 15
May 30
Read

Make Your First API Calls with JQuery AJAX

Beginner's guide to consuming endpoints via Frontend Javascript

The information age is over: we have all the information now. All of it. We're in a unique place in human history where we've somehow managed to mine more data than we know what to do with... and a lot of that data is easily accessible via APIs.

We're going to get our feet wet with REST APIs today, thus

Frontend Todd Birchard avatarTodd Birchard Todd Birchard avatar
toddJan 15
Apr 25
Read