<?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: Jheyson Saavedra</title>
    <description>The latest articles on DEV Community by Jheyson Saavedra (@jheysonsaav).</description>
    <link>https://dev.to/jheysonsaav</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%2F538059%2F99ed2811-a9b2-42fc-bae5-3600bfaefa1a.jpg</url>
      <title>DEV Community: Jheyson Saavedra</title>
      <link>https://dev.to/jheysonsaav</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/jheysonsaav"/>
    <language>en</language>
    <item>
      <title>Why learn rust?</title>
      <dc:creator>Jheyson Saavedra</dc:creator>
      <pubDate>Sat, 12 Dec 2020 17:30:57 +0000</pubDate>
      <link>https://dev.to/jheysonsaav/why-learn-rust-4b5o</link>
      <guid>https://dev.to/jheysonsaav/why-learn-rust-4b5o</guid>
      <description>&lt;h2&gt;
  
  
  Definition
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Rust&lt;/strong&gt; is a &lt;a href="https://en.wikipedia.org/wiki/Multi-paradigm_programming_language"&gt;multi-paradigm&lt;/a&gt; &lt;a href="https://en.wikipedia.org/wiki/Programming_language"&gt;programming language&lt;/a&gt; designed for &lt;a href="https://en.wikipedia.org/wiki/Computer_performance"&gt;performance&lt;/a&gt; and &lt;a href="https://en.wikipedia.org/wiki/Memory_safety"&gt;safety&lt;/a&gt;, especially safe &lt;a href="https://en.wikipedia.org/wiki/Concurrency_(computer_science)"&gt;concurrency&lt;/a&gt;. Rust is &lt;a href="https://en.wikipedia.org/wiki/Syntax_(programming_languages)"&gt;syntactically&lt;/a&gt; similar to &lt;a href="https://en.wikipedia.org/wiki/C%2B%2B"&gt;C++&lt;/a&gt;, but can guarantee &lt;a href="https://en.wikipedia.org/wiki/Memory_safety"&gt;memory safety&lt;/a&gt; by using a borrow checker to validate &lt;a href="https://en.wikipedia.org/wiki/Reference_(computer_science)"&gt;references&lt;/a&gt;. Rust achieves memory safety without &lt;a href="https://en.wikipedia.org/wiki/Garbage_collection_(computer_science)"&gt;garbage collection&lt;/a&gt;, and &lt;a href="https://en.wikipedia.org/wiki/Reference_counting"&gt;reference counting&lt;/a&gt; is optional.&lt;/p&gt;

&lt;p&gt;Rust was originally designed by Graydon Hoare at &lt;a href="https://en.wikipedia.org/wiki/Mozilla"&gt;Mozilla&lt;/a&gt; Research, with contributions from Dave Herman, &lt;a href="https://en.wikipedia.org/wiki/Brendan_Eich"&gt;Brendan Eich&lt;/a&gt;, and others. The designers refined the language while writing the &lt;a href="https://en.wikipedia.org/wiki/Servo_(layout_engine)"&gt;Servo&lt;/a&gt; layout or &lt;a href="https://en.wikipedia.org/wiki/Browser_engine"&gt;browser engine&lt;/a&gt;, and the Rust &lt;a href="https://en.wikipedia.org/wiki/Compiler"&gt;compiler&lt;/a&gt;.&lt;br&gt;
 It has gained increasing use in industry, and Microsoft has been &lt;br&gt;
experimenting with the language for secure and safety-critical software &lt;br&gt;
components.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why rust?
&lt;/h2&gt;

&lt;p&gt;Rust has been voted the "most loved programming language" in the &lt;a href="https://en.wikipedia.org/wiki/Stack_Overflow"&gt;Stack Overflow&lt;/a&gt; Developer Survey every year since 2016.&lt;/p&gt;

&lt;p&gt;rust is a language very loved by those who use it and it causes more and more curiosity in people since it is a language with a somewhat high learning curve but it is worth it because it is a low-level language allows you to do amazing things and even It has come to be considered for use in projects such as the linux kernel or the internal windows system and is already being used in projects such as a &lt;a href="https://github.com/servo/servo"&gt;servo&lt;/a&gt; that is intended to be a replacement for v8&lt;/p&gt;

