<?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: evenmik</title>
    <description>The latest articles on DEV Community by evenmik (@evenmik).</description>
    <link>https://dev.to/evenmik</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%2F313625%2Fb6d2023d-2d44-4ea4-91e1-d4bfec4ec305.jpg</url>
      <title>DEV Community: evenmik</title>
      <link>https://dev.to/evenmik</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/evenmik"/>
    <language>en</language>
    <item>
      <title>How to handle onclick events in react.js? (With Examples)</title>
      <dc:creator>evenmik</dc:creator>
      <pubDate>Wed, 07 Oct 2020 03:55:59 +0000</pubDate>
      <link>https://dev.to/evenmik/how-to-handle-onclick-events-in-react-js-with-examples-5h0</link>
      <guid>https://dev.to/evenmik/how-to-handle-onclick-events-in-react-js-with-examples-5h0</guid>
      <description>&lt;h2&gt;What is the React onClick Event Handler?&lt;/h2&gt;

&lt;p&gt;In React, the onClick handler enables you to call a function and perform an action when an element is clicked. onClick is the cornerstone of any React app.&lt;/p&gt;

&lt;p&gt;Event handlers are made to identify what action is to be taken whenever an event is shot. This could be a mouse click or a change in a text input. In this post, we will look at a few examples of React onClick Event Handler.&lt;/p&gt;

&lt;p&gt;In React apps, events are written in the CamelCase format, which means the onclick event will be written as onClick in a React app.&lt;/p&gt;

&lt;p&gt;React event handlers are written inside curly braces:&lt;/p&gt;

&lt;p&gt;&lt;i&gt;onClick={shoot}  instead of onClick="shoot()".&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;React Example-&lt;/p&gt;

&lt;p&gt;&lt;i&gt;Take the Shot! &lt;/i&gt;&lt;/p&gt;

&lt;p&gt;To prevent the default link behavior of opening a new page, you can write:&lt;br&gt;
&lt;i&gt;&lt;br&gt;
function ActionLink() {&lt;br&gt;
  function handleClick(e) {&lt;br&gt;
    e.preventDefault();&lt;br&gt;
    console.log('The link was clicked.');&lt;br&gt;
  }&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;return (&lt;br&gt;
    &lt;br&gt;
      Click me&lt;br&gt;
    &lt;br&gt;
  );&lt;br&gt;
}&lt;br&gt;
&lt;br&gt;
Using the inline function to pass in additional arguments to a function-&lt;br&gt;
&lt;i&gt;&lt;br&gt;
import React from 'react';&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;function App() {&lt;br&gt;
  return (&lt;br&gt;
     alert('hello'))}&amp;gt;&lt;br&gt;
      Click me!&lt;br&gt;
    &lt;br&gt;
  );&lt;br&gt;
}&lt;/p&gt;

&lt;p&gt;export default App;&lt;/p&gt;

&lt;p&gt;Event handlers recognize what action needs to be taken when an event occurs. The onClick event is used to listen for click events on DOM elements. I have given multiple &lt;a href="https://codersera.com/blog/react-onclick-event-handling/"&gt;React onClick Event Handling&lt;/a&gt; examples after which things might be a little clearer to you.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>What makes python a better choice for machine learning?</title>
      <dc:creator>evenmik</dc:creator>
      <pubDate>Thu, 01 Oct 2020 05:39:31 +0000</pubDate>
      <link>https://dev.to/evenmik/what-makes-python-a-better-choice-for-machine-learning-1m24</link>
      <guid>https://dev.to/evenmik/what-makes-python-a-better-choice-for-machine-learning-1m24</guid>
      <description>&lt;p&gt;AI projects are distinct from conventional projects in technology. The variations arise in the technology stack, the skills needed for an AI-based project, and the need for in-depth analysis. You can use a programming language that is stable, scalable and has resources available to implement your AI goals. All of this is offered by Python, the sole reason we see an abundance of Python AI projects. &lt;/p&gt;

&lt;p&gt;Python allows developers to be efficient and optimistic about the applications they're developing, from development to deployment and maintenance. Ease and reliability, exposure to excellent libraries and frameworks for AI and machine learning (ML), accessibility, platform independence, and a wide community are advantages that make Python the perfect match for machine learning projects. These contribute to the language's overall success.&lt;/p&gt;

&lt;h2&gt;Why is it a top choice?&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Conciseness &lt;/li&gt; 
The code that is written in languages like Python that are dynamically typed and seem to be shorter than code written in other conventional languages. This implies that is easier to fit the algorithm into your mind and really grasp what it's doing. 

&lt;li&gt;Simple to read &lt;/li&gt;
At times, Python has been referred to as' executable pseudocode.' While this is clearly an exaggeration, it makes the point that Python code can be read by most skilled programmers and comprehend what it is meant to do. 

