<?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: Lukas Garcia</title>
    <description>The latest articles on DEV Community by Lukas Garcia (@lucasg).</description>
    <link>https://dev.to/lucasg</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%2F498030%2F685f1466-c158-4225-bf08-3c294070a7cc.png</url>
      <title>DEV Community: Lukas Garcia</title>
      <link>https://dev.to/lucasg</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/lucasg"/>
    <language>en</language>
    <item>
      <title>How to Know if You Will Be a Successful Stock Trader</title>
      <dc:creator>Lukas Garcia</dc:creator>
      <pubDate>Sat, 25 Nov 2023 20:51:33 +0000</pubDate>
      <link>https://dev.to/lucasg/how-to-know-if-you-will-be-a-successful-stock-trader-1ahl</link>
      <guid>https://dev.to/lucasg/how-to-know-if-you-will-be-a-successful-stock-trader-1ahl</guid>
      <description>&lt;p&gt;Success in the stock market is a blend of skill, luck, and strategy. For aspiring traders, understanding the key indicators of potential success is crucial. This guide aims to highlight the signs that you might be on the path to becoming a successful stock trader.&lt;/p&gt;

&lt;h2&gt;
  
  
  Understanding the Market
&lt;/h2&gt;

&lt;p&gt;Before diving into trading, it's essential to have a thorough understanding of how the stock market works. This includes knowledge of financial instruments, market trends, and the impact of global events on stock prices.&lt;/p&gt;

&lt;h2&gt;
  
  
  Analytical Skills
&lt;/h2&gt;

&lt;p&gt;A successful trader often has strong analytical skills. This includes the ability to read and interpret stock charts, understand financial reports, and make decisions based on data analysis.&lt;/p&gt;

&lt;h2&gt;
  
  
  Risk Management
&lt;/h2&gt;

&lt;p&gt;Risk management is crucial in trading. Knowing how much risk you can afford to take and setting stop-loss orders to minimize potential losses are vital skills for a trader.&lt;/p&gt;

&lt;h2&gt;
  
  
  Emotional Discipline
&lt;/h2&gt;

&lt;p&gt;The ability to remain disciplined and emotionally detached is vital. Market fluctuations can be stressful, and successful traders know how to keep their emotions in check.&lt;/p&gt;

&lt;h2&gt;
  
  
  Practice and Patience
&lt;/h2&gt;

&lt;p&gt;Practice makes perfect. Start with a demo account to understand the market without risking real money. Be patient as gaining proficiency in trading takes time.&lt;/p&gt;

&lt;h2&gt;
  
  
  Backtracking Your Predictions
&lt;/h2&gt;

&lt;p&gt;One effective way to gauge your skill in predicting market trends is by backtracking your stock price predictions. Go 500 days in the past and compare the market conditions then with your current predictions. You can easily find out what the date was 500 days ago by visiting this &lt;a href="https://timecompute.com/"&gt;handy date calculator&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Continuous Learning
&lt;/h2&gt;

&lt;p&gt;The stock market is ever-evolving. Successful traders continuously educate themselves about new strategies, market changes, and financial instruments.&lt;/p&gt;

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

&lt;p&gt;Becoming a successful stock trader requires time, effort, and a willingness to learn. By understanding the market, honing analytical skills, managing risks effectively, and maintaining emotional discipline, you can increase your chances of success in the trading world.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>ICU formatted messages (strings)</title>
      <dc:creator>Lukas Garcia</dc:creator>
      <pubDate>Sat, 11 Sep 2021 23:27:17 +0000</pubDate>
      <link>https://dev.to/lucasg/icu-formatted-messages-strings-1le7</link>
      <guid>https://dev.to/lucasg/icu-formatted-messages-strings-1le7</guid>
      <description>&lt;p&gt;When dealing with strings we often experience challenges to insert some placeholders or to completely replace the string content depending on some variables.&lt;/p&gt;

