DEV Community

vishal.codes
vishal.codes

Posted on

2

Day 31/366

πŸš€ Today's Learning:

🌟 DSA

  • Bubble Sort
  • Insertion Sort

🌟 Dev

  • ReactJS vs React Native

πŸ” Some Key Highlights:

DSA

Bubble sort is a simple sorting algorithm that iterates through a list, compares adjacent elements, and swaps them if they are in the wrong order. This process continues until the list is sorted. It gets its name because smaller elements "bubble" to the top of the list with each iteration, much like bubbles rising in water. The algorithm repeats this process for each element in the list until no more swaps are needed, indicating that the list is sorted.

Insertion sort is another elementary sorting algorithm that builds the final sorted list one element at a time. It starts with a sorted sub-list of one element and then repeatedly picks up the next unsorted element and inserts it into the correct position in the sorted sub-list. This insertion process continues until all elements are in the correct order. It is like sorting a hand of cards, where you pick up each card and insert it into its correct position among the already sorted cards.

DEV

React is a JavaScript library primarily used for building user interfaces for web applications. It allows developers to create reusable UI components and efficiently manage the state of these components. React uses a virtual DOM to improve performance by updating only the necessary parts of the actual DOM when changes occur. It's commonly used in web development to create dynamic and interactive user interfaces.

On the other hand, React Native is a framework developed by Facebook that allows developers to build mobile applications using JavaScript and React. While React is focused on web development, React Native extends its capabilities to mobile app development. It allows developers to write code once and deploy it across multiple platforms, including iOS and Android, providing a more efficient and cost-effective solution for building mobile apps compared to developing separate native apps for each platform. React Native achieves this by translating React components into native UI components, ensuring a native look and feel for the app on each platform.

#100daysofcode #1percentplusplus #coding #dsa

Heroku

Simplify your DevOps and maximize your time.

Since 2007, Heroku has been the go-to platform for developers as it monitors uptime, performance, and infrastructure concerns, allowing you to focus on writing code.

Learn More

Top comments (0)

Sentry image

See why 4M developers consider Sentry, β€œnot bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

πŸ‘‹ Kindness is contagious

Please leave a ❀️ or a friendly comment on this post if you found it helpful!

Okay