<?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: David Romero</title>
    <description>The latest articles on DEV Community by David Romero (@davidromero).</description>
    <link>https://dev.to/davidromero</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%2F423264%2F03dd7304-3ce0-462a-bca1-25b880511003.jpeg</url>
      <title>DEV Community: David Romero</title>
      <link>https://dev.to/davidromero</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/davidromero"/>
    <language>en</language>
    <item>
      <title>Fight the Fire</title>
      <dc:creator>David Romero</dc:creator>
      <pubDate>Thu, 09 Jul 2020 05:57:22 +0000</pubDate>
      <link>https://dev.to/davidromero/fight-the-fire-54kj</link>
      <guid>https://dev.to/davidromero/fight-the-fire-54kj</guid>
      <description>&lt;h1&gt;
  
  
  Journal Entry July 8 2020
&lt;/h1&gt;

&lt;p&gt;&lt;strong&gt;Study For Java OCA&lt;/strong&gt; &lt;/p&gt;

&lt;p&gt;Today's Topics&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Arrays&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Different forms of initializing an array&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight java"&gt;&lt;code&gt;&lt;span class="kt"&gt;int&lt;/span&gt;&lt;span class="o"&gt;[]&lt;/span&gt; &lt;span class="n"&gt;numAnimals&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
&lt;span class="kt"&gt;int&lt;/span&gt; &lt;span class="o"&gt;[]&lt;/span&gt; &lt;span class="n"&gt;munAnimals2&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
&lt;span class="kt"&gt;int&lt;/span&gt; &lt;span class="n"&gt;numAnimals3&lt;/span&gt;&lt;span class="o"&gt;[];&lt;/span&gt;
&lt;span class="kt"&gt;int&lt;/span&gt; &lt;span class="n"&gt;numAnimals4&lt;/span&gt; &lt;span class="o"&gt;[];&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;String Array and int array 'a' -&amp;gt; 97&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight java"&gt;&lt;code&gt;&lt;span class="nc"&gt;String&lt;/span&gt;&lt;span class="o"&gt;[]&lt;/span&gt; &lt;span class="n"&gt;towns&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="o"&gt;{&lt;/span&gt;&lt;span class="s"&gt;"Antigua"&lt;/span&gt;&lt;span class="o"&gt;,&lt;/span&gt; &lt;span class="s"&gt;"Escuintla"&lt;/span&gt;&lt;span class="o"&gt;,&lt;/span&gt; &lt;span class="s"&gt;"Coban"&lt;/span&gt;&lt;span class="o"&gt;}&lt;/span&gt;
&lt;span class="kt"&gt;int&lt;/span&gt;&lt;span class="o"&gt;[]&lt;/span&gt; &lt;span class="n"&gt;numbers&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="o"&gt;{&lt;/span&gt;&lt;span class="mi"&gt;100&lt;/span&gt;&lt;span class="o"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="o"&gt;,&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mi"&gt;9&lt;/span&gt;&lt;span class="o"&gt;,&lt;/span&gt; &lt;span class="sc"&gt;'a'&lt;/span&gt;&lt;span class="o"&gt;};&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;






&lt;p&gt;&lt;strong&gt;Serverless Rest API&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The service I'm currently working has the following structure:&lt;/p&gt;

&lt;p&gt;(Since chalice is a serverless microframework we put libs under chalibelib)&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;app.py - define the route and the methods, returns a response &lt;/li&gt;
&lt;li&gt;validations.py - define the mandatory and non_editable attributes and validate based on requirements&lt;/li&gt;
&lt;li&gt;databases.py - dynamoDB table.scan() and table.put_item()&lt;/li&gt;
&lt;li&gt;custom_reponses - make the http response based on status code, body and headers&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;&lt;strong&gt;DynamoDB&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;I'm using DynamoDB as a document database for the moment. &lt;/p&gt;

&lt;p&gt;Tables: Collection of data&lt;/p&gt;

&lt;p&gt;Items: Group of attributes that is uniquely identifiable.&lt;/p&gt;

&lt;p&gt;Attributes: Fundamental data element.&lt;/p&gt;

&lt;p&gt;Document Sample, volcanoId is the primary Key&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;[
  {
    "volcanoID":205,
    "name":"Tajumulco",
    "elevation":4220,
    "coordinates":{
      "N":"15-02-04",
      "W":"91-54-12″
    }, 
    "last_eruption": 1863
  },
  {
    "volcanoID": 206,
    "name": "Tacaná",
    "elevation": 4060,
    "coordinates" : {
    "N": "15.07.48",
    "W": "92.06.45″
    },
    "last_eruption":1986
   }
]
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;Primary Key: Identifier for the item.&lt;/p&gt;

&lt;p&gt;Secondary Indexes: used for queries.&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;Things to do&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Google Ads API&lt;br&gt;
Oauth2.0 authentication on lambdas&lt;/p&gt;




&lt;h2&gt;
  
  
  Song of the Day
&lt;/h2&gt;

&lt;p&gt;Andy Moor feat. Sue McLaren - Fight The Fire &lt;/p&gt;

</description>
      <category>career</category>
      <category>productivity</category>
    </item>
    <item>
      <title>Clock is ticking</title>
      <dc:creator>David Romero</dc:creator>
      <pubDate>Tue, 07 Jul 2020 06:15:03 +0000</pubDate>
      <link>https://dev.to/davidromero/clock-is-ticking-28l8</link>
      <guid>https://dev.to/davidromero/clock-is-ticking-28l8</guid>
      <description>&lt;h1&gt;
  
  
  Journal Entry July 6 2020
&lt;/h1&gt;

&lt;p&gt;&lt;strong&gt;Study For Java OCA&lt;/strong&gt; &lt;/p&gt;

&lt;p&gt;I'm using Jeanne Boyarsky's Book (Certified Associate Java SE 8 Programmer I)&lt;/p&gt;

&lt;p&gt;Today's Topics&lt;/p&gt;

&lt;p&gt;&lt;code&gt;StringBuilder&lt;/code&gt; Class and common methods like&lt;/p&gt;

&lt;p&gt;&lt;code&gt;append() insert() delete() deleteCharAt() reverse() toString()&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;And the concept of mutability and how methods really affect StringBuilder not the case for &lt;code&gt;String&lt;/code&gt;&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;Serverless Rest API, using chalice and boto3&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;I'm still haven't fully understand the chalice workflow, but when using python I feel so productive and I like that.&lt;/p&gt;

&lt;p&gt;Sample of the JSON response&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"start_time"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"2020-06-26T09:00:00"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"patient_date"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"David"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"patient_uid"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"1234"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"end_time"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"2020-06-26T09:00:00"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"phone_number"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"12345678"&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;






&lt;p&gt;&lt;strong&gt;AWS Developer Associate Certification 2020&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;I'm thinking about also getting the AWS Developer Certification, because there are many concepts that I can apply on this project.&lt;/p&gt;

&lt;p&gt;I'd tried acloudguru.com recently (1 week free period) and I prefer linuxacademy.com for the amount of Linux and DevOps related courses and labs. The one thing I'm worry about is that the course for maybe outdated, but we will see.&lt;/p&gt;




&lt;p&gt;First day and I &lt;strong&gt;(almost)&lt;/strong&gt; miss the deadline of this Journal Experiment. So great start, I guess. Hopefully as the habit settles in I can do it with lees friction. Till tomorrow... &lt;/p&gt;

</description>
      <category>productivity</category>
      <category>career</category>
    </item>
    <item>
      <title>Developer Journal</title>
      <dc:creator>David Romero</dc:creator>
      <pubDate>Sun, 05 Jul 2020 05:00:05 +0000</pubDate>
      <link>https://dev.to/davidromero/developer-journal-11m1</link>
      <guid>https://dev.to/davidromero/developer-journal-11m1</guid>
      <description>&lt;p&gt;Here we go. Since the start of my developer career I always wanted to keep a &lt;strong&gt;daily Journal&lt;/strong&gt;. A little space to share in a informal manner my conquers and defeats in the software world.&lt;/p&gt;

&lt;p&gt;A day goes by, code gets written and deleted, tabs get open and closed, books get read, and somehow I get a feeling I'm not moving forward. Endless procrastination? YouTube dependency? Information OverFlow ? Overthinking ? dunno&lt;/p&gt;




&lt;p&gt;The Daily Entry will have (al least) an overview of &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Current Project(s) working on

&lt;ul&gt;
&lt;li&gt;Feature or Bug &lt;/li&gt;
&lt;li&gt;Code snippets, maybe&lt;/li&gt;
&lt;li&gt;Concepts to learn&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;
&lt;li&gt;Useful links&lt;/li&gt;
&lt;li&gt;Ideas for future me&lt;/li&gt;
&lt;li&gt;Lessons learned
___&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The main idea being, &lt;strong&gt;Having to force myself to document my day&lt;/strong&gt; and review it, also for future references.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Shall we begin...&lt;/p&gt;
&lt;/blockquote&gt;

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