<?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: Pablo</title>
    <description>The latest articles on DEV Community by Pablo (@pablowbk).</description>
    <link>https://dev.to/pablowbk</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%2F160697%2F0ff4b98f-18a6-43fa-bb55-8e37747e1fa1.jpg</url>
      <title>DEV Community: Pablo</title>
      <link>https://dev.to/pablowbk</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/pablowbk"/>
    <language>en</language>
    <item>
      <title>Scrolling Columns</title>
      <dc:creator>Pablo</dc:creator>
      <pubDate>Tue, 19 Dec 2023 22:45:11 +0000</pubDate>
      <link>https://dev.to/pablowbk/scrolling-columns-23j0</link>
      <guid>https://dev.to/pablowbk/scrolling-columns-23j0</guid>
      <description>&lt;p&gt;New Section! "Pointless UIs"&lt;/p&gt;

&lt;p&gt;Today's episode: Scrolling collumns&lt;/p&gt;

&lt;p&gt;&lt;iframe height="600" src="https://codepen.io/pablowbk/embed/GReKNpo?height=600&amp;amp;default-tab=result&amp;amp;embed-version=2"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

</description>
      <category>codepen</category>
    </item>
    <item>
      <title>Navigation Dots</title>
      <dc:creator>Pablo</dc:creator>
      <pubDate>Mon, 27 Feb 2023 05:08:52 +0000</pubDate>
      <link>https://dev.to/pablowbk/navigation-dots-5fdi</link>
      <guid>https://dev.to/pablowbk/navigation-dots-5fdi</guid>
      <description>&lt;h1&gt;
  
  
  Just an idea for a navigation component
&lt;/h1&gt;

&lt;p&gt;&lt;iframe height="600" src="https://codepen.io/pablowbk/embed/LYJVNmo?height=600&amp;amp;default-tab=result&amp;amp;embed-version=2"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

</description>
      <category>codepen</category>
    </item>
    <item>
      <title>Recursion IRL</title>
      <dc:creator>Pablo</dc:creator>
      <pubDate>Wed, 28 Sep 2022 18:14:46 +0000</pubDate>
      <link>https://dev.to/pablowbk/recursion-irl-2mn3</link>
      <guid>https://dev.to/pablowbk/recursion-irl-2mn3</guid>
      <description>&lt;p&gt;While learning programming or preparing for tech interviews, we go through a vast curriculum of topics. &lt;strong&gt;Recursion&lt;/strong&gt; is often considered as a hard to grasp concept, and one that I still struggle with today.&lt;/p&gt;

&lt;p&gt;As with many things, practice makes perfect. And I think that's the main reason I still cannot confidently implement recursion at work. Granted, it's not a jack of all trades and its applications should be considered carefully.&lt;/p&gt;

&lt;p&gt;That being said, I'd like to know: do any of you use it regularly in your projects? If so, how did recursion help to solve your problem?&lt;/p&gt;

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

</description>
      <category>programming</category>
      <category>recursion</category>
      <category>development</category>
      <category>algorithms</category>
    </item>
    <item>
      <title>How well does it fail?</title>
      <dc:creator>Pablo</dc:creator>
      <pubDate>Sat, 28 Mar 2020 11:08:10 +0000</pubDate>
      <link>https://dev.to/pablowbk/game-how-well-does-it-fail-without-js-1l2i</link>
      <guid>https://dev.to/pablowbk/game-how-well-does-it-fail-without-js-1l2i</guid>
      <description>&lt;p&gt;Photo by &lt;a href="https://unsplash.com/@chuttersnap?utm_source=unsplash&amp;amp;utm_medium=referral&amp;amp;utm_content=creditCopyText" rel="noopener noreferrer"&gt;chuttersnap&lt;/a&gt; on &lt;a href="https://unsplash.com" rel="noopener noreferrer"&gt;Unsplash&lt;/a&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Now when we look at new things added to HMTL, new features, new browser APIs, what we tend to ask, of course, is: &lt;em&gt;how well does it work?&lt;/em&gt;.&lt;br&gt;
