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.
-
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ü
-
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?
-
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ı
-
Reading EXPLAIN output: type, key, rowsTelling from three columns whether a query uses an index. EXPLAIN çıktısını okumak: type, key, rows
-
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
-
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
-
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ı
-
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
-
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
-
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
-
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?
-
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