<?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: Erik</title>
    <description>The latest articles on DEV Community by Erik (@blankbash).</description>
    <link>https://dev.to/blankbash</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%2F100691%2Fbbdc752d-7d8e-4de8-bf37-4c5fbb2c8e8d.jpg</url>
      <title>DEV Community: Erik</title>
      <link>https://dev.to/blankbash</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/blankbash"/>
    <language>en</language>
    <item>
      <title>Blockchain without cryptocurrency? 🤔</title>
      <dc:creator>Erik</dc:creator>
      <pubDate>Tue, 09 Oct 2018 04:43:03 +0000</pubDate>
      <link>https://dev.to/blankbash/blockchain-without-cryptocurrency--212m</link>
      <guid>https://dev.to/blankbash/blockchain-without-cryptocurrency--212m</guid>
      <description>&lt;p&gt;I'm seeing lots of discussions and press releases about intentions to regulate blockchain dissociated from cryptocurrency with intention to apply it as a validation network to industry, banks and government.&lt;/p&gt;

&lt;h4&gt;
  
  
  Assuming that we are not on a solar powergrid, my question is:
&lt;/h4&gt;

&lt;p&gt;If there is no currency involved, who would join a mining pool and spend 1365W/h (actual Antminer S9i power consumption) to validate blocks for free?&lt;/p&gt;

&lt;p&gt;I read an interview with the president of Federation of Industries of the State of São Paulo (In a raw translation) saying:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"[...] With an eye on the impact this technology will have on the entire industry chain, which can reduce costs, waste and bureaucratic processes, as well as increase productivity [...]"&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;What is the point to save X money with papers and bureaucracy and spend X*10^3 with electricity?&lt;/p&gt;

</description>
      <category>blockchain</category>
      <category>discuss</category>
      <category>offtopic</category>
    </item>
    <item>
      <title>What is the difference between Methods, Computed, and Watchers?</title>
      <dc:creator>Erik</dc:creator>
      <pubDate>Tue, 18 Sep 2018 19:37:56 +0000</pubDate>
      <link>https://dev.to/blankbash/what-is-the-difference-between-methods-computed-and-watchers-4egn</link>
      <guid>https://dev.to/blankbash/what-is-the-difference-between-methods-computed-and-watchers-4egn</guid>
      <description>&lt;p&gt;I'm following Vue's getting started and I'm getting confused, tried CSS Tricks and Stack Overflow and still not understanding it in practice. Someone needs to explain me like i'm five. &lt;/p&gt;

&lt;h4&gt;
  
  
  What I got so far:
&lt;/h4&gt;

&lt;p&gt;&lt;strong&gt;Computed&lt;/strong&gt; - They are cached based on dependency and only re-evaluate on dependency change.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Methods&lt;/strong&gt; - &lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;A method invocation will always run the function whenever a re-render happens.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;What exactly defines a render or re-render? Every data:value change?&lt;/p&gt;

&lt;p&gt;Computed and methods has the same structure, but their location on code are different... 🤔🤔🤔&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="c1"&gt;//vm instance&lt;/span&gt;
&lt;span class="nx"&gt;computed&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="c1"&gt;// a computed getter&lt;/span&gt;
    &lt;span class="nl"&gt;reversedMessage&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="c1"&gt;// `this` points to the vm instance&lt;/span&gt;
      &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="k"&gt;this&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;message&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;split&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;''&lt;/span&gt;&lt;span class="p"&gt;).&lt;/span&gt;&lt;span class="nx"&gt;reverse&lt;/span&gt;&lt;span class="p"&gt;().&lt;/span&gt;&lt;span class="nx"&gt;join&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;''&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="c1"&gt;//...&lt;/span&gt;

&lt;span class="c1"&gt;// in component&lt;/span&gt;
&lt;span class="nl"&gt;methods&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="na"&gt;reverseMessage&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="k"&gt;this&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;message&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;split&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;''&lt;/span&gt;&lt;span class="p"&gt;).&lt;/span&gt;&lt;span class="nx"&gt;reverse&lt;/span&gt;&lt;span class="p"&gt;().&lt;/span&gt;&lt;span class="nx"&gt;join&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;''&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="c1"&gt;//...&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Watch&lt;/strong&gt; - I got confused about this one, Vue's getting started says it is a callback, alerts that is better to use computed, but don't explain for what it is used for...&lt;/p&gt;

&lt;p&gt;I will appreciate any clarification on this topic 👍&lt;/p&gt;

</description>
      <category>explainlikeimfive</category>
      <category>vue</category>
      <category>javascript</category>
    </item>
  </channel>
</rss>
