Working with strings in Ruby

Last week we began our adventure into the wonderful world of Ruby by looking at some of the reasons why you would want to invest your time into learning it. We also set up our computers to run Ruby and we started to play around with what we can do with numbers. Strings are one […]

Continue reading...

Creating a new Thread Application Service

An important aspect of the functionality of Cribbb is the ability to create new threads. A thread is a topic of discussion within a Group. There are some important business rules around starting a new thread, and so we need to ensure that we enforce these rules through the objects we write. In today’s tutorial […]

Continue reading...

Getting started with Ruby

Starting out on the journey of learning to code in order to turn your idea into a reality can be daunting. With some many choices and an endless list of decisions to make, it can be overwhelming before you even begin. One of the most popular first programming languages to learn is Ruby. Ruby is […]

Continue reading...

Creating the Groups Application Services

An important part of Cribbb is the ability to join a Group. Groups are a way to organise content and discussions around certain topics. We’ve already created the Domain Layer of the Groups Bounded Context in Creating Domain Objects Recap. In today’s tutorial we are going to be looking at creating three Application Services related […]

Continue reading...

Creating the Follow a User Application Service

A very important part of modern consumer web applications is the ability to “follow” another user. The functionality to build a social graph within an application allows the user to curate their own experience with your product. A user is also more likely to keep coming back if they can focus their experience with your […]

Continue reading...

Setting up a Password Reminder Service

In last week’s tutorial we looked at building out the User Registration Service. The Application Service provides a public API to the functionality and deals with basic validation of requests and dispatching Domain Events. The Application Service passes the request to the Domain Service to do the heavy lifting of enforcing the Domain Rules and […]

Continue reading...

Creating a PHP Shopping Basket Part 6 – Meta data and Processing

A common requirement in ecommerce applications is the ability to provide meta data about an order. For example, you will typically need to calculate the total value, discounts and delivery charges for an order so you can record that information in your database or send those details to your payment gateway. However every ecommerce application […]

Continue reading...

Implementing the User Registration Process

Last week we drew a line under writing the Domain Layer of the application and turned our attention to building out the Application Layer. The Application Layer acts as the “public API” to the inner core. This boundary layer should accept requests and return responses, but it should also be agnostic to where those requests […]

Continue reading...

Supported by