App

A lambda guestbook – Update

Posted on

Only recent messages are now shown and the most recent messages will be sorted on top! Also, you can leave your pseudonym as author and the posts have a visible timestamp. Check it out here: https://nickvanhoof.com/a-lambda-guestbook A few weeks ago I created a guestbook linked to this website which uses AWS lambda’s and DynamoDB in the […]

App

Lambdas: a guestbook implementation

Posted on

Hi y’all, Wanna go straight to the result, a guestbook using aws Lambda Functions: here. Some more detail: I implemented business logic for lambdas at work before. But when I did the infrastructure to deploy and run the lambda was already in place. So I wanted to start from scratch with a simple example. This […]

OCP

Builder pattern and Immutable Objects

Posted on

Immutable Objects An immutable object is a read-only object (you cannot change it’s properties). It’s easy to test and automatically thread-safe. Since it’s properties cannot be changed. The object will never have an invalid state. Follow this strategy to make a class immutable: Use a constructor to set ALL properties of the object (it’s immutable, […]

OCP

Singletons compiled

Posted on

Intro to singletons When applying the singleton pattern we are aiming to create only one instance of a class in memory of the application. Singleton pattern makes sure that: only one instance of a class is in the application there is one point of access to this object within the application Singleton: Singletons are obtained as […]

OCP

Did you know – Advanced Class Design

Posted on

Can you stay with me till the end of the post? 🙂 Did you know that: The return type of an overridden method should be the same or more restrictive aka covariant return types abstract methods are not allowed in a class that is not abstract all methods in an interface are public the interface itself […]

Tutorial

JavaScript: async / await

Posted on

As a Java developer it speaks for itself that I’m using Java most of the time. Recently I had to develop an AWS Lambda using Node.js. I had a great time learning about JavaScript. I learned about promises, async/await and functional programming in JavaScript. I created a small code-example below. This example will fetch some […]

AWS

Change the time of your Linux? (aws)

Posted on

So you have a server in the States but your living in France. Guess what.. The server time is different from your local time. Fix To find the available timezones cd into : cd /usr/share/zoneinfo ls Allright! I see Europe and when I cd into Europe I find Paris. So remember “Europe/Paris”.   Now go […]

App

Quiz app

Posted on

While I was studying for my java SE 8 Programmer II exam, it popped into my mind: “Let me make a small app to practice with some questions” And so I did! If you have idea’s for features to add, throw them in the comments! Check out the app: here   Explain! Randomly you will […]