&lt;li&gt;Easily extensible &lt;/li&gt;
Python offers access to many libraries, including those for mathematical functions, XML (Extensible Markup Language) parsing, and downloading web pages.  The non-standard libraries used in the book are free and quick to download, install, and use, such as the RSS parser and the SQLite interface. 

&lt;li&gt;Interactive &lt;/li&gt;
Python can directly run programs from the command line, and it also has an interactive prompt that allows you to interactively type function calls, construct objects, and test packages. 

&lt;li&gt;Multiparadigm&lt;/li&gt;
Object-oriented, procedural, and functional programming types are provided by Python. Machine-learning algorithms vary widely, and a particular framework can be used as the clearest way to apply one. Often it is beneficial to pass functions as parameters and other times to capture an object's state. 

&lt;/ol&gt;

&lt;h2&gt;Check This Article&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://codersera.com/blog/5-types-of-machine-learning-algorithms-you-should-know/"&gt;5 Types of Machine Learning Algorithms You Should Know&lt;/a&gt;&lt;/p&gt;

</description>
      <category>python</category>
      <category>machinelearning</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Is Python slow in comparison to use cases of other languages?</title>
      <dc:creator>evenmik</dc:creator>
      <pubDate>Wed, 30 Sep 2020 09:53:40 +0000</pubDate>
      <link>https://dev.to/evenmik/is-python-slow-in-comparison-to-use-cases-of-other-languages-39ld</link>
      <guid>https://dev.to/evenmik/is-python-slow-in-comparison-to-use-cases-of-other-languages-39ld</guid>
      <description>&lt;p&gt;A variety of studies have indicated that Python is slower than other commonly used programming languages, including Java and C++. Instead of enhancing code execution speed, many programmers substitute the default runtime of Python with a custom runtime. &lt;/p&gt;

&lt;p&gt;To improve the performance and speed of the application, some developers also rewrite existing Python code. But the usage statistics posted on different websites show that Python is more successful than PHP, Ruby, JavaScript, and Go at the moment. There are also a number of reasons why, considering it being so slow, developers prefer Python to many other programming languages.&lt;/p&gt;

&lt;h2&gt;Why is it so popular?&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Concise and Readable Application Code&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Multiple Popular Programming Paradigms&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;High-Level Programming Language&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;No Code Recompilation&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Rapid Application Prototyping&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;A Robust Standard Library&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;A Variety of Frameworks and Tools&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Build Complex Applications&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;A Component of LAMP Stack&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Test-Driven Development&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Reduce Project Overheads&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Python is highly flexible&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;In terms of benchmarks and efficiency, Python might be slow in comparison to C/C++, but its processors and computers are as solid as ever in terms of computing power and the performance gap from C/C++ won't matter that much. Python, however, is a high-level programming language that is often used around the world. It mainly has more in-built functions that can decrease a programmer's effort. &lt;/p&gt;

&lt;p&gt;As compared to some other languages, the code lines are much shorter. It is commonly used to solve mathematical problems, which is why it is used in artificial intelligence and machine learning. Python has better precision and is more productive to use. That's why more people are trying to get pythons for a better future.  &lt;/p&gt;

&lt;h2&gt;Check the Link For Some of the Best Code Editor For python&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://codersera.com/blog/best-python-ides-and-code-editors/"&gt;https://codersera.com/blog/best-python-ides-and-code-editors/&lt;/a&gt;&lt;br&gt;
&lt;a href="https://www.softwaretestinghelp.com/python-ide-code-editors/"&gt;https://www.softwaretestinghelp.com/python-ide-code-editors/&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>What Makes Ruby on Rails A Good Choice In 2020?</title>
      <dc:creator>evenmik</dc:creator>
      <pubDate>Tue, 29 Sep 2020 04:29:30 +0000</pubDate>
      <link>https://dev.to/evenmik/what-makes-ruby-on-rails-a-good-choice-in-2020-39fb</link>
      <guid>https://dev.to/evenmik/what-makes-ruby-on-rails-a-good-choice-in-2020-39fb</guid>
      <description>&lt;p&gt;Ruby on Rails is being used by some of the top-known web applications such as Github, Airbnb, Basecamp, Slideshare, etc. It's very quick to get started with Ruby on Rails and there's no trouble at all. There is at least a prospectus dedicated to Ruby &amp;amp; Ruby on Rails for any software development business. &lt;/p&gt;

&lt;p&gt;However, as any technology encounters many challenges over time, Ruby on Rails has also faced some heavy criticism and competition from new technologies in recent years. As a consequence, many modern-day developers doubt its usefulness in the future. But it can prove to be a good choice in 2020, here’s why:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Ruby on Rails is a programming language that allows rails to run the code or components as a platform in accordance with the requirements. In addition, it is open source and can be accessed at no cost. &lt;/li&gt;

