Recent
Detect user’s country without accessing their location
Sometimes we are faced with challenge where we would like to improve user experience of our app based on where in the world or better said in which country our clients are using the application.
For example if you would like to show some content (or ...
Read More
DDD – Aggregates part I.
Welcome to the fourth article about Domain Driven Design. In the previous article, we learned about one of the primary concepts in Domain Driven Design – Entities. This time, we will take a look at another interesting and really powerful concept – Aggregates. They are often misunderstood, which results ...
Read More
Async execution of long-running operations using Swift’s Task
In this article I will try to show you how to adopt Swift's Task which is part of new Concurrency API's with an example where we want to execute long-running operations on background thread without changing existing implementation of the operation. Instead making adoption by changing existing code we ...
Read More
Domain Driven Design
DDD – Aggregates part I.
Welcome to the fourth article about Domain Driven Design. In the previous article, we learned about one of the primary concepts in Domain Driven Design – Entities. This time, we will take a look at another interesting and really powerful concept – Aggregates. They are often misunderstood, which results ...
Read More
DDD – When to use and how to design Entities
Welcome to third article about Domain Driven Design. Last week I have showed you one of two primary concepts in it - Value Objects. In this following article we will take a deep dive into the other one - Entity.
Because I think this is really important ...
Read More
DDD – Understating Value Objects with Swift
This article is part of mini series about Domain Driven Design. And in this week we will continue with one of its primary concepts - Value Objects and Entity Objects. In this one I will present you Value Objects.
Easiest way to understand Value Objects is by ...
Read More
DDD – Anemic vs. Rich Domain Model
This week we will start with software design post. And in following weeks we will take a deep dive into Domain Driven Design. For examples we will use Swift and iOS. If you are not familiar with Domain Driven Design just stay tuned for more future posts.
...Read More
Swift
Detect user’s country without accessing their location
Sometimes we are faced with challenge where we would like to improve user experience of our app based on where in the world or better said in which country our clients are using the application.
For example if you would like to show some content (or ...
Read More
Async execution of long-running operations using Swift’s Task
In this article I will try to show you how to adopt Swift's Task which is part of new Concurrency API's with an example where we want to execute long-running operations on background thread without changing existing implementation of the operation. Instead making adoption by changing existing code we ...
Read More
Use Swift’s ‘async’ without breaking the existing codebase
With the release of Swift 5.5 and upcoming release of Xcode 13.2 we are finally able to use new Swift Concurrency APIs.
In this article I will try to show you a way how to use new APIs into the codebase where needed ...
Read More
Observing model changes using Swift’s @propertyWrapper
In this post we will take a look how can we implement alternative mechanism for observing model changes and reacting to those changes using @propertyWrapper's introduced in Swift 5 and make quick comparison against existing and popular approaches.
First let's take a quick overview of existing popular ...
Read More
How to encapsulate business rules using policies
In this post we will have a look have can we encapsulate simple business rules using policies. To clear out what policy actually is and its benefits we will jump straightforward into example.
Let's say that we have application that needs our users to sign up before ...
Read More