<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Ayin Kim</title>
    <description>The latest articles on DEV Community by Ayin Kim (@ayinlight).</description>
    <link>https://dev.to/ayinlight</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1109360%2Fdfcd548c-c042-422f-8e4c-aee6527634bf.jpg</url>
      <title>DEV Community: Ayin Kim</title>
      <link>https://dev.to/ayinlight</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ayinlight"/>
    <language>en</language>
    <item>
      <title>Will I be safe to edit pg_hba.conf METHOD?</title>
      <dc:creator>Ayin Kim</dc:creator>
      <pubDate>Wed, 09 Aug 2023 08:46:16 +0000</pubDate>
      <link>https://dev.to/ayinlight/am-i-safe-to-edit-pghbaconf-method-5e2i</link>
      <guid>https://dev.to/ayinlight/am-i-safe-to-edit-pghbaconf-method-5e2i</guid>
      <description>&lt;p&gt;&lt;strong&gt;Background&lt;/strong&gt;&lt;br&gt;
All I wanted to do with pgadmin 4 and DBeaver were obvious: create a new server/DB.&lt;/p&gt;

&lt;p&gt;But when I fill the password form in process, it kept throwing an error message. &lt;/p&gt;

&lt;p&gt;FATAL: password authentication failed for user "postgres" (postgresql 11 with pgAdmin 4)&lt;/p&gt;

&lt;p&gt;Unfortunately, the error message was shown with alien language(literally, with symbolic charcater. This might be due to different OS language setting). So I had to guess.&lt;/p&gt;

&lt;p&gt;This must be authentication or password thing to consider. I even doubt my antivirus software, bitdefender. And reinstalled postgresql, pgadmin, even DBeaver itself.&lt;/p&gt;

&lt;p&gt;The problem persists even on 'safe mode' on Windows 11.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Debugging&lt;/strong&gt;&lt;br&gt;
And found a clue here. &lt;br&gt;
&lt;a href="https://stackoverflow.com/questions/55038942/fatal-password-authentication-failed-for-user-postgres-postgresql-11-with-pg" rel="noopener noreferrer"&gt;Changing the setting of postgresql must be the solution.&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Although the answer stated that 'once you changed that password you wish to create or change the DB, you need to revert it to initial Method.' But this only revived the error message I encountered.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# IPv4 local connections:
host    all             all             127.0.0.1/32            trust
# IPv6 local connections:
host    all             all             ::1/128                 trust
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Leaving METHOD as trust will not cause any problem if this is not your production purpose. But if you do use your DB on production level, then you must find alternative to figure out this authentication method problem.&lt;/p&gt;

