<?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: Vuyani Daweti</title>
    <description>The latest articles on DEV Community by Vuyani Daweti (@yannid).</description>
    <link>https://dev.to/yannid</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%2F765394%2F56c8a36b-cf45-4d4e-a2a7-1ff4c5e663c7.jpeg</url>
      <title>DEV Community: Vuyani Daweti</title>
      <link>https://dev.to/yannid</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/yannid"/>
    <language>en</language>
    <item>
      <title>Similarities of laravel command and vue/react component props behavior</title>
      <dc:creator>Vuyani Daweti</dc:creator>
      <pubDate>Thu, 29 Aug 2024 20:12:38 +0000</pubDate>
      <link>https://dev.to/yannid/similarities-of-laravel-command-and-vuereact-component-props-behavior-44f1</link>
      <guid>https://dev.to/yannid/similarities-of-laravel-command-and-vuereact-component-props-behavior-44f1</guid>
      <description>&lt;p&gt;As a developer it is key to learn a skill that can be easily transfered to another domain with losing meaning.I think am starting to see how knowledge can truly shared across domains, here's an example.&lt;/p&gt;

&lt;p&gt;In react when to pass props on a component we use command=value type of syntax as function arguement,we then take these arguments and process them. If they are boolean types we can just pass the name without value. &lt;/p&gt;

&lt;h2&gt;
  
  
  REACT/VUE
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;Component show/&amp;gt;

SAME AS 
&amp;lt;Component show=true/&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  LARAVEL Commands
&lt;/h2&gt;

&lt;p&gt;In laravel command do it the samoe way&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;php artisan commandName {show}

SAME AS 
php artisan commandName {show=true}

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Both these statement pass value=true by just being stated.The behavior is the same,though they are not declared on a similar manner. &lt;/p&gt;

&lt;p&gt;This a good example of transfer behavior across different domains in programming.&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