(...) That’s an excellent question to ask (...). But I don’t think it’s the most important question. I think it’s just as important to ask: &lt;strong&gt;how well does it fail&lt;/strong&gt;? &lt;em&gt;&lt;a href="https://adactio.com/articles/12839" rel="noopener noreferrer"&gt;Jeremy Keith&lt;/a&gt;, on Evaluating Technology&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;I just found out that my adBlocker also has an option for disabling all JS on a site: &lt;br&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%2Fsnmm6bzqf0e9ullfz7cd.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%2Fsnmm6bzqf0e9ullfz7cd.png" alt="adBlocker screenshot"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;And that made me think about what master &lt;a href="https://adactio.com/" rel="noopener noreferrer"&gt;Keith&lt;/a&gt; said in one of his &lt;a href="https://adactio.com/articles/12839" rel="noopener noreferrer"&gt;talks&lt;/a&gt;. So I went ahead and checked out some popular sites to see how &lt;em&gt;well&lt;/em&gt; these would fail.&lt;/p&gt;

&lt;p&gt;Some of the results might seem &lt;em&gt;obvious&lt;/em&gt;, some not so much. I think it is a great exercise, to see these sites without JS enabled, because you get to see how great teams dealt with &lt;strong&gt;&lt;em&gt;failing well&lt;/em&gt;&lt;/strong&gt;. In some cases, a small design choice makes the page hold up, in others, a completely different site is served. I encourage you to try it out!&lt;/p&gt;

&lt;p&gt;Let's see some examples:&lt;/p&gt;

&lt;p&gt;YouTube&lt;br&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%2Fp5d749ndr9l6k785wepq.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%2Fp5d749ndr9l6k785wepq.png" alt="YouTube without JS"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;Twitter&lt;br&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%2Fg2cwek3k58pko11opfhd.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%2Fg2cwek3k58pko11opfhd.png" alt="Twitter without JS"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;Dev&lt;br&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%2Fo0h7pr3or3nxke4spqpx.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%2Fo0h7pr3or3nxke4spqpx.png" alt="Dev.to without JS"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;Google&lt;br&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%2Fbcn3a2x7s65mqfknt8cj.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%2Fbcn3a2x7s65mqfknt8cj.png" alt="Google without JS"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;So let's play a &lt;strong&gt;game&lt;/strong&gt;! Dive into the web, and look for interesting sites and see how they approach a JS-less world. I'd love it if you would post your findings as well!&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Disclaimer: this is just for fun. No need to indulge in &lt;strong&gt;why js matters&lt;/strong&gt; discussions, it's not the point here.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>webdev</category>
      <category>codenewbie</category>
    </item>
    <item>
      <title>sPlice !== slice</title>
      <dc:creator>Pablo</dc:creator>
      <pubDate>Fri, 20 Dec 2019 16:38:21 +0000</pubDate>
      <link>https://dev.to/pablowbk/splice-slice-k2e</link>
      <guid>https://dev.to/pablowbk/splice-slice-k2e</guid>
      <description>&lt;p&gt;This is a short post for my future self.&lt;br&gt;
Hi Pablo! Back here already? Yeah, I know, splice, slice, which one is it?? But don't worry, you've got this, only this time we're writting it down!&lt;/p&gt;

&lt;p&gt;So, long story short: do you want your array to be &lt;strong&gt;mutated&lt;/strong&gt;? Really? Well, go ahead, &lt;strong&gt;sPlice&lt;/strong&gt; the hell out of it. See what I did there? Capital &lt;strong&gt;P&lt;/strong&gt;, as in "&lt;strong&gt;P&lt;/strong&gt;roduces Side Effects, &lt;strong&gt;P&lt;/strong&gt;al!"&lt;/p&gt;

&lt;p&gt;Why, you ask? Because...&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;The splice() method &lt;em&gt;changes&lt;/em&gt; the contents of an array by removing or replacing existing elements and/or adding new elements.&lt;br&gt;
see &lt;a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/splice"&gt;MDN Docs&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;




&lt;p&gt;Conversly, &lt;strong&gt;.slice()&lt;/strong&gt; method will graciously return the desired data, keeping your beloved original array &lt;strong&gt;un&lt;/strong&gt;mutated. Just tell it where to start and finish (optionally)... slice will comply, no questions asked:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;The slice() method returns a &lt;em&gt;shallow copy&lt;/em&gt; of a portion of an array into a new array object selected from begin to end (end not included) where begin and end represent the index of items in that array. The &lt;em&gt;original array will not be modified&lt;/em&gt;. see &lt;a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/slice"&gt;MDN Docs&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;You can search the webs for examples and more in depth docs, but this should make it easier next time you hit the mental crossroad... splice or slice, you choose (wisely, now)...&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>codenewbie</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
