<?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: Esron Silva</title>
    <description>The latest articles on DEV Community by Esron Silva (@oesron).</description>
    <link>https://dev.to/oesron</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%2F176910%2F02bb08a9-2e57-4f53-9432-1f08116a8e23.jpg</url>
      <title>DEV Community: Esron Silva</title>
      <link>https://dev.to/oesron</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/oesron"/>
    <language>en</language>
    <item>
      <title>Rocket.Chat Logger for Laravel</title>
      <dc:creator>Esron Silva</dc:creator>
      <pubDate>Wed, 15 Jul 2020 20:36:10 +0000</pubDate>
      <link>https://dev.to/oesron/rocket-chat-logger-for-laravel-4ebl</link>
      <guid>https://dev.to/oesron/rocket-chat-logger-for-laravel-4ebl</guid>
      <description>&lt;p&gt;If you are using Laravel and your team uses Rocket.Chat instead of Slack, give a try to my implementation of a Monolog Handler for logs in Rocket.Chat.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://packagist.org/packages/sysvale/rocketchat-monolog-handler"&gt;https://packagist.org/packages/sysvale/rocketchat-monolog-handler&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;It is ease to use and open source, fell free to fork it and customize.&lt;/p&gt;

</description>
      <category>php</category>
      <category>opensource</category>
    </item>
    <item>
      <title>Same Application in React and Vue, Which one is better?</title>
      <dc:creator>Esron Silva</dc:creator>
      <pubDate>Sun, 07 Jun 2020 01:29:33 +0000</pubDate>
      <link>https://dev.to/oesron/same-application-in-react-and-vue-which-one-is-better-2740</link>
      <guid>https://dev.to/oesron/same-application-in-react-and-vue-which-one-is-better-2740</guid>
      <description>&lt;p&gt;This post is a english version of another one made by myself on Medium. The original post is in Brazilian Portuguese and can be found here:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://medium.com/sysvale/semana-omnistack-10-frontend-em-vuejs-35eea549c211" rel="noopener noreferrer"&gt;https://medium.com/sysvale/semana-omnistack-10-frontend-em-vuejs-35eea549c211&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Omnistack Week
&lt;/h2&gt;

&lt;p&gt;The Omnistack Week was an online event hosted by a Brazilian tech company, Rocketseat.&lt;/p&gt;

&lt;p&gt;The challenge of the event is to implement a Fullstack Javascript application using the most relevant technologies at the time like React, Node with Express and React Native.&lt;/p&gt;

&lt;p&gt;The application developed on the 10ª edition of the Omnistack Week was a "Developer Finder". An web app that lets you show to people searching for developers what are the technologies that you work with and you location. With an Mobile App the shows a map with previously registered developers &lt;/p&gt;

&lt;h2&gt;
  
  
  My Personal Challenge
&lt;/h2&gt;

&lt;p&gt;I re-implemented the web application in Vue, witch was written in React. Why? I wanted to compare the development experience in each one of that frameworks.&lt;/p&gt;

&lt;p&gt;It goes like this. Using the same libraries and CSS I "translated" the application's logic to Vue.&lt;/p&gt;

&lt;p&gt;Following, I write about every step of the development.&lt;/p&gt;

&lt;p&gt;The final result and the source code of my version are in repository below:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/esron/semana-omnistack-vue" rel="noopener noreferrer"&gt;https://github.com/esron/semana-omnistack-vue&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  CLI Tools
&lt;/h2&gt;

&lt;p&gt;There is little to no difference bewteen &lt;code&gt;create-react-app&lt;/code&gt;, the React CLI, and &lt;code&gt;vue-cli&lt;/code&gt;, booth are easy to use and install, the only relevant difference is that &lt;code&gt;create-react-app&lt;/code&gt; comes with more boiler plate code.&lt;/p&gt;

&lt;p&gt;The initial product of both tools is an application pre-configured with linter and hot-reload.&lt;/p&gt;

&lt;h2&gt;
  
  
  What there is in common?
&lt;/h2&gt;