&lt;li&gt;Due to its ease of access and reliability, Ruby on rails is the most established and esteemed platform so far and is always a priority among developers. &lt;/li&gt;

&lt;li&gt;Ruby on Rails is a structured language, and if you already have any knowledge of JavaScript, it's super easy to understand. It's a lot simpler than other high-level languages, like C # or Java. Its object-oriented approach makes it cooler than other business technology, and the first technique of the client is Ruby on Rails. &lt;/li&gt;

&lt;li&gt;Ruby on Rails is extremely stable and efficient as it needs to be combined with other languages whenever we need it. It offers different additional features that a developer can depend on easily.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;It also offers:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Accelerated development with optimized cost&lt;/li&gt;
&lt;li&gt;Efficient options for start-ups and demonstrating proof of concept&lt;/li&gt;
&lt;li&gt;Merits in the e-Commerce domain&lt;/li&gt;
&lt;li&gt;Additional security measures&lt;/li&gt;
&lt;li&gt;Active and effective community support&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;In &lt;i&gt;conclusion&lt;/i&gt;, if you want to venture into programming, you can certainly experience how Ruby &amp;amp; Ruby on Rails will speed up the application and improve it. Ruby will provide you with the basis of Rapid Application Development (RAD) as an open-source object-oriented programming language, which will obviously position you in the field of web development in 2020.&lt;/p&gt;

</description>
      <category>ruby</category>
      <category>webdev</category>
      <category>beginners</category>
    </item>
    <item>
      <title>React vs Vue: Which one is better in terms of Performance &amp; Memory Consumption?</title>
      <dc:creator>evenmik</dc:creator>
      <pubDate>Mon, 28 Sep 2020 08:34:53 +0000</pubDate>
      <link>https://dev.to/evenmik/react-vs-vue-which-one-is-better-in-terms-of-performance-memory-consumption-2cfg</link>
      <guid>https://dev.to/evenmik/react-vs-vue-which-one-is-better-in-terms-of-performance-memory-consumption-2cfg</guid>
      <description>&lt;p&gt;React was developed in order to address specific Facebook needs, and remains to be handled by the tech firm. There were certain doubts about the license to React in the past; currently, however, the tool operates under the MIT License, making it open source. The corporate backing of React, particularly from such a significant figure, signifies stability in the long run and indicates that React will continue to be developed with long-term support.&lt;/p&gt;

&lt;p&gt;Vue.js is an open-source framework for building complex UI. It enhances a lot of concepts. Vue is marketed as a progressive platform that means you can migrate your existing projects one feature at a time. Vue can go between a lightweight library and a full-fledged system, depending on your needs.&lt;/p&gt;


&lt;h2&gt; Performance &amp;amp; Memory Consumption

&lt;/h2&gt;
&lt;p&gt;There are two key metrics that decide an app's speed: start-up time and runtime performance. &lt;/p&gt;

&lt;p&gt;Both libraries have tiny bundle sizes (31 KB for Vue/84.4 KB uncompressed and 32.5/101.2 KB for React) that speed up the initial load. &lt;/p&gt;

&lt;p&gt;You check this benchmark for runtime performance, which compares startup times, allocation of memory, and the duration of operations for popular JS frameworks and libraries. &lt;/p&gt;

&lt;p&gt;The efficiency of both libraries is outstanding. Vue is significantly better in memory allocation and startup times while React is a tad faster at runtime. &lt;/p&gt;

&lt;p&gt;You shouldn't judge a library's performance based on benchmarks alone. The speed may differ considerably based on application size and your optimization efforts.&lt;/p&gt;

&lt;p&gt;Both libraries have:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;server-side rendering (SSR)&lt;/li&gt;
&lt;li&gt;tree shaking&lt;/li&gt;
&lt;li&gt;bundling&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;They even use a virtual DOM. Since it is a resource-intensive process to change the real DOM, the modifications are first applied to the virtual DOM. &lt;/p&gt;

&lt;p&gt;The modification of a component state in React will re-render all of its child components. &lt;/p&gt;

&lt;p&gt;You can use PureComponent, shouldComponentUpdate or immutable data structures to boost efficiency and performance. However, this technique may trigger inconsistencies in the DOM state in those rare instances where the render performance for child components is not managed by the component's props. &lt;/p&gt;

&lt;p&gt;On the other hand, Vue monitors dependencies that prevent unwanted child component renderings.&lt;/p&gt;

&lt;p&gt;As a beginner, React.js project development may seem challenging, but one can simplify the whole process by breaking down an application into smaller components. Try to focus on building one feature at a time, and keep connecting the dots as you move forward into the intricacies of development.&lt;/p&gt;


&lt;h3&gt;React.js Projects for Beginners&lt;h3&gt;&lt;/h3&gt;

