<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Can Bartu Kılıç on Medium]]></title>
        <description><![CDATA[Stories by Can Bartu Kılıç on Medium]]></description>
        <link>https://medium.com/@canbartuklc?source=rss-7d4497f3a0ef------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*o8ebr-saWc0dPTqscp7b0g.png</url>
            <title>Stories by Can Bartu Kılıç on Medium</title>
            <link>https://medium.com/@canbartuklc?source=rss-7d4497f3a0ef------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 08:24:48 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@canbartuklc/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Architectural Patterns’lar Nelerdir?]]></title>
            <link>https://medium.com/@canbartuklc/architectural-patternslar-nelerdir-5f75fdddb7da?source=rss-7d4497f3a0ef------2</link>
            <guid isPermaLink="false">https://medium.com/p/5f75fdddb7da</guid>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[architectural-patterns]]></category>
            <dc:creator><![CDATA[Can Bartu Kılıç]]></dc:creator>
            <pubDate>Sun, 05 Mar 2023 10:38:21 GMT</pubDate>
            <atom:updated>2023-03-05T10:38:21.794Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/638/1*cUou4exovGyaJpX4KETbug.png" /><figcaption>Architectural Patterns by Midjourney</figcaption></figure><p>Architectural Patterns, yazılım geliştirme sürecinde kullanılan ve bir uygulamanın mimarisini tanımlayan desenlerdir. Örneğler arasında MVVM, MVC, Repository Pattern gibi desenler bulunur.</p><p><strong>MVVM (Model-View-ViewModel)</strong> yazılım geliştirme sürecinde kullanılan bir mimari desendir. Bu desen kullanıcı arayüzünün mantığını veri modelinden ayrı tutar. “Model”, veri modelini temsil eder ve veriye erişme ve veri değiştirme işlemleri gerçekleştirir. “View”, kullanıcı arayüzünü temsil eder ve kullanıcının veriye erişebildiği ve veri değiştirebildiği bir arayüz sunar. “ViewModel” ise araya girer ve View ve Model arasındaki iletişimi sağlar. MVVM (Model-View-ViewModel) yapısının bir örnek kod bloğu şöyle olabilir:</p><pre>class User {<br>    private String name;<br>    private String email;<br><br>    public String getName() {<br>        return name;<br>    }<br><br>    public void setName(String name) {<br>        this.name = name;<br>    }<br><br>    public String getEmail() {<br>        return email;<br>    }<br><br>    public void setEmail(String email) {<br>        this.email = email;<br>    }<br>}<br><br>class UserViewModel {<br>    private User user;<br><br>    public UserViewModel(User user) {<br>        this.user = user;<br>    }<br><br>    public String getUserName() {<br>        return user.getName();<br>    }<br><br>    public void setUserName(String name) {<br>        user.setName(name);<br>    }<br><br>    public String getUserEmail() {<br>        return user.getEmail();<br>    }<br><br>    public void setUserEmail(String email) {<br>        user.setEmail(email);<br>    }<br>}<br><br>class UserView {<br>    private UserViewModel viewModel;<br><br>    public UserView(UserViewModel viewModel) {<br>        this.viewModel = viewModel;<br>    }<br><br>    public void setUserName(String name) {<br>        viewModel.setUserName(name);<br>    }<br><br>    public void setUserEmail(String email) {<br>        viewModel.setUserEmail(email);<br>    }<br><br>    public void displayUser() {<br>        System.out.println(&quot;User name: &quot; + viewModel.getUserName());<br>        System.out.println(&quot;User email: &quot; + viewModel.getUserEmail());<br>    }<br>}<br><br>class Main {<br>    public static void main(String[] args) {<br>        User user = new User();<br>        UserViewModel viewModel = new UserViewModel(user);<br>        UserView view = new UserView(viewModel);<br><br>        view.setUserName(&quot;John Doe&quot;);<br>        view.setUserEmail(&quot;johndoe@example.com&quot;);<br>        view.displayUser();<br>    }<br>}</pre><p>Bu örnekte, “User” sınıfı veri modelini temsil eder, “UserViewModel” sınıfı arayüz ile veri modeli arasındaki iletişimi sağlar ve “UserView” sınıfı kullanıcı arayüzünü temsil eder.</p><p><strong>MVC (Model-View-Controller) </strong>yazılım geliştirme sürecinde kullanılan bir mimari desendir. Bu desen kullanıcı arayüzünün mantığını veri modelinden ayrı tutar. “Model” veri modelini temsil eder, veriye erişme ve veri değiştirme işlemleri gerçekleştirir. “View” kullanıcı arayüzünü temsil eder ve kullanıcıya veri gösterir. “Controller” ise kullanıcının veriye erişebildiği ve veri değiştirebildiği arayüzü kontrol eder. Bu yapıya örnek ise şu şekilde verilebilir:</p><pre>class User {<br>    private String name;<br>    private String email;<br><br>    public String getName() {<br>        return name;<br>    }<br><br>    public void setName(String name) {<br>        this.name = name;<br>    }<br><br>    public String getEmail() {<br>        return email;<br>    }<br><br>    public void setEmail(String email) {<br>        this.email = email;<br>    }<br>}<br><br>class UserController {<br>    private User user;<br><br>    public UserController(User user) {<br>        this.user = user;<br>    }<br><br>    public void setUserName(String name) {<br>        user.setName(name);<br>    }<br>    public void setUserEmail(String email) {<br>        user.setEmail(email);<br>    }<br>    <br>    public String getUserName() {<br>        return user.getName();<br>    }<br>    <br>    public String getUserEmail() {<br>        return user.getEmail();<br>    }<br>}<br><br>    class UserView {<br>    private UserController controller;<br>    public UserView(UserController controller) {<br>        this.controller = controller;<br>    }<br>    <br>    public void setUserName(String name) {<br>        controller.setUserName(name);<br>    }<br>    <br>    public void setUserEmail(String email) {<br>        controller.setUserEmail(email);<br>    }<br>    <br>    public void displayUser() {<br>        System.out.println(&quot;User name: &quot; + controller.getUserName());<br>        System.out.println(&quot;User email: &quot; + controller.getUserEmail());<br>    }<br>}<br><br>    class Main {<br>    public static void main(String[] args) {<br>    User user = new User();<br>    UserController controller = new UserController(user);<br>    UserView view = new UserView(controller);<br>    view.setUserName(&quot;John Doe&quot;);<br>    view.setUserEmail(&quot;johndoe@example.com&quot;);<br>    view.displayUser();<br>  }<br>}</pre><p>Bu örnekte, “User” sınıfı veri modelini temsil eder, “UserController” sınıfı arayüz ile veri modeli arasındaki iletişimi sağlar ve “UserView” sınıfı kullanıcı arayüzünü temsil eder.</p><p><strong>Repository Pattern</strong>, veri erişimi işlemleri için kullanılan bir tasarım desenidir. Bu desen, veri erişimi işlemlerini tek bir yerde toplamak ve böylece uygulamanın diğer kısımlarının veri erişiminden bağımsız hale gelmesini sağlar. Bunun örnek kod bloğu ise bu şekilde olabilir:</p><pre>interface UserRepository {<br>  public User getUserById(int id);<br>  public List&lt;User&gt; getAllUsers();<br>  public void addUser(User user);<br>  public void updateUser(User user);<br>  public void deleteUser(int id);<br>}<br><br>class UserRepositoryImpl implements UserRepository {<br>// Code to implement repository methods<br>}<br><br>class UserService {<br>  private UserRepository repository;<br>  public UserService(UserRepository repository) {<br>      this.repository = repository;<br>  }<br>  <br>  public User getUserById(int id) {<br>      return repository.getUserById(id);<br>  }<br>  <br>  public List&lt;User&gt; getAllUsers() {<br>      return repository.getAllUsers();<br>  }<br>  <br>  public void addUser(User user) {<br>      repository.addUser(user);<br>  }<br>  <br>  public void updateUser(User user) {<br>      repository.updateUser(user);<br>  }<br>  <br>  public void deleteUser(int id) {<br>      repository.deleteUser(id);<br>  }<br>}<br><br>class Main {<br>  public static void main(String[] args) {<br>  UserRepository repository = new UserRepositoryImpl();<br>  UserService service = new UserService(repository);<br>  // Use service methods to perform CRUD operations on User<br>  }<br>}</pre><p>Bu örnekte, “UserRepository” arayüzü veri erişim işlemleri için metodlar sağlar, “UserRepositoryImpl” sınıfı ise bu metodları gerçekleştiren kodları içermektedir. “UserService” sınıfı ise “UserRepository” arayüzüne erişim sağlar ve veri erişim işlemleri için kullanılır. Bu şekilde, uygulama içinde veri erişimi işlemleri tek bir yerde yapılır ve diğer kısımların veri erişiminden bağımsız hale gelir.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/596/1*6L3yFOi8s9fHCdcj71rxDg.png" /><figcaption>Architectural Patterns by Midjourney</figcaption></figure><h4><strong>Peki bunların yanı sıra ne konuda bilgili olmalıyız?</strong></h4><p><strong>Dependency Injection</strong>, bir sınıfın bağımlı olduğu diğer sınıfların nasıl oluşturulacağını ve nasıl enjekte edileceğini tanımlayan bir tasarım desenidir. Örneğin, bir sınıfın bir veritabanı erişim nesnesine ihtiyacı varsa, bu sınıfın kendisi veritabanı erişim nesnesini oluşturmak yerine, bu nesnenin dışarıdan enjekte edilmesi sağlanır. Aşağıdaki örnekte, “NotificationService” sınıfının bir “EmailSender” nesnesine ihtiyacı vardır ve bu nesne dışarıdan enjekte edilir.</p><pre>class EmailSender {<br>    public void sendEmail(String email, String message) {<br>        // Code to send email<br>    }<br>}<br><br>class NotificationService {<br>    private EmailSender emailSender;<br><br>    public NotificationService(EmailSender emailSender) {<br>        this.emailSender = emailSender;<br>    }<br><br>    public void sendNotification(String email, String message) {<br>        emailSender.sendEmail(email, message);<br>    }<br>}<br><br>class Main {<br>    public static void main(String[] args) {<br>        EmailSender emailSender = new EmailSender();<br>        NotificationService notificationService = new NotificationService(emailSender);<br>        notificationService.sendNotification(&quot;user@example.com&quot;, &quot;Hello World!&quot;);<br>    }<br>}</pre><p>Bu örnekte, “NotificationService” sınıfının bir “EmailSender” nesnesine ihtiyacı var ve bu nesne “Main” sınıfı tarafından oluşturulur ve “NotificationService” sınıfına enjekte edilir. Bu, “NotificationService” sınıfının veritabanı erişim nesnesi gibi diğer bağımlılıklar için de uygulanabilir.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/596/1*bPX1AVxihzFanpcvrz0trw.png" /><figcaption>Ciri using Macbook in another dimension</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5f75fdddb7da" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Conditional Rendering]]></title>
            <link>https://medium.com/@canbartuklc/conditional-rendering-c3aaa95a837b?source=rss-7d4497f3a0ef------2</link>
            <guid isPermaLink="false">https://medium.com/p/c3aaa95a837b</guid>
            <category><![CDATA[reactjs]]></category>
            <category><![CDATA[conditional-rendering]]></category>
            <dc:creator><![CDATA[Can Bartu Kılıç]]></dc:creator>
            <pubDate>Mon, 09 Jan 2023 15:41:57 GMT</pubDate>
            <atom:updated>2023-01-09T15:41:57.208Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/596/1*3-4JY7pHyNelL_MSm9fNJA.png" /></figure><p>Conditional rendering, bir React uygulamasında bir bileşenin bir koşula göre görüntülenip görüntülenmeyeceğini belirlemek için kullanılan bir yöntemdir. Örneğin, bir kullanıcı giriş yaptıysa bir bileşeni görüntülemek isteyebilir ve giriş yapmadıysa görüntülemeyebilir. Bu koşula göre bir bileşenin görüntülenip görüntülenmeyeceği tercih edilen bir şekilde yapılır.</p><p>Bir React uygulamasında, bir bileşenin koşula göre görüntülenip görüntülenmeyeceğini belirlemek için aşağıdaki yöntemlerden birini kullanabilirsiniz:</p><ol><li>if koşul yapısı: Bu yöntem, koşulun doğru olup olmadığına göre JSX döndürür.</li></ol><pre>render() {<br>  if (this.state.isLoggedIn) {<br>    return &lt;LogoutButton /&gt;;<br>  } else {<br>    return &lt;LoginButton /&gt;;<br>  }<br>}</pre><p>2. Operatörler: Bu yöntem, koşulun doğru olduğu takdirde JSX döndürür. Eğer koşul yanlış ise, null döndürür.</p><pre>render() {<br>  return (<br>    &lt;div&gt;<br>      {this.state.isLoggedIn &amp;&amp; &lt;LogoutButton /&gt;}<br>      {!this.state.isLoggedIn &amp;&amp; &lt;LoginButton /&gt;}<br>    &lt;/div&gt;<br>  );<br>}</pre><p>3. Ternary operatör: Bu yöntem, koşulun doğru olup olmadığına göre JSX döndürür.</p><pre>render() {<br>  return (<br>    &lt;div&gt;<br>      {this.state.isLoggedIn ? &lt;LogoutButton /&gt; : &lt;LoginButton /&gt;}<br>    &lt;/div&gt;<br>  );<br>}</pre><p>4. if koşul yapısının yerine Element Variables kullanımı: Bu yöntem, koşulun doğru olup olmadığına göre bir değişkene değer atar ve daha sonra bu değişkeni kullanarak JSX döndürür.</p><pre>render() {<br>  const button = this.state.isLoggedIn ? &lt;LogoutButton /&gt; : &lt;LoginButton /&gt;;<br>return (<br>    &lt;div&gt;<br>      {button}<br>    &lt;/div&gt;<br>  );<br>}</pre><p>Conditional rendering yöntemlerinin seçimi, uygulamanızın ihtiyaçlarına göre değişebilir. Örneğin, çok fazla koşulun olması durumunda if koşul yapısı kullanımı daha kullanışlı olabilir. Ancak, if koşul yapısının yerine ternary operatör kullanımı daha okunaklı ve kolay anlaşılır olabilir. Bu nedenle, ternary operatör genellikle conditional rendering için tercih edilen yöntemdir.</p><p>Bir diğer önemli nokta, if koşul yapısı ve ternary operatörün yerine &amp;&amp; operatörü kullanımıdır. &amp;&amp; operatörü, koşulun doğru olduğu takdirde JSX döndürür, aksi halde null döndürür. Bu yöntem, bir bileşenin koşula göre görüntülenip görüntülenmeyeceğini belirlemek için kullanılabilir. Ancak, bu yöntem sadece tek bir JSX döndürebileceği için daha kısıtlı bir seçenektir.</p><p>Sonuç olarak, conditional rendering, bir React uygulamasında bir bileşenin bir koşula göre görüntülenip görüntülenmeyeceğini belirlemek için kullanılan bir yöntemdir. Bu yöntem, if koşul yapısı, ternary operatör ve &amp;&amp; operatörü gibi farklı yöntemlerle gerçekleştirilebilir. Hangi yöntemin kullanılacağı, uygulamanızın ihtiyaçlarına göre değişebilir.</p><pre><strong>React uygulamasında bir conditional rendering örneği bu olabilir:</strong></pre><pre>import React, { useState } from &#39;react&#39;;<br><br>function App() {<br>  const [isLoggedIn, setIsLoggedIn] = useState(false);<br><br>  function handleLoginClick() {<br>    setIsLoggedIn(true);<br>  }<br><br>  function handleLogoutClick() {<br>    setIsLoggedIn(false);<br>  }<br><br>  return (<br>    &lt;div&gt;<br>      {isLoggedIn ? (<br>        &lt;div&gt;<br>          &lt;p&gt;Welcome back!&lt;/p&gt;<br>          &lt;button onClick={handleLogoutClick}&gt;Logout&lt;/button&gt;<br>        &lt;/div&gt;<br>      ) : (<br>        &lt;div&gt;<br>          &lt;p&gt;You are not logged in.&lt;/p&gt;<br>          &lt;button onClick={handleLoginClick}&gt;Login&lt;/button&gt;<br>        &lt;/div&gt;<br>      )}<br>    &lt;/div&gt;<br>  );<br>}<br><br>export default App;</pre><p>Bu uygulamada, bir isLoggedIn adlı bir durum değişkeni kullanılmıştır. Bu değişken, kullanıcının oturum açıp açmadığını belirtir. isLoggedIn değişkeninin değeri true ise, kullanıcının oturum açık olduğu gösterilir ve &quot;Welcome back!&quot; yazısı ve &quot;Logout&quot; düğmesi görüntülenir. isLoggedIn değişkeninin değeri false ise, kullanıcının oturum açık olmadığı gösterilir ve &quot;You are not logged in.&quot; yazısı ve &quot;Login&quot; düğmesi görüntülenir.</p><p>Conditional rendering yapısı, if koşul yapısının yerine ? : ternary operatörü kullanılarak yapılmıştır. Bu yapı, isLoggedIn değişkeninin değerine göre iki farklı JSX döndürür: Birincisi, kullanıcı oturum açmışsa gösterilecek JSX ve ikincisi, kullanıcı oturum açmamışsa gösterilecek JSX.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Fse091S78YEoCwk1PAIXQw.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c3aaa95a837b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[React JS Nedir? Kurulum ve Örneklendirme]]></title>
            <link>https://medium.com/@canbartuklc/react-js-nedir-kurulum-ve-%C3%B6rneklendirme-f9ed04dceded?source=rss-7d4497f3a0ef------2</link>
            <guid isPermaLink="false">https://medium.com/p/f9ed04dceded</guid>
            <category><![CDATA[how-to-use]]></category>
            <category><![CDATA[reactjs]]></category>
            <dc:creator><![CDATA[Can Bartu Kılıç]]></dc:creator>
            <pubDate>Sun, 08 Jan 2023 14:06:34 GMT</pubDate>
            <atom:updated>2023-01-08T14:06:34.043Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/596/1*bdRKpL0qkOqArAEb1SGW_w.png" /></figure><p>React JS, Facebook tarafından geliştirilen bir JavaScript kütüphanesidir ve web uygulamalarının tasarımına yardımcı olur. React JS, 2011 yılında Facebook’ta kullanılmaya başlanmıştır ve 2013 yılında açık kaynak olarak yayınlanmıştır.</p><p>React JS, kullanıcı arayüzlerinin oluşturulmasında kullanılır ve veri değişikliklerine hızlı bir şekilde yanıt verir. Bu sayede, web uygulamalarının performansını arttırır ve kullanıcı deneyimini iyileştirir.</p><p>React JS, sadece Facebook’ta değil, aynı zamanda Instagram ve Airbnb gibi popüler uygulamalarda da kullanılmaktadır. Ayrıca, React JS ile oluşturulan uygulamaların kodlarının tekrar kullanılabilir olması nedeniyle, uygulama geliştirme sürecini hızlandırır ve kolaylaştırır.</p><p>React JS, SEO uyumlu bir şekilde kullanıldığında, arama motorları tarafından daha iyi indexlenir ve daha yüksek sıralamalar alır. Bu nedenle, web uygulamalarının tasarımında React JS’i kullanarak, SEO performansınızı da iyileştirebilirsiniz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/638/1*YYYUTlK5f2v_Mp5qIh0R4w.png" /></figure><h4>Nasıl Kurarım?</h4><p>React JS’i kurmak için ilk olarak, Node.js’in kurulu olduğundan emin olun. Daha sonra, aşağıdaki komutu kullanarak React JS’i kurabilirsiniz:</p><pre>npm install -g react</pre><p>Bu komut, React JS’i sisteminizde global olarak kurar. Bu sayede, sisteminizde herhangi bir yerden React JS’i kullanabilirsiniz.</p><p>Yeni bir React JS projesi oluşturmak için, aşağıdaki komutu kullanabilirsiniz:</p><pre>npx create-react-app my-app</pre><p>Bu komut, “my-app” adında bir React JS projesi oluşturur. Proje oluşturulduktan sonra, projenin klasörüne giderek aşağıdaki komutu çalıştırarak projeyi açabilirsiniz:</p><pre>cd my-app<br>npm start</pre><p>Bu komutlar, projenizi açar ve tarayıcıda otomatik olarak açılır. Bu sayede, projenizi anında görüntüleyebilir ve düzenleyebilirsiniz.</p><pre>import React from &#39;react&#39;;<br>import ReactDOM from &#39;react-dom&#39;;<br><br>class HelloWorld extends React.Component {<br>  render() {<br>    return &lt;h1&gt;Hello, World!&lt;/h1&gt;;<br>  }<br>}<br><br>ReactDOM.render(<br>  &lt;HelloWorld /&gt;,<br>  document.getElementById(&#39;root&#39;)<br>);</pre><p>Bu kodlar, “Hello, World!” yazısını web sayfasına gösterir. Bu örnekte, “HelloWorld” sınıfı React.Component sınıfından türetilmiştir ve “render” fonksiyonu sayesinde, “Hello, World!” yazısı web sayfasına gösterilmiştir.</p><p>React JS ile oluşturulan uygulamalar, “ReactDOM.render” fonksiyonu ile web sayfasına gösterilir. Bu fonksiyon, ilk parametresi olarak oluşturulan sınıfı ve ikinci parametresi olarak web sayfasındaki bir elemanı alır. Bu sayede, oluşturulan sınıfın çıktısı web sayfasına gösterilir.</p><p>Bu örnek, basit bir şekilde React JS’in nasıl kullanılabileceğini göstermektedir. Şimdi biraz daha farklı, derin bişey yapalım.</p><p>React JS ile bir de form oluşturmayı deneyelim:</p><pre>import React from &#39;react&#39;;<br><br>class Form extends React.Component {<br>  constructor(props) {<br>    super(props);<br>    this.state = {value: &#39;&#39;};<br>    this.handleChange = this.handleChange.bind(this);<br>    this.handleSubmit = this.handleSubmit.bind(this);<br>  }<br>  handleChange(event) {<br>    this.setState({value: event.target.value});<br>  }<br>  handleSubmit(event) {<br>    alert(&#39;A name was submitted: &#39; + this.state.value);<br>    event.preventDefault();<br>  }<br>  render() {<br>    return (<br>      &lt;form onSubmit={this.handleSubmit}&gt;<br>        &lt;label&gt;<br>          Name:<br>          &lt;input type=&quot;text&quot; value={this.state.value} onChange={this.handleChange} /&gt;<br>        &lt;/label&gt;<br>        &lt;input type=&quot;submit&quot; value=&quot;Submit&quot; /&gt;<br>      &lt;/form&gt;<br>    );<br>  }<br>}<br>export default Form;</pre><p>Bu kodlar, bir form oluşturur ve formun verileri şunu gönderir:</p><pre>handleSubmit(event) {<br>  event.preventDefault();<br>  fetch(&#39;/api/form-submit-url&#39;, {<br>    method: &#39;POST&#39;,<br>    body: JSON.stringify(this.state),<br>  });<br>}</pre><p>Bu örnekte, form verileri “fetch” fonksiyonu ile “/api/form-submit-url” adresine POST olarak gönderilmektedir. Bu adres, form verilerinin alınacağı bir sunucu adresidir.</p><p>React JS ile veri yüklemek için aşağıdaki kodları kullanabilirsiniz:</p><pre>import React from &#39;react&#39;;<br><br>class DataLoader extends React.Component {<br>  constructor(props) {<br>    super(props);<br>    this.state = {data: []};<br>  }<br><br>  componentDidMount() {<br>    fetch(&#39;/api/data&#39;)<br>      .then(res =&gt; res.json())<br>      .then(data =&gt; this.setState({ data }));<br>  }<br><br>  render() {<br>    return (<br>      &lt;ul&gt;<br>        {this.state.data.map(item =&gt; (<br>          &lt;li key={item.id}&gt;{item.name}&lt;/li&gt;<br>        ))}<br>      &lt;/ul&gt;<br>    );<br>  }<br>}<br><br>export default DataLoader;</pre><p>Bu kodlar, “/api/data” adresinden veri yükler ve bu verileri bir listede görüntüler. Verileri güncellemek için ise, aşağıdaki kodları kullanabilirsiniz:</p><pre>handleUpdate(id) {<br>  fetch(`/api/data/${id}`, {<br>    method: &#39;PUT&#39;,<br>    body: JSON.stringify({ name: &#39;Updated name&#39; }),<br>  })<br>    .then(res =&gt; res.json())<br>    .then(data =&gt; {<br>      const index = this.state.data.findIndex(item =&gt; item.id === id);<br>      this.setState({<br>        data: [<br>          ...this.state.data.slice(0, index),<br>          data,<br>          ...this.state.data.slice(index + 1),<br>        ],<br>      });<br>    });<br>}</pre><p>Bu kodlar, veri güncelleme işlemini gerçekleştirir ve güncellenen veriyi listede de günceller.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/894/1*7YSqHOnvzpiTZ6KTzdRQYQ.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f9ed04dceded" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What is AVAX? How Can I Make My Own Token?]]></title>
            <link>https://medium.com/@canbartuklc/what-is-avax-how-can-i-make-my-own-token-26faf5340743?source=rss-7d4497f3a0ef------2</link>
            <guid isPermaLink="false">https://medium.com/p/26faf5340743</guid>
            <category><![CDATA[tokenization]]></category>
            <category><![CDATA[howtomakemytoken]]></category>
            <category><![CDATA[token]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[avax]]></category>
            <dc:creator><![CDATA[Can Bartu Kılıç]]></dc:creator>
            <pubDate>Mon, 02 Jan 2023 20:50:45 GMT</pubDate>
            <atom:updated>2023-01-02T21:47:09.405Z</atom:updated>
            <content:encoded><![CDATA[<p>The mainnet of the Avalanche protocol was launched in September 2020.</p><p>The Avalanche network was developed by Emin Gün Sirer, Kevin Sekniqi ve Maofan “Ted” Yin, a leading venture company in the cryptocurrency market that works on various projects in the field of blockchain technology.</p><p>Avalanche is a platform that solves the challenges of blockchains and offers innovative solutions. For example, it has a high transaction speed and can handle an average of 4000 transactions per second. It also has a variety of different data structures, allowing developers to have a variety of design options.</p><p>Other important features of the Avalanche network include support for multiple chains, a multi-consensus mechanism, and low-cost transactions. These features make the Avalanche network stronger and more flexible than other blockchain platforms.</p><p>AVAX is a cryptocurrency that operates on the Avalanche blockchain platform. It can be used for a variety of applications, such as decentralized applications (DApps) and payment systems. AVAX was also designed to support a number of different data structures, so developers have a variety of design options.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/596/1*gSOxaVjwFuKHnfMQ9ghM9g.png" /><figcaption>Avax token image drawn with AI</figcaption></figure><p>AVAX has a high transaction speed and can process a large number of transactions at the same time. In addition, there are a number of different wallet options on the platform, so users can choose a wallet that meets their needs.</p><h4>What is the process of AVAX token emission?</h4><p>AVAX token emission is the process of issuing and releasing AVAX tokens into the market. This process is often referred to as an Initial Coin Offering (ICO) and AVAX tokens can be used for various applications. For example, AVAX tokens can be used to tokenize a company’s shares of stock, allowing them to be traded on the blockchain.</p><p>During AVAX token emission, the tokens are sold at a certain price. This price is usually measured in other cryptocurrencies (such as Bitcoin and Ethereum) and is determined based on market conditions. The total supply of AVAX tokens is also determined during the emission process. For example, the total supply of AVAX tokens during an ICO might be 100 million.</p><p>AVAX token emission is carried out in a secure and reliable manner using blockchain technology. The tokens are recorded on the blockchain and transactions are also carried out on the blockchain. This provides greater assurance of the security and accuracy of the tokens.</p><h4>What is the security of the Avalanche network?</h4><p>The Avalanche network operates securely using blockchain technology, which requires several different miners to confirm the accuracy of a transaction. This provides greater assurance of the accuracy of the transaction.</p><p>The Avalanche network also has features such as support for multiple chains and a multi-consensus mechanism that enhance its security. For example, the support for multiple chains means that if there is a disruption on one chain, it will not affect the others. This increases the security of the blockchain network.</p><p>Another important feature of the Avalanche network is low-cost transactions. This means that fees are not excessively high when transactions are carried out, which also enhances the security of the network.</p><p>In conclusion, the Avalanche network operates securely using blockchain technology. Its security is enhanced by features such as support for multiple chains, a multi-consensus mechanism, and low-cost transactions.</p><p>AVAX also places a emphasis on security measures. For example, in one security measure used on the platform, several different miners must confirm the accuracy of a transaction. This provides greater assurance of the accuracy of the transaction. So what is tokenization?</p><h4>Make my own Token!</h4><p>Tokenization is the process of converting data into a token that can be traded like a cryptocurrency. This process is often carried out using blockchain technology and tokens can be used for various applications. For example, you can tokenize a company’s shares of stock, allowing them to be traded on the blockchain.</p><p>To create a token, you will need to follow several steps:</p><ol><li>Determine the purpose of your token: What will your token be used for? Will it represent a company’s shares of stock? Will it be used as a utility token for a decentralized application (DApp)?</li><li>Choose a blockchain platform: There are several different blockchain platforms that you can use to create your token. Some popular options include Ethereum, Binance Smart Chain, and Polygon. You should choose a platform that meets your needs and is suitable for your use case.</li><li>Create a wallet: You will need to create a wallet on the blockchain platform you have chosen. This will be used to store your tokens and manage your transactions. There are several different wallet options available, such as software wallets and hardware wallets.</li><li>Write the code for your token: You will need to write the code for your token using a programming language such as Solidity (for Ethereum) or Binance Smart Chain’s BSCash. You can find sample code and tutorials online to help you get started.</li><li>Test and deploy your token: Before releasing your token to the public, it is important to thoroughly test it to ensure it is functioning as intended. Once you have tested your token and are satisfied with its performance, you can deploy it on the blockchain.</li></ol><p>Here is an example Solidity code that can be used to perform tokenization on the Ethereum blockchain:</p><pre>pragma solidity ^0.5.0;<br><br>import &quot;https://github.com/OpenZeppelin/openzeppelin-solidity/contracts/token/ERC20/SafeERC20.sol&quot;;<br><br>contract MyToken is SafeERC20 {<br>    string public name = &quot;My Token&quot;;<br>    string public symbol = &quot;MYT&quot;;<br>    uint8 public decimals = 18;<br>    uint public totalSupply;<br>    constructor(uint _totalSupply) public {<br>        totalSupply = _totalSupply;<br>        // You can determine the total supply of your token here<br>        // For example, you can create 10000 MYT tokens<br>    }<br><br><br>    // Function to be used for distributing tokens<br>    function distributeTokens(address _to, uint _value) public {<br>        require(_to != address(0));<br>        require(_value &gt; 0);<br><br><br>        // Decrease the total supply when distributing tokens<br>        totalSupply -= _value;<br>        _to.transfer(_value);<br>    }<br>}</pre><p>This code creates an ERC20 type token called “MyToken”. This token has data structure properties such as “name”, “symbol”, and “decimals”. It also includes a function called “distributeTokens”, which allows tokens to be distributed.</p><p>This example code includes the basic functions you may need when performing tokenization. However, you can add more functions and features to complete the tokenization process. For example, you may want to allow tokens to be transferred or show the total supply of tokens.</p><h4>Limited &amp; Unlimited Supply</h4><p>When creating a token, you can choose to have either a limited or unlimited supply of tokens.</p><p>A limited token supply means that there is a fixed number of tokens that will be created and no more tokens can be issued after that. This is useful if you want to create a finite number of tokens, such as if your token represents a company’s shares of stock.</p><p>An unlimited token supply means that there is no fixed limit on the number of tokens that can be issued. This means that new tokens can be created at any time. This is useful if you want to create a token that can be used as a utility token for a decentralized application (DApp).</p><p>To create a limited token supply, you can set a fixed total supply in the constructor function of your contract, like this:</p><pre>constructor(uint _totalSupply) public {<br>    totalSupply = _totalSupply;<br>}</pre><p>To create an unlimited token supply, you can omit the total supply parameter in the constructor function:</p><pre>constructor() public {<br>    // No total supply parameter is needed<br>}</pre><h4>Deploy NOW!!</h4><p>After you have created and tested your token, you can deploy it on the blockchain by calling the deploy function in your code. This will make your token available on the blockchain and anyone will be able to view and interact with it.</p><p>To view your token on the blockchain, you can use a blockchain explorer. A blockchain explorer is a tool that allows you to view the transactions and data on a blockchain. There are many different blockchain explorers available, and you can use the one that is specific to the blockchain platform you used to create your token.</p><p>For example, if you created your token on the Ethereum blockchain, you can use a wallet such as MyEtherWallet or MetaMask to deploy your token. You will need to have some Ether (ETH) in your wallet to pay for the transaction fees.</p><p>To deploy your token, you will need to send a transaction to the blockchain with the contract code of your token. This can be done using a tool such as Remix, which is a Solidity code editor and compiler.</p><p>Here is an example of how you can deploy your token using Remix:</p><ol><li>Open Remix and paste your token contract code into the editor.</li><li>Click the “Compile” button to compile your code.</li><li>Click the “Run” tab and select “Deploy” from the dropdown menu.</li><li>Select your wallet from the “Account” dropdown menu.</li><li>Enter any necessary parameters, such as the total supply of your token.</li><li>Click the “Deploy” button to send the transaction to the blockchain.</li></ol><p>After your token has been deployed, you can view it on the blockchain explorer of the platform you used to create it. For example, if you created your token on the Ethereum blockchain, you can view it on an Ethereum blockchain explorer such as Etherscan. You can also view your token balance in your wallet.</p><p>Here is an example of how you can view your token on Etherscan:</p><ol><li>Go to the Etherscan website.</li><li>Enter the address of your token contract in the search bar.</li><li>Click the “Search” button.</li><li>Click the “Contract” tab to view information about your token, such as its name, symbol, and total supply.</li><li>Click the “Token Tracker” tab to view your token balance and other information about your token.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/638/1*HiYUorZloFz5RLvl5TmSGw.png" /></figure><p>In conclusion, AVAX and tokenization are important applications of blockchain technology. AVAX is a high-speed and secure blockchain platform that can be used for a variety of applications. Tokenization is the process of converting data into tokens that can be traded like cryptocurrencies and these tokens can be used for various applications.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/596/1*g7BHScwVBQM_Ity5M5PbVA.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=26faf5340743" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>