When writing unit testing it is always good practice to mock the database with test data to achieve the F.I.R.S.T principles of unit testing. With only a few models in an application it is not too difficult to mock the necessary test data, but when your...
Memory Allocation in JavaScript — Eager vs Lazy Allocation Approach
Memory allocation is the process of reserving complete or partial space (physically or virtual) on the computer to execute an application. The management of memory on a program if not handled in the right way can make the application slow or even stop working, and one...