&lt;p&gt;One of the best solutions I have found for this is using &lt;strong&gt;ICU message format&lt;/strong&gt;. It allows us to define:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;placeholders&lt;/strong&gt;, in a common way &lt;code&gt;{name}&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;plural&lt;/strong&gt;, with &lt;code&gt;{count, plural,
one{1 apple}
other{{count} apples}}&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;custom selects&lt;/strong&gt;, with &lt;code&gt;{gender, select,
male{His}
female{Her}
other{Their}}&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Plurals are especially important, those can not be easily defined programmatically with &lt;code&gt;if&lt;/code&gt; conditions since plural rules differ among languages. Using ICU message plurals allow us to define only those plural variations that are applicable for the given language, and the framework/package automatically applies those variations depending on the variable (&lt;code&gt;count&lt;/code&gt; in our case).&lt;/p&gt;

&lt;p&gt;Luckily, ICU messages are supported in some popular frameworks or packages:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://formatjs.io/docs/react-intl/"&gt;react-intl&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://localizely.com/flutter-arb/"&gt;Flutter's ARB file&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://angular.io/guide/i18n"&gt;Angular i18n&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;And I see more packages is starting to support it.&lt;br&gt;
Although ICU formats can vary a bit among those implementations, the foundation is the same.&lt;/p&gt;

&lt;p&gt;The only disadvantage that I have found with ICU messages is that sometimes it can be a bit hard to spot errors in its structure. For instance, missing second closing curly bracket for plural, missing comma, or similar. Using online editor for &lt;a href="https://devpal.co/icu-message-editor/"&gt;ICU message format&lt;/a&gt; can detect such issues, or make it pretty printed for easier editing.&lt;br&gt;
However, I couldn't find a better way to define those plural and select cases that are easier to maintain than with this structure.&lt;/p&gt;

&lt;p&gt;I believe many of you are aware of ICU messages, but I still see some developers use &lt;code&gt;if&lt;/code&gt; conditions in the code for plurals which does not work, concatenate a string that contains variables, or similar. ICU messages make it much easier.&lt;/p&gt;

</description>
      <category>react</category>
      <category>reactnative</category>
      <category>flutter</category>
      <category>angular</category>
    </item>
    <item>
      <title>How to use Basic authentication with curl?</title>
      <dc:creator>Lukas Garcia</dc:creator>
      <pubDate>Sat, 06 Feb 2021 22:53:25 +0000</pubDate>
      <link>https://dev.to/lucasg/how-to-use-basic-authentication-with-curl-1j6j</link>
      <guid>https://dev.to/lucasg/how-to-use-basic-authentication-with-curl-1j6j</guid>
      <description>&lt;h1&gt;
  
  
  About Basic Auth
&lt;/h1&gt;

&lt;p&gt;In &lt;a href="https://en.wikipedia.org/wiki/Basic_access_authentication"&gt;Basic Authentication&lt;/a&gt;, a HTTP request contains a header &lt;code&gt;Authorization: Basic &amp;lt;credentials&amp;gt;&lt;/code&gt;, where credentials is the Base64 encoding of username and password joined by a single colon &lt;code&gt;:&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Basic Auth is considered as not safe enough, but we still use it a lot for some less sensitive stuff because it is easy to set up.&lt;/p&gt;

&lt;h1&gt;
  
  
  Basic Auth with curl
&lt;/h1&gt;

&lt;p&gt;You can use Basic Http Auth with curl in following two ways:&lt;/p&gt;

&lt;h3&gt;
  
  
  Option 1: Pass credentials to curl
&lt;/h3&gt;

&lt;p&gt;Passing Basic credentials to curl command is easy as this:&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;&lt;code&gt;curl -u username:password https://example.com&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;If your username or password contains a special character, such as white-space, then you might want to surround credentials with single quotes:&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;&lt;code&gt;curl -u 'username:password' https://example.com&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;h3&gt;
  
  
  Option 2: Pass Authorization header