&lt;/h3&gt;
&lt;p&gt;&lt;a href="https://codersera.com/blog/reactjs-projects-for-beginners/"&gt;https://codersera.com/blog/reactjs-projects-for-beginners/&lt;/a&gt;&lt;br&gt;
&lt;a href="https://www.upgrad.com/blog/react-project-ideas-topics-beginners/"&gt;https://www.upgrad.com/blog/react-project-ideas-topics-beginners/&lt;/a&gt;&lt;/p&gt;

</description>
      <category>react</category>
      <category>beginners</category>
      <category>webdev</category>
    </item>
    <item>
      <title>How to use the built-in Date Object to Get the Current Date in JavaScript?</title>
      <dc:creator>evenmik</dc:creator>
      <pubDate>Mon, 28 Sep 2020 04:53:02 +0000</pubDate>
      <link>https://dev.to/evenmik/how-to-use-the-built-in-date-object-to-get-the-current-date-in-javascript-glg</link>
      <guid>https://dev.to/evenmik/how-to-use-the-built-in-date-object-to-get-the-current-date-in-javascript-glg</guid>
      <description>&lt;p&gt;When you are building a website, you will come across various types of date components-- it could be to create a date of a resource or the timestamp of an activity.&lt;/p&gt;

&lt;p&gt;Handling these date and timestamp formatting can be a daunting process. Read on to understand how you can get the current date in different formats in JavaScript.&lt;/p&gt;


&lt;h2&gt;JavaScript's Date Object

&lt;/h2&gt;
&lt;p&gt;The built-in Data object stores the date &amp;amp; time while providing methods for handling them.&lt;/p&gt;

&lt;p&gt;You have to use the new keyword to build a new instance of the Date object:&lt;/p&gt;

&lt;p&gt;&lt;i&gt;const date = new Date();&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;There are methods for getting the current year and current day of the month, have a look at it:&lt;/p&gt;

&lt;p&gt;For year:&lt;/p&gt;

&lt;p&gt;&lt;i&gt;const currentYear = date.getFullYear();&lt;br&gt;
&lt;i&gt;console.log(currentYear);&lt;/i&gt;&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;For day of the month:&lt;/p&gt;

&lt;p&gt;&lt;i&gt;const today = date.getDate();&lt;br&gt;
&lt;i&gt;const currentMonth = date.getMonth() + 1; &lt;/i&gt;&lt;/i&gt;&lt;/p&gt;


&lt;h2&gt;Date Now

&lt;/h2&gt;
&lt;p&gt;now() is a static method of the Date object. This is how it is used:&lt;/p&gt;

&lt;p&gt;&lt;i&gt;const timeElapsed = Date.now();&lt;br&gt;
&lt;i&gt;const today = new Date(timeElapsed);&lt;/i&gt;&lt;/i&gt;&lt;/p&gt;


&lt;h2&gt;Formatting The Date

&lt;/h2&gt;
&lt;p&gt;To format the date into several different formats like ISO, GMT, you can make use of the methods if the Date object.&lt;/p&gt;

&lt;p&gt;The toDateString() method returns the date in a human readable format:&lt;/p&gt;

&lt;p&gt;&lt;i&gt;today.toDateString();&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;The toISOString() method returns the date which follows the ISO 8601 Extended Format:&lt;/p&gt;

&lt;p&gt;&lt;i&gt;today.toISOString(); &lt;/i&gt;&lt;/p&gt;

&lt;p&gt;The toUTCString() method returns the date in UTC timezone format:&lt;/p&gt;

&lt;p&gt;&lt;i&gt;today.toUTCString(); &lt;/i&gt;&lt;/p&gt;

&lt;p&gt;and so on.&lt;/p&gt;


&lt;h2&gt;Custom Date Formatter Function

&lt;/h2&gt;
&lt;p&gt;Your date could be in yy/dd/mm or yyyy-dd-mm format. To get rid of the uncertainty, it might be beneficial for you to build a reusable function so that it can be used across multiple projects.&lt;/p&gt;

&lt;p&gt;&lt;i&gt;const today = new Date();&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;&lt;i&gt;function formatDate(date, format) {&lt;br&gt;
    //&lt;br&gt;
&lt;i&gt;}&lt;/i&gt;&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;&lt;i&gt;formatDate(today, 'mm/dd/yy');&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;You need to replace the strings "mm", "dd", "yy" with the desired month, day and year values from the format string passed in the argument.&lt;/p&gt;

&lt;p&gt;To do that you can use the replace() method like shown below:&lt;/p&gt;

