<?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: Gabriele Formenti</title>
    <description>The latest articles on DEV Community by Gabriele Formenti (@gabrielef).</description>
    <link>https://dev.to/gabrielef</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%2F397396%2Fa7001407-6d07-4dda-87ba-2aa20cfc1208.jpeg</url>
      <title>DEV Community: Gabriele Formenti</title>
      <link>https://dev.to/gabrielef</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/gabrielef"/>
    <language>en</language>
    <item>
      <title>API documentation from Postman collection</title>
      <dc:creator>Gabriele Formenti</dc:creator>
      <pubDate>Sat, 21 Nov 2020 00:01:07 +0000</pubDate>
      <link>https://dev.to/gabrielef/api-documentation-from-postman-collection-551o</link>
      <guid>https://dev.to/gabrielef/api-documentation-from-postman-collection-551o</guid>
      <description>&lt;p&gt;Automate documentation generation from Postman collection is very helpful.&lt;/p&gt;

&lt;p&gt;There are some open source projects to achieve the goal.&lt;/p&gt;

&lt;p&gt;In the past I used &lt;a href="https://github.com/aubm/postmanerator"&gt;postmanerator&lt;/a&gt; and in the last weeks I switched to &lt;a href="https://github.com/thedevsaddam/docgen"&gt;docgen&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Have you already heard about this tools? Do you use a different one?&lt;/p&gt;

</description>
      <category>postman</category>
      <category>api</category>
      <category>documentation</category>
    </item>
    <item>
      <title>Super Simple execution tracking for Javascript and Node.js</title>
      <dc:creator>Gabriele Formenti</dc:creator>
      <pubDate>Mon, 08 Jun 2020 09:02:40 +0000</pubDate>
      <link>https://dev.to/gabrielef/super-simple-execution-tracking-for-javascript-and-node-js-1abl</link>
      <guid>https://dev.to/gabrielef/super-simple-execution-tracking-for-javascript-and-node-js-1abl</guid>
      <description>&lt;p&gt;Sometimes you need to measure time execution of a script or part of it, simple answer could be call the &lt;strong&gt;&lt;em&gt;Date()&lt;/em&gt;&lt;/strong&gt; function many times and compute elapsed time.&lt;/p&gt;

&lt;p&gt;Recently I found out a better method that works for javascript and Node.js too, the &lt;strong&gt;&lt;em&gt;console.time&lt;/em&gt;&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;This function comes from Web API and have a great support:&lt;/p&gt;

&lt;p&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%2Fahd2ueu2nnsknx1lj18r.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%2Fahd2ueu2nnsknx1lj18r.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Using it is very simple:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="c1"&gt;//start timer with name "My Timer Name"&lt;/span&gt;
&lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;time&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;My Timer Name&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

&lt;span class="nf"&gt;alert&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Click to continue&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="c1"&gt;//log time without sotp the timer&lt;/span&gt;
&lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;timeLog&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;My Timer Name&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="c1"&gt;//My Timer Name: 1898.589111328125ms&lt;/span&gt;

&lt;span class="nf"&gt;alert&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Click to continue again...&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="c1"&gt;//log time and stop timer&lt;/span&gt;
&lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;timeEnd&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;My Timer Name&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="c1"&gt;//My Timer Name: 2641.26123046875ms&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For more information you can read official docs on &lt;a href="https://developer.mozilla.org/en-US/docs/Web/API/Console/time" rel="noopener noreferrer"&gt;MDN&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Cover Image: &lt;a href="https://commons.wikimedia.org/wiki/File:Stopwatch,_1810201155,_ako.jpg" rel="noopener noreferrer"&gt;Ansgar Koreng&lt;/a&gt; &lt;/p&gt;

</description>
      <category>todayilearned</category>
      <category>javascript</category>
      <category>node</category>
    </item>
  </channel>
</rss>
