Build Log

Field notes from systems in production.

Articles from the systems I build and run, for everyone: what business owners should know before paying for software, technology in plain words, a path for people learning to program, and engineering for developers. Every number in them was measured or comes with its source.

18 articlesRSS feed

Latest

Who writes this

Mohamed Moghalis

Full-stack software engineer, currently employed at Kiswat Al-Fakhama Trading Co. I have built business systems, SaaS platforms and mobile apps for companies in Saudi Arabia, the wider Middle East and the United States; eleven of them are live in production.

Every article

  1. 18

    "Arabic search that finds what you meant: hamza, taa marbuta, tashkeel"

    Why احمد does not find أحمد, which normalisation rules are safe and which merge different words, and where to normalise: the index and the query, never the text you show.

    Arabic interfaces
  2. 17

    A portfolio that brings in work: what I put on my site, and why

    The decisions behind moghalis.com, for anyone building a first portfolio: your exact role, numbers you counted, systems a client can open, and what to leave out.

    Learning & careers
  3. 16

    Who can delete an invoice? Permissions and audit trails for owners

    The losses that start inside a business, a who-may-do-what table you can copy, money that is reversed and never edited, and what to ask a vendor to show you before you buy.

    For business owners
  4. 15

    Your first real programming project: how to choose one that teaches

    Pick a project with a real user, real data and someone who may not do everything. Cut it to four weeks, deploy it in week one, and watch it used. With a week-by-week plan.

    Learning & careers
  5. 14

    Double-entry bookkeeping for developers: a ledger that cannot lie

    Accounting as a data model: entries that balance exactly, posting, reversal instead of editing, balances you derive, and the trial balance as a test, with real code from FinyX-ERP.

    Architecture
  6. 13

    How online card payments work: what happens after you press Pay

    One card payment in plain words: the gateway, the card network, your bank's code, the shop's own check, why "pending" happens and why a double charge is rare.

    Tech, explained
  7. 12

    How to learn programming in year one: a map without the noise

    One language, one kind of product, a real user by month three. What to skip, the four basics every path shares, and where Flutter, Next.js, NestJS and .NET lead.

    Learning & careers
  8. 11

    From Firebase to PostgreSQL while the stations kept billing

    How FinyxWatt left Firestore for NestJS and PostgreSQL with stations live: an importer built to say no, 109 checksummed migrations, and releases that go back in one step.

    Architecture
  9. 10

    What does custom software cost? The seven things that move the price

    Why two quotes for the same system can differ tenfold: the seven things that set the size, and the price, of custom software, with examples from systems I built.

    For business owners
  10. 09

    The ZATCA error that only shows up after you pass compliance

    ZATCA Phase 2 in plain C#: the hash Fatoora recomputes, the ECDSA stamp, nine QR tags, offline hash chains, and the traps that pass compliance and fail when you report.

    E-invoicing
  11. 08

    372 tests passed. No sale could reach the ledger.

    How I keep a 322,000-line accounting system correct on my own: one save gate, append-only money, a hash-chained audit trail, real-database tests, and the audit that caught what they missed.

    Architecture
  12. 07

    Arabic on a thermal printer, and the five bytes that ate a roll

    Why ESC/POS printers mangle Arabic, how to print it as a 1-bit image at the head's exact width, and the geometry bug that turned a 12 cm receipt into a roll on the floor.

    Arabic interfaces
  13. 06

    Why idempotency keys didn't stop 105 resends of one receipt

    Offline-first billing for electricity stations: one id from the phone to the receipt, why bill totals must never be added, an outbox that knows what to retry, and the 500 that looped.

    Architecture
  14. 05

    Security that survives my own bugs: six layers and their configs

    Six layers in production, each built for the day the one above it fails: forced row-level security, logins that cannot bypass it, sealed containers, phone certificates, weekly restores.

    Security
  15. 04

    The final payment should be the easy one. How I run client projects

    How I run client projects so the client pays, trusts me and comes back: a written proposal with phases, every phase live on their server, tests they can read, and a handover pack.

    For business owners
  16. 03

    200 animations kept my main thread 98% busy at rest. None had to go

    One animation the GPU can't run makes the browser redo the whole page every frame. The five that did it to my site, the trace field that names them, and the fixes: 98% to 18%.

    Performance
  17. 02

    Per-letter text effects break Arabic. Intl.Segmenter won't save you

    One span per letter split «لا» in my headline and doubled its gold sweep. Why grapheme clusters can't fix it, why words can, and a decode component that works in both scripts.

    Arabic interfaces
  18. 01

    One rename to deploy, 9 ms to roll back, 8 traps to dodge

    My deploy kit for a static site on a small VPS: a folder per release, one atomic rename to go live, a 9 ms rollback, a read-only Caddy box, and 8 traps I found by testing it.

    Infrastructure