&lt;/h3&gt;

&lt;p&gt;If you want to have a full control over your HTTP request, you might want to &lt;a href="https://devpal.co/base64-encode/"&gt;Base64 encode&lt;/a&gt; your &lt;code&gt;username:password&lt;/code&gt; and place it into &lt;code&gt;Authorization&lt;/code&gt; header.&lt;br&gt;
Curl command should look like this:&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;&lt;code&gt;curl -H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' https://example.com&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;h1&gt;
  
  
  Basic Auth and colon in username
&lt;/h1&gt;

&lt;p&gt;Colon &lt;code&gt;:&lt;/code&gt; is not allowed to be used in an username according to &lt;a href="https://tools.ietf.org/html/rfc7617"&gt;Basic Auth specification&lt;/a&gt;. But in case you need to support it (ie your users are allowed to create such username) and you are in charge of client and server, you might want to &lt;a href="https://devpal.co/url-encode/"&gt;URL encode&lt;/a&gt; the username and password on both sides.&lt;/p&gt;

</description>
      <category>security</category>
      <category>webdev</category>
      <category>testing</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Free everyday tools for a software engineer</title>
      <dc:creator>Lukas Garcia</dc:creator>
      <pubDate>Sat, 31 Oct 2020 14:21:26 +0000</pubDate>
      <link>https://dev.to/lucasg/free-everyday-tools-for-a-software-engineer-51oa</link>
      <guid>https://dev.to/lucasg/free-everyday-tools-for-a-software-engineer-51oa</guid>
      <description>&lt;p&gt;As software engineers we want to be sure we use our time in a productive way. Our software industry changes on weekly bases, and it is good to step back every now and then and check if we use the best possible tools available. &lt;/p&gt;

&lt;p&gt;Of course, we can use many project/technology dependent tools, but here I will share a few tools I use on daily bases, no matter what kind of work I do as an engineer at that moment. &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;&lt;a href="https://code.visualstudio.com/"&gt;Visual Studio Code&lt;/a&gt;&lt;/strong&gt; Some would say it is an IDE mainly intended for web development, but I use it as a default text editor.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;&lt;a href="https://www.sourcetreeapp.com/"&gt;SourceTree&lt;/a&gt;&lt;/strong&gt; Still the best Git client imho.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;&lt;a href="https://trello.com/"&gt;Trello&lt;/a&gt;&lt;/strong&gt; I use this free "tasks list" tool for my personal tasks on the work, and also for shared team tasks on the projects if no demand for advanced tools like Jira.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;&lt;a href="https://www.awesomescreenshot.com"&gt;Awesome screenshot&lt;/a&gt;&lt;/strong&gt; Chrome extension tool that helps me easily share my screenshots with custom marks in case of bug reports or similar.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;&lt;a href="https://www.postman.com"&gt;Postman&lt;/a&gt;&lt;/strong&gt; Handy tool to save and execute HTTP requests. If endpoints require dynamic/custom authorization, I configure them with "Pre-request Script".&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;&lt;a href="https://devpal.co/base64-decode/"&gt;DevPal&lt;/a&gt;&lt;/strong&gt; Handy tool for quick conversions &amp;amp; similar operations such as Base64 &amp;amp; URL encoding/decoding, hashing, random UUID.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;&lt;a href="https://www.docker.com/"&gt;Docker&lt;/a&gt;&lt;/strong&gt; Many reasons to use docker. For instance having the same setup as in production environment, not polluting your OS with new installations you plan to use, etc.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;&lt;a href="https://www.diagrams.net"&gt;Diagrams&lt;/a&gt;&lt;/strong&gt; Whenever working on a complex thing, multi-disciplinary task, or on processes, I like to visually depict it with this tool and share it with my team to be in sync.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>tooling</category>
      <category>productivity</category>
    </item>
  </channel>
</rss>