&lt;p&gt;So I searched bit more,** [here]**(&lt;a href="https://www.postgresql.org/docs/current/auth-pg-hba-conf.html" rel="noopener noreferrer"&gt;https://www.postgresql.org/docs/current/auth-pg-hba-conf.html&lt;/a&gt;).&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Tip

To connect to a particular database, a user must not only pass the pg_hba.conf checks, but must have the CONNECT privilege for the database. If you wish to restrict which users can connect to which databases, it's usually easier to control this by granting/revoking CONNECT privilege than to put the rules in pg_hba.conf entries.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Go to that link and see &lt;strong&gt;Example 21.1. Example pg_hba.conf Entries&lt;/strong&gt;. That's what the document stated.&lt;/p&gt;

&lt;p&gt;Let's break down. According to ChatGPT:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
- Unix Domain Socket Connections: The line local all all scram-sha-256 means that all local Unix domain socket connections (not applicable on Windows) will use scram-sha-256 authentication. This requires a password encrypted with scram-sha-256.
- IPv4 Local Connections: The line host all all 127.0.0.1/32 trust means that all IPv4 connections from the localhost (127.0.0.1) will be allowed without a password (using the trust method).
- IPv6 Local Connections: The line host all all ::1/128 trust has the same effect as the IPv4 line but applies to IPv6 connections from the localhost.
- Replication Connections: The replication lines are set to use scram-sha-256, meaning that replication connections will require a password encrypted with scram-sha-256.
- With this configuration:
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;So, with this configuration of pg_hba.conf:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Local connections (from the same machine where PostgreSQL is running) will be able to connect without a password.&lt;/li&gt;
&lt;li&gt;Any connections from other machines will not be allowed, as there are no host lines for other addresses.&lt;/li&gt;
&lt;li&gt;Replication connections will require a scram-sha-256 encrypted password.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Conclusion&lt;/strong&gt;&lt;br&gt;
Only modify METHOD to &lt;strong&gt;trust&lt;/strong&gt; for the &lt;strong&gt;local connections&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;*&lt;em&gt;Disclaimer: *&lt;/em&gt;&lt;br&gt;
Just in case, I recommend you consult with a cyber security expert if you are applying this to your production one.&lt;/p&gt;

</description>
      <category>postgres</category>
      <category>crashnote</category>
    </item>
    <item>
      <title>Crash note - how to efficiently do the project?</title>
      <dc:creator>Ayin Kim</dc:creator>
      <pubDate>Thu, 03 Aug 2023 02:52:47 +0000</pubDate>
      <link>https://dev.to/ayinlight/crash-note-how-to-efficiently-do-the-project-1jgi</link>
      <guid>https://dev.to/ayinlight/crash-note-how-to-efficiently-do-the-project-1jgi</guid>
      <description>&lt;p&gt;You set a goal, and you started. First, you should plan for deadline and when to finish off some feature till 18th of this month. And when to complete the login feature etc etc.&lt;/p&gt;

&lt;p&gt;But in my experience, none of my neighbour senior software developers or engineers ever shown/told such know-how or manual.&lt;/p&gt;

&lt;p&gt;And I met a mentor, and thanks to him: this is how I defined my manual to do the project.&lt;/p&gt;

&lt;p&gt;Disclaimer: &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;This cannot be like an absolute answer. We all have a unique style.&lt;/li&gt;
&lt;li&gt;this may be full-stack version.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  When I start developing a project (Version August 2023):
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. Define a topic.
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;It will motivate you, and it is your ultimate goal.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  2. Scan/define list of features
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;This does not have to be tech related words to describe. In my case, I define a list of features (e.g., authentication (signin, signup, remove account).&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  3. Scan for tech lists to achieve its feature.
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;This step, I matched up with #2. 
For authentication:

&lt;a href="https://stackoverflow.com/questions/38635092/how-to-create-json-web-token-to-user-login-in-django-rest-framework" rel="noopener noreferrer"&gt;https://stackoverflow.com/questions/38635092/how-to-create-json-web-token-to-user-login-in-django-rest-framework&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  4. But choosing an 'easy to understand/apply on your project/code' is always good.
&lt;/h3&gt;

&lt;p&gt;Mistake I made. To make a decision at this point, this is the time to search for some similar examples. At least how someone used it. &lt;/p&gt;

&lt;p&gt;For example, &lt;code&gt;rest_framework_jwt.views.obtain_jwt_token&lt;/code&gt;.&lt;br&gt;
You got the keyword. First, search exactly how it shows. Then from the url I mentioned at #3, one of respondent emphasised 'token'. &lt;/p&gt;

&lt;p&gt;&lt;code&gt;rest_framework, jwt, token = User/Authentications&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Be patient: To make this, I should understand how token works and so how it allowed sign-in feature to work.&lt;/p&gt;

&lt;h3&gt;
  
  
  5. Searching for some similar instance that someone already did.
&lt;/h3&gt;

&lt;p&gt;Mistake I made. From non-CS degree's perspective(?), I still have some paranoia that 'copying is not good'. I often start on my own, and did not really searching for other's work. Or I could say: I had no clear insight like how/what to search for. &lt;/p&gt;

&lt;p&gt;Although you can do so, but still referring other's work first will protect you to get stuck at some point. &lt;/p&gt;

&lt;p&gt;One more thing, I will mention this at #9 but I recommend you save some 'easy to achieve blueprint' if some feature looks challenging.  I am not sure how other senior level software engineer would comment about this line, but still: I would have some insurance - just in case.&lt;/p&gt;

&lt;h3&gt;
  
  
  6. Use draw.io to organise your plan.
&lt;/h3&gt;

&lt;p&gt;Mistake I made. This is my thought but I would not start making this unless you have done the step #5. Once you have some vision to remind them of, then you may do this step.&lt;/p&gt;

&lt;h3&gt;
  
  
  7. Make a simple EDR.
&lt;/h3&gt;

&lt;p&gt;Mistake I made. This is the step I often felt hardness. But now, I can say: this should be the last step to make it in your planning. As drawing diagram was also to have some insight about the project (when it gets bigger scale), this clearly define you what to create.&lt;/p&gt;

&lt;p&gt;I always feared to make this. To do this, I believe I should do this when I am still planning on it. This doesn't look like the phase to make it once you finished the project.&lt;/p&gt;

&lt;h3&gt;
  
  
  8. Keep checking your progression speed with Kanban.
&lt;/h3&gt;

&lt;p&gt;This one does not have to be special or professional. But I used Kanban management tool on github's project tab. You may not believe 'do I need it?' but my answer is yes. This will help you much especially when the project scale or its length is larger or limited.&lt;/p&gt;

&lt;h3&gt;
  
  
  9. Try not take longer than a week.
&lt;/h3&gt;

&lt;p&gt;Mistake I made. In my case, I already feel exhausted when I get stuck at some point. But as a non-degree developer, I realised one fact. This software development as a business is more like time. &lt;/p&gt;

&lt;p&gt;Still, I strongly believe that I should NEVER give up the quality. In the end, it would work like karma. However, you should equip one confident blueprint to achieve a feature - this is for your worst-case scenario. You should at least have one insurance.&lt;/p&gt;

&lt;h3&gt;
  
  
  10. Finally, if you stuck longer than an hour, then searching for another example.
&lt;/h3&gt;

&lt;p&gt;As a junior level, I do not think I ever attempted using Rust language all of sudden to my project. It may look amazing but what is the point if you cannot make that feature in the end?&lt;/p&gt;

&lt;p&gt;I believe these are the most stable step-by-step manual.&lt;/p&gt;

&lt;h3&gt;
  
  
  Extra.
&lt;/h3&gt;

&lt;p&gt;Mistake I made. This is quite a personal issue but I finally decided 'I should have separate repositories for &lt;code&gt;client&lt;/code&gt; and &lt;code&gt;server&lt;/code&gt;'.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://security.stackexchange.com/questions/225455/should-repositories-with-server-code-and-client-code-be-separate" rel="noopener noreferrer"&gt;https://security.stackexchange.com/questions/225455/should-repositories-with-server-code-and-client-code-be-separate&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In my recommendation, just go for a split-version.&lt;/p&gt;

&lt;p&gt;For example, if you have both client and server folder in the same root folder - this may look stable. To describe, some people hate using styled-components and rather using a separate css file instead. Yes, this is where I made a mistake. I believed that 'not using a popular stack to achieve a feature' may look like I am staying behind the industry(?) standard.&lt;/p&gt;

&lt;p&gt;Not always. So now I always searching for 'if I do not use styled-components, will I be seen as out of date(...) developer'? At least for this client and server repository issue, the conclusion was 'it really depending on your preference'.&lt;/p&gt;

&lt;p&gt;It is really your choice. But personally, I would say just don't work on a single repository. Unless you do that for learning purpose, don't.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>beginners</category>
    </item>
    <item>
      <title>Personal guideline - docker &amp; django</title>
      <dc:creator>Ayin Kim</dc:creator>
      <pubDate>Wed, 05 Jul 2023 08:53:36 +0000</pubDate>
      <link>https://dev.to/ayinlight/personal-guideline-docker-django-59ia</link>
      <guid>https://dev.to/ayinlight/personal-guideline-docker-django-59ia</guid>
      <description>&lt;p&gt;&lt;strong&gt;Abstract.&lt;/strong&gt;&lt;br&gt;
This post will be updated whenever I have an update regarding the contents here. The post is written by junior level developer. So please, read at your own risk :)&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;[First guide found]&lt;/strong&gt;&lt;br&gt;
&lt;strong&gt;Dockerizing a python Django Web Application&lt;/strong&gt;&lt;br&gt;
&lt;a href="https://semaphoreci.com/community/tutorials/dockerizing-a-python-django-web-application" rel="noopener noreferrer"&gt;https://semaphoreci.com/community/tutorials/dockerizing-a-python-django-web-application&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;And here is template like.&lt;br&gt;
&lt;a href="https://github.com/agusmakmun/django-markdown-editor" rel="noopener noreferrer"&gt;https://github.com/agusmakmun/django-markdown-editor&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;What Docker is&lt;/li&gt;
&lt;li&gt;prerequisite to use the template above (forking)&lt;/li&gt;
&lt;li&gt;Create a Python virtual environment&lt;/li&gt;
&lt;li&gt;Gunicorn(HTTP server) and Martor (markdown plugin)&lt;/li&gt;
&lt;li&gt;Then, makemigrations, migrate etc.&lt;/li&gt;
&lt;li&gt;Testing code (TDD)&lt;/li&gt;
&lt;li&gt;Static vs Dynamic Files&lt;/li&gt;
&lt;li&gt;About nature of Django explanation. Know the difference.&lt;/li&gt;
&lt;li&gt;Style Checker (Flake8)&lt;/li&gt;
&lt;li&gt;Additional integration, github
Note: you may manually setup this part from docker hub and github (settings, Secrets, Actions Secrets -&amp;gt; Repo secrets). This part is one of important setup with docker.&lt;/li&gt;
&lt;li&gt;Now Docker. Writing the Dockerfile&lt;/li&gt;
&lt;li&gt;Building and running the container.&lt;/li&gt;
&lt;li&gt;CI/CD (achieve this with github actions as well)&lt;/li&gt;
&lt;li&gt;About dockerizing pipeline&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Comment:&lt;br&gt;
Some part offers advanced platform service to use. This guide does not have an example of setting up github actions.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;[Second guide found] - docker &amp;amp; github actions&lt;/strong&gt;&lt;br&gt;
&lt;a href="https://stackoverflow.com/questions/57549439/how-do-i-use-docker-with-github-actions" rel="noopener noreferrer"&gt;https://stackoverflow.com/questions/57549439/how-do-i-use-docker-with-github-actions&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;To setup Github Actions in your project:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Set up checks.yml
The contents of code in this file will be shown in Github Actions once it is pushed in git via your VSCode.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;Django - Official Documentation&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;a href="https://docs.djangoproject.com/en/4.2/topics/testing/overview/" rel="noopener noreferrer"&gt;https://docs.djangoproject.com/en/4.2/topics/testing/overview/&lt;/a&gt;
TDD guideline. How to use django.test and TestCase in a nutshell.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;1.04&lt;br&gt;
&lt;a href="https://docs.djangoproject.com/en/4.2/ref/models/querysets/" rel="noopener noreferrer"&gt;https://docs.djangoproject.com/en/4.2/ref/models/querysets/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;1.05&lt;br&gt;
&lt;a href="https://docs.djangoproject.com/en/4.2/topics/testing/tools/#django.test.Client.post" rel="noopener noreferrer"&gt;https://docs.djangoproject.com/en/4.2/topics/testing/tools/#django.test.Client.post&lt;/a&gt;&lt;br&gt;
Testing tools. Recommended for any django user if you need: &lt;br&gt;
(1) simulate GET and POST requests on a URL and observer response &lt;br&gt;
(2) check the URL and all chain of redirects occur &lt;br&gt;
(3) Test that a given request is rendered by django template (with context), which contains certain value.&lt;br&gt;
There is API that only has access to the HTTP methods (e.g. RequestFactory)&lt;/p&gt;

&lt;p&gt;1.1 &lt;a href="https://docs.djangoproject.com/en/4.2/topics/testing/advanced/#testing-reusable-applications" rel="noopener noreferrer"&gt;https://docs.djangoproject.com/en/4.2/topics/testing/advanced/#testing-reusable-applications&lt;/a&gt;&lt;br&gt;
Unlike the description in url, this is must-read if you plan to test out each feature you were going to build.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://docs.djangoproject.com/en/4.2/intro/overview/" rel="noopener noreferrer"&gt;https://docs.djangoproject.com/en/4.2/intro/overview/&lt;/a&gt;&lt;br&gt;
Recommended for initial setup.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://docs.djangoproject.com/en/4.2/topics/auth/" rel="noopener noreferrer"&gt;https://docs.djangoproject.com/en/4.2/topics/auth/&lt;/a&gt;&lt;br&gt;
Authentication. (users, permissions, group, config password in hash, forms and view for logging in or blocking content.) Literally all about user account feature. Try navigating other links on this page - those will guide you how to achieve your plan.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;3.1 &lt;a href="https://docs.djangoproject.com/en/4.2/topics/auth/default/#user-objects" rel="noopener noreferrer"&gt;https://docs.djangoproject.com/en/4.2/topics/auth/default/#user-objects&lt;/a&gt;&lt;br&gt;
A related link from authentication : username, password, email, first_name, last_name. And you know what these are.&lt;/p&gt;

&lt;p&gt;3.2 &lt;br&gt;
&lt;a href="https://docs.djangoproject.com/en/4.2/ref/contrib/auth/#django.contrib.auth.models.User" rel="noopener noreferrer"&gt;https://docs.djangoproject.com/en/4.2/ref/contrib/auth/#django.contrib.auth.models.User&lt;/a&gt;&lt;br&gt;
An API reference, for authentication part.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Learning Svelte - Intro</title>
      <dc:creator>Ayin Kim</dc:creator>
      <pubDate>Sun, 02 Jul 2023 07:41:27 +0000</pubDate>
      <link>https://dev.to/ayinlight/note-of-svelte-intro-15pj</link>
      <guid>https://dev.to/ayinlight/note-of-svelte-intro-15pj</guid>
      <description>&lt;p&gt;[This is my learning log. Some of the contents here may be incorrect.]&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Abstract&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Svelte is a **compiler **not a framework.&lt;/li&gt;
&lt;li&gt;It compiles the code for production at build time into a single, vanilla, JS bundle.&lt;/li&gt;
&lt;li&gt;No extra scripts or libraries are shipped to production.&lt;/li&gt;
&lt;li&gt;Often results in a faster running website.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Prerequisite&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;knowledge of HTML&amp;amp;CSS, JS&lt;/li&gt;
&lt;li&gt;Node.js v8+ must be installed.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Guide Reference&lt;/strong&gt;&lt;br&gt;
&lt;a href="https://learn.svelte.dev/tutorial/welcome-to-svelte" rel="noopener noreferrer"&gt;https://learn.svelte.dev/tutorial/welcome-to-svelte&lt;/a&gt;&lt;br&gt;
&lt;a href="https://www.youtube.com/watch?v=UGBJHYpHPvA" rel="noopener noreferrer"&gt;https://www.youtube.com/watch?v=UGBJHYpHPvA&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Note 1&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;just installed svelte template.&lt;/li&gt;
&lt;li&gt;npm run dev&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;As a previous react user, this feels like more closer to Vanilla JS + styled components. Somehow it offers component feature. Script tag may only be used once per file. HTML base compiler like django's template? This seems intuitive.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Note 2&lt;/strong&gt;&lt;br&gt;
Component✅ (next post topic)&lt;br&gt;
state management✅&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://blog.devgenius.io/state-management-in-svelte-b045213c9138" rel="noopener noreferrer"&gt;https://blog.devgenius.io/state-management-in-svelte-b045213c9138&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Looks like simpler than react.js. Called Svelte Context API and Svelte stores.&lt;/p&gt;

&lt;p&gt;May use context here to let it available anywhere within an app.&lt;/p&gt;

&lt;p&gt;`&lt;/p&gt;

&lt;p&gt;import { setContext } from 'svelte'&lt;br&gt;
  const thisObject = {}&lt;br&gt;
  setContext('thisKey', thisObject)&lt;/p&gt;

&lt;p&gt;`&lt;br&gt;
To allow thisKey available in a different component within the app, import it by using the getContext function.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;&amp;lt;script&amp;gt;&lt;br&gt;
  import { getContext } from 'svelte'&lt;br&gt;
  const thisObject = getContext('thisKey')&lt;br&gt;
&amp;lt;/script&amp;gt;&lt;br&gt;
&lt;/code&gt;&lt;br&gt;
And here may be the spot. Svelte handles state management via stores(an objects that hold a value and can let developer know when the value changes). There are 2 kinds of stores : '(1)writable' and '(2)readable' stores.&lt;/p&gt;

&lt;p&gt;`&lt;/p&gt;

&lt;p&gt;import writable from 'svelte/store'&lt;br&gt;
  export const city writable('millennium school club')&lt;/p&gt;

&lt;p&gt;`&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;URLs of state management in svelte&lt;/strong&gt;&lt;br&gt;
&lt;a href="https://blog.logrocket.com/application-state-management-svelte/" rel="noopener noreferrer"&gt;https://blog.logrocket.com/application-state-management-svelte/&lt;/a&gt;&lt;br&gt;
&lt;a href="https://www.koderhq.com/tutorial/svelte/store-state-management/" rel="noopener noreferrer"&gt;https://www.koderhq.com/tutorial/svelte/store-state-management/&lt;/a&gt;&lt;br&gt;
&lt;a href="https://auth0.com/blog/state-management-in-svelte-applications/" rel="noopener noreferrer"&gt;https://auth0.com/blog/state-management-in-svelte-applications/&lt;/a&gt;&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>svelte</category>
    </item>
  </channel>
</rss>
