recursive(codes){}


The Personal Blog of Todd Sharp

Spark Java Views Using Thymeleaf - Layouts

In the last post we looked at plugging in Thymeleaf into a Spark Java application for view rendering.  The concept was pretty simple: using the Thymeleaf...


Spark Java Views Using Thymeleaf

The next step in using Spark Java with Groovy that I would like to look at is getting data into a view.  With Grails, we're used to using GSP pages...


Getting Started With The Spark Java Framework

I published a post last week showing how to use Grails to create a website on the Raspberry Pi.  After some feedback and conversations about whether...


Remote Deployment For IntelliJ IDEA Community Edition

I've been using IntelliJ IDEA Community Edition on my personal machine to work with some of the demos that I've been using for my series on using Groovy...


Brain Teaser: Find The Missing Number

When I first saw this challenge I thought it would be a lot more difficult than it turned out to be.  Here is the challenge:Here's a list with numbers...


Brain Teaser: Split An Array Into Equal Parts

Here's another challenge that I came across recently:Given an array of integers greater than zero, find if it is possible to split it in two (without reordering...


Brain Teaser: Calculate Max Stock Profit

I came across an interesting puzzle to solve via interviewcake: Suppose we could access yesterday's stock prices as an array, where:The values are the...


Creating Your First Website On Raspberry Pi

In this post we'll create and deploy a simple website on the Raspberry Pi.  There are a few prerequisites that I've covered in some previous posts...


A Closer Look At Sorting Algorithms

As I mentioned in a previous post, sorting algorithms typically play a large role in programming interviews.  Those who follow the traditional path...


A Groovy Alternative To Java 8 Streams and Collectors

I recently read this article over at DZone about using Java 8 Streams and Collectors to manipulate and perform calculations on a list of integers....