Using JMS in Spring Boot

JMS (Java Message Service) is a Java Message Oriented Middleware used to send messages between clients and works by sending messages to a message queue which are then taken when possible to execute a transaction. This post will focus on implementing JMS with Spring Boot, which doesn't take long at all to setup. JMS and ...

Setting up Jenkins to deploy to Heroku

Jenkins is a open source automation server that allows users to setup workflows to that can enable continuous integration. For example a user could create a workflow that would pull some code from a repository, run some tests and deploy it onto a server, removing a lot of the user interaction from process so the ...

MongoDB Indexes with Spring Data

When working with large amounts of data the use of indexes will greatly improve the time it takes for your queries to run by storing part of a collection's data in a form that is easy to traverse. To add some indexes to your collections you could run some functions directly via the Mongo Shell or ...

Embedded documents with Spring Data and MongoDB

Continuing on from Getting started with Spring Data and MongoDB we will look at implementing embedded documents.  This allows one to one and one to many relationships to be modelled within a document and allows data to be retrieved in a singular query. Although as more relationships are modelled through extra embedded documents the write ...

Getting started with Spring Data and MongoDB

In this post we will have a look at some of the basics of using Spring Data and MongoDB. Firstly what is MongoDB? It is a NoSQL database that uses JSON-like documents which allows fields to vary between documents and have the data structure change over time. A document model maps to an object that ...

When do you use parentheses in Ruby?

So I am still reasonably new to Ruby and I have only been working on it at home and therefore have had no one review my code and comment on whether I am writing my code in the correct way. The only input I have is from code that I see online and the book ...

Debugging a Rails server in Visual Studio Code

I have been using Visual Studio Code as my IDE while coding in Ruby as I didn't want to fork out a load of money to purchase RubyMine (I hate spending money) and so far have been getting by without being able to debug my code. Now the only reason as I haven't needed to ...

Being lazy with Lombok

Lombok allows us lazy Java developers to stop writing "boilerplate" code in our objects. Through the use of some annotations it will generate the methods for us without the need to write out each getter or setter and many other methods, allowing us to simply add actual functionality to the object or leave it pretty ...

Learning Big O Notation with O(n) complexity

Big O Notation is one of those things that I was taught at university but never really grasped the concept. I knew enough to answer very basic questions on it but that was about it. Nothing has changed since then as I have not used or heard any of my colleagues mention it since I started ...

A Little Lazy Lambda Tutorial

Everyone is a bit lazy, so why not our code? Lambda expressions in Java 8 allow us to make our code that bit more lazy. In this short post I will cover how using Lambda expressions can make code more lazy. If you have not used Lambda expressions before have a look at my some ...

Browse Categories