All posts by Dan Newton

I am a Computer Science graduate from the University of Leicester and currently working at Accenture as a Java Developer. Opinions and views found in my posts are my own and do not represent Accenture's views on any subject.

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 ...

Setting up Bootstrap-4-alpha6 in Rails 5

This is a little post in how to setup Bootstrap-4-alpha6 in Rails 5.1.0. Rails version => 5.1.0.rc1 Bootstrap Ruby Gem => 4.0.0.alpha6 I noticed some guides mentioned installing node.js, which I already had setup. So you could try it without node.js if you want but you might run into some issues that are not covered ...

Request Mapping with multiple Rest Controllers

In this post we will look at a possible problem when multiple rest controllers are defined onto the same path and how to use multiple rest controllers within your application. I used Spring Boot to write this application. So what happens when you have two rest controller defined onto the same path? If you don't ...