<?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 Andre Sardo on Medium]]></title>
        <description><![CDATA[Stories by Andre Sardo on Medium]]></description>
        <link>https://medium.com/@afsardo?source=rss-12267717af56------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*F5b-AwwIZea_KNM7fLOXaQ.jpeg</url>
            <title>Stories by Andre Sardo on Medium</title>
            <link>https://medium.com/@afsardo?source=rss-12267717af56------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 19 Nov 2026 18:40:37 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@afsardo/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[Vue.js for Laravel Developers (Improving slow actions) — Sortable List]]></title>
            <link>https://medium.com/@afsardo/vue-js-for-laravel-developers-improving-slow-actions-sortable-list-4f031ed27274?source=rss-12267717af56------2</link>
            <guid isPermaLink="false">https://medium.com/p/4f031ed27274</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[vuejs]]></category>
            <category><![CDATA[ux]]></category>
            <category><![CDATA[laravel]]></category>
            <dc:creator><![CDATA[Andre Sardo]]></dc:creator>
            <pubDate>Thu, 14 Jun 2018 13:01:16 GMT</pubDate>
            <atom:updated>2018-06-14T13:03:59.994Z</atom:updated>
            <content:encoded><![CDATA[<p>Continuing the adventure of showing the benefits and impact Vue (javascript) can easly bring to an application on the UX level, we will be building a sortable list.</p><p>We will start with just a complete server side solution, using a file to store our list items and some arrows to order them how we please.</p><h4>This is our routes file:</h4><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/9e6062eb19c621d2d2b1998b788d52a9/href">https://medium.com/media/9e6062eb19c621d2d2b1998b788d52a9/href</a></iframe><h4>And this is our controller:</h4><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/8768283bed39f421900c07132ad85e68/href">https://medium.com/media/8768283bed39f421900c07132ad85e68/href</a></iframe><p>Looking at this full backend solution we can see that the routes don’t follow the REST way and the controller is not that clean.</p><p>(Of course we could have a dedicated List class that would take care of that logic in an OOP way but for the sake of the example its easier this way.)</p><h4>This is the end result:</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CCgEXyNpOYP9_5_F0jBhgA.gif" /></figure><p>In this case it is really fast, but having to wait between requests to push an item to the bottom isn’t the best experience.</p><p>What about having the list sorted without having to refresh the page and with a drag and drop feature? That’s exactly what we are going to do.</p><p>In order for that to work we need to add an api endpoint and it’s respective controller.</p><h4>This is our routes file:</h4><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/409a6a290150859582ec0a99812ee424/href">https://medium.com/media/409a6a290150859582ec0a99812ee424/href</a></iframe><h4>And this is our controller:</h4><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/9a6ff11e08fab49ddb043b07ae64044e/href">https://medium.com/media/9a6ff11e08fab49ddb043b07ae64044e/href</a></iframe><p>So now the route follows the REST convention and our controller is a lot cleaner since we get the list array from the Vue component.</p><h4>This is the end result:</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IUIj_3EYxYTa6SLIMbtJyg.gif" /></figure><h4>Conclusion</h4><p>Not only did we improve how easy it is to order the list items, our code became much more cleaner since we let our Vue component deal with the ordering logic and only updating the data to our server.</p><blockquote>Usability answers the question, “Can the user accomplish their goal? — <a href="https://twitter.com/joyclee">Joyce Lee</a>, Human Factors Design at Apple</blockquote><p>Let’s look at them side by side so that you can be the one to judge what’s best.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CCgEXyNpOYP9_5_F0jBhgA.gif" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IUIj_3EYxYTa6SLIMbtJyg.gif" /><figcaption>Server side version (left) — Vue.js version (right)</figcaption></figure><p><strong>P.S.:</strong> All code is available at this <a href="https://github.com/afsardo/LaravelVue">Github Repo</a>.</p><p><strong>P.S.S.:</strong> Although we could achieve the same thing with vanilla js it wouldn’t be as simple as it is with Vue (or other framework).</p><p>Let me know what you think and if you would like a more in depth article/video on how to achieve this or if you think I should post more examples where Vue can improve server side pages.</p><p>Thank you for reading!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4f031ed27274" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Vue.js for Laravel Developers (Improving slow actions) — File upload]]></title>
            <link>https://medium.com/@afsardo/vue-js-for-laravel-developers-improving-slow-actions-bfb6ac024995?source=rss-12267717af56------2</link>
            <guid isPermaLink="false">https://medium.com/p/bfb6ac024995</guid>
            <category><![CDATA[laravel]]></category>
            <category><![CDATA[ux]]></category>
            <category><![CDATA[vuejs]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Andre Sardo]]></dc:creator>
            <pubDate>Mon, 28 May 2018 12:26:32 GMT</pubDate>
            <atom:updated>2018-06-14T03:09:29.534Z</atom:updated>
            <content:encoded><![CDATA[<p>Vue is a javascript framework that allows a developer to easily update the DOM according to state values. An example would be, a ToDo app where instead of having to reload the page for the next “state”, Vue can manage that and save you the load impact.</p><p>The purpose of this post is to reach out to the server side Laravel developers land (not specifically) to point out a huge increase in user experience leveraging Vue.</p><p>This is what an image upload feature would look like in Laravel.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*e7LenNIwgILfjGUbjhINag.gif" /></figure><p>Not great, right?</p><p>We will leverage the power of Vue , and with the help of axios, to improve the user experience and at least reduce the anxiousness, if that is a word, of the users when waiting for slow actions.</p><p>And this is what it would look like after the improvement.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Hn3ySkYlsIIGUBTtSp7tBA.gif" /></figure><h4>Conclusion</h4><p>Some browsers have the progress at the bottom left, but now we are giving better feedback to the user.</p><blockquote>Reality is merely an illusion, albeit a very persistent one. — Albert Einstein</blockquote><p>Let’s look at them side by side so that you can be the one to judge what’s best.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*e7LenNIwgILfjGUbjhINag.gif" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Hn3ySkYlsIIGUBTtSp7tBA.gif" /><figcaption>Server side version (left) — Vue.js version (right)</figcaption></figure><p><strong>P.S.:</strong> All code is available at this <a href="https://github.com/afsardo/LaravelVue">Github Repo</a>.</p><p><strong>P.S.S.:</strong> Although we could achieve the same thing with vanilla js it wouldn’t be as simple as it is with Vue (or other framework).</p><p>Let me know what you think and if you would like a more in depth article/video on how to achieve this or if you think I should post more examples where Vue can improve server side pages.</p><p>Thank you for reading!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bfb6ac024995" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>