&lt;p&gt;After creating the application's basis using &lt;code&gt;vue-cli&lt;/code&gt; I organized the structure and created the components files, still empty. I reused the &lt;code&gt;api.js&lt;/code&gt; file  in the &lt;code&gt;services&lt;/code&gt; folder. Finally, for the preparation, I erased some of the boiler plate code.&lt;/p&gt;

&lt;p&gt;From that the modifications where guided by the practices of framework Vue.&lt;/p&gt;

&lt;h2&gt;
  
  
  Diferences in template
&lt;/h2&gt;

&lt;p&gt;I believe that this is the fundamental difference between React and Vue: what you hear around is that React is HTML inside of Javascript and Vue is Javascript inside of HTML. See why:&lt;/p&gt;

&lt;p&gt;This is the template base code in React:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fa0mp3jprjvz45ahwvuo9.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fa0mp3jprjvz45ahwvuo9.png" alt="Base template React code"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Using the JSX syntax it is possible to transform the React components in HTML tags, like what we can see with the &lt;code&gt;&amp;lt;DevForm&amp;gt;&lt;/code&gt; and &lt;code&gt;&amp;lt;DevItem&amp;gt;&lt;/code&gt; tags.&lt;/p&gt;

&lt;p&gt;In the following example I bring the application's root in Vue:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fxnhydhk4mrck3xhkudhw.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fxnhydhk4mrck3xhkudhw.png" alt="Base code for the vue template"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The application's template is fitted into the &lt;code&gt;&amp;lt;template&amp;gt;&lt;/code&gt; tags.&lt;/p&gt;

&lt;p&gt;We can see now that, in Vue, we program the behavior of a template while in React we program what is returned in a function.&lt;/p&gt;

&lt;p&gt;Now I'll explore the differences in the form implementation.&lt;/p&gt;

&lt;h2&gt;
  
  
  Differences in DevForm
&lt;/h2&gt;

&lt;p&gt;I'll put only the code snippets for the &lt;code&gt;DevForm&lt;/code&gt; component that show the differences that I find more relevante for this comparison. Begging by the inputs and the &lt;code&gt;form&lt;/code&gt; tag.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fzizkagcpimrb2fo3fcoo.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fzizkagcpimrb2fo3fcoo.png" alt="DevForm written in React"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;class&lt;/code&gt; is a reserved word in Javascript, so, in React, the class attribute in a HTML element is changed to &lt;code&gt;className&lt;/code&gt;, also is importante to notice the use of camelCase in the attributes. The events are connected to function declared in the script. For example, the &lt;code&gt;handleSubmit&lt;/code&gt; function is connected to the &lt;code&gt;submit&lt;/code&gt; event through the &lt;code&gt;onSubmit&lt;/code&gt; attribute.&lt;/p&gt;

&lt;p&gt;The &lt;code&gt;handleSubmit&lt;/code&gt; function calls the &lt;code&gt;onSbmit&lt;/code&gt; function that was passed as a prop in the DevForm component, like is shown below:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F1ai46lsyrrcfw001pal7.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F1ai46lsyrrcfw001pal7.png" alt="HandleSubmit function linked to component in React"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This way of programming the functions highlights the characteristics in React of being "HTML in Javascript".&lt;/p&gt;

&lt;p&gt;I also want to emphasize how React manages the states of text inputs.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fsj81dx5yqmb0426q0ftn.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fsj81dx5yqmb0426q0ftn.png" alt="State management in React"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In general lines, using the &lt;code&gt;useState&lt;/code&gt; function we are connecting the &lt;code&gt;setGithubUsername&lt;/code&gt; function to the &lt;code&gt;githubUsername&lt;/code&gt; variable value. To evolve the application state it is necessary to use that function and that variable in the input like is shown below:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F1qv93px22nw06phsdofp.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F1qv93px22nw06phsdofp.png" alt="Github username bidding example"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In my opinion, that makes our code more bureaucratic and boring to write, in compensation, highlights the use of functional programming what gives more confidence to modify the variables values.&lt;/p&gt;

&lt;p&gt;Something that called my attention was the way we access the Browser geo-location functionality as soon as the page loads:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F5fr2nvc823zpw52c6yc5.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F5fr2nvc823zpw52c6yc5.png" alt="UseEffect function usage to get browser geo-location"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The &lt;code&gt;useEffect&lt;/code&gt; function executes the function passed as parameter when some event is triggered in the list passed as the second parameter, if an empty list is passed then the function is executed once when the component is mounted.&lt;/p&gt;

