Hi there 👋

Welcome to my blog

Practical Domain-Driven Design in Go

Disclaimer: Book development is paused at roughly 35% completion, with no current plan to continue, because LLMs have changed the meta of software development. It may be picked up again in the future. Learn how to build Go applications that honor your core logic and stay easy to understand and maintain. Practical Domain-Driven Design in Go uses an online store as an example of how to structure your code around clear domain models and rules....

June 11, 2025 · 1 min · 127 words · Me

Ruby's early returns can be harmful

Introduction I’ve been using Ruby for a some time now and I’ve noticed that early returns can be over used. I’ll review at one example with enums where I think some early returns can be harmful. Note: I am not saying early returns are bad, but in this specific example they can be harmful. Enums Ruby does not natively support enums, but they still do exist in business and other domains....

August 23, 2023 · 3 min · 473 words · benetis

Conway's Game of Life

Introduction The game of life is a cellular automation devised by John Conway. This simulation has only a few rules, but it is Turing complete [0] and incredibly interesting to watch. With recent news about Conway, I thought it’s time to give it a go. In one programming kata, I had encountered this problem, but never went to fully complete this simulation. This time, I’ll use my favorite programming language, Scala, and my current favorite library, ZIO [1]....

May 4, 2020 · 4 min · 641 words · benetis

Backtracking: 8 Queens

Introduction Recently I started reading a book about evolutionary computing. As you can guess - its about problem solving using evolution concepts. One of the first examples in the book is about 8 queens puzzle. Its a puzzle in constraint satisfaction problem space and my guess is that it is solved with evolutionary computing later on. I think it would be interesting to look into more common algorithm for this puzzle before proceeding with the book....

April 5, 2020 · 3 min · 457 words · benetis

Let's code: CRUD in Angular with unit tests

Introduction CRUD application we are going to implement will have some additional complexity you might expect: import/export data save/load chunks data lazy data processing pagination tests This project’s source code is in github - https://github.com/benetis/angular-advanced-crud p.s some of code parts are not in sync going down - so I advise to also fork github repo and check code yourself Requirements & Task itself Aside of the stuff we mentioned above - we obviously will be implementing CRUD operations....

May 14, 2017 · 9 min · 1740 words · Me

Let's code: Authentication in Angular #1 - creating login form

Introduction Login form - a gate though which user logs into application. If it is working well - you don’t notice it - if it is bad - it will always annoy you. Of course it is not only UX/UI problem - there are security implications on server side also. But we will keep these concerns beyond this post scope. We will have few blog posts on authenticating Angular application. This one will focus on login form....

April 24, 2017 · 6 min · 1142 words · Me

How to contact me. Waiting for your feedback!

Contacts and feedback Feedback is important for everyone. I am no exception. Ping me if something is off. Or you just want to say hi. You can email me at: Another way to suggest changes to blog content is to open issue here. You can add: paragraphs, comments, fixes, quotes - anything! Community contribution more than welcome. https://github.com/benetis/benetis.me/issues Thanks in advance! Zygimantas Benetis

April 22, 2017 · 1 min · 63 words · Me

Creating shopping cart with product list in Angular2

Introduction A common scenario - you want a product list with “Add to cart” functionality. Angular can do that - let’s see how effective it is. You can find code in this repository - github Goal 1. Product list with images, color filter, names and currency. We want to create something similar that H&M has. 2. Details of item 3. Shopping cart view To view the details and remove items from it....

February 11, 2017 · 12 min · 2396 words · Me

Angular 2 is cool. So is Typescript

Introduction Angular framework for building applications. Let’s do a review over its important parts. Language of choice - Typescript Angular was written in Typescript. As for Dart - Typescript was easily transpiled to Dart and that is how Dart version was maintained. It’s just that Typescript code required some things for Dart version to work. At some point (this summer) - Angular team decided to split Angular Dart project to a separate one for better or worse....

November 24, 2016 · 8 min · 1582 words · Me

Let's code: Creating functional table with Angular

Offtopic Currently volunteering in organisation called “Erasmus student Network Lithuania”. Working with a team to develop internal HR system. Intro Looking at the requirement - there is a need to display data. A list of users. And some actions which can be done with each of the user. Table is a good way to make data look good. Let’s try to design how could this table look. Basic requirements Table might need to display hundreds of records - pagination No need for selecting rows There will be action buttons in each row to interact with user Inline editing Should look nice (we don’t really care about design, just nice is enough) Filtering Sorting Attempt #1 Using bootstrap - just the markup with some *ngFor magic....

November 6, 2016 · 8 min · 1515 words · Me