My friend and talented colleague, Ryan Leung, wrote this guest tutorial on deploying to Digital Ocean with an Ubuntu and PostgreSQL setup. The following step-by-step guide is from Ryan… Deployment with Ubuntu and PostgreSQL on Digital Ocean By Ryan Leung Recently, I had to deploy a project that used PostgreSQL…
read moreFive months ago, I was asked to solve a problem with a pair — the challenge was to write a Sudoku solution validator. We were expected to take a two-dimensional array that represented a Sudoku board and determine whether or not the board was ‘solved’ based on the rules of…
read moreMy friend and talented young Software Engineer, Paulo Diniz, wrote this guest post to explain the difference between String Primitives and String Objects in JavaScript, and what that might mean to a JavaScript programmer. The following is from Paulo… JavaScript String Primitives and String Objects By Paulo Diniz Throughout this…
read moreIn JavaScript, both variables and functions are hoisted by the interpreter at runtime. However, variables and functions are not hoisted in the same way as each other.
read moreOne of my favorite ‘toy problems,’ often asked in technical interviews during a ‘screening’ phase, is to implement an asynchronous mapping function. This problem can be tricky because it tests your knowledge of asynchronicity and your ability to use callback functions. This knowledge is considered necessary for a web-application engineer…
read moreIn early-screening technical interviews, the Balanced Parentheses question is quite popular. It goes something like this: Write a balancedParens function that takes a string as input and returns a boolean — if the parentheses in the input string are ‘balanced’, then return true, else return false You are given the…
read moreIn this post, you will learn why you should concatenate and minify your scripts and stylesheets into one small file using the task runner called Grunt.js. You will also learn how to concatenate and minify your scripts and stylesheets with Grunt. Concatenation of Files For each script that you force…
read moreIn technical interviews, it is common that the interviewer will throw in a question that tests your knowledge of higher-order functions and function-binding. If you are applying for a job as a JavaScript engineer, then you should expect an interview question in some similar form to the following: Write a…
read moreI like trees. All kinds of trees — concrete and abstract. Redwoods, Oaks, search trees, decision trees, fruit trees, DOM trees, Christmas trees, and more. They are powerful beyond common recognition. Oxygen, life, shelter, food, beauty, computational efficiency, and more are provided by trees when we interact with them in…
read moreWho: this post is for anyone looking to learn some of the foundations required for working with Node What: this post will show you how to create a simple resource server using vanilla Node and the Node http module How: the magic of a simple request handler, also known as…
read more