&lt;p&gt;Now we are going to explore how this is made in Vue. Again, showing the snippet equivalent to the &lt;code&gt;form&lt;/code&gt; tag and the input that controls the &lt;code&gt;githubUsername&lt;/code&gt; variable.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fl0adqfgis1ta3wk2w4au.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fl0adqfgis1ta3wk2w4au.png" alt="DevForm code snippet in Vue"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Unlike React, Vue is written in HTML, and the basic structure of a Vue component is made up of three HTML tags:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;template&amp;gt;&lt;/span&gt;
  &lt;span class="c"&gt;&amp;lt;!-- ... --&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/template&amp;gt;&lt;/span&gt;

&lt;span class="nt"&gt;&amp;lt;script&amp;gt;&lt;/span&gt;
  &lt;span class="o"&gt;&amp;lt;!--&lt;/span&gt; &lt;span class="p"&gt;...&lt;/span&gt; &lt;span class="o"&gt;--&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/script&amp;gt;&lt;/span&gt;

&lt;span class="nt"&gt;&amp;lt;style&amp;gt;&lt;/span&gt;
  &lt;span class="o"&gt;&amp;lt;!&lt;/span&gt;&lt;span class="nt"&gt;--&lt;/span&gt; &lt;span class="o"&gt;...&lt;/span&gt; &lt;span class="nt"&gt;--&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/style&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Well, not exactly HTML, but utilizing the HTML syntax.&lt;/p&gt;

&lt;p&gt;The connection between the submit event and the &lt;code&gt;handleSubmit&lt;/code&gt; function is made using a special syntax in Vue: &lt;code&gt;@submit.prevent=handleSubmit&lt;/code&gt; where &lt;code&gt;@&lt;/code&gt; is a shortcut for &lt;code&gt;v-on:&lt;/code&gt;, to see more details you can look up the &lt;a href="https://vuejs.org/v2/api/#v-on" rel="noopener noreferrer"&gt;documentation&lt;/a&gt; of Vue. The &lt;code&gt;prevent&lt;/code&gt; modifier is equivalent to call &lt;code&gt;preventDefault()&lt;/code&gt; in the submit event.&lt;/p&gt;

&lt;p&gt;The &lt;code&gt;handleSubmit&lt;/code&gt; function then is mapped in the &lt;code&gt;methods&lt;/code&gt; object inside the component:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Feqphit4uji9jsvto7x8k.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Feqphit4uji9jsvto7x8k.png" alt="Methods object in Vue"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Another relevant difference between React and Vue is the component API. While in React everything is communicated trough props, in Vue a component receive props and emits events. In our case, we emit an &lt;code&gt;submit&lt;/code&gt; event to the parent component of &lt;code&gt;DevForm&lt;/code&gt; sending the values of every field, and soon after, we clear the variable &lt;code&gt;github_username&lt;/code&gt; and &lt;code&gt;techs&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;It is possible to notice that, by the last few steps in the function, another difference in both tools: in Vue it is possible to alter the state variables in the component directly, provided they have been declared in the &lt;code&gt;data()&lt;/code&gt; function as follows:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fzvt13rkg4cae6tcpakgk.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fzvt13rkg4cae6tcpakgk.png" alt="Data function in Vue"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Remembering that what links the variable &lt;code&gt;github_username&lt;/code&gt; to the text input is the &lt;code&gt;v-model&lt;/code&gt; property applied to the input, which is a shortcut to do a &lt;a href="https://br.vuejs.org/v2/guide/forms.html" rel="noopener noreferrer"&gt;two way data binding&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;The &lt;code&gt;latitude&lt;/code&gt; and &lt;code&gt;longitude&lt;/code&gt; initiation is made by &lt;a href="https://vuejs.org/v2/guide/instance.html#Lifecycle-Diagram" rel="noopener noreferrer"&gt;life cycle hooks&lt;/a&gt;, that are self explanatory:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F3ayrgjq7u050cqlny9i0.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F3ayrgjq7u050cqlny9i0.png" alt="Mounted method implemented in Vue"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Using the life cycle hooks makes the execution of this tasks more clear, in my opinion.&lt;/p&gt;