&lt;p&gt;&lt;i&gt;format.replace('mm', date.getMonth() + 1);&lt;/i&gt;&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>webdev</category>
      <category>beginners</category>
    </item>
    <item>
      <title>React Native Bridge for Android and Ios</title>
      <dc:creator>evenmik</dc:creator>
      <pubDate>Fri, 13 Mar 2020 12:58:25 +0000</pubDate>
      <link>https://dev.to/evenmik/react-native-bridge-for-android-and-ios-405k</link>
      <guid>https://dev.to/evenmik/react-native-bridge-for-android-and-ios-405k</guid>
      <description>&lt;p&gt;React Native is developed in such a way that we can create a bridge between the Native Language and the JavaScript code. A bridge is nothing but a way to setup communication between native platform and React Native.&lt;/p&gt;

&lt;p&gt;But why do we need it?&lt;/p&gt;

&lt;p&gt;Let’s assume you want to reuse some existing Java code or library without having to reimplement it in JavaScript. Yes, you guessed it right, you can use it in your React Native application with the help of Native Bridge. At some point of time, to make a production-level application you will most probably need to use Native Bridge.&lt;/p&gt;

&lt;p&gt;“As long as we are building our application purely within the framework, we can drive our app with properties and callbacks. But, when we mix React Native and native components, we need some specific, cross-language mechanisms that would allow us to pass information between them.”&lt;/p&gt;

&lt;p&gt;You have to learn two modules&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Native Modules&lt;/li&gt;
&lt;li&gt;Native UI Components &lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;b&gt;Native Modules&lt;/b&gt;&lt;br&gt;
A Native Module is just a set of javascript functions that are implemented natively for individual platform. Native Modules are used when React Native doesn’t have that required module yet, or when the native performance is significantly better.&lt;/p&gt;

&lt;p&gt;To understand this concept better we will implement a toast mechanism in which the toast would be coming from the native android and we will call it from a button made in React Native. In case you are wondering “what a toast is?”, think of it as an alert message for your app.&lt;/p&gt;

&lt;p&gt;&lt;b&gt;Native UI Components&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;There are tons of native UI widgets out there ready to be used in the latest apps. Fortunately, we can wrap up these existing components for seamless integration with our React Native application. Without further ado, let’s head over to the practical part.&lt;/p&gt;

&lt;p&gt;You can see there are two types of bridge.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;a href="https://codersera.com/blog/react-native-bridge-for-android/"&gt;Native Bridge for Android&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://codersera.com/blog/react-native-bridge-for-ios/"&gt;Native Bridge for Ios&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;

</description>
      <category>reactnative</category>
    </item>
    <item>
      <title>React Hooks with Typescript : UseCallback, UseMemo, UseContext And UseRef</title>
      <dc:creator>evenmik</dc:creator>
      <pubDate>Tue, 21 Jan 2020 13:22:40 +0000</pubDate>
      <link>https://dev.to/evenmik/react-hooks-with-typescript-usecallback-usememo-usecontext-and-useref-11he</link>
      <guid>https://dev.to/evenmik/react-hooks-with-typescript-usecallback-usememo-usecontext-and-useref-11he</guid>
      <description>&lt;p&gt;Lets, check react advanced hooks, i.e. UseCallback, UseMemo, UseRef, and UseContext. All these come under React 16.8 version and help the user create an optimized react application.&lt;br&gt;
Let’s create a react application environment for our project by using either of the following commands:   &lt;/p&gt;

&lt;p&gt;&lt;i&gt; 1.yarn create react-app advanced-hooks-tutorial --template typescript # or &lt;br&gt;
2.npx create-react-app advanced-hooks-tutorial --template typescript &lt;/i&gt;&lt;/p&gt;

&lt;p&gt;The above command will create a Project with the name “advanced-hooks-tutorial”. Once it’s done go to the directory and start the project either by &lt;i&gt;“npm start”&lt;/i&gt; or&lt;i&gt; “yarn start”.&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;We will be using yarn throughout this tutorial to maintain consistency.&lt;br&gt;
Let’s now integrate the project with antd which is a design library by the name of antd design, that helps us to create some standard UI components. Additionally, you can use other design libraries as well if you want.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://codersera.com/blog/react-hooks-with-typescript-usecallback-usememo/"&gt;React Hooks with Typescript : UseCallback, UseMemo, UseContext And UseRef&lt;/a&gt;&lt;/p&gt;

</description>
      <category>react</category>
    </item>
    <item>
      <title>Angular Vs React Comparison for 2020</title>
      <dc:creator>evenmik</dc:creator>
      <pubDate>Mon, 20 Jan 2020 12:28:12 +0000</pubDate>
      <link>https://dev.to/evenmik/angular-vs-react-comparison-for-2020-1mne</link>
      <guid>https://dev.to/evenmik/angular-vs-react-comparison-for-2020-1mne</guid>
      <description>&lt;p&gt;Do you want to learn about and discover the differences between React vs. Angular? Then keep on reading! I am going to explain to you the similarities, differences, pros, and cons of both React and Angular in this article. You don’t need to be an expert programmer to understand this post but it is encouraged that you are familiar with JavaScript.&lt;/p&gt;

