<?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: Dimitar Nestorov</title>
    <description>The latest articles on DEV Community by Dimitar Nestorov (@dimitarnestorov).</description>
    <link>https://dev.to/dimitarnestorov</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%2F22711%2F728a6a75-e6cb-4cb6-957e-e5973fe7407e.jpg</url>
      <title>DEV Community: Dimitar Nestorov</title>
      <link>https://dev.to/dimitarnestorov</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/dimitarnestorov"/>
    <language>en</language>
    <item>
      <title>Are there any good tutorials for React Native for experienced React developers?</title>
      <dc:creator>Dimitar Nestorov</dc:creator>
      <pubDate>Sat, 31 Mar 2018 03:25:47 +0000</pubDate>
      <link>https://dev.to/dimitarnestorov/are-there-any-good-tutorials-for-react-native-for-experienced-react-developers-fl2</link>
      <guid>https://dev.to/dimitarnestorov/are-there-any-good-tutorials-for-react-native-for-experienced-react-developers-fl2</guid>
      <description>&lt;p&gt;Hey guys, I'm about to start working on a React Native project, and for the last 9 months I have been using React on the web and I kinda want to skip the learning React and JavaScript part and jump right on the React Native specifics. Can you recommend me good tutorials that are made for established web/React developers?&lt;/p&gt;

&lt;p&gt;I would also love if you have links to some expert/hardcore React Native tutorials so that I can go deeper into the matter later on.&lt;/p&gt;

&lt;p&gt;Thanks in advance!&lt;/p&gt;

</description>
      <category>discuss</category>
      <category>javascript</category>
      <category>react</category>
      <category>reactnative</category>
    </item>
    <item>
      <title>Invisible reCAPTCHA on mobile?</title>
      <dc:creator>Dimitar Nestorov</dc:creator>
      <pubDate>Sat, 12 Aug 2017 00:01:40 +0000</pubDate>
      <link>https://dev.to/dimitarnestorov/invisible-recaptcha-on-mobile</link>
      <guid>https://dev.to/dimitarnestorov/invisible-recaptcha-on-mobile</guid>
      <description>&lt;p&gt;To prevent brute force on our login/register forms we've implemented Google's &lt;a href="https://developers.google.com/recaptcha/docs/invisible"&gt;invisible reCAPTCHA&lt;/a&gt; on our website. However we can't present a mobile user with this on the app we're developing. So I was wondering is there a simple and protected way to login a user into our app?&lt;/p&gt;

&lt;p&gt;Now the first things that come to mind would be to implement a mobile login/register endpoint, but an attacker would easily get this endpoint and start brute forcing it.&lt;/p&gt;

&lt;p&gt;The next thing that I came up would be to ask the API for a token and use that to login the user, however this would mean to to block an IP address after X failed attempts, and it starts to feel like we're going to be developing our own version of CAPTCHA.&lt;/p&gt;

&lt;p&gt;And another one would be to create something similar to OAuth, but UX would suffer because the user would have to be presented a web page and from time to time he might see a CAPTCHA.&lt;/p&gt;

&lt;p&gt;Do you have any ideas for a simple implementation which would prevent an attacker from brute forcing the app?&lt;/p&gt;

&lt;p&gt;For now the second method seems the most reasonable. I've stumbled upon websites before which give like 10 attempts to login with an X email address and then block that user from logging in for a while.&lt;/p&gt;

&lt;p&gt;&lt;iframe width="710" height="399" src="https://www.youtube.com/embed/hdJ7PTdPaqc"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;As much as I remember this video used to have this form submitted once before and reCAPTCHA didn't show up. I can only guess that part got trimmed. Seems like reCAPTCHA decides when to "test" the users by simply comparing timestamps.&lt;/p&gt;

&lt;p&gt;P.S. I can't think of a title which does not seem like click bait ðŸ˜…&lt;/p&gt;