&lt;p&gt;I believe that I already have described the main changes in the &lt;code&gt;DevForm&lt;/code&gt; component. Now, let's analyse the more relevant differences in the &lt;code&gt;DevItem&lt;/code&gt; implementation.&lt;/p&gt;

&lt;h2&gt;
  
  
  Differences in DevItem
&lt;/h2&gt;

&lt;p&gt;The &lt;code&gt;DevItem&lt;/code&gt; component is more simple, it is only for presentation of data, therefore, it doesn't have any logic, conditionals or loops. It's receives as props an &lt;code&gt;dev&lt;/code&gt; object and shows the properties. See the code in React:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F00gltw5ehjp7safgrsaj.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F00gltw5ehjp7safgrsaj.png" alt="DevItem component implemented in React"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now the code in Vue:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F829qbabahqpqu781vonz.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F829qbabahqpqu781vonz.png" alt="DevItem component implemented in Vue"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;There is little difference in the implementations, in this case. But I would like to emphasize the Vue binding syntax in the properties of the &lt;code&gt;dev&lt;/code&gt; object using the &lt;code&gt;:&lt;/code&gt; shortcut.&lt;/p&gt;

&lt;h2&gt;
  
  
  Differences in Root Component
&lt;/h2&gt;

&lt;p&gt;We can now go back to the Root component to show some of the differences that caught my eye the most, the iteration in the &lt;code&gt;devs&lt;/code&gt; list to create the &lt;code&gt;DevItem&lt;/code&gt; components.&lt;/p&gt;

&lt;p&gt;Se the code in React first:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F829qbabahqpqu781vonz.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F829qbabahqpqu781vonz.png" alt="Snippet of the iteration in the devs list implemented in React"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Here we literally iterate trough the &lt;code&gt;devs&lt;/code&gt; list using &lt;code&gt;map&lt;/code&gt; and returning an &lt;code&gt;DevItem&lt;/code&gt; for each iteration.&lt;/p&gt;

&lt;p&gt;Let's compare with the Vue code:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fut5skgm9y1h9btxax9z0.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fut5skgm9y1h9btxax9z0.png" alt="Snippet of the iteration in the devs list implemented in Vue"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Here we make use of the &lt;code&gt;v-for&lt;/code&gt; directive to iterate trough the &lt;code&gt;devs&lt;/code&gt; list in a more transparent way.&lt;/p&gt;

&lt;p&gt;This difference shows that in Vue we are implementing a layout's behavior while in React we insert a layout in Javascript code.&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;I believe that the "dev experience" in Vue is more pleasant in general terms. The components API and the syntax are more intuitive. Organizing my components in only one file is more conveniente.&lt;/p&gt;

&lt;p&gt;That, and by the reasons that I showed above, is why I often choose Vue as my frontend framework for applications in Javascript.&lt;/p&gt;




&lt;p&gt;I wish to point out that this article is my opinion, if you don't agree on that, want to compare with other technologies or want to give your opinion you are welcome to use the comments o contact me directly by &lt;a href="https://twitter.com/OEsron" rel="noopener noreferrer"&gt;Twitter&lt;/a&gt; or by email in &lt;a href="mailto:esron.silva@sysvale.com"&gt;esron.silva@sysvale.com&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Thank you for your attention.&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>refactorit</category>
    </item>
    <item>
      <title>Why the standard exit code for a shell program is zero?</title>
      <dc:creator>Esron Silva</dc:creator>
      <pubDate>Thu, 13 Jun 2019 14:32:19 +0000</pubDate>
      <link>https://dev.to/oesron/why-the-standard-exit-code-for-a-shell-program-is-zero-38a0</link>
      <guid>https://dev.to/oesron/why-the-standard-exit-code-for-a-shell-program-is-zero-38a0</guid>
      <description>&lt;p&gt;I mean, zero is equivalent to false in C language. So, why use zero as the code for a valid output in a command?&lt;/p&gt;

</description>
      <category>discuss</category>
      <category>shell</category>
      <category>bash</category>
    </item>
  </channel>
</rss>
