As you may have noticed, fetch doesn’t work in Node.js.
The fetch API isn’t implemented in Node, so you need to use a package that implements it and then use that.
Arrays are usually used to store a list of elements that need to be accessed by a single variable.
When trying to invoke any of your lambda functions if you are getting an error that says “lambda is not a function” the problem is likely that the handler is misspelled in the serverless.yml file OR you aren’t exporting modules.exports.handler and are instead exporting something else.
Over the years, I’ve worked on a number of projects where we deal with user or company provided images which are often very large resolutions which take a long time to download on mobile phones or or poor internet connections.
This is a simple script that can be used to compress images and avoid potential costs of a service like Kraken.io
It has the potential to make tdd and database versioning much easier.
Here’s a simple gitignore file that I start with most NodeJS projects.
As a programmer, and technology manager I think it’s really important to use the right tools and technologies. There are times where I think jQuery is still really valuable but there are a lot of times where I don’t think it is valuable.
Node.js uses an event driven model that makes it really efficient and really good for real-time applications. Paired with serverless computing it’s fantastic for a lot of modern use cases.
In this article, I will go through the best practices for becoming a better Node.js developer. Over the last two years or so, I’ve interviewed and hired a lot of developers for the startup I’m working at.…
One of the most important parts of building scaleable systems quickly is to find work that others have done and use it as part of our system. Using packages others built and assembling it with your business rules and logic is a lot like putting together pieces of Lego but following your instructions.
One of my favourite parts of React is that there’s usually hundreds of small open source components that can be used and usually easily modified to suit my needs. For example, there’s dozens of really well done date/time pickers that usually require no effort to put into place.…
Fetch is a browser API that allows us to retrieve or submit remote data using the fetch() function. The Fetch API provides a function that returns a promise that lets us do something with the response from the request we sent.
Strict mode became available in ECMAScript 5 to allow us to prevent certain actions from being taken and to allow it to throw better exceptions.
A palindrome is a word or sentence that’s spelled the same way both forward and backwards. Most of the time when doing these challenges during programming interviews you’re told to ignore punctuation, case and spacing.
At Dreamforce 2014, Salesforce announced they were changing the Salesforce User Interface to make it simpler to use. The new User Interface is called Salesforce Lightning. In my blog post, What is Salesforce Lightning I cover a lot more about what it is and how development differs from using Apex and Visualforce.
It’s no secret that Salesforce Lightning is changing the way we develop for Salesforce. At Dreamforce 2014, Salesforce introduced Salesforce Lightning and it is proving to change a lot of things we do on the platform and I’m sure it will make things a lot better for users in the long term. If you aren’t already familiar with Salesforce Lightning then you need to read my post called What is Salesforce Lightning.…