Writing · 82 articles
Thoughts put into lines, every article leaves a trace.
Process notes, technical write-ups and design tips on PHP, MariaDB, security, accessibility, design systems and web performance.
The articles are written in Turkish. Each one below has an English title and summary; the original Turkish title is shown underneath.
-
PUT or PATCH? What an update meansThe contract difference between replacing the whole resource and changing only the fields that were sent. PUT mu, PATCH mı? Güncellemenin anlamı
-
Accept only JSON: Content-Type and 415Rejecting bodies of other types at the door of an endpoint that expects JSON. Yalnız JSON kabul et: Content-Type ve 415
-
Handling repeated POSTs with an Idempotency-KeyMaking sure a request resent after a network error does not create a second order, payment or record. Idempotency-Key ile tekrarlanan POST'u karşılamak
-
400 or 422? Choosing the right error codeA malformed request, content that breaks the rules and a request that conflicts with the current state: three different errors, three different status codes. 400 mü, 422 mi? Hata kodunu doğru seçmek
-
API contracts — versioning, error schemas and idempotent operationsWriting down the promise between an API's author and its users: predictable URLs, room to change, one error format and operations that are safe to repeat. API Sözleşmesi — Versiyonlama, Hata Şeması ve İdempotent İşlemler
-
Choosing image formats: AVIF, WebP and <picture>Producing images in the right format at build time and letting the browser choose with <picture>. Görsel biçimi seçmek: AVIF, WebP ve <picture>
-
Lowering INP by breaking up long tasksSplitting work that blocks the main thread for longer than 50 ms so the page responds to taps and clicks quickly. INP'yi düşürmek: uzun görevleri bölmek
-
Load heavy libraries late with dynamic importLightening the first load with code that is downloaded only when it is needed, which also helps INP on mid-range phones. Ağır kütüphaneyi geç yükle: dinamik import
-
Preventing CLS: width, height and aspect-ratioStopping the page from jumping while images load by declaring their size in advance. CLS'yi önlemek: width, height ve aspect-ratio
-
Performance — measuring and improving LCP, CLS and INPMeasuring Core Web Vitals in the lab and in the field, finding the bottleneck and turning improvement into a working rhythm. Performans — LCP, CLS ve INP Odaklı Ölçüm ve İyileştirme
-
fetchpriority for the LCP imageTelling the browser that the largest image on the page should be fetched first. LCP görselinde fetchpriority
-
Wrapping a raw icon set in a componentKeeping size, colour and accessibility defaults in one component instead of copying SVG code everywhere. Ham ikon setini bileşene sarmak