Black and white portrait of Daniel Ortega with his arms crossed

Daniel Ortega

Senior full-stack engineer. From the domain model to the last pixel.

8+ years building product with PHP, Symfony, TypeScript and React. Now at Sesame HR; previously at The Knot Worldwide, Planeta Huerto and Square1. On the side, my own apps.

Now at Sesame HRValencia, Spain

GET / —
DNS—
Connect—
Server—
Download—
DOM ready—
First paint—
Largest paint—
NetworkServerBrowser
Measured just now in your browser. Not a screenshot.

Work

Three products of my own. Idea to app, on my own.

One common thread: software that is honest about its data. If something is an estimate, it says so. If a value is missing, it doesn't make one up.

ToneMate

In beta

Select text. Press a shortcut.

A native macOS writing assistant. It rewrites, translates, proofreads or replies right where you are writing, with a model on your Mac or your own API keys. It dictates speech to text too.

Engineering decisions

  1. Your text never touches my servers.

    Local models through Ollama or MLX, or your keys stored in the macOS Keychain. The app only contacts me to check the license.

  2. You test a model before you trust it.

    “Test on this Mac” runs 12 real checks for language, typos and speed against the local model.

  3. It doesn't steal your clipboard.

    It captures the selection through the clipboard, inserts the result, then puts back what you had copied. It works wherever you can select and copy text.

Request access

macOS · Ollama · MLX · Whisper · Parakeet

ToneMate model settings, with local and cloud provider models
ToneMate panel rewriting a casual message in a professional tone with a local model

GoForIt

Beta coming soon

How much room you have today, and why.

Your personal performance system: training, nutrition, sleep and recovery in one place. For iPhone and Apple Watch, connected to Apple Health, Google Health, Strava and Garmin.

Engineering decisions

  1. It compares you with you, not an average.

    The 0 to 100 readiness score combines sleep, heart rate variability, resting heart rate and recent load, always against your own baseline.

  2. It says what it doesn't know.

    Every number carries a confidence level and a likely range. If today's doesn't exist yet, it says so: it never shows yesterday's as if it were today's.

  3. No sample, no conclusion.

    It only talks about what suits you with at least 5 days with and 5 without in the last 90, and shows how many sit behind it. It's association, and it says so.

Visit the website

iOS · watchOS · Apple Health · Strava · Garmin

GoForIt Today screen: estimated readiness of 74 out of 100, medium confidence, range 70 to 78
GoForIt training screen
GoForIt journal, with everything logged and sorted by day

Pedalytics

Beta coming soon

100 km isn't always 100 km.

Wear and maintenance for your bike. Connect your rides, assign each component to its bike and see how much each route really wears your gear: it separates distance ridden from mechanical load.

Engineering decisions

  1. History doesn't get rewritten.

    Each ride keeps its own snapshot of the build. Change the chain on Tuesday and Sunday's ride stays tied to the old chain.

  2. No made-up numbers.

    Each interval cites its source, the manufacturer or an independent measurement. Where there's no reliable data it suggests an inspection, not a mileage.

  3. Explicit precedence.

    If the provider knows which bike it was, that gets used. If not, it's inferred and flagged. And what you correct always wins.

Visit the website

Strava · FIT files · 3,500+ components

Pedalytics wear screen: chain, cassette and brake pads with their percentage, and the frame on periodic inspection
Ride detail in Pedalytics: 84 km of distance, 112 km of load and the build the bike was carrying
Pedalytics garage with two bikes and their wear alerts

Career

My career, read as a trace.

Each span is a stage. Open one to see its attributes.

career8 yrs 8 mos
Square1Software Engineer3 yrs 8 mos
Period
Mar 2018 – Nov 2021
Location
Dublin (remote)
Stack
PHP, Laravel, MySQL, Webpack, AWS
Web
square1.io

What I did

  • Direct involvement in discovery phases with managers and clients.
  • Technical leadership in delivery and long-term maintenance phases.
  • Payment integrations (Stripe, PayPal) with measurable conversion impact.

Impact

  • More predictable delivery in projects with multiple stakeholders.
  • Improved conversion in payment flows for several clients.
  • A more stable technical base for future evolution and maintenance.
Planeta HuertoSoftware Engineer1 yr
Period
Nov 2021 – Nov 2022
Location
Alicante (remote)
Stack
PHP, Symfony, MySQL, Docker, Google Cloud
Web
planetahuerto.es

What I did

  • Ecommerce features with strong business and operations alignment.
  • Architecture practices: SOLID, DDD, CQRS and hexagonal design.
  • Technical and functional documentation for better onboarding.

Impact

  • Better alignment between business needs and technical execution across the roadmap.
  • Higher maintainability in critical modules thanks to clearer architectural decisions.
  • Faster technical onboarding through structured and useful documentation.
The Knot WorldwideSenior Software Engineer3 yrs 1 mo
Period
Nov 2022 – Dec 2025
Location
Barcelona (remote)
Stack
PHP, Symfony, TypeScript, React, GraphQL, AWS
Web
theknotww.com

What I did

  • Continuous delivery on a modern stack with TypeScript, React and GraphQL.
  • Daily collaboration with Product, Design and QA to improve release quality.
  • Development process improvements to reduce friction and lead time.

