<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by JS Queen on Medium]]></title>
        <description><![CDATA[Stories by JS Queen on Medium]]></description>
        <link>https://medium.com/@js-queen?source=rss-f93bad4f63------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*OH1Ppp9MUy4857E5EV5gIQ.png</url>
            <title>Stories by JS Queen on Medium</title>
            <link>https://medium.com/@js-queen?source=rss-f93bad4f63------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 14:28:15 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@js-queen/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[30 Days of Solidity. Day 8. Memory. Storage. Calldata. Arrays.]]></title>
            <link>https://medium.com/coinmonks/30-days-of-solidity-day-8-memory-storage-calldata-arrays-560ba953deff?source=rss-f93bad4f63------2</link>
            <guid isPermaLink="false">https://medium.com/p/560ba953deff</guid>
            <category><![CDATA[web3]]></category>
            <category><![CDATA[solidity]]></category>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[blockchain]]></category>
            <dc:creator><![CDATA[JS Queen]]></dc:creator>
            <pubDate>Tue, 22 Aug 2023 18:48:16 GMT</pubDate>
            <atom:updated>2023-08-23T06:58:35.816Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WRiYPJnLbrACSp8Z5-3dmw.png" /></figure><p>Hello friends! <strong>Thank y’all for all the claps on my last post. I’m flattered!</strong></p><p>Welcome to 30 Days of Solidity’s Day 8from CodeDamn. Get the full description of this self-paced course on Solidity <a href="https://codedamn.com/learn/solidity-thirty">here</a>.</p><p>Don’t forget to check out my <a href="https://github.com/javascript-queen/30DaysOfSolidity/tree/main">GitHub</a> repo with all the problems solved.</p><p>My <a href="https://medium.com/@js-queen/30-days-of-solidity-day-1-spdx-license-pragma-contracts-c28f2f6f92fd">first post</a> describes a bit more and might be helpful. So feel free to check that one out as well!</p><p>Here’s our Day 8 task(it’s not fun, just saying):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QuNV2iKrkyT4j8t9x5F4qQ.png" /></figure><p>I’m providing you, guys, with the code from the very beginning. I was truly hopping to have some intricate features for you this time. But we’re looking at theory again. Although, honestly, it’s important to distinguish the things we’re going to discuss.</p><pre>// SPDX-License-Identifier: MIT<br>pragma solidity &gt;=0.5.0 &lt;0.9.0;<br><br>contract Day2 {<br>    function nthTerm(uint n, uint a, uint b, uint c) public pure returns(uint) {<br>    uint[100] memory array;<br>    uint i;<br>    array[1] = a; // n = 1<br>    array[2] = b; // n = 2<br>    array[3] = c; // n = 3<br>    for (i = 4; i &lt;= n; i++) {<br>        array[i] = array[i - 1] + array[i - 2] + array[i - 3];<br>        }<br>        return array[n];<br>    }<br>}</pre><p>All the small things I used in the code(like a <strong>memory</strong> keyword and that <strong>fixed array data type</strong>) inspired me to discuss the following today:</p><ul><li><strong>Arrays on Solidity</strong></li><li><strong>Memory</strong></li><li><strong>Storage</strong></li><li><strong>Calldata</strong></li></ul><p><strong>💠 Arrays on Solidity</strong></p><p>While working with Solidity arrays always remember that each operation on any array will cost gas. A lot of gas. For instance, mappings cost less gas. So,<a href="https://www.alchemy.com/overviews/solidity-mapping#:~:text=Because%20iterating%20over%20an%20array,retrieved%20from%20inside%20a%20mapping."> don’t iterate through arrays</a>. Using mappings is your best bet from gas optimization perspective. Read more about it on the mightiest <a href="https://www.alchemy.com/overviews/solidity-gas-optimization">Alchemy</a>.</p><p>You can read everywhere that arrays are of two types on Solidity: <strong>fixed</strong> and <strong>dynamic-sized😴</strong></p><p>For me, the important things to remember are:</p><ul><li>you can’t push() or pop() to or from a fixed array (<strong>obviously🤓</strong>)</li><li>there are no unshift() and shift() JS methods on Solidity (<strong>bummer!</strong>)</li></ul><p>Use<a href="https://solidity-by-example.org/array/"> this link</a> to see more example on Solidity arrays abuse.</p><p><strong>💠 Memory vs Storage vs Calldata</strong></p><p>Funny enough (or not), but I found it very useful to check on my rusty C since Solidity’s storage/ memory perturbations ringed the bells in my C past. And I found <a href="https://dev.to/giantmachines/be-grateful-for-javascript-arrays-a-comparison-with-c-50n5#:~:text=Arrays%20in%20C%20can%20hold,different%20types%20with%20some%20work.)">this fascinating article</a> on the differences between JS and C.</p><p>In order to analyse the differences between the aforementioned guys (aka <strong>memory, storage, </strong>and<strong> calldata</strong>) I prepared a sequence of small tables:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xY-OjcxSrvORsAO33l_1-Q.png" /><figcaption>Storage is the most expensive data location</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DV52MydjA_VfOScQ_9AzPA.png" /><figcaption>Fun tables are just easier to comprehend</figcaption></figure><p>One of the coolest explanation for the data location types is <a href="https://www.codiesalert.com/storage-vs-memory-vs-calldata/?v=7516fd43adaa">here</a>, guys! It helped me a lot (especially with <strong>this</strong> keyword on my transactions).</p><p>Okay, that’s it for now. I think there is a plethora of information on the data location types, and I was trying to collect all the data I have about that topic(no pun intended). Thanks for tuning in. See you next time!</p><p><em>Sources</em></p><ol><li>Alchemy Documentation (10 Gas Optimisation Techniques): <a href="https://www.alchemy.com/overviews/solidity-gas-optimization">https://www.alchemy.com/overviews/solidity-gas-optimization</a></li><li>Alchemy Documentation (Solidity Mapping): <a href="https://www.alchemy.com/overviews/solidity-mapping#:~:text=Because%20iterating%20over%20an%20array,retrieved%20from%20inside%20a%20mapping.">https://www.alchemy.com/overviews/solidity-mapping#:~:text=Because%20iterating%20over%20an%20array,retrieved%20from%20inside%20a%20mapping.</a></li><li>Solidty by Example (Array): <a href="https://solidity-by-example.org/array/">https://solidity-by-example.org/array/</a></li><li><a href="https://dev.to/mallockey">Josh Melo</a> (Be Grateful for JavaScript Arrays: A Comparison with C): <a href="https://dev.to/giantmachines/be-grateful-for-javascript-arrays-a-comparison-with-c-50n5#:~:text=Arrays%20in%20C%20can%20hold,different%20types%20with%20some%20work.)">https://dev.to/giantmachines/be-grateful-for-javascript-arrays-a-comparison-with-c-50n5#:~:text=Arrays%20in%20C%20can%20hold,different%20types%20with%20some%20work.)</a></li><li>Codies Alert (Storage vs Memory vs Calldata): <a href="https://www.codiesalert.com/storage-vs-memory-vs-calldata/?v=7516fd43adaa">https://www.codiesalert.com/storage-vs-memory-vs-calldata/?v=7516fd43adaa</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=560ba953deff" width="1" height="1" alt=""><hr><p><a href="https://medium.com/coinmonks/30-days-of-solidity-day-8-memory-storage-calldata-arrays-560ba953deff">30 Days of Solidity. Day 8. Memory. Storage. Calldata. Arrays.</a> was originally published in <a href="https://medium.com/coinmonks">Coinmonks</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[30 Days of Solidity. Day 7. Solidity. Math. Pain.]]></title>
            <link>https://coinsbench.com/30-days-of-solidity-day-7-solidity-math-pain-217f8e5cfde4?source=rss-f93bad4f63------2</link>
            <guid isPermaLink="false">https://medium.com/p/217f8e5cfde4</guid>
            <category><![CDATA[solidity]]></category>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[web3]]></category>
            <dc:creator><![CDATA[JS Queen]]></dc:creator>
            <pubDate>Mon, 21 Aug 2023 06:16:30 GMT</pubDate>
            <atom:updated>2023-08-21T14:43:15.718Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OFUE4IKUg_o56wMGVh0a_Q.png" /></figure><p>Hello people! Welcome to 30 Days of Solidity’s Day 7 from CodeDamn. Get the full description of this self-paced course on Solidity <a href="https://codedamn.com/learn/solidity-thirty">here</a> (pssst, it’s free).</p><p>Don’t forget to check out my <a href="https://github.com/javascript-queen/30DaysOfSolidity/tree/main">GitHub</a> repo with all the problems solved.</p><p>My <a href="https://medium.com/@js-queen/30-days-of-solidity-day-1-spdx-license-pragma-contracts-c28f2f6f92fd">first post</a> describes a bit more and might be helpful. So feel free to check that one out as well!</p><p>Here’s our Day 7 task:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aEUhbVsZP4Gr6PNmdr1V8Q.png" /></figure><p>As it’s seen from the screenshot: I’ve already tried running some code. I know JavaScript along with other programming languages, and I thought it was a good idea to use some well-known JS methods or functions in this type of questions: <strong>map()</strong>, <strong>Number()</strong>, <strong>Array.from()</strong>, <strong>Array.unshift()</strong>… Naive, I know😅</p><p>In today’s post we won’t discuss arrays with Solidity. I actually would love to open that topic later when we come closer to balances, addresses, hopefully, structs and mappings. On the bright side, we’re going to cover:</p><ul><li><strong>Solidity Math</strong></li></ul><p>Let’s dive right into it!</p><p>💠 <strong>Solidity Operators</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*60Vs-HcgtMk5Nwj4TCZpQw.png" /><figcaption>Source: <a href="https://www.geeksforgeeks.org/solidity-operators/">https://www.geeksforgeeks.org/solidity-operators/</a></figcaption></figure><p>From the first look at the operators there’s nothing wrong with them. Python has them, Javascript, C, Java… Until you understand the catch with some of them.</p><p>We will use a <a href="https://ethfiddle.com/">compiler</a> Ethfiddle to check some math. I do recommend you checking every piece of code you find on the web (and your own code of course). Testing is always a good practice.</p><p>💠 <strong>Solidity Division</strong></p><p>In my Day 7 code there will be a point where I’m using the perks of Solidity division. It is a pain in the neck to deal with in many cases but thankfully for this sample task Solidity was the cherry on the cake.</p><p>The code we’re using to learn some Solidity division:</p><pre>//Write your own contracts here. Currently compiles using solc v0.4.15+commit.bbb8e64f.<br>pragma solidity ^0.4.24;<br><br>contract Playground {<br><br>function solDivision(int256 n) public pure returns (int256) {<br>        return n/10;<br>    }<br><br>}</pre><p>First, I’m dividing 35 by 10. Why 35? I don’t know. Just 35.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/984/1*1I3JXqKxu5DQEKHjys1ngg.png" /><figcaption>Input 35 as our argument</figcaption></figure><p>And we’re getting (drumroll please):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/890/1*YvpYoTg9GzO5NJPJyu_5Ng.png" /><figcaption>Our result using compiler</figcaption></figure><p>Oh no! Instead of 3.5 we got 3… Well, guys, you should have probably noticed that Solidity doesn’t possess floats data type(😱).</p><p>So, when you desperately need something like 8 divided by 10 to be equal 0,8, you’re getting, you guessed that, 0! Imagine if it’s your ether’s count. 0.8 ethers right now (21 August, 2023) are 1,682.24USD…</p><p>Thankfully there are ways to work with those small floating points and you can learn a lot from<a href="https://hackernoon.com/how-to-bypass-the-integer-division-error-in-smart-contracts"> this article</a>.</p><p>💠 <strong>Day 7 Code</strong></p><p>Okay, let’s look at my code for that Day 7 challenge:</p><pre>// SPDX-License-Identifier: aIT<br>pragma solidity &gt;=0.5.0 &lt;0.9.0;<br><br>contract day1 {<br>    function digitSum(int n) public pure returns (int) {<br>        int res = 0;<br>        while (n &gt; 0) {<br>            res = res + n % 10;<br>            n = n / 10;<br>        }<br>        return res;<br>    }<br><br>}</pre><p>Let’s take a random number, say, <strong>350</strong>. We’re going to go over each step of the while loop below.</p><p><strong>Step 1.</strong></p><ul><li>res = 0</li><li>n = 350 / 10 = 35</li></ul><p><strong>Step 2.</strong></p><ul><li>res = 0 + 5 = 5 (<strong>we’re taking the remainder from the 35 divided by 10 action over there</strong>)</li><li>n = 35 / 10 = 3 (a-ha, hey, Solidity)</li></ul><p><strong>Step 3.</strong></p><ul><li>res = 5 + 3 = 8</li><li>n = 8/ 10 = 0 (oh, hello again, Solidity)</li></ul><p>As you see, we will simply add the numbers one by one and eventually hit the first number which will be no more than <strong>9</strong>. If we divide <strong>9</strong> by <strong>10</strong> in Solidity we will get <strong>0</strong>. Problem solved😉</p><p>Honestly, nothing complicated happened and yet, it’s always interesting to see how different languages work. I learnt useful small tips! What about you? Thanks for reading! See you next time!</p><p><em>Sources</em></p><ol><li>GeeksForGeeks (Solidity Operators): <a href="https://www.geeksforgeeks.org/solidity-operators/">https://www.geeksforgeeks.org/solidity-operators/</a></li><li>How to Bypass the Integer Division Error in Smart Contracts: <a href="https://hackernoon.com/how-to-bypass-the-integer-division-error-in-smart-contracts">https://hackernoon.com/how-to-bypass-the-integer-division-error-in-smart-contracts</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=217f8e5cfde4" width="1" height="1" alt=""><hr><p><a href="https://coinsbench.com/30-days-of-solidity-day-7-solidity-math-pain-217f8e5cfde4">30 Days of Solidity. Day 7. Solidity. Math. Pain.</a> was originally published in <a href="https://coinsbench.com/">CoinsBench</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[30 Days of Solidity. Day 5. Testing. Require. Revert. Assert.]]></title>
            <link>https://medium.com/coinmonks/30-days-of-solidity-day-5-testing-require-revert-assert-91717ec3ed81?source=rss-f93bad4f63------2</link>
            <guid isPermaLink="false">https://medium.com/p/91717ec3ed81</guid>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[solidity]]></category>
            <category><![CDATA[web3]]></category>
            <dc:creator><![CDATA[JS Queen]]></dc:creator>
            <pubDate>Fri, 18 Aug 2023 19:15:16 GMT</pubDate>
            <atom:updated>2023-08-21T11:44:31.557Z</atom:updated>
            <content:encoded><![CDATA[<h3>30 Days of Solidity. Days 5&amp;6. Testing. Require. Revert. Assert.</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LEs0JLPPyGQeFUaT7t47JQ.png" /></figure><p>Hello beautiful people! Welcome to 30 Days of Solidity’s Days 5 and 6 from CodeDamn. Yeah, today we’re looking at 2 days since they compliment each other nicely. Get the full description of this self-paced course on Solidity <a href="https://codedamn.com/learn/solidity-thirty">here</a> (pssst, it’s free).</p><p>Don’t forget to check out my <a href="https://github.com/javascript-queen/30DaysOfSolidity/tree/main">GitHub</a> repo with all the problems solved.</p><p>My <a href="https://medium.com/@js-queen/30-days-of-solidity-day-1-spdx-license-pragma-contracts-c28f2f6f92fd">first post</a> describes a bit more and might be helpful. So feel free to check that one out as well!</p><p>Here’s our task for Day 5. Loved it because we’re gonna study some testing😍</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*97GD5GSA6SXSfQ0PJ9RIow.png" /></figure><p>And here’s our baby Day 6! We’ll dive into require features.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/858/1*brUOcoJTWwnqvPU0vw9j7w.png" /></figure><p>How did I understand that we need some testing going on here? Well, see how a should be more than 0? Well, that’s where we’re gonna read the tale of three brothers:</p><ul><li><strong>require</strong></li><li><strong>revert</strong></li><li><strong>assert</strong></li></ul><p>💠 <strong>Require</strong></p><p>Let’s start with the fact that assert, require and revert functions communicate errors to the calling code and eventually they just stop any further code execution. But they all act a little bit differently.</p><p>require is probably the most used one(or maybe I’ve just seen require used more often). require takes only one boolean argument and it also has the second argument which kinda acts like a comment (so, it’s a string), and the latter argument is optional. However, for the sake of not just stopping the execution for good without any reasons, it’s recommended to still use that second optional argument.</p><pre>require(booleanCondition, &quot;It&#39;s not right!&quot;);</pre><p>Let’s look atrequire in action (<strong>it’s just a part of a code from EVM</strong>):</p><pre>function withdraw() public {<br>    require(msg.sender, &quot;You&#39;re not a sender&quot;);<br>}</pre><p>The address which can withdraw money should be the address that has called or initiated a function, otherwise the transaction won’t go through!</p><p>💠 <strong>Revert</strong></p><p>Have you noticed how require needs a <strong>true</strong> boolean condition? On the contrary, our friend revert needs a <strong>true</strong> boolean condition to be denied (<strong>it’s just a part of a code from EVM</strong>):</p><pre>function withdraw() public {<br>        if (!msg.sender) {<br>            revert withdraw();<br>        } <br>    }</pre><p>So, here we are using if conditioning to revert the <em>withdrawal</em> function.</p><p>💠 <strong>Revert vs. require</strong></p><ol><li>Honestly, it’s very much self-explanatory. See how interestingly we could customize our function revert ? If you do need to add more conditions to your function, make it more sophisticated, then revert is your best bet.</li></ol><p>2. Plus, revert with a custom error costs less gas (😱). Why? With require you’re adding a <strong>string</strong>, right? Strings occupy far more space than just the name of an error you would describe with revert . The error is encoded with just <a href="https://www.alchemy.com/overviews/solidity-require">four bytes</a>.</p><p>💠 <strong>Assert</strong></p><p>And finally, my personal favorite: assert . This bad boy is very laconic and I love it:</p><pre>assert(booleanCondition);</pre><p>If we try to use assert with that small part of our <strong>withdraw</strong> function, we’ll get this:</p><pre>function withdraw() public {<br>        assert(msg.sender);<br>    }</pre><p>Yes, we won’t know what the problem is. But because of its little to no requirements, the gas spent is minimum. It can be helpful in some functions where you know what the function should do and it’s noot a requirement to write any explanations.</p><p>Today’s article is not that long. And I actually found an interesting explanation for require at <a href="https://codedamn.com/news/solidity/what-is-require-in-solidity">CodeDamn</a>. So, feel free to check it out.</p><p>Oh-oh, I almost forgot to post my code for Day 5. Ooopsie! Here it is:</p><pre>// SPDX-License-Identifier: MIT<br>pragma solidity &gt;=0.5.0 &lt;0.9.0;<br><br>contract day5 {<br>    function find(int a) public pure returns(int){<br>        assert(a &gt; 0);<br>        return a % 3;<br>    }<br>}</pre><p>Yep, I used assert ’cause I was feeling slothful… Simple as that😇</p><p>And here’s my simple answer to Day 6:</p><pre>// SPDX-License-Identifier: MIT<br>pragma solidity &gt;=0.5.0 &lt;0.9.0;<br><br>contract day6 {<br>   function average(int a, int b, int c) public pure returns(int) {<br>   require(a&gt;0 &amp;&amp; b&gt;0 &amp;&amp; c&gt;0);<br>   return ((a+b+c)/3);<br>   }<br>}</pre><p>💠 <strong>Require (again😱)</strong></p><p>Actually there’s not that much to say but still. As you probably noticed, in the code for the 6th day I used <strong>logical operators </strong>with<strong> require(). </strong>Yes, it’s something to definitely remeber for now since it’s useful. Instead of writing contitions several times go for logical operators. Oh! As a reminder, here’s the list of logical operators used by Solidity devs:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ppQ5frNbtwHfRbe9SxhvfQ.png" /><figcaption>Source: <a href="https://www.geeksforgeeks.org/solidity-operators/">https://www.geeksforgeeks.org/solidity-operators/</a></figcaption></figure><p>Thanks for reading today’s post, guys! I had a lot of fun! And I hope it was a useful one! See you next time!</p><p><em>Sources</em></p><ol><li>Alchemy (Solidity: require, revert, assert): <a href="https://www.alchemy.com/overviews/solidity-require">https://www.alchemy.com/overviews/solidity-require</a></li><li>CodeDamn (Require): <a href="https://codedamn.com/news/solidity/what-is-require-in-solidity">https://codedamn.com/news/solidity/what-is-require-in-solidity</a></li><li>Au Coin Du Bloc (La fonction require dans les smart contracts): <a href="https://aucoindubloc.com/require-solidity/">https://aucoindubloc.com/require-solidity/</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=91717ec3ed81" width="1" height="1" alt=""><hr><p><a href="https://medium.com/coinmonks/30-days-of-solidity-day-5-testing-require-revert-assert-91717ec3ed81">30 Days of Solidity. Day 5. Testing. Require. Revert. Assert.</a> was originally published in <a href="https://medium.com/coinmonks">Coinmonks</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[30 Days of Solidity. Day 4. Remix. Gas Costs.]]></title>
            <link>https://medium.com/coinmonks/30-days-of-solidity-day-4-remix-gas-costs-57f957c2d904?source=rss-f93bad4f63------2</link>
            <guid isPermaLink="false">https://medium.com/p/57f957c2d904</guid>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[web3]]></category>
            <category><![CDATA[solidity]]></category>
            <dc:creator><![CDATA[JS Queen]]></dc:creator>
            <pubDate>Thu, 17 Aug 2023 11:47:40 GMT</pubDate>
            <atom:updated>2023-08-21T12:05:39.842Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vyUUA4BsZMO4ENKB72I2ag.png" /></figure><p>Hello y’all! Welcome to 30 Days of Solidity’s Day 4 from CodeDamn. Get the full description of this self-paced course on Solidity <a href="https://codedamn.com/learn/solidity-thirty">here</a> (pssst, it’s free).</p><p>Don’t forget to check out my <a href="https://github.com/javascript-queen/30DaysOfSolidity/tree/main">GitHub</a> repo with all the problems solved.</p><p>My <a href="https://medium.com/@js-queen/30-days-of-solidity-day-1-spdx-license-pragma-contracts-c28f2f6f92fd">first post</a> describes a bit more and might be helpful. So feel free to check that one out as well!</p><p>Here’s our simple task for today. It’s honestly so simple that I decided to go deeper down the rabbit hole with gas estimation for transactions in today’s post instead of describing the code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IlYgZ04mNNJRNQo7tcOUoA.png" /></figure><p>We’re looking at:</p><ul><li><strong>Transaction costs (aka gas)</strong></li><li><strong>Remix</strong></li><li><strong>How to check gas prices on Remix</strong></li></ul><p>My final answer for the task from Day 4 is ready. But also check out a longer version down below which seems a bit more readable.</p><pre>// SPDX-License-Identifier: MIT<br>pragma solidity &gt;=0.5.0 &lt;0.9.0;<br><br>contract day4{<br>    function evaluate(int a , int b) public pure returns(int){<br>        return ((a + b) - (a - b));<br>    }<br>}</pre><pre>// SPDX-License-Identifier: MIT<br>pragma solidity &gt;=0.5.0 &lt;0.9.0;<br><br>contract day4{<br>    function evaluate(int a, int b) public pure returns (int) {<br>        int sum = (a + b);<br>        int difference = (a - b);<br>        int result = sum - difference;<br>        return result;<br>    }<br>}</pre><p>As you see I added 3 state variables to the second one and made the code more like a step-by-step guide instead of a one-liner I chose to eventually publish.</p><p>The questions which I had on my mind:</p><ul><li>How did those codes affect EVM?</li><li>How much data is used and what are the costs for both types of transactions (I do remember that both <strong>pure</strong> and <strong>view</strong> functions are free but you still pay some gas to deploy the contract)?</li></ul><p>💠 <strong>Transaction’s costs (aka gas)</strong></p><p>I’ll tell you one secret, guys, but please do not tell anyone… Everything costs money! Even operators on Ethereum. No kidding here. Check that table out:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fgdtir8q5cGVuQCcvYcH9A.png" /><figcaption>Source: <a href="https://oneswap.medium.com/oneswap-series-3-arithmetic-operations-in-solidity-2f32fbb2ccbc">https://oneswap.medium.com/oneswap-series-3-arithmetic-operations-in-solidity-2f32fbb2ccbc</a></figcaption></figure><p>These fees we pay for computational work are called <strong>gas</strong>. As <em>Patrick Collins (Chainlink Developer Advocate, Alpha Chain CEO &amp; Founder) </em>states in his <a href="https://dev.to/patrickalphac/getting-gas-prices-in-solidity-4ijf">article</a>:</p><blockquote><a href="https://blockgeeks.com/guides/ethereum-gas/#:~:text=As%20explained%20in%20the%20introduction,take%20to%20execute%20certain%20operations.&amp;text=Each%20and%20every%20line%20of,of%20gas%20to%20be%20executed.">Gas in solidity</a> is a special <strong>unit</strong> of computational work and storage it costs to <strong>execute on-chain interactions and state changes</strong>. So if you do some addition, that will cost less gas than if you do addition, multiplication, and division.</blockquote><p>Life is expensive on blockchains as you can see. So, the more operations, data, lines you have the more you pay. If you look at my codes above, one of them has like 3 lines of code (not counting imports etc), the other has 6 lines. On blockchain it makes a huge difference. I’ll show you the costs for both of my contracts which I was able to see on Remix (read on and you will learn what Remix is😉).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/632/1*UX7aQIuldIWuOFsCNj4RkA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/648/1*QyzYYJ5rpGX_JroGr5491w.png" /><figcaption>Picture 1: gas for the first code; Picture 2: gas for the second code</figcaption></figure><p>My “<strong>3-liner</strong>” is cheaper but both codes do the same thing! To see the gas prices you can use Remix (so no need to count it all by yourself).</p><p>Although, if you are really curious about how the gas is calculated I suggest reading this <a href="https://www.gemini.com/cryptopedia/what-are-gas-fees-gwei-gas-fees-eth-ether-transaction-fee"><strong>article</strong></a> from <em>Cryptopedia</em>.</p><p>💠 <strong>Remix</strong></p><p>A simple explanation on Remix is provided by <a href="https://docs.chain.link/getting-started/conceptual-overview#what-is-remix"><strong><em>Chainlink</em></strong></a>:</p><blockquote><a href="https://remix.ethereum.org/">Remix</a> is a web IDE (integrated development environment) for creating, running, and debugging smart contracts in the browser.</blockquote><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FJWJWT9cwFbo%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DJWJWT9cwFbo&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FJWJWT9cwFbo%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/767835c00da0809096b4584fe5fe8c47/href">https://medium.com/media/767835c00da0809096b4584fe5fe8c47/href</a></iframe><p>Remix is basically like your favorite local development environments (e.g. say Visual Studio Code, Sublime Text, Atom, etc.) or cloud development platforms (i.e. Codepen or CodeSandbox) but for smart contracts. It’s a very good tool for practice, given that you don’t have to load all the dependencies for contract development locally.</p><p>💠 <strong>How to check gas prices on Remix</strong></p><p>After you deploy your sample contract on Remix you can see all the data on that very contract in the command line. We can see <strong>gas</strong>, <strong>transaction</strong> <strong>cost</strong>, and even <strong>execution cost</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oNuFQqY7wtEMy78D8v_k5g.png" /><figcaption>Deploying my contract on Remix</figcaption></figure><p>If you want to learn more about how to work with Remix, then check this 2-minute video from <a href="https://www.youtube.com/watch?v=vH8T3In6ZkE">EatTheBlocks</a> out:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FvH8T3In6ZkE%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DvH8T3In6ZkE&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FvH8T3In6ZkE%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/18b3c776d0d451a2de836bafc52ca9a3/href">https://medium.com/media/18b3c776d0d451a2de836bafc52ca9a3/href</a></iframe><p>Thanks for reading today’s blogpost! Looking forward to seeing what Solidity brings us tomorrow!</p><p><em>Sources</em></p><ol><li>Gabriel Delight (A Comprehensive Guide To Gas And Gas Price In Solidity): <a href="https://blog.openreplay.com/a-comprehensive-guide-to-gas-and-gas-price-in-solidity/">https://blog.openreplay.com/a-comprehensive-guide-to-gas-and-gas-price-in-solidity/</a></li><li>OneSwap Series 3-Arithmetic Operations in Solidity: <a href="https://oneswap.medium.com/oneswap-series-3-arithmetic-operations-in-solidity-2f32fbb2ccbc">https://oneswap.medium.com/oneswap-series-3-arithmetic-operations-in-solidity-2f32fbb2ccbc</a></li><li>Chainlink Documentation (What Is Remix): <a href="https://docs.chain.link/getting-started/conceptual-overview#what-is-remix">https://docs.chain.link/getting-started/conceptual-overview#what-is-remix</a></li><li>Patrick Collins (Gas Prices): <a href="https://dev.to/patrickalphac/getting-gas-prices-in-solidity-4ijf">https://dev.to/patrickalphac/getting-gas-prices-in-solidity-4ijf</a></li><li>Cryptopedia (Gas Costs): <a href="https://www.gemini.com/cryptopedia/what-are-gas-fees-gwei-gas-fees-eth-ether-transaction-fee">https://www.gemini.com/cryptopedia/what-are-gas-fees-gwei-gas-fees-eth-ether-transaction-fee</a></li></ol><p><em>Videos</em></p><ol><li>Intro to Remix: <a href="https://youtu.be/JWJWT9cwFbo">https://youtu.be/JWJWT9cwFbo</a></li><li>Getting Started With Remix (Solidity) in 2 mins: <a href="https://www.youtube.com/watch?v=vH8T3In6ZkE">https://www.youtube.com/watch?v=vH8T3In6ZkE</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=57f957c2d904" width="1" height="1" alt=""><hr><p><a href="https://medium.com/coinmonks/30-days-of-solidity-day-4-remix-gas-costs-57f957c2d904">30 Days of Solidity. Day 4. Remix. Gas Costs.</a> was originally published in <a href="https://medium.com/coinmonks">Coinmonks</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[30 Days of Solidity. Day 3. Getter. Setter. Uint. Int.]]></title>
            <link>https://coinsbench.com/30-days-of-solidity-day-3-getter-setter-uint-int-22517cfc0308?source=rss-f93bad4f63------2</link>
            <guid isPermaLink="false">https://medium.com/p/22517cfc0308</guid>
            <category><![CDATA[solidity]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[web3]]></category>
            <category><![CDATA[ethereum]]></category>
            <dc:creator><![CDATA[JS Queen]]></dc:creator>
            <pubDate>Wed, 16 Aug 2023 14:13:22 GMT</pubDate>
            <atom:updated>2023-08-21T14:43:25.697Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*z4uW3d4C20TJvUehWWOJng.png" /></figure><p>Hello lovely people! Welcome to 30 Days of Solidity’s Day 3 from CodeDamn. Get the full description of this self-paced course on Solidity <a href="https://codedamn.com/learn/solidity-thirty">here</a> (pssst, it’s free).</p><p>Don’t forget to check out my <a href="https://github.com/javascript-queen/30DaysOfSolidity/tree/main">GitHub</a> repo with all the problems solved.</p><p>My <a href="https://medium.com/@js-queen/30-days-of-solidity-day-1-spdx-license-pragma-contracts-c28f2f6f92fd">first post</a> describes a bit more and might be helpful. So feel free to check that one out!</p><p>Welcome to Day 3😉</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zNYsQY7yN6QQApP_Ut5EqQ.png" /></figure><p>As you can see from the screenshot my IDE didn’t load on CodeDamn, I guess, they were having issues, so I was creating the whole little project for myself. It was quite interesting actually. Now I leant a basic setup for testing environment on CodeDamn (it’s usually a folders’ tree under that second icon with files):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NB2n6yuHWx4Snh-96eNUwg.png" /></figure><p>If you ask how I recreated the file structure… Well, I became a real programmer for a second, went back to my previous days and looked at files out there. As you see, we have:</p><ul><li>build</li><li>yarn.lock (<strong>so, we need to run yarn install in the command line ourselves</strong>)</li><li>we need node.models (<strong>they will be loaded with yarn</strong>)</li><li>config files which, I confess, I copy pasted</li><li>contracts folder with my contract file (remember it has <strong>.sol</strong> extension)</li><li>and a <strong>migration</strong> folder (here I looked at the migrations folder from my previous challenges and wrote the code below):</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/434/1*LqzbFAgBT8lrpNUIPTgYPQ.png" /><figcaption>Migrations folder</figcaption></figure><pre>const FunctionArgument = artifacts.require(&quot;FunctionArgument&quot;);<br><br>module.exports = function (deployer) {<br>  deployer.deploy(FunctionArgument);<br>};</pre><p>Okay, after my perturbations with the IDE I finally compiled my code for Day 3 challenge.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/996/1*z8WQD8QqrF7d5FI9zcWZSw.png" /><figcaption>Finally the compiler decided to cooperate!</figcaption></figure><p><strong>⚠️ SPOILERS ALERT! I decided to start with my code from the very beginning here. So if you want to solve the problem for yourself first, please do not read on for now!</strong></p><p>And here’s my code for the challenge:</p><pre>// SPDX-License-Identifier: MIT<br>pragma solidity &gt;=0.5.0 &lt;0.9.0;<br><br>// creating contract<br><br>contract FunctionArgument {<br>    // creating non-public state variable with data type uint which is the same as uint256<br>    uint stateVariable;<br><br>    function set(uint _stateVariable) public {<br>        stateVariable = _stateVariable;<br>    }<br><br>    function get() public returns (uint){<br>        return stateVariable;<br>    }<br>}</pre><p>Let’s see what we’re having in the agenda today:</p><ul><li><strong>Setters</strong></li><li><strong>Getters</strong></li><li><strong>Uint data type</strong></li><li><strong>Why does Solidity use different types of basically one data type?</strong></li></ul><p>💠 <strong>Setters &amp; Getters: a marriage made in heaven…</strong></p><p>Setters and getters are all over the place in programming. In my sample contract I’m creating a state variable with uint first and then <strong>set</strong> its value with the value passed as argument to my set function.</p><pre>uint stateVariable;<br><br>    function set(uint _stateVariable) public {<br>        stateVariable = _stateVariable;<br>    }</pre><p>Then I needed to get that updated <strong>stateVariable</strong> in another function called get:</p><pre>function get() public returns (uint){<br>        return stateVariable;<br>    }</pre><p>Those functions are methods used in programming. And they do the things I just described above:</p><ul><li><strong>getters</strong> are used for <em>getting </em>the<em> </em>value of the property</li><li><strong>setters</strong> are used for <em>setting </em>the<em> </em>value of the property</li></ul><p>The use of <strong>setters</strong> and <strong>getters</strong> is considered an antipattern by many developers. You can read about this idea in <em>Yegor Bugayenko’s </em>post<em> </em><a href="https://www.yegor256.com/2014/09/16/getters-and-setters-are-evil.html"><strong>here</strong></a>. Don’t forget to check the comment section out as well.</p><p>Oh, and while I’m still here. O’Reilly has a 1-minute-long <a href="https://www.oreilly.com/library/view/solidity-smart-contracts/9781838989231/video2_5.html"><strong>video</strong></a> explaining the set andgetfunctions.</p><p>💠 <strong>UINT</strong></p><p>As you noticed I used just a simple uint in my function. <strong>Uint </strong>is one of many many data types on Solidity. In the Day 2 challenge I used uint16 , I think. Okay, stop numbers magic, why do we have so many uints here?!</p><p>Oh, this marvelous language has int as well, guys. So, we’re not done here! Although,int is just an <strong>integer</strong>. So, this data type also has negative values. Ah-ha, then uint is an <strong>unsigned integer, </strong>and it<strong> </strong>doesn’t have negative values. Remember that <strong>0</strong> is considered <strong>non-negative</strong>.</p><p>There are many many many <strong>uitns</strong>, guys:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FcyUOC2IIgnaltoSppsNOg.png" /><figcaption>Source: <a href="https://mavlevin.com/2023/02/22/Size-Matters-Solidity-Integer-Range-Cheatsheet-From-uint8-To-uint256.html">https://mavlevin.com/2023/02/22/Size-Matters-Solidity-Integer-Range-Cheatsheet-From-uint8-To-uint256.html</a></figcaption></figure><p>If you simply write uint, then it automatically defaults to uint256 (the last possible uint). Same goes for just int . Check the values out <a href="https://mavlevin.com/2023/02/22/Size-Matters-Solidity-Integer-Range-Cheatsheet-From-uint8-To-uint256.html">here</a> if you’re curious!</p><p>The differences between the aforementioned data types is simple and interesting. Let’s look at uint16 and int16 :</p><p>uint16 ranges from 0 to 65535</p><p>int16 ranges from -32768 to 32767 (it looks like a scale to me, we need to have the same number of values on the both sides)</p><p>💠 <strong>Why does Solidity use different types of basically one data type?</strong></p><p>I will just write two words:<strong> gas optimization</strong>. Honestly, simple as that. The more data your integer (be it signed or unsigned) contains the more gas you spend. So, be careful!</p><p>Phew, that was a mouthful! I hope it was still rather nifty, guys! Good luck! See y’all next time!</p><p><em>Sources</em></p><ol><li>Yegor Bugayenko<em> (</em>Getters/Setters. Evil. Period.) <a href="https://www.yegor256.com/2014/09/16/getters-and-setters-are-evil.html">https://www.yegor256.com/2014/09/16/getters-and-setters-are-evil.html</a></li><li>O’Reilly (Getters &amp; Setters — Solidity): <a href="https://www.oreilly.com/library/view/solidity-smart-contracts/9781838989231/video2_5.html">https://www.oreilly.com/library/view/solidity-smart-contracts/9781838989231/video2_5.html</a></li><li>Alchemy (Solidity Data Types: int &amp; uint): <a href="https://www.alchemy.com/overviews/solidity-uint">https://www.alchemy.com/overviews/solidity-uint</a></li><li>Mav Levin (Data Type Size Matters): <a href="https://mavlevin.com/2023/02/22/Size-Matters-Solidity-Integer-Range-Cheatsheet-From-uint8-To-uint256.html">https://mavlevin.com/2023/02/22/Size-Matters-Solidity-Integer-Range-Cheatsheet-From-uint8-To-uint256.html</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=22517cfc0308" width="1" height="1" alt=""><hr><p><a href="https://coinsbench.com/30-days-of-solidity-day-3-getter-setter-uint-int-22517cfc0308">30 Days of Solidity. Day 3. Getter. Setter. Uint. Int.</a> was originally published in <a href="https://coinsbench.com/">CoinsBench</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[30 Days of Solidity. Day 2. SPDX License. Pragma. Contracts.]]></title>
            <link>https://medium.com/coinmonks/30-days-of-solidity-day-2-spdx-license-pragma-contracts-fc3a8001de33?source=rss-f93bad4f63------2</link>
            <guid isPermaLink="false">https://medium.com/p/fc3a8001de33</guid>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[web3]]></category>
            <category><![CDATA[solidity]]></category>
            <dc:creator><![CDATA[JS Queen]]></dc:creator>
            <pubDate>Tue, 15 Aug 2023 12:04:25 GMT</pubDate>
            <atom:updated>2023-08-18T13:06:07.513Z</atom:updated>
            <content:encoded><![CDATA[<h3>30 Days of Solidity. Day 2. Functions. Variables. Visibility.</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mYuA2txML3AZxHOhYH3XuQ.png" /></figure><p>Hello everyone! Welcome to 30 Days of Solidity’s Day 2 from CodeDamn. Get the full description of this fascinating opportunity to study dome fun Solidity concepts <a href="https://codedamn.com/challenge/30-days-of-solidity#start">here</a>.</p><p>Don’t forget to check out my <a href="https://github.com/javascript-queen/30DaysOfSolidity/tree/main">GitHub</a> repo for this course.</p><p>My <a href="https://medium.com/@js-queen/30-days-of-solidity-day-1-spdx-license-pragma-contracts-c28f2f6f92fd">first post</a> describes a bit more and might be helpful. So feel free to check that one out!</p><p>So, without further ado, welcome to Day 2😃</p><p>Today we’re cooking:</p><ul><li><strong>State Variables vs Local Variables</strong></li><li><strong>Other Variables on Solidity</strong></li><li><strong>Functions</strong></li><li><strong>Pure vs View Functions (gas efficiency)</strong></li></ul><p>The problem is outlined below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QNYe4W1WFLqEC7CYtDGQLQ.png" /></figure><p><strong>⚠️ SPOILERS ALERT! I decided to start with my code from the very beginning here. So if you want to solve the problem for yourself first, please do not read on for now!</strong></p><p>Here’s the code for my <strong>Function contract </strong>from the task<strong>:</strong></p><pre>// SPDX-License-Identifier: MIT<br>pragma solidity &gt;=0.5.0 &lt;0.9.0;<br><br>contract Function{<br>    // creating a state variable<br>    uint16 stateVariable = 10;<br>    // creating a function which will use that state variable<br>    function returnStateVariable() public view returns (uint16){<br>        return stateVariable;<br>    }<br><br>    //  creating a function which will return its local variable<br>    function returnLocalVariable() public pure returns (uint16){<br>     // creating a local variable<br>        uint16 localVariable = 20;<br>        return localVariable;<br>    }<br>}</pre><p>Let’s figure the concepts out step by step.</p><p><strong>💠 State Variables</strong></p><p>In my code <strong>stateVariable</strong> is defined inside a contract. But any function declared inside the contract can access <strong>stateVariable</strong>.</p><pre>uint16 stateVariable = 10;<br><br>function returnStateVariable() public view returns (uint16){<br>   return stateVariable;<br>}</pre><p><strong>💠 Local Variables</strong></p><p>As it is stated on <a href="https://docs.alchemy.com/docs/solidity-vs-javascript">Alchemy docs</a>:</p><blockquote>Local variables defined inside of a code block {} or passed in as arguments live in memory only for the length of their particular scope.</blockquote><p>So, you can see in my code that the <strong>localVariable</strong> is defined inside the function <strong>returnLocalVariable</strong>, thus, can be accessed only inside that very function:</p><pre>function returnLocalVariable() public pure returns (uint16){<br>        uint16 localVariable;<br>    }</pre><p><strong>💠 Are there other variables?</strong></p><p>Indeed! They are called <strong>Global Variables</strong>. To provide an example, I’ll write down some of them below(you would recognize them immediately!):</p><pre>msg.sender// aka an address which sends tokens<br><br>// or<br><br>msg.value // aka a number of wei sent with the message</pre><p>Check other variables out <a href="https://docs.soliditylang.org/en/v0.8.10/units-and-global-variables.html#block-and-transaction-properties">here</a>.</p><p><strong>💠 Functions</strong></p><p>In my code I used the public keyword for my functions. This is an interesting concept which is called <strong>visibility</strong>. From its name we understand that this function is on everyone’s display so to speak.</p><p>So, let’s give a definition to public functions:</p><ul><li>public function is a function which give an opportunity to any contract to call into this function</li></ul><p>There are other types of functions on Solidity. Hopefully, in the next lessons we will see the use of them. For now, let’s just outline them all here:</p><ul><li>external</li><li>internal</li><li>private</li></ul><p>If you want to get your hands dirty with function types on Solidity check this <a href="https://docs.alchemy.com/docs/solidity-functions">page</a> out.</p><p><strong>💠 View vs Pure functions</strong></p><p>Let’s go back to my code again and look at the keywords that follow the public keyword:</p><pre>function returnStateVariable() public view returns (uint16)</pre><pre>function returnLocalVariable() public pure returns (uint16)</pre><p><strong>Pure</strong> and <strong>view</strong> functions are all over the Solidity. Funny enough, the keywords are pretty self-explanatory. Theview function means that no state will be changed and can only be<strong> read</strong>.</p><p>Noticed how I used the pure keyword in the second function instead of view? Not only do pure functions <strong>not modify the state</strong>, they also <strong>do not read or access any state variables</strong>. Thus, since I’m using only a local variable here, I can just create pure function for the sake of example.</p><p>‼️ If you use view function in place pure one of where it’s advised, compiler will scream at you something from these lines:</p><pre> Warning: Function state mutability can be restricted to pure</pre><p>So, it’s great to understand the concepts behind Solidity… And yet so far our sophisticated compiler saved our b*** each time.</p><p><strong>💠 Gas Problema for view and pure functions</strong></p><p>I was also wondering about gas expenditure for both pure and view functions. I thought that since they don’t change the state, then we don’t spend any gas with them. I was actually wrong. I suggest you guys read <a href="https://ethereum.stackexchange.com/questions/52885/view-pure-gas-usage-cost-gas-if-called-internally-by-another-function">this</a> discussion on Ethereum StackExchange for some ideas.</p><p>Thanks for reading my blogpost! See you soon!</p><p><em>Sources</em></p><ol><li>Alchemy Documentation (Solidity vs Javascript): <a href="https://docs.alchemy.com/docs/solidity-vs-javascript">https://docs.alchemy.com/docs/solidity-vs-javascript</a></li><li>Alchemy Documentation (Solidity functions): <a href="https://docs.alchemy.com/docs/solidity-functions">https://docs.alchemy.com/docs/solidity-functions</a></li><li>Ethereum StackExchange (View/Pure Functions Gas Usage): <a href="https://ethereum.stackexchange.com/questions/52885/view-pure-gas-usage-cost-gas-if-called-internally-by-another-function">https://ethereum.stackexchange.com/questions/52885/view-pure-gas-usage-cost-gas-if-called-internally-by-another-function</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fc3a8001de33" width="1" height="1" alt=""><hr><p><a href="https://medium.com/coinmonks/30-days-of-solidity-day-2-spdx-license-pragma-contracts-fc3a8001de33">30 Days of Solidity. Day 2. SPDX License. Pragma. Contracts.</a> was originally published in <a href="https://medium.com/coinmonks">Coinmonks</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[30 Days of Solidity. Day 1. SPDX License. Pragma. Contracts.]]></title>
            <link>https://coinsbench.com/30-days-of-solidity-day-1-spdx-license-pragma-contracts-c28f2f6f92fd?source=rss-f93bad4f63------2</link>
            <guid isPermaLink="false">https://medium.com/p/c28f2f6f92fd</guid>
            <category><![CDATA[solidity]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[ether]]></category>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[30dayschallenge]]></category>
            <dc:creator><![CDATA[JS Queen]]></dc:creator>
            <pubDate>Mon, 14 Aug 2023 12:12:07 GMT</pubDate>
            <atom:updated>2023-08-16T16:29:37.913Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KCaqpTPHCmnsd2OhHuzyqQ.png" /></figure><p>Hello everyone! Welcome to 30 Days of Solidity’s Day 1 from CodeDamn. Get the full description of this fascinating opportunity to study dome fun Solidity concepts <a href="https://codedamn.com/challenge/30-days-of-solidity#start">here</a>.</p><p>Don’t forget to check out my <a href="https://github.com/javascript-queen/30DaysOfSolidity/tree/main">GitHub</a> repo for this course.</p><p>When you follow the link you’ll find yourself here:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UfWwr80dFAAOBdb5qQf_PQ.png" /></figure><p>Let’s click Day 1, guys😃</p><p>Our first problem is pretty simple, and yet I would love to discuss the following:</p><ul><li><strong>SPDX License</strong></li><li><strong>Pragma</strong></li><li><strong>Contracts</strong></li></ul><p>Oh, btw, the problem is written below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zgQETIHCHLvaupJGCba8Aw.png" /></figure><h4>💠 SPDX License</h4><p>The questions I asked myself after I received the warning:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Rh_cdDiFVWh3vAekxE2Uzg.png" /><figcaption>⚠️ SPDX license identifier not provided in source file</figcaption></figure><ul><li>What is SPDX-License-Identifier(da-ah)?</li><li>Why should I use it?</li><li>They suggested using “UNLICENSED” keyword for non-open-source code… Hmmm, can I make it an open-source one?</li><li>Where should I add that <strong>Identifier</strong> comment?</li></ul><p>1️⃣ <strong>SPDX-License-Identifier</strong> is something like a <strong>green light</strong> for developers if they want to use Solidity code they found on the web.</p><p>2️⃣ Basically SPDX License protects your own rights as a developer. You can release a software and decide whether it’s open to use or not. Same goes for other fellow devs.</p><p>3️⃣ If you don’t want anyone to use your code, then it’s important to put the <strong>UNLICENSED-</strong>keyword. There are many licenses out there. But usually I see <strong>MIT license</strong>. Why? It’s simply the easiest one to use. It allows any user to do pretty much anything a software which is licensed as MIT. As a dev you still have to include a copy of the license inside your project and that copyright notice we’ve discussed above.</p><p>4️⃣ <strong>Fun fact</strong>: You can actually put the license identifier anywhere you want in your code. But it’s considered to be quite traditional to write that comment at the very beginning of your files or contracts.</p><p>So, all you need to write is:</p><pre>// SPDX-License-Identifier: MIT</pre><p>Didn’t hurt to do that, honestly. And yet, I know it can confuse the living s*** out of people.</p><h4>💠 Pragma</h4><p>My questions about that creation of someone’s genius mind:</p><ul><li>What are pragma versions?</li><li>How can you specify pragma versions?</li><li>Which version to use?</li></ul><p>1️⃣ Pragma is short for “Pragmatic Information for Solidity”. When using Solidity you need to specify the version of the Solidity you want your contract to be compiled with.</p><p>2️⃣ In day-to-day development versions of software usually contain three numbers. Please, look at the picture below which was kindly shared by [Alchemy](<a href="https://docs.alchemy.com/docs/what-is-solidity-syntax">https://docs.alchemy.com/docs/what-is-solidity-syntax</a>) on their docs:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/524/1*c2lrK2Bqvntq1p-frD2KcQ.png" /><figcaption>Alchemy Scheme to understand software versions</figcaption></figure><p>There are 3 ways to choose that Solidity version:</p><pre>// the following line of code specifies ONLY compiler version 0.8.21 (the latest one)<br>pragma solidity 0.8.21;<br> <br>// this one specifies 0.8.11 up until the latest one<br>pragma solidity ^0.8.11;<br> <br>// and this one specifies 0.8.11 up until 0.9.0 (including 0.8.20)<br>pragma solidity &gt;0.8.11 &lt;=0.8.20;</pre><p>3️⃣ It’s said that it’s best to use the latest version of Solidity except when you actually need some specific features. You can check version descriptions [here](<a href="https://github.com/ethereum/solidity/releases">https://github.com/ethereum/solidity/releases</a>).</p><h4>💠 Contract</h4><p>Finally, we need to write a very simple contract in our Day 1 challenge. Here’s what I’ve got:</p><pre>// SPDX-License-Identifier: MIT<br><br>pragma solidity &gt;=0.5.0 &lt; 0.9.0;<br><br>contract HelloSolidity{<br>    string public str = &quot;Hello Solidity&quot;;<br>}</pre><p>I guess, you’re already familiar with the <strong>string</strong> data type? We won’t stop on data types in Solidity here. But let’s look at the <strong>contract</strong> keyword.</p><p>Contracts in Solidity act almost like <strong>classes</strong>. But! I said <strong>almost</strong> for a reason… We’ll look at<strong> Solidity contract syntax</strong> compared to <strong>JavaScript class syntax</strong> to spot any important details we can.</p><p><strong>Solidity (a basic contract to get the address of coins sender)</strong></p><pre>// Solidity contract<br>contract SolidityContract {<br><br>  // Solidity variable for a sender of money <br>  address private sender;<br><br>  // Solidity constructor function<br>  constructor() {<br>    sender = msg.sender;<br>  }<br><br>  // Solidity contract functions<br>  function getSender() external view returns(address) {<br>    return sender;<br>  }<br>}</pre><p><strong>JavaScript</strong></p><pre>// Javascript class<br>class JsClass { <br>  // Javascript constructor function<br>  constructor(sender, receiver) {<br>    this.sender = sender;<br>    this.receiver = receiver;<br>  }<br>  <br>  // Javascript class methods<br>  function getSender() {<br>    return this.sender;<br>  }<br>}</pre><p>For me, the difference is that in Solidity, the contract instances are always live on the blockchain, there’s no way to just delete them when the contract is already deployed. So, basically the difference is hidden in the software itself. In our case, in the magnificent EVM.</p><p>Thanks for reading. Check out the sources used below!</p><p><em>Sources</em></p><ol><li>Solidity Documentation (SPDX): <a href="https://docs.soliditylang.org/en/v0.6.8/layout-of-source-files.html#spdx-license-identifier">https://docs.soliditylang.org/en/v0.6.8/layout-of-source-files.html#spdx-license-identifier</a></li><li>Solidity Documentation (Pragmas): <a href="https://docs.soliditylang.org/en/v0.6.8/layout-of-source-files.html?highlight=pragma#pragmas">https://docs.soliditylang.org/en/v0.6.8/layout-of-source-files.html?highlight=pragma#pragmas</a></li><li>Alchemy Documentation (Solidity Syntax): <a href="https://docs.alchemy.com/docs/what-is-solidity-syntax">https://docs.alchemy.com/docs/what-is-solidity-syntax</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c28f2f6f92fd" width="1" height="1" alt=""><hr><p><a href="https://coinsbench.com/30-days-of-solidity-day-1-spdx-license-pragma-contracts-c28f2f6f92fd">30 Days of Solidity. Day 1. SPDX License. Pragma. Contracts.</a> was originally published in <a href="https://coinsbench.com/">CoinsBench</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Feeling lonely in your coding journey? RS School will cheer you up!]]></title>
            <link>https://medium.com/@js-queen/feeling-lonely-in-your-coding-journey-rs-school-will-cheer-you-up-f8b046101e1b?source=rss-f93bad4f63------2</link>
            <guid isPermaLink="false">https://medium.com/p/f8b046101e1b</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[careers]]></category>
            <category><![CDATA[beginner]]></category>
            <category><![CDATA[webdev]]></category>
            <dc:creator><![CDATA[JS Queen]]></dc:creator>
            <pubDate>Sun, 20 Feb 2022 15:43:16 GMT</pubDate>
            <atom:updated>2022-02-20T15:43:16.485Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1012/1*emwHTUWoBB3Vg2oHCTey8A.png" /></figure><p>⚠️ This isn’t a paid promotion. All the links are not affiliated.</p><p>I’m finishing up with Stage 0 at <a href="https://rs.school/"><strong>RS School</strong></a>. And in my current article, I’m interviewing myself, asking what I learned and built due to this incredible community.</p><p><strong>What is RS School?</strong></p><p>RS school is a free online school for future front-end developers. They have programs in English and Russian.</p><p>Everything there is project-based, meaning that you gradually gain experience building projects from scratch. You will have some demos. You’re also provided with very descriptive hints to kickstart your new projects.</p><p>The front-end program consists of three stages plus a preparatory one. Learn more about programs <a href="https://rs.school/js-en/"><strong>here</strong></a><strong> (English)</strong> and<strong> </strong><a href="https://rs.school/js/"><strong>here</strong></a><strong> (Russian)</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YU5ymjG5Q3qEtz7naM8NoQ.png" /></figure><p><strong>Who are the mentors, and why is it free?</strong></p><p>Teachers and mentors of the school are front-end developers from various countries. The course is provided by the development crew from the <a href="https://rollingscopes.com/"><strong>Rolling Scopes</strong></a>.</p><p>And yes–all materials and the learning path are free of charge. The school exists according to the principal <em>pay-it-forward</em>. So, you potentially might work for the company or stay at the school mentoring newbies. You’re also allowed to donate to your mentors as thanks, but it’s not a requirement, of course.</p><p><strong>What have I built during Stage 0?</strong></p><p>First off, you’ll learn the basics of CSS, HTML, and JavaScript. But that’s not the ceiling. You’ll be able to level up your <a href="https://www.codewars.com/"><strong>Codewars</strong></a> to <a href="https://docs.codewars.com/gamification/ranks/#:~:text=Kyu%20(or%20Ky%C5%AB)%20indicates%20the,martial%20arts%20are%20Dan%20level."><strong>kye</strong></a><strong> </strong>5, solve some algorithm problems, work with APIs, and learn about DOM, CDN, TLD, and other obscure abbreviations.</p><p>Deadlines are sometimes quite tight, and the amount of knowledge can become a burden on your brain and your day-to-day schedule. Nevertheless, always remember what you came here for and never give up. Okay, let me showcase what I’ve built during my first 11 weeks:</p><ul><li><a href="https://justannakuznetsova.github.io/rsschool-cv/"><strong>Personal beginner-level CV</strong></a></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*l04YDtZWHrK3MUCdvI3ijg.png" /></figure><ul><li><a href="https://rolling-scopes-school.github.io/justannakuznetsova-JSFEPRESCHOOL/portfolio/"><strong>Cool-looking portfolio for a fake photographer</strong></a> (mine is only responsive on tablets)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TD7N5rNwAz0nPQVQCpuOAw.png" /></figure><ul><li><a href="https://rolling-scopes-school.github.io/justannakuznetsova-JSFEPRESCHOOL/chinesesounds/"><strong>Music app</strong></a></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*_4n8eRSBAymcPFdgseBaMQ.gif" /></figure><ul><li><a href="https://rolling-scopes-school.github.io/justannakuznetsova-JSFEPRESCHOOL/image-gallery/"><strong>Photo gallery website</strong></a> (this one helps you to understand API more):</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*O8kaspTzoNlcZeFi_CLPDA.gif" /></figure><ul><li><a href="https://rolling-scopes-school.github.io/justannakuznetsova-JSFEPRESCHOOL/memory-game/"><strong>Cute little game</strong></a> (plus learn DOM for it)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*ODVos6OR8qmdM_Z230UNTQ.gif" /></figure><p><strong>Do I want to continue?</strong></p><p>Absolutely yes! I got my certificate of completion, met incredible people, learned how to create a lot of cool stuff, and I’m excited to gain more knowledge. We’re gonna dive into NodeJS, TypeScript, React/Angular, and many more things in the next steps.</p><p>If you want to learn more about this amazing place, feel free to check out the links below. That’s all for now. Good luck with your coding journey!</p><p><a href="https://rs.school/"><strong>RS School in Russian</strong></a></p><p><a href="https://rollingscopes.com/"><strong>RS Scopes in English</strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f8b046101e1b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ 7 Romantic VS Code Themes for the perfect Valentine’s Day]]></title>
            <link>https://medium.com/@js-queen/7-romantic-vs-code-themes-for-the-perfect-valentines-day-9f153f1504a5?source=rss-f93bad4f63------2</link>
            <guid isPermaLink="false">https://medium.com/p/9f153f1504a5</guid>
            <category><![CDATA[tutorial]]></category>
            <category><![CDATA[css]]></category>
            <category><![CDATA[begginer]]></category>
            <category><![CDATA[design]]></category>
            <category><![CDATA[vscode]]></category>
            <dc:creator><![CDATA[JS Queen]]></dc:creator>
            <pubDate>Sun, 13 Feb 2022 17:03:12 GMT</pubDate>
            <atom:updated>2022-02-13T17:03:12.214Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1012/1*WuOf5ltcNeMQ00ALwd7FJA.png" /></figure><p>It’s love, love, love in the air. Why don’t you set up your favorite code editor in a romantic mood as well? I decided to share some lovely VS Code themes with you to properly prepare yourself for one of the sweetest celebrations of the year. At the end of the article, you’ll find a small tutorial on how to add a theme to your editor.</p><p>BONUS! Check out my small CSS heart tutorial <a href="https://codepen.io/justannakuznetsova/pen/qBPggdB">here</a>. Okay, let’s dive in hugs and kisses.</p><h4><a href="https://marketplace.visualstudio.com/items?itemName=nopjmp.fairyfloss">Fairy Floss</a></h4><p><a href="https://marketplace.visualstudio.com/items?itemName=nopjmp.fairyfloss">fairyfloss - Visual Studio Marketplace</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*frpJA0bo0H_RAGkSHUH5xw.png" /></figure><p>I learned about this one (and rarely switch to anything else) from <a href="https://twitter.com/ASpittel"><strong>Ali Spittel</strong></a>, a Senior Developer Advocate at AWS and co-host of <a href="https://www.ladybug.dev/">Ladybugs Podcast</a>.</p><p><em>Fairy Floss</em> is created by the founder, editor, and CEO of <a href="https://shop.bubblesort.io/">BubbleSort Zines</a> <a href="https://twitter.com/sailorhg"><strong>Amy Wibowo</strong></a>.</p><h4>💕 <a href="https://marketplace.visualstudio.com/items?itemName=CrystalTokyo.witch-gems">Witch Gems</a></h4><p><a href="https://marketplace.visualstudio.com/items?itemName=CrystalTokyo.witch-gems&amp;hellip">Witch Gems - Visual Studio Marketplace</a></p><figure><img alt="Witch Gem theme for VS Code screenshot." src="https://cdn-images-1.medium.com/max/1024/1*ppLyh2RiqpwvZtSbj4VcLg.png" /></figure><p>This beautiful theme is inspired by <a href="https://twitter.com/sailorhg"><strong>Amy Wibowo</strong></a>, the creator of <em>Fairy Floss</em> we’ve already seen before. <em>Witch Gems</em> is made by the creator of the fascinating <a href="https://gitcutepodcast.com/">Git Cute Podcast</a> <a href="https://twitter.com/javavvitch?ref_src=twsrc%5Egoogle%7Ctwcamp%5Eserp%7Ctwgr%5Eauthor"><strong>Joselyn Harper</strong></a>. The developer herself says:</p><blockquote><em>Witch Gems theme is a truly dark theme based off of the color palette for my podcast Git Cute Podcast’s brand colors.</em></blockquote><h4>💕 <a href="https://marketplace.visualstudio.com/items?itemName=ftsamoyed.theme-pink-cat-boo">Pink Cat Boo</a></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*J8EAV0qTRhDIRfRWZ_mD3A.png" /></figure><p><a href="https://marketplace.visualstudio.com/items?itemName=ftsamoyed.theme-pink-cat-boo">Pink-Cat-Boo Theme - Visual Studio Marketplace</a></p><p>I found out about this one from a Spotify developer, co-host of <a href="https://www.ladybug.dev/">Ladybugs Podcast</a> <a href="https://twitter.com/EmmaBostian"><strong>Emma Bostian</strong></a>’s article on <a href="https://dev.to/emmabostian/what-does-your-ide-code-editor-look-like-550e">dev</a>. A very pinky one, indeed.</p><h4>💕 <a href="https://marketplace.visualstudio.com/items?itemName=clari-codes.clari-codes-theme">Girly theme</a></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3iroU7U5zcEjDcgjr1IdWg.png" /></figure><p><a href="https://marketplace.visualstudio.com/items?itemName=clari-codes.clari-codes-theme">Girly Theme - Visual Studio Marketplace</a></p><p>I guess <em>Fairy Floss</em> has a rival now. Unfortunately, I didn’t find anything about the creator of this beauty <a href="https://gitlab.com/clarissaflores"><strong>Clarissa Flores</strong></a>. If you want to avoid distractive design and yet have a bright workplace, then go for <em>Girly Theme</em>.</p><h4>💕 <a href="https://marketplace.visualstudio.com/items?itemName=niudai.cozypink">Cozypink</a></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VDfx0gdgozkuQrxZsnogVA.png" /></figure><p><a href="https://marketplace.visualstudio.com/items?itemName=niudai.cozypink">cozypink - Visual Studio Marketplace</a></p><p>This one is too much for me even though it is supposed to be cozy. But it is surely the one not to be missed when writing a blog post on romantic VS Code themes. The creator of <em>Cozypink</em> is <a href="https://github.com/niudai"><strong>Niu Dai</strong></a>, a Software Engineer at <a href="https://www.bytedance.com/en/">ByteDance</a>.</p><h4>💕 <a href="https://marketplace.visualstudio.com/items?itemName=connieth.bubblegum">Bubble gum</a></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uBzpKYCxwABvo4-gej72ug.png" /></figure><p><a href="https://marketplace.visualstudio.com/items?itemName=connieth.bubblegum">bubblegum - Visual Studio Marketplace</a></p><p>A wintery and yet lovable theme from <a href="https://twitter.com/Connicpu"><strong>Connie Hilarides</strong></a>. As her GitHub says, she is <em>a </em><a href="https://www.digipen.edu/"><em>DigiPen</em></a><em> Graduate, C++ programmer, and doing a lot of work with Rust</em>.</p><h4>💕 <a href="https://marketplace.visualstudio.com/items?itemName=aregghazaryan.glass-ui&amp;ssr=false#overview">Glass UI</a></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SCWRdGG0iPKs0II65un1QA.png" /></figure><p><a href="https://marketplace.visualstudio.com/items?itemName=aregghazaryan.glass-ui#:~:text=Glass">Glass UI - Visual Studio Marketplace</a></p><p>A theme inspired by the game <em>Mirror’s Edge</em>. I am not a gamer, but I used to play that one. If you like a bit of red Asian style, definitely check it out. And maybe the game, too. The creator of the theme <strong>Areg Ghazaryan</strong> has a beautiful <a href="https://areg.site/">website</a> with an awesome catchy design.</p><h4>💕 As promised a small tutorial on how to set up a new theme on your VS Code:</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*qdNLg0sWLVVhCu7zdFUQ4Q.gif" /></figure><h4>Thank you for reading my small blog post! Happy Valentine’s Day 💕</h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9f153f1504a5" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>