<?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: Wilian Martinez</title>
    <description>The latest articles on DEV Community by Wilian Martinez (@wmartzh).</description>
    <link>https://dev.to/wmartzh</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%2F452621%2Fdb04c418-aa02-491e-a3c6-ed1e6299fc8b.jpeg</url>
      <title>DEV Community: Wilian Martinez</title>
      <link>https://dev.to/wmartzh</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/wmartzh"/>
    <language>en</language>
    <item>
      <title>Typing env variables on typescript</title>
      <dc:creator>Wilian Martinez</dc:creator>
      <pubDate>Sat, 25 May 2024 21:20:53 +0000</pubDate>
      <link>https://dev.to/wmartzh/typing-env-variables-on-typescript-5ee4</link>
      <guid>https://dev.to/wmartzh/typing-env-variables-on-typescript-5ee4</guid>
      <description>&lt;p&gt;As a backend developer, I've been working with typescript, on some projects we are required to use different types of environment files, the most common is using environment files, but there are some specific cases where we need to use other types because the tools that we use requires a yaml, JSON or other file formats, we already have a perfect tool like &lt;a href="https://www.npmjs.com/package/dotenv-yaml" rel="noopener noreferrer"&gt;dotenv-yaml - npm&lt;/a&gt; or &lt;a href="https://www.npmjs.com/package/dotenv" rel="noopener noreferrer"&gt;dotenv - npm&lt;/a&gt;. But something comes to my mind, what if we have a package that can support any env files 🤔...&lt;/p&gt;

&lt;p&gt;So I made a try, and I created &lt;a href="https://github.com/wmartzh/ts-env" rel="noopener noreferrer"&gt;ts-env&lt;/a&gt;, we can manage different types of env files, currently supporting &lt;code&gt;YAML&lt;/code&gt;, 'TOML', 'JSON' files&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F52oszl6559np0pi15em7.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F52oszl6559np0pi15em7.png" alt="default_config" width="800" height="424"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Typing
&lt;/h2&gt;

&lt;p&gt;It also supports typing the &lt;code&gt;process.env&lt;/code&gt; which helps a lot to know which variables we have on the env file.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fnxu5lkxoo4bjdkhcl5rj.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fnxu5lkxoo4bjdkhcl5rj.png" alt="type_config" width="800" height="527"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;So we can have a lint suggestion on the editor&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fr2u5ha2pljxgbu8fwcop.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fr2u5ha2pljxgbu8fwcop.png" alt="suggest_lint" width="527" height="110"&gt;&lt;/a&gt;&lt;/p&gt;

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

&lt;p&gt;I don't know if this is a real problem, if it is not, at least was interesting doing int, so let me know what do you think&lt;/p&gt;

</description>
    </item>
    <item>
      <title>My productivity system</title>
      <dc:creator>Wilian Martinez</dc:creator>
      <pubDate>Thu, 08 Dec 2022 21:50:34 +0000</pubDate>
      <link>https://dev.to/wmartzh/my-productivity-system-33ac</link>
      <guid>https://dev.to/wmartzh/my-productivity-system-33ac</guid>
      <description>&lt;p&gt;Hi, I’m a junior developer. Since I started as a developer, I used to spend a lot of time finding the best way to manage my time to increase my performance because one of my main objectives is to try to be a proficient developer and have a good life-work balance.&lt;/p&gt;

&lt;h2&gt;
  
  
  Which methodology?
&lt;/h2&gt;

&lt;p&gt;When I started to look for productivity methodologies, Pomodoro was one of the first ones to rise to the top of the list. However, it is not the best method for developers, and one of the foremost reasons is that the mind of the developer works differently than others. Pomodoro establishes that a person can’t spend more than 30 minutes of full focus on one specific task. When we are working on something, we cannot just stop working because we are problem solvers, so we don't stop until we finish, so we are in the process of thinking of solutions, and breaking that flow can't directly affect our results.&lt;/p&gt;

