Skip to main content

Posts

I discovered Serverless and I've fallen in love with the concept

Over the last few days I started to read about Serverless . What is Serverless? Serverless is a different way of building (Web) Applications. Over the last few years, on emails from the AWS newsletter, I kept seeing Lambda mentioned a lot so I started to look into it. What is Lambda? AWS Lambda is a Function-as-a-Service (FaaS) compute service. You write functions that would be triggered based on events, like an http call, or a file upload on S3 or anything that can somehow communicate within the cloud provider, in this case Amazon AWS. The next thing that captured my attention was how it is priced: you pay only when it is running! For sure, instead of having a locked price on some vps instance or some other way of hosting, you pay only when the function runs and based on how much resources it had consumed (cpu, memory) for an amount of time. The other important thing is that it scales as needed and you control the limits (you do not want to go broke if not making a prof

Getting started with Mongoose, a beginner's perspective

Mongoose is an ODM that takes away the complexity of all the code you'd have to think and write and that you realise that could be abstracted and reused between all pieces of Entities your application will require. Two main features will help you from the beginning Handles the connection to the MongoDB instance using the official driver behind the scenes Allows to describe your Entities, or Documents how I should name them better, using Schema implementation that offers you the Model , as expected in the MVC pattern. The Schema is what you need to look into first, than Models . The Models will allow you to do all CRUD operations, supports pre built in Validation that can be extended with any custom rules, comes with built in Getters and Setters and allows any custom ones. Clever feature to keep in mind Also, Mongoose allows you to hook plugins . This is what DRY really means. Any small problem that can be solved and it's solution reused in Models is a prime

New Year's Resolutions 2018 edition

So there it ends another year and I'm deciding on my New Year's Resolutions 2018 list. More than 7 years since I've switched to web development and never sorted out to do something of my own, and not even accomplished some of my previous thought goals. I haven't given them to much importance, as my focus was always to become better on what can I can learn and improve in the work I do for my employer. All I did was playing with PHP , work on WordPress and Drupal websites, follow what ever the company's rules of doing things have been forced and so on. Although my passion is in web development, I realised that this previous years have not been actually been very productive for me. But now things are changing, as I've found the job that would allow me to focus learning and improving on JavaScript and related stuff. (I have to use pure JavaScript, no libraries or frameworks for implementations). And my New Year's Resolution 2018 list is: Build an MV