Building a scalable web server on AWS

In this post, we are going to talk about AWS. There are many AWS examples to create a simple web server with EC2.¬†But a simple web server with a database in the same EC2 instance is not very scalable. Since web server and a database server is in the same virtual machine, it is hard more…

 

How I wrote terribly slow code

It is embarrassing. But I want to write about it, so I can remember my mistake and don’t make the same error. Background I’ve been building an internal application for the laboratory for my employer. The lab receives sample materials from customers and then perform some tests on them, and send a report back to more…

 

Object Oriented Programming in JavaScript Way (with Beer) Part 2

In the previous post, I intentionally didn’t mention keywords like class, this, new. I wanted to demonstrate that you can write object-oriented programming without using any of these keywords. Being able to write JavaScript using these keywords doesn’t necessary mean that your code is more advanced. It only means that you know a¬†different way of more…

 

Object Oriented Programming in JavaScript Way (with Beer)

If you have experience with Object Oriented Programming (OOP) with Java or C++, and you’d like to learn JavaScript, then you may find its object construction confusing. When it comes to OOP, JavaScript takes slightly different approach. One major feature is its lack of class. There is no class! When you create an object in more…

 

How to have Angular2 and Rails coexist peacefully on your laptop and servers

Most of the front-end tutorials assume that your JS application runs on a separate server to the backend application and the front-end code has different codebase. It makes sense when you have independent teams to develop the front-end and the backend. But if you work in a small team of full stack developers, having separate more…