0.1 + 0.2 is not 0.3, KWD has three decimals, round() picks a rule for you, and a naive discount split loses a piastre. Integer minor units, a bounded Money value object, line-level VAT rounding, and largest-remainder splits - every code block executed on PHP 8.4, with a 19-test suite that runs the blocks extracted from this article.
ملاحظات من بناء أنظمة حقيقية
مقالات عملية عن Laravel والـ Backend Architecture وربط بوابات الدفع والـ APIs، مكتوبة من خبرة Production مش من الكتب.
مقالات تانية
You can't fix hallucinations you can't see. Golden set, recall@k, MRR, a rubric-scored faithfulness check, chunking and reranking experiments, and a refusal gate - a real small eval run, plus a FastAPI endpoint actually running.
Six gateways, six dialects. One PaymentGateway interface, one adapter per provider, one tested PHP state machine - and webhook verification that stops forged payment success requests.
Same query, three indexes: 289 ms, 219 ms, 0.065 ms. A measured tour of composite indexes, the leftmost-prefix rule, covering indexes and the N+1 your ORM hides.
You can't judge code - so judge evidence. Pick freelancer vs agency vs in-house, score a paid trial task on a rubric, and own every account from day one.
Five backend project specs with scope, must-haves, stretch goals, a README template and a reviewer checklist, so your GitHub shows you can handle real failures.
A balance column created 1,800 out of nothing when 200 transfers ran at once. How to build a wallet on a double-entry ledger in Laravel and MySQL: postings, ordered locks, holds and reconciliation checks.
Let Claude and ChatGPT work inside your Laravel app without giving them admin rights: OAuth per user, your existing policies in every tool, hidden tools, confirmations for destructive actions, and an audit log. Tested code.
Puzzles and take-homes now measure what AI does for free. A four-stage interview loop that tests judgment instead, with a scoring rubric, a flawed pull request with an answer key, and a debugging script.
اكتشف المواضيع
اختار موضوع واقرا كل اللي اتكتب عنه.