&lt;p&gt;Rust has many innovative things such as being an owner, a new way of collecting garbage, little by little it is welcoming more community&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;rust discord server in spanish: &lt;a href="https://discord.gg/4ng5HgmaMg"&gt;https://discord.gg/4ng5HgmaMg&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;

</description>
      <category>rust</category>
      <category>discuss</category>
    </item>
    <item>
      <title>deno is the future?</title>
      <dc:creator>Jheyson Saavedra</dc:creator>
      <pubDate>Fri, 11 Dec 2020 17:05:05 +0000</pubDate>
      <link>https://dev.to/jheysonsaav/deno-is-the-future-2585</link>
      <guid>https://dev.to/jheysonsaav/deno-is-the-future-2585</guid>
      <description>&lt;h2&gt;
  
  
  What is deno?
&lt;/h2&gt;

&lt;p&gt;Deno is a runtime for JavaScript and TypeScript that is based on the V8 JavaScript engine and the Rust programming language. It was created by Ryan Dahl, original creator of Node.js, and is focused on productivity. It was announced by Dahl in 2018 during his talk "10 Things I Regret About Node.js".&lt;/p&gt;

&lt;h3&gt;
  
  
  advantages of deno
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;fast and safe&lt;/li&gt;
&lt;li&gt;typescript support&lt;/li&gt;
&lt;li&gt;new dependency management system&lt;/li&gt;
&lt;li&gt;best adaptation of ecmascript&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Why use deno?
&lt;/h2&gt;

&lt;p&gt;Over time, technologies evolve and improve, this is the case of nodejs and one of the most common improvements is that we will avoid the tedious node_modulos folder and it will no longer be necessary to have 1gib of modules since it does not handle the modules in the cache. better way.&lt;/p&gt;


&lt;div class="ltag-github-readme-tag"&gt;
  &lt;div class="readme-overview"&gt;
    &lt;h2&gt;
      &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--i3JOwpme--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev.to/assets/github-logo-ba8488d21cd8ee1fee097b8410db9deaa41d0ca30b004c0c63de0a479114156f.svg" alt="GitHub logo"&gt;
      &lt;a href="https://github.com/denoland"&gt;
        denoland
      &lt;/a&gt; / &lt;a href="https://github.com/denoland/deno"&gt;
        deno
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      A secure JavaScript and TypeScript runtime
    &lt;/h3&gt;
  &lt;/div&gt;
  &lt;div class="ltag-github-body"&gt;
    
&lt;div id="readme" class="md"&gt;
&lt;h1&gt;
Deno&lt;/h1&gt;
&lt;p&gt;&lt;a href="https://github.com/denoland/deno/actions"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--PFdmKufA--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://github.com/denoland/deno/workflows/ci/badge.svg%3Fbranch%3Dmain%26event%3Dpush" alt="Build Status - Cirrus"&gt;&lt;/a&gt; &lt;a href="https://twitter.com/intent/follow?screen_name=deno_land" rel="nofollow"&gt;&lt;img src="https://camo.githubusercontent.com/b8a16c8af732d023e79b212a48aa37b18e7969d0da6c668733a01ded1d357a4d/68747470733a2f2f696d672e736869656c64732e696f2f747769747465722f666f6c6c6f772f64656e6f5f6c616e642e7376673f7374796c653d736f6369616c266c6162656c3d466f6c6c6f77" alt="Twitter handle"&gt;&lt;/a&gt;
&lt;a href="https://discord.gg/deno" rel="nofollow"&gt;&lt;img src="https://camo.githubusercontent.com/a57d17b7150fbb823466507b37b49a9655bb40efaf472ddb12ababd2c12ebe2e/68747470733a2f2f696d672e736869656c64732e696f2f646973636f72642f3638343839383636353134333230363038343f6c6f676f3d646973636f7264267374796c653d736f6369616c" alt="Discord Chat"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a rel="noopener noreferrer" href="https://raw.githubusercontent.com/denoland/deno/main/docs/images/deno3.png"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--PHoBW139--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://raw.githubusercontent.com/denoland/deno/main/docs/images/deno3.png" height="150px"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Deno is a &lt;em&gt;simple&lt;/em&gt;, &lt;em&gt;modern&lt;/em&gt; and &lt;em&gt;secure&lt;/em&gt; runtime for &lt;strong&gt;JavaScript&lt;/strong&gt; and
&lt;strong&gt;TypeScript&lt;/strong&gt; that uses V8 and is built in Rust.&lt;/p&gt;
&lt;h3&gt;
Features&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;Secure by default. No file, network, or environment access, unless explicitly
enabled.&lt;/li&gt;
&lt;li&gt;Supports TypeScript out of the box.&lt;/li&gt;
&lt;li&gt;Ships only a single executable file.&lt;/li&gt;
&lt;li&gt;Built-in utilities like a dependency inspector (deno info) and a code
formatter (deno fmt).&lt;/li&gt;
&lt;li&gt;Set of reviewed standard modules that are guaranteed to work with
&lt;a href="https://deno.land/std/" rel="nofollow"&gt;Deno&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;
Install&lt;/h3&gt;
&lt;p&gt;Shell (Mac, Linux):&lt;/p&gt;
&lt;div class="highlight highlight-source-shell js-code-highlight"&gt;
&lt;pre&gt;curl -fsSL https://deno.land/x/install/install.sh &lt;span class="pl-k"&gt;|&lt;/span&gt; sh&lt;/pre&gt;

