﻿
{"id":25007,"date":"2022-05-16T09:24:00","date_gmt":"2022-05-16T09:24:00","guid":{"rendered":"https:\/\/www.gencayyildiz.com\/blog\/?p=25007"},"modified":"2022-05-16T09:24:00","modified_gmt":"2022-05-16T09:24:00","slug":"c-10-record-structs","status":"publish","type":"post","link":"https:\/\/www.gencayyildiz.com\/blog\/c-10-record-structs\/","title":{"rendered":"C# 10 &#8211; Record Structs"},"content":{"rendered":"<div id=\"fb-root\"><\/div>\n<p>Merhaba,<\/p>\n<p>Bu i\u00e7eri\u011fimizde C# 9.0 ile hayat\u0131m\u0131za giren <a href=\"https:\/\/www.gencayyildiz.com\/blog\/c-9-0-records-ile-immutable-datalar\/\" rel=\"noopener\" target=\"_blank\">record<\/a> yap\u0131s\u0131n\u0131n C# 10 ile gelen <strong>record structs<\/strong> isimli yeni \u00f6zelli\u011fi \u00fczerine incelemede bulunuyor olaca\u011f\u0131z.<\/p>\n<p>Her \u015feyden \u00f6nce record yap\u0131s\u0131n\u0131n ne oldu\u011funu hat\u0131rlatan girizg\u00e2hla ba\u015flayal\u0131m. Record&#8217;lar; verisel olarak de\u011feri \u00f6n planda tutan, de\u011ferleri de\u011fi\u015ftirilemeyen ve compile neticesinde <code>IEquatable&lt;T&gt;<\/code>&#8216;\u0131 implemente ederek \u00f6z\u00fcnde bir s\u0131n\u0131fa d\u00f6n\u00fc\u015fen referans t\u00fcrl\u00fc veri yap\u0131lar\u0131d\u0131r. Record&#8217;lar\u0131n ne oldu\u011funu tam teferruatl\u0131 anlayabilmek i\u00e7in \u00f6nceden klavyeye ald\u0131\u011f\u0131m <a href=\"https:\/\/www.gencayyildiz.com\/blog\/c-9-0-records-ile-immutable-datalar\/\" rel=\"noopener\" target=\"_blank\">C# 9.0 \u2013 Records \u0130le Immutable Datalar<\/a> ba\u015fl\u0131kl\u0131 makalemi ba\u015ftan sona okuman\u0131z\u0131 ve ard\u0131ndan bu i\u00e7eri\u011fe g\u00f6z atman\u0131z\u0131 tavsiye ederim.<\/p>\n<p><strong>Record struct nedir?<\/strong> diye sorarsan\u0131z e\u011fer; record&#8217;\u0131n bir\u00e7ok avantaj\u0131n\u0131 sa\u011flayan lakin de\u011fer t\u00fcrl\u00fc olmas\u0131 gibi radikal farklar\u0131 olan veri yap\u0131lar\u0131d\u0131r. \u015eimdi gelin record struct&#8217;\u0131n ne oldu\u011fu, record&#8217;lardan farklar\u0131n\u0131n neler oldu\u011fu \u015feklinde sualleri tek tek irdeleyerek cevap bulmaya \u00e7al\u0131\u015fal\u0131m.<\/p>\n<h3>Record Struct Nas\u0131l Olu\u015fturulur?<\/h3>\n<p>Record struct&#8217;lar aynen bir struct gibi bir record gibi a\u015fa\u011f\u0131daki semantikte olu\u015fturulmaktad\u0131rlar.<\/p>\n<p>Prototip :<\/p>\n<div style=\"font-size:12px;\">\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nrecord struct &#x5B;name]\r\n{\r\n    ...\r\n}\r\n<\/pre>\n<\/div>\n<p>Misal olarak bir &#8216;Product&#8217; record struct&#8217;\u0131 a\u015fa\u011f\u0131daki gibi olu\u015fturulabilmektedir.<\/p>\n<div style=\"font-size:12px;\">\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\r\nrecord struct Product\r\n{\r\n    ...\r\n}\r\n<\/pre>\n<\/div>\n<p>E\u011fer ki &#8216;Product&#8217; record olu\u015fturmak isteseydik a\u015fa\u011f\u0131da g\u00f6r\u00fcld\u00fc\u011f\u00fc \u00fczere bunun \u00e7ok fazla semantik bir fark\u0131 bulunmayacakt\u0131 :<\/p>\n<div style=\"font-size:12px;\">\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\r\nrecord Product\r\n{\r\n    ...\r\n}\r\n<\/pre>\n<\/div>\n<p>Tabi haz\u0131r laf\u0131 ge\u00e7mi\u015fken s\u00f6ylemekte fayda var ki, C# 9.0 ile gelen bu <code style=\"color:red;font-size:12px;\">record [name]<\/code> yap\u0131lanmas\u0131 C# 10 ile <code style=\"color:red;font-size:12px;\">record class [name]<\/code> olarak da tan\u0131mlanabilmektedir.<\/p>\n<div style=\"font-size:12px;\">\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\r\nrecord class Product\r\n{\r\n    ...\r\n}\r\n<\/pre>\n<\/div>\n<p>Bu tan\u0131mlama nihai olarak record ile record struct aras\u0131ndaki kar\u0131\u015f\u0131kl\u0131l\u0131\u011f\u0131 \u00f6nlemek i\u00e7in zahiren daha uygun bir g\u00f6rsellik sa\u011flamaktad\u0131r kanaatindeyim. Siz ne d\u00fc\u015f\u00fcn\u00fcyorsunuz?<\/p>\n<p>Velhas\u0131l,<\/p>\n<p>Nas\u0131l ki bir record(ya da record class) t\u00fcm s\u0131n\u0131f \u00f6zelliklerine sahip olan bir s\u0131n\u0131fsa ayn\u0131 mant\u0131kta bir record struct&#8217;ta \u00f6z\u00fcnde yine bir struct olan ve struct&#8217;lar\u0131n t\u00fcm \u00f6zelliklerine sahip olan yap\u0131lanmad\u0131r.<\/p>\n<p>Bu iki record yap\u0131lanmas\u0131n\u0131n aralar\u0131nda benzerlikleri oldu\u011fu gibi davran\u0131\u015fsal olarak temel farklar\u0131 da mevcuttur. \u015eimdi gelin bu iki yap\u0131y\u0131 tek tek \u00f6zellikler \u00e7er\u00e7evesinde mukayese ederek farklar\u0131n\u0131 ve benzerliklerini inceleyelim.<\/p>\n<ul>\n<li><strong><em style=\"color:green;\">Immutability<\/em><\/strong><br \/>\nBiliyorsunuz ki record&#8217;lar da(ya da record class&#8217;lar da) <code>Positional Records<\/code> dedi\u011fimiz a\u015fa\u011f\u0131daki \u00f6zellik mevcuttur :<\/p>\n<div style=\"font-size:12px;\">\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\r\nrecord Person(string Name, string Surname)\r\n{\r\n\r\n}\r\n<\/pre>\n<\/div>\n<p>Positional records yap\u0131lanmas\u0131n\u0131n en \u00f6nemli kriti\u011fi de\u011fi\u015ftirilemez olmalar\u0131d\u0131r.<\/p>\n<div style=\"font-size:12px;\">\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\r\nPerson p = new Person(&quot;Gen\u00e7ay&quot;, &quot;Y\u0131ld\u0131z&quot;);\r\np.Name = &quot;&quot;;\r\n<\/pre>\n<\/div>\n<p>Haliyle yukar\u0131daki kullan\u0131m hata verecektir. Bu kullan\u0131mdaki durumun nedenini \u00f6nceki sat\u0131rlarda referans etti\u011fim record&#8217;lara dair olan makalemdeki konuya dair olan paragraf\u0131 al\u0131nt\u0131layarak izah etmek istiyorum.<\/p>\n<blockquote><p><em>&#8230;bu property\u2019ler default \u2018init\u2019 olacak \u015fekilde olu\u015fturulmakta ve nesne \u00fcretimi esnas\u0131nda constructor\u2019dan verilecek de\u011ferlerden sonra readonly olarak kullan\u0131lmaktad\u0131r&#8230;.<\/em><\/p><\/blockquote>\n<p>Amma velakin positional records \u00f6zelli\u011fi record  structs&#8217;ta kullan\u0131l\u0131yorsa e\u011fer de\u011fi\u015ftirilemez de\u011fildir!<\/p>\n<div style=\"font-size:12px;\">\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\r\nrecord struct Person(string Name, string Surname)\r\n{\r\n\r\n}\r\n<\/pre>\n<\/div>\n<p>Dolay\u0131s\u0131yla bu durumda a\u015fa\u011f\u0131daki kullan\u0131m hata vermeyecektir!<\/p>\n<div style=\"font-size:12px;\">\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\r\nPerson p = new Person(&quot;Gen\u00e7ay&quot;, &quot;Y\u0131ld\u0131z&quot;);\r\np.Name = &quot;&quot;;\r\n<\/pre>\n<\/div>\n<p>Bunun nedeni ise positional records&#8217;lar\u0131n record struct&#8217;lar i\u00e7in olduk\u00e7a farkl\u0131 bir nitelik olmas\u0131d\u0131r. Evet, g\u00f6rsel ve semantik a\u00e7\u0131dan tan\u0131mlanan record struct&#8217;t\u0131n constructor&#8217;\u0131n\u0131 olu\u015fturmaya gerek kalmaks\u0131z\u0131n direkt olarak nesne olu\u015fturma s\u00fcrecinde record&#8217;lar da oldu\u011fu gibi set edilebilir property&#8217;ler tan\u0131mlamam\u0131z\u0131 sa\u011flamaktad\u0131r belki ama kullan\u0131m a\u00e7\u0131s\u0131ndan readonly ve &#8216;init&#8217; olmayacak \u015fekilde tan\u0131mlamaktad\u0131r. E\u011fer ki record struct&#8217;larda da positional records&#8217;\u0131 de\u011fi\u015ftirilemez olarak kullanmak istiyorsan\u0131z <code style=\"color:red;font-size:12px;\">readonly<\/code> keyword\u00fcn\u00fc a\u015fa\u011f\u0131daki gibi kullanman\u0131z gerekiyor.<\/p>\n<div style=\"font-size:12px;\">\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\r\nreadonly record struct Person(string Name, string Surname)\r\n{\r\n\r\n}\r\n<\/pre>\n<\/div>\n<p>Haliyle bu \u015fekilde bir tan\u0131mlama neticesinde art\u0131k ilgili property&#8217;ler a\u015fa\u011f\u0131daki gibi de\u011fi\u015ftirilmeye kalk\u0131l\u0131nca hata verecektir.<br \/>\n<a href=\"https:\/\/www.gencayyildiz.com\/blog\/wp-content\/uploads\/2022\/05\/C-10-Record-Structs.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.gencayyildiz.com\/blog\/wp-content\/uploads\/2022\/05\/C-10-Record-Structs.png\" alt=\"C# 10 - Record Structs\" width=\"396\" height=\"47\" class=\"aligncenter size-full wp-image-25069\" srcset=\"https:\/\/www.gencayyildiz.com\/blog\/wp-content\/uploads\/2022\/05\/C-10-Record-Structs.png 396w, https:\/\/www.gencayyildiz.com\/blog\/wp-content\/uploads\/2022\/05\/C-10-Record-Structs-300x36.png 300w\" sizes=\"auto, (max-width: 396px) 100vw, 396px\" \/><\/a>\n<\/li>\n<li><strong><em style=\"color:green;\">with Expressions<\/em><\/strong><br \/>\n<code>with expressions<\/code>, immutable t\u00fcr olan record nesneleri \u00fczerinde verisel de\u011fi\u015fiklik yapamad\u0131\u011f\u0131m\u0131z i\u00e7in ilgili nesneyi klonlayarak(deep copy) istedi\u011fimiz yeni de\u011ferlerde yeniden olu\u015fturmam\u0131z\u0131 sa\u011flayan bir \u00f6zelliktir. Haliyle record class&#8217;lar da oldu\u011fu gibi record struct&#8217;lar da <code>with expressions<\/code> niteli\u011fi kullan\u0131labilmektedir. <\/p>\n<div style=\"font-size:12px;\">\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\r\nPerson p = new Person(&quot;Gen\u00e7ay&quot;, &quot;Y\u0131ld\u0131z&quot;);\r\nvar newPerson = p with { Name = &quot;Nevin&quot; };\r\n<\/pre>\n<\/div>\n<\/li>\n<li><strong><em style=\"color:green;\">Equality Comparison(E\u015fitlik Kar\u015f\u0131la\u015ft\u0131rmas\u0131)<\/em><\/strong><br \/>\n<a href=\"https:\/\/www.gencayyildiz.com\/blog\/wp-content\/uploads\/2022\/05\/C-10-Record-Structs-1.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.gencayyildiz.com\/blog\/wp-content\/uploads\/2022\/05\/C-10-Record-Structs-1.png\" alt=\"C# 10 - Record Structs\" width=\"288\" height=\"259\" class=\"alignleft size-full wp-image-25050\" \/><\/a>Normal \u015fartlarda <a href=\"https:\/\/www.gencayyildiz.com\/blog\/cta-struct-yapilari-ve-kullanim-durumlari\/\" rel=\"noopener\" target=\"_blank\">struct<\/a> veri t\u00fcrleri \u00fczerinde e\u015fitlik(==) ve e\u015fit de\u011fillik(!=) operat\u00f6rleri yandaki g\u00f6rselde oldu\u011fu gibi desteklenmemektedir.<\/p>\n<p>Lakin konumuzla ilgili radikal de\u011fi\u015fikliklerden biriside bu ilgili operat\u00f6rlerin record struct&#8217;lar taraf\u0131ndan desteklenmesidir. A\u015fa\u011f\u0131daki ekran al\u0131nt\u0131s\u0131n\u0131 incelerseniz e\u011fer ilgili operat\u00f6rler record struct \u00fczerinde kullan\u0131labilmektedir.<br \/>\n<a href=\"https:\/\/www.gencayyildiz.com\/blog\/wp-content\/uploads\/2022\/05\/C-10-Record-Structs-2.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.gencayyildiz.com\/blog\/wp-content\/uploads\/2022\/05\/C-10-Record-Structs-2.png\" alt=\"C# 10 - Record Structs\" width=\"406\" height=\"179\" class=\"alignright size-full wp-image-25073\" srcset=\"https:\/\/www.gencayyildiz.com\/blog\/wp-content\/uploads\/2022\/05\/C-10-Record-Structs-2.png 406w, https:\/\/www.gencayyildiz.com\/blog\/wp-content\/uploads\/2022\/05\/C-10-Record-Structs-2-300x132.png 300w\" sizes=\"auto, (max-width: 406px) 100vw, 406px\" \/><\/a>Tabi burada dikkat edilmesi gereken husus \u015fudur ki, hat\u0131rlarsan\u0131z e\u011fer record class&#8217;lar da verisel de\u011ferler \u00f6n planda tutuldu\u011fu i\u00e7in ayn\u0131 de\u011ferlere sahip iki farkl\u0131 record nesnesi &#8216;Equals&#8217; fonksiyonu neticesinde &#8216;true&#8217; de\u011ferini d\u00f6nd\u00fcrmekteydi. Benzer mant\u0131k record struct&#8217;lar i\u00e7in de ge\u00e7erlidir. Ayn\u0131 de\u011ferlere sahip iki record struct verisi kar\u015f\u0131la\u015ft\u0131r\u0131ld\u0131\u011f\u0131nda her zaman &#8216;true&#8217; sonucunu d\u00f6nd\u00fcrecektir.<\/p>\n<\/li>\n<li><strong><em style=\"color:green;\">Printing Members<\/em><\/strong><br \/>\nrecord struct&#8217;lar\u0131n getirdi\u011fi son yenilik ise elemanlar\u0131n\u0131 direkt olarak string t\u00fcr\u00fcne &#8216;ToString&#8217; fonksiyonuyla \u00e7evirdi\u011fimizde bizlere verinin metinsel halini sunmas\u0131d\u0131r. Bu durumu a\u015fa\u011f\u0131daki g\u00f6rsel \u00fczerinden daha net de\u011ferlendirebiliriz.<br \/>\n<a href=\"https:\/\/www.gencayyildiz.com\/blog\/wp-content\/uploads\/2022\/05\/C-10-Record-Structs-3.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.gencayyildiz.com\/blog\/wp-content\/uploads\/2022\/05\/C-10-Record-Structs-3.png\" alt=\"C# 10 - Record Structs\" width=\"480\" height=\"263\" class=\"aligncenter size-full wp-image-25057\" srcset=\"https:\/\/www.gencayyildiz.com\/blog\/wp-content\/uploads\/2022\/05\/C-10-Record-Structs-3.png 480w, https:\/\/www.gencayyildiz.com\/blog\/wp-content\/uploads\/2022\/05\/C-10-Record-Structs-3-300x164.png 300w\" sizes=\"auto, (max-width: 480px) 100vw, 480px\" \/><\/a>Dikkat ederseniz esas\u0131nda bu \u00f6zellik record class&#8217;lar da mevcutken normal struct&#8217;lar da de\u011fildir.\n<\/li>\n<li><strong><em style=\"color:green;\">Primary Constructor<\/em><\/strong><br \/>\nrecord struct&#8217;lar, t\u0131pk\u0131 record class&#8217;lar da oldu\u011fu gibi positional records kullan\u0131l\u0131yorsa normal constructor tan\u0131mlanmas\u0131na izin vermemektedir.<\/p>\n<ul>\n<li>Hatas\u0131z : <a href=\"https:\/\/www.gencayyildiz.com\/blog\/wp-content\/uploads\/2022\/05\/C-10-Record-Structs-4.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.gencayyildiz.com\/blog\/wp-content\/uploads\/2022\/05\/C-10-Record-Structs-4.png\" alt=\"C# 10 - Record Structs\" width=\"352\" height=\"80\" class=\"aligncenter size-full wp-image-25060\" srcset=\"https:\/\/www.gencayyildiz.com\/blog\/wp-content\/uploads\/2022\/05\/C-10-Record-Structs-4.png 352w, https:\/\/www.gencayyildiz.com\/blog\/wp-content\/uploads\/2022\/05\/C-10-Record-Structs-4-300x68.png 300w\" sizes=\"auto, (max-width: 352px) 100vw, 352px\" \/><\/a><\/li>\n<li>Hatal\u0131 : <a href=\"https:\/\/www.gencayyildiz.com\/blog\/wp-content\/uploads\/2022\/05\/C-10-Record-Structs-5.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.gencayyildiz.com\/blog\/wp-content\/uploads\/2022\/05\/C-10-Record-Structs-5.png\" alt=\"C# 10 - Record Structs\" width=\"351\" height=\"74\" class=\"aligncenter size-full wp-image-25061\" srcset=\"https:\/\/www.gencayyildiz.com\/blog\/wp-content\/uploads\/2022\/05\/C-10-Record-Structs-5.png 351w, https:\/\/www.gencayyildiz.com\/blog\/wp-content\/uploads\/2022\/05\/C-10-Record-Structs-5-300x63.png 300w\" sizes=\"auto, (max-width: 351px) 100vw, 351px\" \/><\/a><\/li>\n<li>Hatal\u0131 : <a href=\"https:\/\/www.gencayyildiz.com\/blog\/wp-content\/uploads\/2022\/05\/C-10-Record-Structs-6.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.gencayyildiz.com\/blog\/wp-content\/uploads\/2022\/05\/C-10-Record-Structs-6.png\" alt=\"C# 10 - Record Structs\" width=\"256\" height=\"73\" class=\"aligncenter size-full wp-image-25062\" \/><\/a><\/li>\n<li>Hatal\u0131 : <a href=\"https:\/\/www.gencayyildiz.com\/blog\/wp-content\/uploads\/2022\/05\/C-10-Record-Structs-7.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.gencayyildiz.com\/blog\/wp-content\/uploads\/2022\/05\/C-10-Record-Structs-7.png\" alt=\"C# 10 - Record Structs\" width=\"342\" height=\"71\" class=\"aligncenter size-full wp-image-25064\" srcset=\"https:\/\/www.gencayyildiz.com\/blog\/wp-content\/uploads\/2022\/05\/C-10-Record-Structs-7.png 342w, https:\/\/www.gencayyildiz.com\/blog\/wp-content\/uploads\/2022\/05\/C-10-Record-Structs-7-300x62.png 300w\" sizes=\"auto, (max-width: 342px) 100vw, 342px\" \/><\/a><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<blockquote><p><em style=\"color:purple;\">Mikro seviyede yap\u0131lan optimizasyonlar neticesinde record struct&#8217;lar\u0131n, normal struct&#8217;lara oranla 20 kat daha performansl\u0131 oldu\u011fu g\u00f6zlemlenmi\u015ftir.<\/em><\/p><\/blockquote>\n<p>Nihai olarak,<br \/>\nNormal \u015fartlarda struct veri t\u00fcrleri class&#8217;lara nazaran performans a\u00e7\u0131s\u0131ndan olduk\u00e7a avantajl\u0131d\u0131rlar. record&#8217;lar ise struct&#8217;lara nazaran class&#8217;lara kar\u015f\u0131 k\u0131sm\u0131 bir avantaja sahiptirler. C# 10 ile gelen bu record struct&#8217;lar ise performansta struct&#8217;lar\u0131 da sollam\u0131\u015f bulunuyorlar. Kritik noktalarda kullanman\u0131n koda, performansa ve maliyeti d\u00fc\u015f\u00fcrmeye inan\u0131lmaz faydas\u0131 olaca\u011f\u0131 kanaatindeyim.<\/p>\n<p>\u0130lgilenenlerin faydalanmas\u0131 dile\u011fiyle&#8230;<br \/>\nSonraki yaz\u0131lar\u0131mda g\u00f6r\u00fc\u015fmek \u00fczere&#8230;<br \/>\n\u0130yi \u00e7al\u0131\u015fmalar&#8230;<\/p>\n<!-- AddThis Advanced Settings generic via filter on the_content --><!-- AddThis Share Buttons generic via filter on the_content -->","protected":false},"excerpt":{"rendered":"<p>Merhaba, Bu i\u00e7eri\u011fimizde C# 9.0 ile hayat\u0131m\u0131za giren record yap\u0131s\u0131n\u0131n C# 10 ile gelen record structs isimli yeni \u00f6zelli\u011fi \u00fczerine incelemede bulunuyor olaca\u011f\u0131z. Her \u015feyden \u00f6nce record yap\u0131s\u0131n\u0131n ne oldu\u011funu hat\u0131rlatan girizg\u00e2hla ba\u015flayal\u0131m. Record&#8217;lar;&#46;&#46;&#46;<!-- AddThis Advanced Settings generic via filter on get_the_excerpt --><!-- AddThis Share Buttons generic via filter on get_the_excerpt --><\/p>\n","protected":false},"author":1,"featured_media":24114,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4446,12,4484],"tags":[4486,4578,4579,3938,4577],"class_list":["post-25007","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-net-6","category-c-sharp-c","category-c-10","tag-c-10","tag-c-10-record-structs","tag-c-record-structs","tag-positional-records","tag-record-structs"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/posts\/25007","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/comments?post=25007"}],"version-history":[{"count":54,"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/posts\/25007\/revisions"}],"predecessor-version":[{"id":25075,"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/posts\/25007\/revisions\/25075"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/media\/24114"}],"wp:attachment":[{"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/media?parent=25007"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/categories?post=25007"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/tags?post=25007"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}