<?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 Juan Sanchez on Medium]]></title>
        <description><![CDATA[Stories by Juan Sanchez on Medium]]></description>
        <link>https://medium.com/@juan.s9?source=rss-a050c84a25a9------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Stories by Juan Sanchez on Medium</title>
            <link>https://medium.com/@juan.s9?source=rss-a050c84a25a9------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 15:16:13 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@juan.s9/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[Maximize Productivity with Shortcuts: An Introduction to Apple’s Automation App]]></title>
            <link>https://medium.com/@juan.s9/maximize-productivity-with-shortcuts-an-introduction-to-apples-automation-app-2752c3d2730c?source=rss-a050c84a25a9------2</link>
            <guid isPermaLink="false">https://medium.com/p/2752c3d2730c</guid>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[apple]]></category>
            <category><![CDATA[shortcuts]]></category>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[automation]]></category>
            <dc:creator><![CDATA[Juan Sanchez]]></dc:creator>
            <pubDate>Sat, 21 Jan 2023 21:51:27 GMT</pubDate>
            <atom:updated>2023-01-21T21:53:19.963Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="Shortcut app logo" src="https://cdn-images-1.medium.com/max/1024/1*BHLfRIpQpf0PGP6LFLFl5w.png" /></figure><p>Shortcuts is an app offer by apple that help us to automate repetitive tasks and customize device functionality in the different devices of the apple ecosystem. Users can create instructions based in actions or scripts from iOS or apps installed.</p><p><strong>App overview</strong></p><p>Once you enter the app you will see a bottom menu with different options:</p><ol><li><strong>Shortcuts</strong></li><li><strong>Automation</strong></li><li><strong>Gallery</strong></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/494/1*_-2209Q18HG_wbZo-ujOJg.png" /></figure><p><strong>1. Shortcuts</strong><br>Allow create instructions triggered manually. you can execute instructions based on input given by us or gotten from apps installed and then apply some logic to run actions (send a message, change phone state, ….).<br> whatever shortcut is created can be added to different sides of each apple device:<br> — iPhone: Home screen or in the Share sheet.<br> — Mac: Pin in the menu bar or use it as Quick action.<br> — Apple Watch.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/494/1*_-2209Q18HG_wbZo-ujOJg.png" /></figure><p>2. Automation</p><p>Here you can add instructions similar to the shortcuts but those will execute based in the different type of triggers:</p><ul><li>Location (E.g. When I arrive or leave of certain location)</li><li>Device (E.g. When I join a wifi network, Bluetooth device, an app is opened, … )</li><li>Time of Day</li><li>Alarms</li><li>Messages</li><li>Emails</li><li>Carplay</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0dcdLMFy0PS3bJzzU1m9Nw.jpeg" /></figure><p><strong>3. Gallery</strong></p><p>Here you can find shortcuts already build for instance you could search for a Pomodoro shortcut or an email scheduler and add it to the personal ones.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tC-ArfNRC93wu0Rj9WK3LQ.jpeg" /></figure><p>Shortcuts is a great app to do repetitive and boring stuff allowing us to be more productive. I will do a series the post explaining how to create shortcuts and automation from scratch along with useful examples.</p><p>…</p><p><em>Thanks for reading! If you like it please consider following me :)</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2752c3d2730c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Denojs Overview]]></title>
            <link>https://medium.com/@juan.s9/denojs-overview-e278ccfae95?source=rss-a050c84a25a9------2</link>
            <guid isPermaLink="false">https://medium.com/p/e278ccfae95</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[node]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[denojs]]></category>
            <dc:creator><![CDATA[Juan Sanchez]]></dc:creator>
            <pubDate>Mon, 13 Jul 2020 03:22:14 GMT</pubDate>
            <atom:updated>2020-07-21T00:35:09.561Z</atom:updated>
            <content:encoded><![CDATA[<p>Denojs was announced for the first time in the JSconf 2018 by Ryan Dahl (the creator of nodejs) where Ryan mentioned the frustration related to the mistakes he made when creating Nodejs and the advantage that denojs has over nodejs. This post will try to highlight the advantage and also the main differences regarding nodejs.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FM3BM9TB-8yA%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DM3BM9TB-8yA&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FM3BM9TB-8yA%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/d0e762107fb87d1e41d8621b13b4d822/href">https://medium.com/media/d0e762107fb87d1e41d8621b13b4d822/href</a></iframe><h3><strong>Differences with Nodejs</strong></h3><p><strong>overview</strong></p><p>The most exciting feature about Deno (that I personally love) is the ability to run TypeScript out of the box with zero configuration, Contrary to Nodejs (<a href="https://medium.com/create-a-server-with-nodemon-express-typescript/create-a-server-with-nodemon-express-typescript-f7c88fb5ee71">see how set up TypeScript in Node</a>). it makes javascript code more readable and understable, although, you can still run javascript code.</p><p><strong>Security</strong></p><p>Denojs added security flags to run javascript code this prevents potential security breaches. contrary to nodejs, denojs runs javascript without any resource permission for example, by default when you run a javascript code with nodejs you will have network permission while in Deno you need indicate the permissions for the network access through a flag:</p><blockquote>deno run — allow-net net_client.ts</blockquote><p>Read more about deno permissions<a href="https://deno.land/manual/getting_started/permissions"> here</a> (https://deno.land/manual/getting_started/permissions)</p><p><strong>Imports</strong></p><p>One of the biggest changes in Deno is the way that you import packages. In nodejs we use NPM to manage all the javascript libraries of our project, in Denojs this does not work anymore, if you need to import a external library is required to reference the package directly from an url, for example:</p><blockquote>import { server } from ‘<a href="https://raw.githubusercontent.com/apiel/adka_server/master/mod.ts">https://raw.githubusercontent.com/apiel/adka_server/master/mod.ts</a>&#39;;</blockquote><p>* Personally I do not like this too much because is simpler to write the name of the library instead of url. In the documentation mentions import maps it is a way to put alieses/names in external libraries although, at the moment of this post is only available in an unstable version. (read more about it here <a href="https://deno.land/manual/linking_to_external_code/import_maps)">https://deno.land/manual/linking_to_external_code/import_maps)</a></p><p>In denojs, when importing you need to specify the file extension (.js or .ts) for example:</p><blockquote>import example from “./example.ts”;</blockquote><p>Another big change is the way how denojs stores the dependence libraries, currently in nodejs all the libraries of a project are saved in the node_modules folder, this take unnecessary extra space in our hard drive, in contrast, deno every time you import a external library is taken from the url and then cached in our computer to make the import more efficient.</p><p><strong>In code</strong></p><p>Deno now has <strong>Top Level Await </strong>enabled by default allowing developers to define an await function without the async function wrapper, for example:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*x1Z70GznHn36TJNL" /><figcaption>With Denojs | Nodejs</figcaption></figure><p>* Nodejs in the latest versions also supports Top Level Awaits but it is not enabled by default to enable it we need to change the file extension to .mjs and add the flag — harmony-top-level-await, for example:</p><blockquote>node — harmony-top-level-await index.mjs</blockquote><p>Other important feature is called <strong>Ship a single executable file,</strong> meaning that all our external libraries are bundled in one Javascript file, for example:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/507/0*PWIwQRXW-3D76Ddc" /></figure><p><strong>Conclusion</strong></p><p>Denojs is still in their first official version. It is important to keep in mind that Deno will not replace Nodejs, it is simply another option that fixes current issues and implements lessons learned from the node js author. This came with advantages but, also with disadvantages such as the incompatibility with <strong>node_modules</strong> or the low amount of libraries available for Deno.</p><p><a href="https://deno.land/manual/introduction">Deno</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e278ccfae95" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Create a server with Nodemon + Express + Typescript]]></title>
            <link>https://medium.com/create-a-server-with-nodemon-express-typescript/create-a-server-with-nodemon-express-typescript-f7c88fb5ee71?source=rss-a050c84a25a9------2</link>
            <guid isPermaLink="false">https://medium.com/p/f7c88fb5ee71</guid>
            <category><![CDATA[typescript]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[expressjs]]></category>
            <category><![CDATA[nodemon]]></category>
            <category><![CDATA[nodejs]]></category>
            <dc:creator><![CDATA[Juan Sanchez]]></dc:creator>
            <pubDate>Sun, 18 Nov 2018 06:55:38 GMT</pubDate>
            <atom:updated>2019-06-08T04:26:35.065Z</atom:updated>
            <content:encoded><![CDATA[<p>Typescript is powerful transpiler for javascript designed by microsoft and using in projects for Angular applications in this time I going to tech you how create a application and debug it in visual studio code.</p><ol><li><strong>Basic Setup</strong></li></ol><p>First let’s start out in an empty directory. I going to create a new folder call typescript-nodejs and after initialize npm.</p><pre>$ npm init<br>$ mkdir src &amp;&amp; touch src/server.ts</pre><p>Next let’s install all dependencies:</p><pre>$ npm install express --save<br>$ npm install --save-dev typescript @types/node eslint eslint-plugin-import nodemon ts-node</pre><p><strong>@types/node :</strong> Is a plugin than help us to resolve node names</p><p><strong>eslint eslint-plugin-import:</strong> help us to resolve import issues than we can have.</p><p><strong>nodemon:</strong> This plugin avoid us than periodically we have reloading application.</p><p><strong>ts-node:</strong> Allow us to run typescript files without transpile javascript to plain text.</p><p>Now let’s create our server in server.ts:</p><pre><em>import</em> * <em>as</em> express <em>from</em> &quot;express&quot;;</pre><pre>const app = express();</pre><pre>app.get(&quot;/&quot;, (req, res) =&gt; {</pre><pre>    res.send(&quot;Hello World&quot;)</pre><pre>})</pre><pre>const PORT = process.env.PORT || 3000;</pre><pre>app.listen(PORT, () =&gt; {</pre><pre>     console.log(`Server is running in http://localhost:${PORT}`)</pre><pre>})</pre><p>ultimately, let’s create tsconfig.json for add typescript settings:</p><pre>{</pre><pre>&quot;compilerOptions&quot;: {</pre><pre>&quot;target&quot;: &quot;es6&quot;,</pre><pre>&quot;module&quot;: &quot;commonjs&quot;,</pre><pre>&quot;outDir&quot;: &quot;dist&quot;,</pre><pre>&quot;sourceMap&quot;: true</pre><pre>},</pre><pre>&quot;include&quot;: [</pre><pre>&quot;src/**/*.ts&quot;</pre><pre>],</pre><pre>&quot;exclude&quot;: [</pre><pre>&quot;node_modules&quot;,</pre><pre>&quot;.vscode&quot;</pre><pre>]</pre><pre>}</pre><p><strong>2. Setup our package.json and add scripts</strong></p><p>First let’s to define scripts:</p><pre>&quot;scripts&quot;: {</pre><pre>&quot;start&quot;: &quot;node --inspect=5858 -r ts-node/register ./src/server.ts&quot;,</pre><pre>&quot;start:watch&quot;: &quot;nodemon&quot;,</pre><pre>&quot;build&quot;: &quot;tsc&quot;</pre><pre>}</pre><p><strong>“start”: “node — inspect=5858 -r ts-node/register ./src/server.ts”: </strong>Runs and enable us our server:</p><p><strong>— inspect=5858: </strong>Enable us 5858 port for debugging our project.</p><p><strong>-r ts-node/register ./src/server.ts: </strong>Runs our typescrypt file.</p><p><strong>“start”: “nodemon”: </strong>This runs our nodemon process but first we need to add this settting to our package:</p><pre>&quot;nodemonConfig&quot;: {</pre><pre>&quot;ignore&quot;: [</pre><pre>&quot;**/*.test.ts&quot;,</pre><pre>&quot;**/*.spec.ts&quot;,</pre><pre>&quot;.git&quot;,</pre><pre>&quot;node_modules&quot;</pre><pre>],</pre><pre>&quot;watch&quot;: [</pre><pre>&quot;src&quot;</pre><pre>],</pre><pre>&quot;exec&quot;: &quot;npm start&quot;,</pre><pre>&quot;ext&quot;: &quot;ts&quot;</pre><pre>},</pre><p>basically each time the nodemon detect a new change in the folder <strong>src</strong> run in my package script <strong>npm start. </strong>(<a href="https://github.com/remy/nodemon/">see more settings here</a>)</p><p><strong>“build”: “tsc”: </strong>Take our<strong> </strong>tsconfig.json and generate a dist of our project.</p><p><strong>3. Runs application</strong></p><p>Now if you runs <strong>npm run start:watch</strong> you nodemon process and server start out:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/916/1*zz_8Nbn68AeRcFQoljk6wg.png" /></figure><p>And if runs <strong>npm run build</strong> generate us out dist folder:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/250/1*KsSLs7lXAhZJvHPi9Tjiuw.png" /></figure><p><strong>4. Debug with vs code</strong></p><p>Ultimately, We just enable auto <a href="https://code.visualstudio.com/updates/v1_22#_node-debugging">Attach node process of vs code</a> for start to debug our project:</p><p>command + shift + p</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/629/1*hjjgrFXM2NBUhMYtCUeleg.png" /></figure><p>Now when runs <strong>npm run start:watch</strong> in our terminal automatically it will start to debug.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tumt8jwq3POWguxnhvsmZg.png" /></figure><p><strong>That’s all!</strong></p><p>Thank you for reading this article and give a like 😎.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f7c88fb5ee71" width="1" height="1" alt=""><hr><p><a href="https://medium.com/create-a-server-with-nodemon-express-typescript/create-a-server-with-nodemon-express-typescript-f7c88fb5ee71">Create a server with Nodemon + Express + Typescript</a> was originally published in <a href="https://medium.com/create-a-server-with-nodemon-express-typescript">Node Fun!</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>