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