Impact

  • Higher release stability and fewer last-minute hotfixes.
  • Faster cross-team feature delivery through improved technical coordination.
  • Lower day-to-day development friction through shared tooling and conventions.
Own productsIndependent developmentOngoing
Period
Ongoing

I design, build and ship my own apps, from idea to product, with the same engineering care I bring to my day job.

Sesame HRSenior Software Engineer7 mos
Period
Apr 2026 – Ongoing
Location
Valencia
Web
sesamehr.com

I work at Sesame HR, in Valencia: a human resources platform that brings together clock-ins, time off, payroll, talent and communication.

View the full experience

How I build

One feature, every layer.

Full-stack isn't knowing a bit of everything. It's following one change from the button to the database without losing the thread. Here, cancelling an order layer by layer, with dependencies pointing inward.

System layer

Dependencies always point towards the domain.

The interface responds instantly and errors become something the user understands. It knows no business rules.

CancelOrderButton.tsx

export function CancelOrderButton({ orderId }: { orderId: string }) {
  const [cancelOrder, { loading, error }] = useMutation(CANCEL_ORDER, {
    variables: { id: orderId },
    optimisticResponse: {
      cancelOrder: { __typename: "Order", id: orderId, status: "CANCELLED" },
    },
  });

  if (error) return <Alert>{messageFor(error)}</Alert>;

  return (
    <Button onClick={() => cancelOrder()} disabled={loading}>
      Cancel order
    </Button>
  );
}

The contract is the boundary between teams. Expected errors are part of it, not a surprise in production.

order.graphql

type Mutation {
  "Fails with ORDER_ALREADY_SHIPPED if the order has already left."
  cancelOrder(id: ID!): Order!
}

type Order {
  id: ID!
  status: OrderStatus!
  cancelledAt: DateTime
}

enum OrderStatus {
  PAID
  SHIPPED
  CANCELLED
}

It orchestrates, it doesn't decide. It depends on interfaces, so it reads like a description of the use case.

CancelOrderHandler.php

#[AsMessageHandler]
final readonly class CancelOrderHandler
{
    public function __construct(
        private OrderRepository $orders,
        private ClockInterface $clock,
        private EventBus $events,
    ) {}

    public function __invoke(CancelOrder $command): void
    {
        $order = $this->orders->get(new OrderId($command->orderId));

        $order->cancel($this->clock->now());

        $this->orders->save($order);
        $this->events->publish(...$order->releaseEvents());
    }
}

This is where the rules live. No framework, no database: just the business, written in its own language.

Order.php

final class Order
{
    use RecordsEvents;

    public function cancel(DateTimeImmutable $now): void
    {
        if ($this->status === OrderStatus::Shipped) {
            throw OrderAlreadyShipped::withId($this->id);
        }

        if ($this->status === OrderStatus::Cancelled) {
            return; // Idempotent: cancelling twice is not an error.
        }

        $this->status = OrderStatus::Cancelled;
        $this->cancelledAt = $now;
        $this->record(new OrderCancelled($this->id, $now));
    }
}

The domain defines what it needs and infrastructure delivers it. Changing databases means changing one adapter.

OrderRepository.php

// Domain: the port knows nothing about Doctrine.
interface OrderRepository
{
    public function get(OrderId $id): Order;
    public function save(Order $order): void;
}

// Infrastructure: swap the adapter without touching the domain.
final readonly class DoctrineOrderRepository implements OrderRepository
{
    public function __construct(private EntityManagerInterface $em) {}

    public function get(OrderId $id): Order
    {
        return $this->em->find(Order::class, $id)
            ?? throw OrderNotFound::withId($id);
    }

    public function save(Order $order): void
    {
        $this->em->persist($order);
        $this->em->flush();
    }
}

This is the payoff for everything above: rules get tested in milliseconds, without booting anything.

OrderTest.php

final class OrderTest extends TestCase
{
    public function test_a_shipped_order_cannot_be_cancelled(): void
    {
        $order = OrderMother::shipped();

        $this->expectException(OrderAlreadyShipped::class);

        $order->cancel(new DateTimeImmutable('2026-01-01'));
    }

    public function test_cancelling_twice_records_one_event(): void
    {
        $order = OrderMother::paid();
        $now = new DateTimeImmutable('2026-01-01');

        $order->cancel($now);
        $order->cancel($now);

        $this->assertCount(1, $order->releaseEvents());
    }
}

Illustrative example, simplified for this page.

Judgement

Retries can take you down too.

One outage and five ways to react. This isn't a video: the model runs in your browser on every change. Try stretching the outage and watch for the point where it stops recovering.

Retry strategy
8 s

Saves far more, but clients that failed together come back together. The waves drag recovery out.

Requests that end well
98.2%
Extra load generated
+55%
Recovery after the outage
16 s
ServedRejectedCapacityOutagereq/s

No strategy is free. Picking one depends on what hurts more: losing requests or prolonging the outage.

Simplified model: 60 req/s, 100 req/s capacity, up to 5 attempts, and throughput that falls under overload.

I wrote about retries in NestJS

Blog

What I learn, in writing.

Browse all posts