YAML (YAML Ain't Markup Language)
YAML, yapılandırma dosyaları ve veri serileştirme için tasarlanmış, insan tarafından okunabilir bir veri formatıdır. Yapıyı belirtmek için ayraçlar yerine girinti kullanır. YAML, DevOps araçlarında, CI/CD boru hatlarında ve uygulama yapılandırmasında yaygın olarak kullanılır.
MIME Tipi
application/x-yaml
Tip
Metin
Sikistirma
Kayipsiz
Avantajlar
- + Highly readable — minimal syntax noise
- + Supports comments for inline documentation
- + Native in Docker, Kubernetes, Ansible, and CI/CD systems
- + Superset of JSON — any JSON is valid YAML
Dezavantajlar
- − Indentation-sensitive — whitespace errors cause silent failures
- − Implicit type coercion can cause bugs ('yes' becomes boolean true)
- − More complex specification than JSON with anchors, tags, and directives
.YAML Ne Zaman Kullanilir
İnsan tarafından düzenlenen yapılandırma dosyaları için YAML kullanın (Docker Compose, Kubernetes, CI/CD). Programatik veri alışverişi için JSON'u tercih edin.
Teknik Detaylar
YAML, yapıyı belirtmek için girinti kullanır (sekmeler yasaktır). Skaler değerleri, dizileri ve eşlemeleri destekler. Çapa işaretleri (&) ve takma adlar (*) ile çapraz referanslama yapılabilir. YAML 1.2, JSON'un bir üst kümesidir.
Gecmis
YAML ilk olarak 2001 yılında Clark Evans, Ingy döt Net ve Oren Ben-Kiki tarafından oluşturuldu. Adı başlangıçta "Yet Another Markup Language" idi, daha sonra biçimlendirmeden ziyade veri odaklı olduğunu vurgulamak için "YAML Ain't Markup Language" olarak değiştirildi.
.YAML formatindan donustur
.YAML formatina donustur
Ilgili Formatlar
Ilgili Terimler
Learn More
JSON vs YAML vs TOML: Choosing a Configuration Format
Configuration files are the backbone of modern applications. JSON, YAML, and TOML each offer different trade-offs between readability, complexity, and …
How to Format and Validate JSON Data
Malformed JSON causes silent failures in APIs and configuration files. Learn how to format, validate, and debug JSON documents to …
Base64 Encoding: How It Works and When to Use It
Base64 converts binary data into ASCII text, making it safe for transmission through text-based systems. Learn when Base64 is the …
Best Practices for Working with Unix Timestamps
Unix timestamps provide a language-agnostic way to represent points in time, but they come with pitfalls around time zones, precision, …
Troubleshooting JWT Token Issues
JSON Web Tokens are widely used for authentication but can be frustrating to debug. This guide covers common JWT problems …
Hash Functions Compared: MD5, SHA-1, SHA-256, and Beyond
Hash functions are used for file integrity, password storage, and digital signatures. This comparison covers the most common algorithms, their …