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 The N+1 query problem and a single JOINThe cost of querying inside a loop, and ways to fetch the data in one go. N+1 sorgu sorunu ve tek JOIN ile çözümü
  2. Backend · 2 min · TR Why column order matters in a composite indexThe leftmost prefix rule and choosing the order according to the query conditions, explained with a phone book. Bileşik indekste sütun sırası neden önemli?
  3. Backend · 8 min · TR Database scalability — indexes, query plans, read/write splitIn MariaDB most slowness comes from queries and indexes, not hardware: step by step from measuring and indexing to N+1 queries and replication. Veritabanı Ölçeklenebilirliği — İndeks, Sorgu Planı, Okuma/Yazma Ayrımı
  4. Backend · 2 min · TR Reading EXPLAIN output: type, key, rowsTelling from three columns whether a query uses an index. EXPLAIN çıktısını okumak: type, key, rows
  5. Backend · 2 min · TR Never store passwords in plain text: password_hash and password_verifySafe password storage and rehashing with PHP's built-in functions; fast hashes such as MD5 or SHA-1 are not enough. Parolayı asla düz saklama: password_hash ve password_verify
  6. Backend · 2 min · TR Escaping output with a single htmlspecialchars helperMost XSS comes from one forgotten escape; using the same helper for every output makes the safe way the easy way. Çıktıyı kaçışlamak: htmlspecialchars'ı tek yardımcıya bağlamak
  7. Backend · 2 min · TR Simple per-IP rate limitingProtecting a form from abuse by counting the attempts from the same IP in the last few minutes. IP başına basit oran sınırı
  8. Backend · 1 min · TR Honeypot fields: an invisible trap for botsA simple spam filter: a field humans never see but bots fill in. Honeypot alanı: botlara görünmez tuzak
  9. Backend · 8 min · TR Security layers — CSRF, rate limiting, sessions and inputOverlapping layers instead of a single safeguard in a small PHP application: validation, escaping, CSRF, sessions, rate limiting and security headers. Güvenlik Katmanları — CSRF, Oran Sınırı, Oturum ve Girdi
  10. Backend · 1 min · TR CSRF tokens: one check for forms and headersComparing the session token with either a form field or a request header in one function, and why hash_equals is required. CSRF token'ı: formda ve başlıkta tek doğrulama
  11. Backend · 1 min · TR When is stale-while-revalidate useful?It serves an expired response for a little longer and refreshes it in the background so users do not wait; the article covers where that fits and where it does not. stale-while-revalidate ne zaman işe yarar?
  12. Backend · 1 min · TR Testing 304 Not Modified with curlTwo curl commands verify that ETag and If-None-Match really return 304 for conditional requests. 304 Not Modified'ı curl ile test etmek