<?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: ekholil</title>
    <description>The latest articles on DEV Community by ekholil (@ekholil).</description>
    <link>https://dev.to/ekholil</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%2F625744%2F7720d06b-9186-4582-bf70-7aff66e6a2d7.png</url>
      <title>DEV Community: ekholil</title>
      <link>https://dev.to/ekholil</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ekholil"/>
    <language>en</language>
    <item>
      <title>Mysql database overview</title>
      <dc:creator>ekholil</dc:creator>
      <pubDate>Tue, 28 Dec 2021 04:47:12 +0000</pubDate>
      <link>https://dev.to/ekholil/mysql-database-overview-26i2</link>
      <guid>https://dev.to/ekholil/mysql-database-overview-26i2</guid>
      <description>&lt;p&gt;MySQL is an open-source relational database management system, typically used with PHP. But it can also be used with python, node and other languages. It is a database which is used for web based applications. It can be used in both small and large applications. Mysql called relational database management system (RDBMS)&lt;/p&gt;

&lt;p&gt;Some features of mysql &lt;br&gt;
It is fast and reliable. &lt;br&gt;
It supports standard sql(structured query language)&lt;br&gt;
Mysql is free to download and use.&lt;br&gt;
Mysql is fully multithreaded. &lt;br&gt;
Mysql works on different platforms.&lt;br&gt;
It provides a transactional and non-transactional storage engine.&lt;br&gt;
It can handle large applications.&lt;/p&gt;

&lt;p&gt;Who uses mysql : &lt;br&gt;
Mysql is the most popular web based database. Mysql used by&lt;br&gt;
Large websites such as facebook, google, youtube, flickr etc.&lt;br&gt;
Content management systems such as Wordpress, Drupal, Jumla etc.&lt;br&gt;
A large number of web developers worldwide who uses mysql&lt;/p&gt;

&lt;p&gt;How to use mysql:&lt;/p&gt;

&lt;p&gt;If we want to use mysql it is necessary for us to have it installed whether it be on our local system or on a remote web host. However in order to connect to either we must firstly have an interface to use.&lt;br&gt;
First we need to download mysql from this site :  &lt;a href="http://dev.mysql.com/downloads/"&gt;http://dev.mysql.com/downloads/&lt;/a&gt;.&lt;br&gt;
After downloading mysql from their website we need to install it properly. The Installation process is simple. &lt;br&gt;
Connecting to database :&lt;br&gt;
After completing installation we need to connect with our database. For connect with mysql database open command prompt and write this following &lt;br&gt;
Mysql [host] [port] username password database name&lt;br&gt;
If everything is ok then mysql database will be connected. So explore the database and learn this amazing database so you can use this database in your dream project. &lt;/p&gt;

</description>
    </item>
    <item>
      <title>React Context API</title>
      <dc:creator>ekholil</dc:creator>
      <pubDate>Tue, 28 Dec 2021 03:46:55 +0000</pubDate>
      <link>https://dev.to/ekholil/react-context-api-i7k</link>
      <guid>https://dev.to/ekholil/react-context-api-i7k</guid>
      <description>&lt;p&gt;What is context api?&lt;/p&gt;

&lt;p&gt;Reactjs is a powerful library for making user interface easily. It is the most popular JS library in this moment. When we make an application we have to work with many states or data. Context api allows us to pass down and use data or state whatever component we need in our react app without props. In other words, react context api allows us to share data across our components easily. React Context api provide us to manage complex state, nested state in a simpler and more effective way than using props. &lt;/p&gt;

&lt;p&gt;Why use react context api?&lt;/p&gt;

&lt;p&gt;A real world react application is going to need to share data or state between different components at different levels of react js hierarchy. They also need to share functions to execute different actions based on user interaction. &lt;/p&gt;

&lt;p&gt;There are three main ways to achieve this : &lt;br&gt;
Props: store state directly in the common ancestor component and pass it down as many components it needed, as props, until it reaches it target components. This is the easiest and simple way to share state or data between components. But the problem is when target component is very deep or very many then it is become so complex to pass down state through props. So it is not the proper war to share state in big or deep components.&lt;br&gt;
Library: We can use a state management library such as Redux or Mobx. But this library comes with complexity and an extra learning curve that would not be suitable for some projects. This might be a good thing depending on project requirements. But the role is always to try to do the simplest thing first. &lt;br&gt;
Context API: React context api store the state in a common ancestor component(Provider component) and access it from as many components as needed. Which can be nested at any depth under this ancestor. This is almost same as the props solution but difference is here any component can access the state in any context without props drilling. &lt;/p&gt;

&lt;p&gt;How to use React Context API :&lt;/p&gt;

&lt;p&gt;There are four steps to use context api in a react application. &lt;br&gt;
Create context using createContext() method. &lt;br&gt;
Wrap the ancestor component with created context using provider. &lt;br&gt;
Put any value or state you like to share on context provider using value props.&lt;br&gt;
Read this value from any component using context consumer&lt;/p&gt;

&lt;p&gt;Conclusion&lt;br&gt;
React context api makes our life easy. Now with the help of context api we can easily make react application. &lt;/p&gt;

</description>
      <category>react</category>
    </item>
    <item>
      <title>CSS Position Property</title>
      <dc:creator>ekholil</dc:creator>
      <pubDate>Sun, 26 Dec 2021 05:54:12 +0000</pubDate>
      <link>https://dev.to/ekholil/css-position-property-4cn1</link>
      <guid>https://dev.to/ekholil/css-position-property-4cn1</guid>
      <description>&lt;p&gt;Position property is one of the most important things in css. To make an awesome layout we need to position our element properly. In this case, with the help of position property we can easily place our elements everywhere. Position property specifies the type of the position method for an element. It can be static, relative, fixed, absolute and sticky. &lt;br&gt;
We will discuss each items clearly so that we can understand this &lt;/p&gt;

&lt;p&gt;Position Static:&lt;br&gt;&lt;br&gt;
Html elements are by default positioned statically. Static positioned elements do not support top, bottom, right &amp;amp; and left properties. &lt;br&gt;
An element positioned with static is not positioned in special way. It is positioned with documents normal flow. &lt;/p&gt;

&lt;p&gt;Position relative: &lt;br&gt;
When we set an elements position relative then it positioned relative to its normal position. Setting up a relatively positioned elements top, bottom, left and right adjust its position from normal position. Other elements do not adjust to fill its gaps. &lt;/p&gt;

&lt;p&gt;Position fixed: &lt;br&gt;
An element with position fixed always stays in the same place relative to its viewport. It always stays in the same place even when the page scrolls. We use top, bottom, right and left properties to position the element. A fixed element does not leave a gap in the page where it would normally have been located.&lt;/p&gt;

&lt;p&gt;Position absolute: &lt;br&gt;
When we specify an element's position with position: fixed; then it is positioned relative to the nearest positioned ancestor. If the element doesn’t have any ancestor then it is positioned relative to the document body. Position relative and position absolute are almost the same. Only difference is relative positioned relative to body and absolute positioned relative to its nearest ancestor. &lt;/p&gt;

&lt;p&gt;Position Sticky: &lt;br&gt;
An element positioned with sticky positioned based on users scroll. It is the combination of position:fixed and position relative depend on scroll position. &lt;/p&gt;

</description>
      <category>css</category>
      <category>webdev</category>
      <category>design</category>
    </item>
  </channel>
</rss>
