Skip to content
luisdelamo.dev

Luis del AmoFull-stack software engineer

The domain goes in the middle.Everything else is an adapter.

I've spent more than ten years building CRMs, booking systems, e-commerce and B2B applications. I design with domain-driven design and hexagonal architecture: the business model first, the framework second.

See how I workRead the blog

experience
10+ years
stack
Angular to Kubernetes
based in
Luxembourg, via Tenerife
docker + kubernetesApplicationwritten inTypeScriptRustPHPJavaDomaindrivingAngularVueReacthttpPostgreSQLdrivensqldocker + kubernetesApplicationapplication written inTypeScriptRustPHPJavaDomaindrivingAngularVueReacthttpPostgreSQLdrivensql

Entities, value objects and aggregates, named in the language of the business. The domain imports nothing from outside: no database, no HTTP, no framework.

fig. 01point at a part or pick a layer

Software that survives change

Frameworks change, databases get replaced and teams rotate. The business rules should still stand after all of that.

The port is the contract

The domain declares what it needs. Infrastructure decides how to provide it.

// The domain defines the port; infrastructure implements it.
export interface OrderRepository {
  save(order: Order): Promise<void>;
  byId(id: OrderId): Promise<Order | null>;
}

export class PlaceOrder {
  constructor(private readonly orders: OrderRepository) {}

  async execute(command: PlaceOrderCommand): Promise<OrderId> {
    const order = Order.place(command.customerId, command.lines);
    await this.orders.save(order);
    return order.id;
  }
}

The stack, layer by layer

From the interface to the cluster, with the same rules in every layer.

interface
AngularVueReactRxJS
application
TypeScriptNode.jsRustPHPCakePHPJava
data
PostgreSQLMySQLMongoDB
platform
DockerKubernetesLinux

From commit to production

Everything ships in a container: the same build on my laptop and in production.

  1. Commitgit push
  2. Testsunit and integration
  3. Imagedocker build
  4. Deploykubernetes rollout
  5. Productionlive

A paradigm for every problem

I don't have a favorite paradigm. I use objects to model the domain, functions to transform data without surprises, and reactive streams for whatever changes over time.

toolobjectsfunctionalreactivedeclarative
languages
TypeScript
Rust
PHP with CakePHP
Java
front end
Angular
Vue
React
data and platform
SQL on PostgreSQL
Kubernetes
  • Its natural style
  • Supported
  • Not a fit

From Java to Node.js without switching anything off

I've migrated applications from Java to Node.js with TypeScript. The method is always the same: the old system stays in production while the new one grows next to it, one module at a time.

  1. step 1 of 4tests

    Pin down the behavior

    Characterization tests around the Java system. What it does today is the spec.

  2. step 2 of 4proxy

    Put a facade in front

    A proxy takes all the traffic and decides, route by route, who answers.

  3. step 3 of 4proxy

    Move one module at a time

    Each module is rewritten in TypeScript behind a port. When the tests match, the proxy flips the route.

  4. step 4 of 4proxy

    Retire Java

    Once no route points at the old system, it gets switched off.

  • Java module
  • Node.js module in TypeScript

From Tenerife to Luxembourg

I started programming as a teenager, with PHP, while fixing computers in a shop. I studied mechanical engineering and finished the degree, even though by the third year I knew I wanted to build software.

Mechanics left me with one habit: draw the plan before machining the part. Today I live in Luxembourg, I'm a big fan of open source and, when I'm not coding, I sing.

More about me

based in
Luxembourg
from
Tenerife, Canary Islands
studied
Mechanical engineering
writes in
English and Spanish
off the clock
Singing