&lt;p&gt;&lt;b&gt;*Disclaimer: I have worked extensively with both React and Angular. I used Angular at my job at IBM and React &amp;amp; React Native at my current job. I personally prefer React but will do my best not to taint the article with bias.&lt;/b&gt;&lt;/p&gt;

&lt;h3&gt;History of React vs. Angular&lt;/h3&gt;

&lt;p&gt;Angular is a JavaScript framework written in TypeScript. It was developed and is maintained by Google, and is described as a “Superheroic JavaScript MVWFramework” on Angular’s webpage. Angular (version 2 and above), originally released in September 2016, is a complete rewrite of AngularJS (released in October 2010). The newest major release is version 6 at the time of writing. Google AdWords, one of the most important projects at Google, uses Angular – so Angular is likely to be around for a while.&lt;/p&gt;

&lt;p&gt;React is a JavaScript library developed and maintained by Facebook. It was released in March 2013 and is described as “a JavaScript library for building user interfaces”. React is used far more at Facebook than Angular is at Google if it’s any indication as to how big Facebook is betting on this technology. By this metric, you can also conclude that React will be around for a very long time.&lt;/p&gt;

&lt;p&gt;Both Frameworks are available under the MIT license.&lt;/p&gt;

&lt;h3&gt;Architecture of React vs. Angular&lt;/h3&gt;

&lt;p&gt;&lt;b&gt;Framework vs. Library&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://codersera.com/blog/reactjs-v-s-angularjs/"&gt;Angular and React&lt;/a&gt; have many similarities and many differences. One of them is that Angular is a full-fledged MVC framework and React is merely a JavaScript Library (just the view). Let me elaborate. Angular is considered a framework because it offers strong opinions as to how your application should be structured. It also has much more functionality “out-of-the-box”. You don’t need to decide which routing libraries to use or other such considerations – you can just start coding. However, a drawback is that you have less flexibility – you must use what Angular provides.&lt;/p&gt;

&lt;p&gt;Angular provides the following “out of the box”:&lt;/p&gt;

&lt;p&gt;Templates, based on an extended version of HTML&lt;br&gt;
XSS protection&lt;br&gt;
Dependency injection&lt;br&gt;
Ajax requests by @angular/HTTP&lt;br&gt;
Routing, provided by @angular/router&lt;br&gt;
Component CSS encapsulation&lt;br&gt;
Utilities for unit-testing components.&lt;br&gt;
@angular/forms for building forms&lt;/p&gt;

&lt;p&gt;React, on the other hand, gives you much more freedom. It only provides the “view” in MVC – you need to solve the M and C on your own. Due to this, you can choose any of your own libraries as you see fit. You will end up using many independent, fast-moving libraries. Because of this, you will need to take care of the corresponding updates and migrations by yourself. In addition, each React project is different and requires a decision requiring its folder hierarchy and architecture. Things can go wrong much more easily due to this.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--emTo9twU--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://codersera.com/blog/wp-content/uploads/2019/07/angular-react.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--emTo9twU--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://codersera.com/blog/wp-content/uploads/2019/07/angular-react.png"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;React provides the following “out of the box”:&lt;/p&gt;

&lt;p&gt;Instead of classic templates, it has JSX, an XML-like language built on top of JavaScript&lt;br&gt;
XSS protection&lt;br&gt;
No dependency injection&lt;br&gt;
Fetch for Ajax requests&lt;br&gt;
Utilities for unit-testing components&lt;/p&gt;

</description>
      <category>angular</category>
      <category>react</category>
    </item>
    <item>
      <title>Top Game engines for Game Development</title>
      <dc:creator>evenmik</dc:creator>
      <pubDate>Mon, 20 Jan 2020 07:42:00 +0000</pubDate>
      <link>https://dev.to/evenmik/top-game-engines-for-game-development-56ic</link>
      <guid>https://dev.to/evenmik/top-game-engines-for-game-development-56ic</guid>
      <description>&lt;p&gt;Who doesn’t love playing games? I mean, it’s the best way to pass time and keep ourselves entertained at the same time, right? We all play some type of games at some point of time, whether it is an Open-world like GTA San Andreas or a first-person shooter like Counter-Strike or Call of Duty.&lt;/p&gt;

&lt;p&gt;But has anyone given a thought about how a game is made and what it is all about? Read more to know regarding the game engine and its role in game development and find answers to these questions as well:&lt;/p&gt;

