Ali Zafer Writing

Türkçe oku

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.

  1. Backend · 2 min · TR 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ı
  2. Backend · 1 min · TR 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
  3. Backend · 2 min · TR 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
  4. Backend · 2 min · TR 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
  5. Backend · 8 min · TR 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
  6. Frontend · 2 min · TR 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>
  7. Frontend · 2 min · TR 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
  8. Frontend · 2 min · TR 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
  9. Frontend · 2 min · TR 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
  10. Frontend · 7 min · TR 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
  11. Frontend · 1 min · TR fetchpriority for the LCP imageTelling the browser that the largest image on the page should be fetched first. LCP görselinde fetchpriority
  12. Frontend · 2 min · TR 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