Journey Into Coding

I'm Jonah Nisenson, a .NET and JavaScript full-stack professional. I'm also a SCUBA divemaster and diving enthusiast.

  • Home

Ignore Google Analytics in Cypress E2E Tests

Recently, when setting up an integration E2E test on a BETA site, I ran into an issue where it was taking forever and a day to get through the tests because there was

  • Jonah Nisenson
    Jonah Nisenson
1 min read

Angular.js (Angular 1) UI-router redirect after login to requested url

The problem: how to redirect user to originally requested url after login or sign upYou've set up your single-page app using Angular.js on the front end and have set up authentication for

  • Jonah Nisenson
    Jonah Nisenson
4 min read

Tips on working with embedded arrays in Mongoose/Mongo

Why Mongoose and MongoDB?MongoDB uses Document Oriented Storage in JSON-style documents. Mongoose is an object relational modeling (ORM) system that bridges Node.js and MongoDB. Running Node.js as a server and

  • Jonah Nisenson
    Jonah Nisenson
5 min read

Using an Angular 1 filter to sort an ng-repeat list

Angular 1 has a nifty built-in filter called orderBy that allows for sorting or ordering a list of objects based on a property in the object. For most cases, this is sufficient. However,

  • Jonah Nisenson
    Jonah Nisenson
4 min read

How to style adjacent (sibling) elements on hover or focus events

Style sibling elements without using JavaScriptIt is often necessary to change the style of a sibling element when a user-induced event occurs on the DOM. As an example, changing an icon when a

  • Jonah Nisenson
    Jonah Nisenson
3 min read

Meteor with Mithril – first impressions

Meteor is a NodeJS framework that is increasing in popularity because it allows a developer to  develop in just one language, JavaScript on the client and JavaScript on the server and to develop

  • Jonah Nisenson
    Jonah Nisenson
7 min read

Keep an eye on your Angular watchers and digest cycle

This post is largely inspired by this excellent talk called "Sasqwatch is Real" given by Scott Moss, a Hack Reactor alum, at the Angular 2015 conference. He goes into depth about the need

  • Jonah Nisenson
    Jonah Nisenson
1 min read

Running 'npm install' hangs and hangs... and hangs

Running npm install shouldn't take an hourRecently on several projects, I found that once I had forked and cloned the repo from GitHub, when I ran bower install and npm install to pull

  • Jonah Nisenson
    Jonah Nisenson
1 min read

How does Socket.io communicate if WebSockets aren't available in browser

You may read that Socket.io falls back gracefully to other communication routes if WebSockets are not available in the browser. Actually, Socket.io does not technically fallback to Ajax (XHR) polling or

  • Jonah Nisenson
    Jonah Nisenson
2 min read

Git: merge conflicts when merging back into master

When working on a team project, merge conflicts are invariably going to happen. Anybody who has been working with Git long enough knows that they are to be lived with but certainly not

  • Jonah Nisenson
    Jonah Nisenson
3 min read

Schema within a Schema: Use embedded documents in Mongoose/Mongo

Problems arise when working with embedded arrayI previously discussed tips on working with embedded arrays in your Mongoose schema for your MongoDB.I'd like to cover another tip that is potentially even more

  • Jonah Nisenson
    Jonah Nisenson
1 min read

What are WebSockets and why do I need socket.io?

If you are developing an application that requires low latency (human-unnoticeable delays between an input being processed and the corresponding output) like a chat room application, traditional HTTP requests are going to be

  • Jonah Nisenson
    Jonah Nisenson
4 min read

Routing with anchor tags to jump to spot on page in Angular 1

Recently I experienced a problem when I inherited a single page app that was using anchor tags on the home page to jump down to a specific location on the page. Recall that

  • Jonah Nisenson
    Jonah Nisenson
2 min read

How to debug response headers sent too soon in Node.js / Express

Error: Can't set headers after they are sent.This is the error that was stymying me for hours. I was uploading an image file from an Angular.js front end to a node.

  • Jonah Nisenson
    Jonah Nisenson
2 min read

Loading Templates with Iron Router in Meteor

Meteor.js is a new(ish) platform that is gaining popularity due to the fact that is an allows for the building of isomorphic JavaScript web applications. If you don't know what that

  • Jonah Nisenson
    Jonah Nisenson
4 min read

Debugging Infinite Loops

In our Hack Reactor remote program, we were given a "Toy Problem" every morning to solve. A Toy Problem is an algorithm that we have about 45 minutes to solve (that's the goal

  • Jonah Nisenson
    Jonah Nisenson
3 min read

Anatomy of an HTTP Request

How does an HTTP Request work?This post will attempt break down the anatomy of an HTTP request. Recall that HTTP stand for Hyper Text Transfer Protocol and it's basically a protocol for

  • Jonah Nisenson
    Jonah Nisenson
5 min read

File uploads using Angular 1 and Node/Express

Author Note 10/9/2018: This article references Angular 1 and should only be used for Angular 1Allow users to upload images or other files to store them in a CDNMany times you

  • Jonah Nisenson
    Jonah Nisenson
4 min read

Simple way to test your Node.js Server using POSTMAN

POSTMAN makes it easy to visualize the processYou want to create a simple server on node.js using node's basic http module or using Express. A quick way to do this would be

  • Jonah Nisenson
    Jonah Nisenson
2 min read
ES5

Comparing instantiation time for Pseudoclassical vs Prototypal Classes

Classes are useful constructs in Object-Oriented Programming because they are capable of producing a fleet of similar instances conforming to some interface.JavaScript does not have classes in the same way that other

  • Jonah Nisenson
    Jonah Nisenson
5 min read
CSS

Be Classy! Don't Give Up Your ID

This post will focus on why it is important to use classes instead of id's as much as possible in your CSS declarations. It isn't always possible but if you can stick to

  • Jonah Nisenson
    Jonah Nisenson
4 min read
Journey Into Coding © 2023
Latest Posts Ghost