&lt;p&gt;&lt;b&gt;How much development goes behind making the game?&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;All of you must have heard the term “Game Engine” but what does it mean?&lt;br&gt;
How come the games are different when they are developed on the same engine by the same company?&lt;br&gt;
Before going on to discuss the top game engines, let us have a brief description of what a game engine is all about:&lt;/p&gt;

&lt;p&gt;&lt;b&gt;What is a Game engine?&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;A game engine is a software which is used to design games quickly. In other words, it is a framework that brings all the essential tools required for building the games together. The main reason for using it is to reduce the cost, time, and complexity required in the development of the game.&lt;/p&gt;

&lt;p&gt;Most of the time, It is observed that whenever there is a lag, crash or frame drop in a game, people immediately blame it on the engine. However, it’s not true. The lagging and the frame drops are caused because of the poor programming in the code.&lt;/p&gt;

&lt;p&gt;The core functionality of the game engine includes a rendering engine(“renderer“)for 2D or 3D graphics, networking, animation, artificial intelligence, and memory management.&lt;/p&gt;

&lt;p&gt;Most of the big gaming companies have developed their own gaming engine whereas some open-source engines are also available.&lt;/p&gt;

&lt;h3&gt;Advantages of Game Engine&lt;/h3&gt;

&lt;p&gt;Most of the work like graphic designing, memory management, and audio is easily done by the game engine.&lt;br&gt;
It increases efficiency by reducing the amount of knowledge required by the developer.&lt;br&gt;
When working on a big project, it reduces the time it would have taken by writing the code.&lt;/p&gt;

&lt;h3&gt;Disadvantages of Game Engine&lt;/h3&gt;

&lt;p&gt;If you are making a small game, then it is best to write the code yourself rather than leaving it for the game engine.&lt;/p&gt;

&lt;p&gt;Debugging is not easy if it isn’t open-source.&lt;/p&gt;

&lt;p&gt;When we talk about gaming engines for beginners, there are a lot of options available out there like:-&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Buildbox.&lt;/li&gt;
&lt;li&gt;RPG Maker.&lt;/li&gt;
&lt;li&gt;GameMaker Studio 2.&lt;/li&gt;
&lt;li&gt;CopperCube 5.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;b&gt;Conclusion&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;We tried compiling the best list for the top game engines in game development and most of them provide more or less the same gaming experience. What you like will completely depend on your experience you had while playing the game designed on that engine.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Angular vs. React vs. Vue: A 2020 comparison</title>
      <dc:creator>evenmik</dc:creator>
      <pubDate>Fri, 17 Jan 2020 09:18:16 +0000</pubDate>
      <link>https://dev.to/evenmik/angular-vs-react-vs-vue-a-2020-comparison-2409</link>
      <guid>https://dev.to/evenmik/angular-vs-react-vs-vue-a-2020-comparison-2409</guid>
      <description>&lt;p&gt;A brief history of Vue vs React vs Angular&lt;br&gt;
Before we get into the technical details, let’s first talk about the history behind these frameworks – just to better appreciate their philosophy and their evolution over time.&lt;/p&gt;

&lt;p&gt;How it all started&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--ob3mzxTD--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://iotvnaw69daj.i.optimole.com/w:141/h:146/q:90/https://mk0codeinwp10tp0961a.kinstacdn.com/wp-content/uploads/2019/01/angular-logo.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--ob3mzxTD--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://iotvnaw69daj.i.optimole.com/w:141/h:146/q:90/https://mk0codeinwp10tp0961a.kinstacdn.com/wp-content/uploads/2019/01/angular-logo.png"&gt;&lt;/a&gt;&lt;br&gt;
Angular, developed by Google, was first released in 2010, making it the oldest of the lot. It is a TypeScript based JavaScript framework. A substantial shift occurred in 2016 on the release of Angular 2 (and the dropping of the “JS” from the original name – AngularJS). Angular 2+ is known as just Angular. Although AngularJS (version 1) still gets updates, we will focus the discussion on Angular. The latest stable version is Angular 7, which was released in October 2018.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--QVKhG37k--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://iotvnaw69daj.i.optimole.com/w:141/h:122/q:90/https://mk0codeinwp10tp0961a.kinstacdn.com/wp-content/uploads/2019/01/vue-logo.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--QVKhG37k--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://iotvnaw69daj.i.optimole.com/w:141/h:122/q:90/https://mk0codeinwp10tp0961a.kinstacdn.com/wp-content/uploads/2019/01/vue-logo.png"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Vue, also known as Vue.js, is the youngest member of the group. It was developed by ex-Google employee Evan You in 2014. Over the last two years, Vue has seen a substantial shift in popularity, even though it doesn’t have the backing of a large company. The current stable version is 2.17, released in August 2018. Vue’s contributors are supported by Patreon. Vue 3, currently in the prototyping phase is planning to move to TypeScript.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Taj_6O5o--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://iotvnaw69daj.i.optimole.com/w:141/h:132/q:90/https://mk0codeinwp10tp0961a.kinstacdn.com/wp-content/uploads/2019/01/react-logo.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Taj_6O5o--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://iotvnaw69daj.i.optimole.com/w:141/h:132/q:90/https://mk0codeinwp10tp0961a.kinstacdn.com/wp-content/uploads/2019/01/react-logo.png"&gt;&lt;/a&gt;&lt;br&gt;
React, developed by Facebook, was initially released in 2013. Facebook uses React extensively in their products (Facebook, Instagram, and WhatsApp). The current stable version in 16.X, released in November 2018.&lt;/p&gt;