</description>
      <category>discuss</category>
      <category>bruteforce</category>
      <category>security</category>
    </item>
    <item>
      <title>How to store an email archive?</title>
      <dc:creator>Dimitar Nestorov</dc:creator>
      <pubDate>Sun, 06 Aug 2017 20:40:50 +0000</pubDate>
      <link>https://dev.to/dimitarnestorov/how-to-store-an-email-archive</link>
      <guid>https://dev.to/dimitarnestorov/how-to-store-an-email-archive</guid>
      <description>&lt;p&gt;I am going to be developing an application which stores emails but I'm wondering what would be the best way to store them?&lt;/p&gt;

&lt;p&gt;I would like to be able to search through them which makes storing them in separate files very inefficient. So I was wondering which DB is the best for this solution.&lt;/p&gt;

&lt;p&gt;SQL? NoSQL?&lt;br&gt;
PostgreSQL? MongoDB?&lt;/p&gt;

&lt;p&gt;What do you think?&lt;/p&gt;

</description>
      <category>discuss</category>
      <category>question</category>
    </item>
    <item>
      <title>Could you not finally?</title>
      <dc:creator>Dimitar Nestorov</dc:creator>
      <pubDate>Sat, 08 Jul 2017 21:49:49 +0000</pubDate>
      <link>https://dev.to/dimitarnestorov/could-you-not-finally</link>
      <guid>https://dev.to/dimitarnestorov/could-you-not-finally</guid>
      <description>&lt;p&gt;Do you know of any way to skip the execution of a &lt;code&gt;finally&lt;/code&gt; block?&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="kd"&gt;function&lt;/span&gt; &lt;span class="nx"&gt;fn&lt;/span&gt;&lt;span class="p"&gt;(){&lt;/span&gt;
    &lt;span class="k"&gt;try&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="k"&gt;finally&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;2&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="nx"&gt;fn&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
&lt;span class="c1"&gt;// Logs 2&lt;/span&gt;
&lt;span class="c1"&gt;// Returns 1&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A bit more bizarre example would be if you use &lt;code&gt;return&lt;/code&gt; in &lt;code&gt;finally&lt;/code&gt;:&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="kd"&gt;function&lt;/span&gt; &lt;span class="nx"&gt;fn&lt;/span&gt;&lt;span class="p"&gt;(){&lt;/span&gt;
    &lt;span class="k"&gt;try&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="k"&gt;finally&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="mi"&gt;2&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="nx"&gt;fn&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt; &lt;span class="c1"&gt;// 2&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It seems like finally cannot be stopped!&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>discuss</category>
    </item>
    <item>
      <title>Did you know that JavaScript has had labels since ES3?!?</title>
      <dc:creator>Dimitar Nestorov</dc:creator>
      <pubDate>Wed, 21 Jun 2017 16:17:54 +0000</pubDate>
      <link>https://dev.to/dimitarnestorov/did-you-know-javascript-has-labels-since-es3</link>
      <guid>https://dev.to/dimitarnestorov/did-you-know-javascript-has-labels-since-es3</guid>
      <description>&lt;p&gt;&lt;a href="https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Statements/label" rel="noopener noreferrer"&gt;label - JavaScript MDN&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Essentially it is something like &lt;em&gt;goto&lt;/em&gt; but only for loops and labeled blocks.&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%2Fthepracticaldev.s3.amazonaws.com%2Fi%2F2fz3eq68f9ft0pr461cv.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%2Fthepracticaldev.s3.amazonaws.com%2Fi%2F2fz3eq68f9ft0pr461cv.png" alt="js label"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I'm curious to see what's the worst example you can think of using labels?&lt;/p&gt;

&lt;p&gt;Or is there by any chance a very useful way to use them?&lt;/p&gt;

&lt;p&gt;The possibilities are endless!&lt;/p&gt;

</description>
      <category>discuss</category>
      <category>javascript</category>
      <category>syntax</category>
    </item>
  </channel>
</rss>
