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. Design · 2 min · TR Status colours: colour alone is not enoughReinforcing the meaning of success, warning and error messages with icons and text, so it is not lost for colour-blind or screen reader users. Durum renkleri: renk tek başına yetmez
  2. Frontend · 2 min · TR Light and dark themes with CSS variablesCollecting colours in variables so components are written once and the theme follows the system preference from a single place. CSS değişkenleriyle açık/koyu tema
  3. Design · 2 min · TR Dark navy instead of pure black in dark themesPure black with white text creates a harsh contrast that tires the eyes; dark tones give depth and comfort. Koyu temada saf siyah yerine koyu lacivert
  4. Design · 2 min · TR Contrast ratio: where does 4.5:1 come from?The WCAG contrast thresholds, the exception for large text and a quick way to check them. Kontrast oranı: 4.5:1 nereden gelir?
  5. Design · 7 min · TR Colour theory — hue, saturation and harmony in light and dark themesBuilding a palette as a system rather than individual values: role variables, contrast calculation, dark theme principles and status colours. Renk Teorisi — Ton, Doygunluk ve Açık/Koyu Temada Uyum
  6. 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
  7. 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
  8. 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ı
  9. 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
  10. 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
  11. 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
  12. Design · 2 min · TR Touch targets of at least 44 pixelsMaking small links and icons comfortable for fingers by enlarging their touch area without changing how they look. Dokunma hedefi en az 44 piksel