&lt;p&gt;Here’s a short summary of &lt;a href="https://codersera.com/blog/angular-vs-react-vs-vue/"&gt;Angular vs React vs Vue,&lt;/a&gt; in terms of their status and history:&lt;/p&gt;

&lt;p&gt;The history of Angular vs React vs Vue.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--nfeQnUHI--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://codersera.com/blog/wp-content/uploads/2020/01/angular_react_vue.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--nfeQnUHI--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://codersera.com/blog/wp-content/uploads/2020/01/angular_react_vue.png"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;b&gt;Job market for Angular vs React vs Vue&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--_JH5Biuv--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://codersera.com/blog/wp-content/uploads/2020/01/Jobs.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--_JH5Biuv--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://codersera.com/blog/wp-content/uploads/2020/01/Jobs.png"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>angular</category>
      <category>react</category>
      <category>vue</category>
    </item>
    <item>
      <title>﻿Does Expo Support React Native Web?</title>
      <dc:creator>evenmik</dc:creator>
      <pubDate>Mon, 13 Jan 2020 07:22:06 +0000</pubDate>
      <link>https://dev.to/evenmik/does-expo-support-react-native-web-6po</link>
      <guid>https://dev.to/evenmik/does-expo-support-react-native-web-6po</guid>
      <description>&lt;p&gt;&lt;b&gt;Short answer: yes, &lt;a href="https://codersera.com/blog/does-expo-support-react-native-web/"&gt;expo supports react NATIVE web&lt;/a&gt; since SDK version 33.&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;Expo SDK v33 is the first SDK which supports the web. It also comes with TypeScript which is based on React Native, which includes hooks. It is the combination of many new features: APIs, workflows, developers tools, and many more upgraded version in SDK v33. Now the developers also like to use this versions as it is new and up-to-date, and also it’s the trend to follow the new and latest versions of technology. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--FAHnfAGi--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://codersera.com/blog/wp-content/uploads/2019/07/SDK-page-art-2x._CB505259190_-1024x488.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--FAHnfAGi--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://codersera.com/blog/wp-content/uploads/2019/07/SDK-page-art-2x._CB505259190_-1024x488.png"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;As well as, Four new APIs are added in the SDK v33-&lt;/p&gt;

&lt;p&gt;Crypto API and Random API, which provide to generate, as well as work with cryptographically secure strings, also they used as primitives to build fully featured crypto libraries in JavaScript. And sharing API provides the technique to share media and different files applications on the device. As well as, VideoThumbnails API, allow to generate an image thumbnail from the video file.&lt;/p&gt;

&lt;p&gt;&lt;b&gt;Phases of technology- React to React-Native-Web!&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;Phase 1. Firstly in the market, React appeared, this influence and attract the developers towards it’s and change the ways of building apps and creating websites. React was like a relief to all the developers as it becomes the easiest way to developing.&lt;/p&gt;

&lt;p&gt;Phase 2. Secondly, here introduce React-Native, take all the good and updated version of React. And this version helps the developers to develop the mobile apps, it the attributes and commands make things easier to the developers. As well as it hold some key elements like JavaScript, markup with JSX and Flexbox.&lt;/p&gt;

&lt;p&gt;Phase 3. Last but not least, finally, after the React Native, here comes React-Native-web which is the mixture of React and React Native. As it is newly introduced in the market it is really advanced and upgraded version. In which websites and application both can run. By using different functions and command you can build your websites more effective and attractive to the clients and users. Even, it is now possible to translate React Native primitives to the DOM language using HTML tags. This is only done to React Native Web.&lt;/p&gt;

&lt;p&gt;Also you can read article related the same on &lt;a href="https://github.com/expo/expo-sdk"&gt;https://github.com/expo/expo-sdk&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You can read the official blog here as well. &lt;a href="https://blog.expo.io/expo-sdk-v32-0-0-is-now-available-6b78f92a6c52"&gt;https://blog.expo.io/expo-sdk-v32-0-0-is-now-available-6b78f92a6c52&lt;/a&gt;&lt;/p&gt;

</description>
      <category>reactnative</category>
    </item>
  </channel>
</rss>