&lt;/div&gt;
&lt;p&gt;PowerShell (Windows):&lt;/p&gt;
&lt;div class="highlight highlight-source-powershell js-code-highlight"&gt;
&lt;pre&gt;iwr https:&lt;span class="pl-k"&gt;//&lt;/span&gt;deno.land&lt;span class="pl-k"&gt;/&lt;/span&gt;x&lt;span class="pl-k"&gt;/&lt;/span&gt;install&lt;span class="pl-k"&gt;/&lt;/span&gt;install.ps1 &lt;span class="pl-k"&gt;-&lt;/span&gt;useb &lt;span class="pl-k"&gt;|&lt;/span&gt; iex&lt;/pre&gt;

&lt;/div&gt;
&lt;p&gt;&lt;a href="https://formulae.brew.sh/formula/deno" rel="nofollow"&gt;Homebrew&lt;/a&gt; (Mac):&lt;/p&gt;
&lt;div class="highlight highlight-source-shell js-code-highlight"&gt;
&lt;pre&gt;brew install deno&lt;/pre&gt;

&lt;/div&gt;
&lt;p&gt;&lt;a href="https://chocolatey.org/packages/deno" rel="nofollow"&gt;Chocolatey&lt;/a&gt; (Windows):&lt;/p&gt;
&lt;div class="highlight highlight-source-powershell js-code-highlight"&gt;
&lt;pre&gt;choco install deno&lt;/pre&gt;

&lt;/div&gt;
&lt;p&gt;&lt;a href="https://scoop.sh/" rel="nofollow"&gt;Scoop&lt;/a&gt; (Windows):&lt;/p&gt;
&lt;div class="highlight highlight-source-powershell js-code-highlight"&gt;
&lt;pre&gt;scoop install deno&lt;/pre&gt;

&lt;/div&gt;
&lt;p&gt;Build and install from source using &lt;a href="https://crates.io/crates/deno" rel="nofollow"&gt;Cargo&lt;/a&gt;:&lt;/p&gt;
&lt;div class="highlight highlight-source-shell js-code-highlight"&gt;
&lt;pre&gt;cargo install deno --locked&lt;/pre&gt;

&lt;/div&gt;
&lt;p&gt;See
&lt;a href="https://github.com/denoland/deno_install/blob/master/README.md"&gt;deno_install&lt;/a&gt;
and &lt;a href="https://github.com/denoland/deno/releases"&gt;releases&lt;/a&gt; for other options.&lt;/p&gt;
&lt;h3&gt;
Getting Started&lt;/h3&gt;
&lt;p&gt;Try running a simple program:&lt;/p&gt;
&lt;div class="highlight highlight-source-shell js-code-highlight"&gt;
&lt;pre&gt;deno run https://deno.land/std/examples/welcome.ts&lt;/pre&gt;