&lt;p&gt;Working by periods works, but the time is defined by ourselves, and we have to identify when we are stuck on something and, at that moment, we have to take a break and do something different: take a walk, go for coffee, or just go to the couch and rest for a moment, then go back to work.&lt;/p&gt;

&lt;p&gt;This method allows us to work efficiently instead of being stuck at the computer all day on one thing that can be solved in a couple of hours.&lt;/p&gt;

&lt;h2&gt;
  
  
  Which tools?
&lt;/h2&gt;

&lt;p&gt;Nowadays, we have a lot of tools that we can choose from, and I tried a lot of them, and it's easy to overload ourselves by using multiple apps at the same time just because we think that helps us have better productivity. Certainly, there is a fact that I learned after overloading myself by using a lot of apps at the same time, and that fact is that keeping everything simple leads to better productivity.&lt;/p&gt;

&lt;p&gt;Therefore, to keep everything simple, I currently just use two apps: Google Calendar and Notion.&lt;/p&gt;

&lt;h2&gt;
  
  
  Block time
&lt;/h2&gt;

&lt;p&gt;One of the first things that I do is block time instead of having a long list of to-do’s, so I use Google Calendar to block times to have an overview of what I have to do in a day. I don’t include work tasks on my personal calendar because I have the calendar they provide me, so I just block the working hours, and when I’m working, I just open the work calendar where I have the meetings and a list of to-do’s.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fd000eflz0fytxs9f6r0z.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fd000eflz0fytxs9f6r0z.png" alt="Untitled" width="493" height="496"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;On my personal calendar, I include just all that concerns my personal life, so I add routine tasks like sleep time, wake-up time, feeding time, etc. I also add recurrent tasks, like payments or things that I do every month. I also have a to-do list, for which I use Google Tasks, which is included in Google Calendar. On this list, I have a list of things that don't need a schedule date, but when I know that I’m going to do that task, I just drag and drop it on the calendar.&lt;/p&gt;

&lt;p&gt;All of this give me have time for every thing and separate work and life is a key to not overload of work so on my calendar just have all time spaces and having a list of to-do give me a reminder list and not forget anything that I have to do and separate the work with my personal life.&lt;/p&gt;

&lt;h3&gt;
  
  
  Avoid distractions
&lt;/h3&gt;

&lt;p&gt;All this blocking time doesn’t work if we don’t have self-discipline, avoid distractions when we are focused on some task, unless we are stuck; otherwise, it will interfere with whatever work we are doing. I use my phone's features to block social media apps during work hours, unless I require a break.&lt;/p&gt;

&lt;p&gt;I remove social media apps from my phone's main screen to avoid being tempted to open them alongside work apps when I have free time to clear off any work overload and always be fresh during working hours.&lt;/p&gt;

&lt;h2&gt;
  
  
  Our brain creates ideas instead of save it
&lt;/h2&gt;

&lt;p&gt;All my time schedule is on a calendar but all of us we have more than tasks to do there are dreams and projects that we want to achieve, so there is a place that I use to keep all my ideas and goals, That place is notion, the place that I'm using to write this post. With this app, I create a space to keep my ideas on it, so on this place are my short and long term goals, habits that need to change or create new ones.&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fkwapyzla0z5gjiihg5kj.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fkwapyzla0z5gjiihg5kj.png" alt="Untitled" width="800" height="476"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Besides dreams and goals, I use this app to keep notes of new things that I'm learning, meeting notes for work, a diary, etc. This tool helps us store everything that is on our minds, even the shopping list.&lt;/p&gt;

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

&lt;p&gt;Blocking time and having a list of things to do give me focus on work and my personal life, giving me the freedom to take advantage of focused time on work and do my work efficiently without overloading myself. Everyone works differently, so what is your productivity system?&lt;/p&gt;

</description>
      <category>cryptocurrency</category>
      <category>discuss</category>
    </item>
  </channel>
</rss>
