<?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: hditano</title>
    <description>The latest articles on DEV Community by hditano (@hditano).</description>
    <link>https://dev.to/hditano</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%2F365781%2F6b00eba8-b219-4d6f-b0c8-329d94d838db.png</url>
      <title>DEV Community: hditano</title>
      <link>https://dev.to/hditano</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/hditano"/>
    <language>en</language>
    <item>
      <title>Matching two Values from an Array (CSV) and an Axios Request and if so.. print out proper value (third value)</title>
      <dc:creator>hditano</dc:creator>
      <pubDate>Mon, 29 Jun 2020 08:37:24 +0000</pubDate>
      <link>https://dev.to/hditano/matching-two-values-from-an-array-csv-and-an-axios-request-and-if-so-print-out-proper-value-third-value-136b</link>
      <guid>https://dev.to/hditano/matching-two-values-from-an-array-csv-and-an-axios-request-and-if-so-print-out-proper-value-third-value-136b</guid>
      <description>&lt;p&gt;I'm still learning Javascript. so this is what i came with. Which obviously its not working as expected.&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;const ESI = axios.get('https://esi.evetech.net/latest/markets/10000002/orders/?datasource=tranquility&amp;amp;order_type=all&amp;amp;page=1')
.then(function (response) {
  console.log(response.data);
  for(let i of response.data){
    console.log(i.type_id);
  }
}) 

function doStuff(data) {
  //Data is usable here
  console.log(data);
}

function parseData(url, callBack) {
  Papa.parse(url, {
      download: true,
      dynamicTyping: true,
      complete: function(results) { 
          callBack(results.data);
      }
  });
}

const csvData = parseData("invTypes.csv", doStuff);

console.log(csvData);

Array.prototype.diff = function(csvData) {
  var ret = [];
  this.sort();
  csvData.sort();
  for( var i = 0; i &amp;lt; this.length; i += 1) {
    if(csvData.indexOf(this[i] &amp;gt; -1) &amp;gt; -1) {
      ret.push(this[i]);
    }
  }
  return ret;
}

console.log(ESI.diff(csvData));
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;I am trying to do the following.&lt;br&gt;
Axios returns the results in the following format.&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;0:
duration: 90
is_buy_order: false
issued: "2020-04-26T13:09:52Z"
location_id: 60003760
min_volume: 1
order_id: 5672796166
price: 99890
range: "region"
system_id: 30000142
type_id: 33092
volume_remain: 25
volume_total: 28
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;This is what i get from PapaParse (its around 35.000 csv lines parsed).&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;18941: Array(15)
0: 33092
1: 257
2: "Caldari Destroyer"
3: "Skill at operating Caldari destroyers."
4: "0E-10"
5: 0.01
6: "0E-10"
7: 1
8: 1
9: 100000
10: 1
11: 377
12: 33
13: "None"
14: 0
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;As you can see &lt;strong&gt;Type_ID&lt;/strong&gt; and &lt;strong&gt;0:&lt;/strong&gt; Matches since they are both the same &lt;strong&gt;ID&lt;/strong&gt; : &lt;strong&gt;33092&lt;/strong&gt;. If so..i need to return the value of the &lt;strong&gt;2:&lt;/strong&gt; which in this case is &lt;strong&gt;Caldari Destroyer&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Not quite sure what would be a better way to handle this?? MongoDB? MySql?&lt;br&gt;
If so..what should i look for? &lt;/p&gt;

</description>
      <category>javascript</category>
      <category>beginners</category>
    </item>
    <item>
      <title>CSharp When to use properties</title>
      <dc:creator>hditano</dc:creator>
      <pubDate>Wed, 15 Apr 2020 09:32:23 +0000</pubDate>
      <link>https://dev.to/hditano/csharp-when-to-use-properties-1m1c</link>
      <guid>https://dev.to/hditano/csharp-when-to-use-properties-1m1c</guid>
      <description>&lt;p&gt;First at all, i started to learn C# a few days ago, at the moment i’m in the “Set/Get” Chapter. So every new thing that comes in my tutorial i try to apply it on my small application. Even tho if i do not understand the concepts i go the alternative places and look for suggestions, which is not this case.&lt;/p&gt;

