<?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 Mónica Aguado Alonso on Medium]]></title>
        <description><![CDATA[Stories by Mónica Aguado Alonso on Medium]]></description>
        <link>https://medium.com/@MoniAguado?source=rss-ebda4a8c2657------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*c_eNJ0wBSTNgp6axczhFng.jpeg</url>
            <title>Stories by Mónica Aguado Alonso on Medium</title>
            <link>https://medium.com/@MoniAguado?source=rss-ebda4a8c2657------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 03:49:21 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@MoniAguado/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[Our responsive learning experience]]></title>
            <link>https://medium.com/@MoniAguado/our-responsive-learning-experience-34aa8b89f25b?source=rss-ebda4a8c2657------2</link>
            <guid isPermaLink="false">https://medium.com/p/34aa8b89f25b</guid>
            <category><![CDATA[responsive-design]]></category>
            <category><![CDATA[frontend]]></category>
            <category><![CDATA[development]]></category>
            <dc:creator><![CDATA[Mónica Aguado Alonso]]></dc:creator>
            <pubDate>Thu, 08 Feb 2018 16:43:36 GMT</pubDate>
            <atom:updated>2018-02-08T16:43:36.907Z</atom:updated>
            <content:encoded><![CDATA[<p>Today, all of us we use our mobile everytime we have a moment, for example when we are waiting for the bus, when we go to the bathroom, or when the boss isn’t looking at us. We use the tablet when we are at home, or when we travel, we use it to watch netflix, or search for a place, or even take pictures.</p><p>If you use mobile and tablet, all the day, what do you think is most important? Make a web design from mobile, or from desktop? We think that it’s better design a web from mobile and then extend dimensions to the desktop, or a smart TV, for example.</p><p>The responsive design tries to convert an ordinary web into a multi platform web that you can see on all platforms. The responsive offer a better user-friendly experience, and It can help you get more customers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/224/0*a5Qq0zVnUEprM6El." /></figure><h3>Do you want a mobile version of your web?</h3><p>Instead of making a web for each type of device (such as mobile, tablet, computer) we will make a website that detects different devices accessed, reorganizing the elements and discriminating others.</p><p>It is easy to use, we’re just going to work on one web, saving time and money by developing only once.</p><p>The advantages of responsive design are:</p><ul><li>Improves user experience and ensuring. That the website provides an optimal viewing experience, making the user stay longer on our website.</li><li>Duplicate contents disappear. A responsive design prevents duplication of content and is organized differently depending on the device we use.</li><li>We reduce the costs of development and maintenance of the web, since we have a template for all platforms.</li><li>We increase the virality since according to studies 70% of the accesses to social networks is through mobile devices.</li></ul><p>As we have already indicated, the responsive, or Responsive Web Design (RWD) is oriented to the websites that they are seen on all devices and they can behave in different ways.</p><p>For this we can use in the Responsive environment, images and videos, which can be dimensioned with percentages using the properties:</p><ul><li>max-width</li><li>min-width</li><li>max-height</li><li>Min-height</li></ul><p>We will get to set a limit in percentages of both images and videos.</p><p>The typography, that is to say the letter that we want to put on our website, we can do it in different ways:</p><ul><li>With fixed units like pixels.</li><li>With relative units like em.</li></ul><p>And of course, we have to use <strong>mediaqueries</strong>, which are the instructions that apply the CSS we want, that depends to the size of device.</p><p><strong>@media all and (min-width:500px) {</strong></p><p><strong>CSS</strong></p><p><strong>}</strong></p><p>In the html we have to add the tag.</p><p><strong>&lt;meta name = “viewport” content = “width = device-width, initial-scale = 1”&gt;</strong></p><p>This code designate to HTML that we have mediaqueries in the CSS and give the order to arrange in all of devices.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/672/0*g11VuGgBrBcMAYkJ." /></figure><p>Finally, you can design a responsive design in different ways.</p><p>The mobile first layout gives priority to small screen devices and in the CSS we will add the style of larger screens with the mediaqueries.</p><p>We learned that the most important thing about responsive design: mobile first. We have to design and layout every web starting with the mobile version. Google and search engines in general give priority to devices with less connection capacity, battery, or less size.</p><p>Another thing that we have learned is the different standard sizes. This is called breakpoints. You can see this image of different sizes of devices and the three varied breakpoints: 320px, 720px and 1024px.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/927/0*D7TYCz-JjHZuCzmL." /></figure><p>Now, we can create a responsive web, because we know the attributes and elements necessary for this. As we have told you, we know how to use media queries and viewports, the attributes min-width, max-width, min height and max-height, to set the size, and the new measures that replaces the pixels.</p><p>We assure you that we change your mind, and think first in mobile and then expand to other devices. Your customers will thank you!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=34aa8b89f25b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Promises in JS]]></title>
            <link>https://medium.com/@MoniAguado/promises-in-js-f419135a676?source=rss-ebda4a8c2657------2</link>
            <guid isPermaLink="false">https://medium.com/p/f419135a676</guid>
            <category><![CDATA[frontend]]></category>
            <category><![CDATA[development]]></category>
            <category><![CDATA[fetch]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Mónica Aguado Alonso]]></dc:creator>
            <pubDate>Thu, 08 Feb 2018 16:40:05 GMT</pubDate>
            <atom:updated>2018-02-08T16:42:27.675Z</atom:updated>
            <content:encoded><![CDATA[<p>How many times have you done a callback in Javascript and you have sensed that the code was complex and unintuitive? You get this feeling after discovering “promises”. For example, <em>fetch promise</em> is an alternative in making requests in Javascript to write clear and clean code.</p><p>In this article, we are going to explain some interesting uses of promises.</p><h3>Fetch Promise</h3><p>You can see in this example how to use this new way for callbacks:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/578/0*qb3LdFmPTtPermMo." /></figure><p>At first, you can see that in <em>fetch </em>method, we add the URL where we want to make the request. When you run fetch, this method returns a promise that the server is sending you this request. You have to trust :) While fetch runs we can work with the callback. This means that we work asynchronously. Does it sounds true?</p><p>Before, you had to use <em>.then</em>, that indicate what do you have to do when the <em>fetch</em> is completed. We have to add a <em>function</em> where the resolved <em>fetch</em> is the parameter. In this case, response is the server callback, and it’s in this callback where we run the method <em>.json()</em>. This method returns another <em>fetch</em>. Next step, we link another<em> .then</em> with a function with JSON parameter. In the last .<em>then</em>, we collect the info we need, the <em>json.message</em> object, and we can see it on the server.</p><p>With fetch, instead of having two callbacks, we have two <em>.thens.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*jcIo11im9J6MF3q-." /></figure><h3>Chaining</h3><p>Unlike old-style passed-in callbacks, a promise comes with some guarantees. For example, callbacks will never be called before the <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/EventLoop#Run-to-completion">completion in the current run</a> of the JavaScript event loop but the most immediate benefit of promises is chaining.</p><p>It is very common that sometimes, we need several asynchronous operations to be executed, and that the next one is not executed until it receives the successful response from the previous one. To achieve this, we can use the miraculous chain of promises.</p><p>The <em>Then</em> function returns a new promise, different from the original one.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/794/0*6wGP15b9FYy_JC-0." /></figure><p>Each promise represents the termination of another asynchronous step in the chain.</p><p>In the past, performing several asynchronous operations would generate in our code the classic callback pyramid of doom:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/576/0*7qyGH23V4DcD4r7k." /></figure><p>Now, we can attach our callbacks to the returned promises instead, forming a <em>promise chain</em>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/526/0*spGYHG0y3fnwOYqR." /></figure><h3>In conclusion</h3><p>The promises will allow us to have a cleaner and clearer code, perform asynchronous operations with the guarantee that a result will be received and add multiple callback functions by calling <em>.then</em> several times, which will be executed independently of the order of insertion.</p><p>After reading these advantages, will you be left without trying it?</p><p>Collaborative article with Aida Albarrán</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f419135a676" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>