&lt;/div&gt;
&lt;p&gt;Or a more complex one:&lt;/p&gt;
&lt;div class="highlight highlight-source-ts js-code-highlight"&gt;
&lt;pre&gt;&lt;span class="pl-k"&gt;import&lt;/span&gt; &lt;span class="pl-kos"&gt;{&lt;/span&gt;&lt;/pre&gt;…
&lt;/div&gt;
&lt;/div&gt;
  &lt;/div&gt;
  &lt;div class="gh-btn-container"&gt;&lt;a class="gh-btn" href="https://github.com/denoland/deno"&gt;View on GitHub&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;


&lt;p&gt;The project grows more and more every day and more projects are adopting it, however, it is not still a very green project that is just bearing fruit.&lt;/p&gt;

</description>
      <category>typescript</category>
      <category>javascript</category>
      <category>deno</category>
    </item>
    <item>
      <title>TypeScript vs JavaScript</title>
      <dc:creator>Jheyson Saavedra</dc:creator>
      <pubDate>Fri, 11 Dec 2020 15:28:53 +0000</pubDate>
      <link>https://dev.to/jheysonsaav/typescript-vs-javascript-23n7</link>
      <guid>https://dev.to/jheysonsaav/typescript-vs-javascript-23n7</guid>
      <description>&lt;h2&gt;
  
  
  Why typescript?
&lt;/h2&gt;

&lt;p&gt;TypeScript is an open source programming language, created and maintained by the Microsoft team that reinforces the shortcomings of JavaScript by giving it superpowers.&lt;/p&gt;

&lt;p&gt;Those familiar with C # will find the use of TypeScript very familiar and this is because in both projects the administrator is Anders Hejlsberg.&lt;/p&gt;

&lt;p&gt;TypeScript extends the features of object-oriented programming and makes it a typed language; that is, we can specify the type of our data.&lt;/p&gt;

&lt;p&gt;for example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="nx"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kr"&gt;string&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;JheysonDev&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="nx"&gt;age&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kr"&gt;number&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;15&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="nx"&gt;isDev&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;boolean&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kc"&gt;true&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="s2"&gt;`&lt;/span&gt;&lt;span class="p"&gt;${&lt;/span&gt;&lt;span class="nx"&gt;name&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="s2"&gt; &lt;/span&gt;&lt;span class="p"&gt;${&lt;/span&gt;&lt;span class="nx"&gt;isDev&lt;/span&gt; &lt;span class="p"&gt;?&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;is a developer&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt; &lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;not is a developer&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="s2"&gt; &lt;/span&gt;&lt;span class="p"&gt;${&lt;/span&gt;&lt;span class="nx"&gt;age&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="s2"&gt; year old`&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;As we can see in the example, unlike in javascript, a &lt;code&gt;:&lt;/code&gt; after the declaration of a variable, a function is added and then a word like &lt;code&gt;number&lt;/code&gt; that means the data type&lt;/p&gt;

&lt;p&gt;typescript also helps to detect errors before being interpreted as has been demonstrated in companies like google, facebook or Microsoft and in projects like vue or angular&lt;/p&gt;

&lt;h2&gt;
  
  
  Why javascript?
&lt;/h2&gt;

&lt;p&gt;JavaScript was originally developed by Netscape's Brendan Eich under the name Mocha, which was later renamed to LiveScript, finally becoming JavaScript. The name change roughly coincided with the time when Netscape added support for Java technology in its Netscape Navigator web browser in version 2002 in December 1995. The naming caused confusion, giving the impression that the language is an extension of Java , and has been characterized by many as a Netscape marketing strategy to gain prestige and innovate in the realm of new web programming language.&lt;/p&gt;

&lt;p&gt;JavaScript is an interpreted programming language, dialect of the ECMAScript standard. It is defined as object-oriented, prototype-based, imperative, weakly typed, and dynamic.&lt;/p&gt;

&lt;p&gt;Unlike typescript, javascript is easier for beginners since adding types has a higher learning curve.&lt;/p&gt;

&lt;p&gt;There are also some modules that, despite having been on the market for many years, typescript are still not compatible with it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;Using typescript can become somewhat tedious, especially if you are learning and do not know javascript very well but it also rewards us with a type system that helps us create better software, however both can coexist together in a project because in the end typescript depends on javascript to work&lt;/p&gt;

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