&lt;p&gt;I tought that maybe in the Class Calculator i could add a set and get so i do not have to declare the num1, num2 variables on each method? (Sumar, Restar, Division, Multiplicacion)&lt;/p&gt;

&lt;p&gt;class Calculo&lt;br&gt;
{&lt;/p&gt;

&lt;p&gt;public static void Suma()&lt;br&gt;
{&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;int num1, num2 = 0;
Console.Write(" Ingrese el primer numero que quiere sumar: ");
num1 = Convert.ToInt32(Console.ReadLine());
Console.Write(" Ingrese el segundo numero que quiere sumar: ");
num2 = Convert.ToInt32(Console.ReadLine());
Console.WriteLine(" Resultado es:   " + (num1 + num2));
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;}&lt;/p&gt;

&lt;p&gt;public static void Resta()&lt;br&gt;
{&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;int num1, num2 = 0;
Console.Write(" Ingrese el primer numero que quiere restar: ");
num1 = Convert.ToInt32(Console.ReadLine());
Console.Write(" Ingrese el segundo numero que quiere restar: ");
num2 = Convert.ToInt32(Console.ReadLine());
Console.WriteLine(" Resultado es: " + (num1 - num2));
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;}&lt;/p&gt;

&lt;p&gt;public static void Division()&lt;br&gt;
{&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;int num1, num2 = 0;
Console.Write(" Ingrese el primer numero que quiere Dividir: ");
num1 = Convert.ToInt32(Console.ReadLine());
Console.Write(" Ingrese el segundo numero que quiere Dividir: ");
num2 = Convert.ToInt32(Console.ReadLine());
Console.WriteLine(" Resultado es: " + (num1 / num2));
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;}&lt;/p&gt;

&lt;p&gt;public static void Multiplicacion()&lt;br&gt;
 {&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;int num1, num2 = 0;
Console.Write(" Ingrese el primer numero que quiere multiplicar: ");
num1 = Convert.ToInt32(Console.ReadLine());
Console.Write(" Ingrese el segundo numero que quiere multiplicar: ");
num2 = Convert.ToInt32(Console.ReadLine());
Console.WriteLine(" Resultado es: " + (num1 * num2));
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;}&lt;br&gt;
}&lt;br&gt;
Thank you!&lt;/p&gt;

</description>
      <category>csharp</category>
      <category>beginners</category>
    </item>
    <item>
      <title>Learning C# Advice.</title>
      <dc:creator>hditano</dc:creator>
      <pubDate>Mon, 13 Apr 2020 12:45:26 +0000</pubDate>
      <link>https://dev.to/hditano/learning-c-advice-4047</link>
      <guid>https://dev.to/hditano/learning-c-advice-4047</guid>
      <description>&lt;p&gt;Hello everyone.&lt;br&gt;
Due to the covid19 and the current lockdown in my country (Argentina) i finally took a further step and i'm currently learning C# (Mostly interested in BackEnd, Desktop Software and Games). Even tho i tried to start with tutorials from GameDev.tv about Unity, stopped half way and decided to get into the language itself before going to Unity (hope it was a good decision)&lt;br&gt;
I took the free april trial from PluralSight and been working on the C# Path from the Website.&lt;br&gt;
Even tho i'm almost finishing the Scott Allens course, which sometimes i get difficult to get into, usually go to alternative websites to get a better grasp like (&lt;a href="https://www.tutlane.com/"&gt;https://www.tutlane.com/&lt;/a&gt;, &lt;a href="https://www.tutorialspoint.com/"&gt;https://www.tutorialspoint.com/&lt;/a&gt;, &lt;a href="https://www.completecsharptutorial.com/"&gt;https://www.completecsharptutorial.com/&lt;/a&gt;).&lt;br&gt;
My goal was to try to finish some little projects, like a calculator, which already did. I even tried a few codewars.com exercises which sometimes i found out difficult to follow along.&lt;br&gt;
Do you have any other advice for a beginner on what kind of projects or what kind of path should i take on for a better understand of the fundamentals of a language?? I'm willing to pay for a learning site, something than doesn't go like crazy on price.&lt;/p&gt;

&lt;p&gt;Regards&lt;/p&gt;

&lt;p&gt;Hernan&lt;/p&gt;

</description>
      <category>csharp</category>
      <category>beginners</category>
    </item>
  </channel>
</rss>
