<?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: Maria Ines Montenegro</title>
    <description>The latest articles on DEV Community by Maria Ines Montenegro (@marinesm).</description>
    <link>https://dev.to/marinesm</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%2F71992%2F0bb4312f-5e0d-4090-9429-c4934ea6e048.JPG</url>
      <title>DEV Community: Maria Ines Montenegro</title>
      <link>https://dev.to/marinesm</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/marinesm"/>
    <language>en</language>
    <item>
      <title>Unemployed for a month</title>
      <dc:creator>Maria Ines Montenegro</dc:creator>
      <pubDate>Tue, 03 Mar 2020 23:13:09 +0000</pubDate>
      <link>https://dev.to/marinesm/unemployed-for-a-month-3mgj</link>
      <guid>https://dev.to/marinesm/unemployed-for-a-month-3mgj</guid>
      <description>&lt;p&gt;After I got laid off, I decided to write down my experience while being unemployed. It was my first full time job as a backend developer and the company went through some restructuring; hence, my first time being fired as well. Having no job all of the sudden was quite scary and uncertain. I felt sad and unmotivated for the first few days but nothing a crying and journaling session couldn't fix. My main concern was establishing a routine that could help me stay productive while job hunting and not giving in to laziness. So I made a journal where I kept track of a daily to-do list and recorded some insights I discovered while struggling to stay disciplined and motivated. Through this post I'll be sharing what I learned as the weeks went by.&lt;/p&gt;

&lt;h3&gt;
  
  
  1st Week
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Day 1&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Should I set an alarm? Should I take a week or some days off before I start looking for a job? Should I take a shower? These are some of the questions I asked myself the first Monday I was unemployed.&lt;/p&gt;

&lt;p&gt;I strongly believe that having a daily routine is essential for your productivity and even mental wellness. As I was going to be without a job, God knows for how many months, I felt the need to establish some ground rules in order to stay active.&lt;/p&gt;

&lt;h3&gt;
  
  
  RULES:
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;Wake up at 7:30 am&lt;/li&gt;
&lt;li&gt;Take a shower right after waking up&lt;/li&gt;
&lt;li&gt;Sit down at a table (not the couch) to get things done: online courses, job hunt, freelance&lt;/li&gt;
&lt;li&gt;Write a journal entry&lt;/li&gt;
&lt;li&gt;Go to the gym at least 4 times per week&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;I decided to take a week off just to focus on redefining my short term goals and think about what kind of job I wanted to apply for...&lt;/p&gt;

&lt;p&gt;&lt;a href="https://i.giphy.com/media/cvxucNftLTmMM/giphy.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://i.giphy.com/media/cvxucNftLTmMM/giphy.gif" alt="https://media.giphy.com/media/cvxucNftLTmMM/giphy.gif" width="480" height="360"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  2nd Week
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;1st day of my routine&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Didn’t get up early…well I did but then went back to sleep because I was very tired. Turns out the more you sleep, the more tired you are.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1st day (for real)&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;I followed my rules and I actually got things done. I enrolled in an online course and finished updating and fine-tuning my resume for future job applications.&lt;/p&gt;

&lt;p&gt;The rest of the week ran smoothly; I got to read lots of articles, apply for some jobs and prepare for interviews. I live in Guatemala, interviews for CS related jobs are not typically the whiteboard ones and mainly consist on sharing what you've learned. Part of my preparation was going through my resume and making sure I felt comfortable talking about every single item. For me, writing down paragraphs to synthesize my working experience is very useful as I tend to get nervous when speaking to interviewers. Having a structured and complete narrative is crucial so I also practiced answering common personal interview questions such as strengths, weaknesses, challenges I've had, and most importantly explaining why I was currently unemployed. These are some posts that helped me prepare:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://getpocket.com/explore/item/if-you-were-fired-don-t-lie-about-it-in-a-job-interview-do-this-instead"&gt;If you were fired don't lie about it do this instead&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.thecut.com/article/how-to-prepare-for-an-interview.html"&gt;How to prepare for an interview&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://dev.to/flippedcoding/10-questions-you-should-ask-in-a-web-dev-interview-1c2d"&gt;10 questions you should ask in a web dev interview&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  3rd Week
&lt;/h3&gt;

&lt;p&gt;Got my first interviews! Some observations:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Review basic concepts about every skill you put on your CV (in my case, I didn't remember some basic stuff about databases)&lt;/li&gt;
&lt;li&gt;Admit when you don't remember or don't know something&lt;/li&gt;
&lt;li&gt;Don't be so awkward (try to hide your RBF)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Interviews can be draining. Especially if they ask you heavy introspecting questions such as: What would your best friend say about you? How would you describe yourself? and so on. Although personally I don’t like answering such questions, I find it useful to every once in a while actually do think about your qualities and the relationships you are cultivating. Another thing to have in mind while being interviewed is  the work environment; take a look around and imagine yourself actually being there on a daily basis.&lt;/p&gt;

&lt;p&gt;I was feeling kind of overwhelmed…I negotiated a freelance, had to keep doing an online course, and was currently on two job processes. Some days I didn’t have anything to do and just roamed on the internet and other days I got lots of emails and phone calls. I tried to keep everything organized, kept my to-do list up to date and scheduled all the appointments on my calendar.&lt;/p&gt;

&lt;h3&gt;
  
  
  4th Week
&lt;/h3&gt;

&lt;p&gt;During this week I kept waking up at a reasonable hour, not always at the same time though. I focused on getting some final paperwork and completing some evaluations for a job offer. Huge part of this month was making decisions; what freelances to pursue, what jobs to apply for, and ultimately, what job offers to consider and negotiate. Even though I spent plenty of time running errands, I always made sure I sat down at a table with my computer at least once a day to go through my to-do list and write on my journal. I kept reading and listening to podcasts but also made time to reconnect with some friends.&lt;/p&gt;

&lt;h3&gt;
  
  
  Takeaways
&lt;/h3&gt;

&lt;p&gt;Dealing with uncertainty has always made me uncomfortable and anxious. During this month I experienced living day by day and being ok with not having a clear plan. I learned a lot about myself through job application processes; from deciding what kind of job I wanted now, to reconsidering my personal qualities and reflecting upon past mistakes. Self-discipline and organization were key in order to accomplish my goals; this is what worked for me:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Establish a routine (this can be an iterative process)&lt;/li&gt;
&lt;li&gt;Use a calendar and reminders&lt;/li&gt;
&lt;li&gt;Update to-do list&lt;/li&gt;
&lt;li&gt;Journal everyday&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;But mainly, no matter how you structure your days, my advice is: don't overthink and just start getting things done.&lt;/p&gt;

</description>
      <category>wecoded</category>
      <category>productivity</category>
      <category>career</category>
      <category>interviewprep</category>
    </item>
    <item>
      <title>Trapezoidal Rule in F#</title>
      <dc:creator>Maria Ines Montenegro</dc:creator>
      <pubDate>Sat, 19 May 2018 19:13:28 +0000</pubDate>
      <link>https://dev.to/marinesm/trapezoidal-rule-in-f-253l</link>
      <guid>https://dev.to/marinesm/trapezoidal-rule-in-f-253l</guid>
      <description>&lt;p&gt;Numerical is approximate; analytical is exact.&lt;/p&gt;

&lt;p&gt;A numerical method is a tool used to find a numerical solution to a problem which can be difficult to solve analytically.&lt;/p&gt;

&lt;p&gt;Mostly done by computers, this approach is a complete set of instructions that are executed in order to find a solution. With this being said,&lt;br&gt;
the Trapezoidal Rule is a numerical method used to find definite integrals. The most common application for this method is to find the &lt;br&gt;
area under a function in a given set of intervals. Finding this area is typically done using Riemann sums, but this method proves to be more exact because it uses trapezoids instead of rectangles.&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%2F32ejoa6pw5x1jicc8cx9.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%2F32ejoa6pw5x1jicc8cx9.PNG" alt="Trapezoidal Rule" width="248" height="257"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;       Reimann sum
&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%2Fs40kpfntcihwzzh9uhrg.PNG" alt="Trapezoidal Rule" width="241" height="261"&gt;
&lt;/li&gt;
&lt;li&gt;       Trapezoidal Rule&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;In this case, I implemented this numerical method using F# which is a functional programming language. First, I chose the function to integrate; in this case sin(x):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight fsharp"&gt;&lt;code&gt;&lt;span class="k"&gt;let&lt;/span&gt; &lt;span class="n"&gt;f&lt;/span&gt; &lt;span class="n"&gt;x&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="nn"&gt;System&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nn"&gt;Math&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Sin&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The algorithm has to receive the intervals (a,b) through which it will find the area and a number (N) of trapezoids to form.&lt;br&gt;
With these parameters, it can now calculate the length of each trapezoid:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight fsharp"&gt;&lt;code&gt;&lt;span class="k"&gt;let&lt;/span&gt; &lt;span class="n"&gt;h&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;b&lt;/span&gt; &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="n"&gt;a&lt;/span&gt;&lt;span class="o"&gt;)/&lt;/span&gt;&lt;span class="nc"&gt;N&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&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%2F3y93idfx8a5lyx8wqjva.gif" 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%2F3y93idfx8a5lyx8wqjva.gif" alt="Trapezoidal Rule" width="600" height="400"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;By &lt;a href="https://en.wikipedia.org/wiki/User:Mkwadee" title="wikipedia:User:Mkwadee" rel="noopener noreferrer"&gt;Mkwadee&lt;/a&gt; at &lt;a href="https://en.wikipedia.org/wiki/" title="wikipedia:" rel="noopener noreferrer"&gt;English Wikipedia&lt;/a&gt;, &lt;a href="https://creativecommons.org/licenses/by-sa/3.0" title="Creative Commons Attribution-Share Alike 3.0" rel="noopener noreferrer"&gt;CC BY-SA 3.0&lt;/a&gt;, &lt;a href="https://commons.wikimedia.org/w/index.php?curid=54729903" rel="noopener noreferrer"&gt;Link&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The formula for this method is the following:&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%2Fn2sm87m6f7d0m8lt39ca.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%2Fn2sm87m6f7d0m8lt39ca.PNG" alt="TrapezoidalFormula" width="452" height="106"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I created two functions in order to calculate the formula above:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight fsharp"&gt;&lt;code&gt;&lt;span class="k"&gt;let&lt;/span&gt; &lt;span class="k"&gt;rec&lt;/span&gt; &lt;span class="n"&gt;sum_recursive&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;xi&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="kt"&gt;float&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;h&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="kt"&gt;float&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="n"&gt;f&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nc"&gt;N&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="kt"&gt;float&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;iter&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="kt"&gt;float&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;iter&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;N&lt;/span&gt; &lt;span class="k"&gt;then&lt;/span&gt;
      &lt;span class="n"&gt;xi&lt;/span&gt;
    &lt;span class="k"&gt;else&lt;/span&gt;
      &lt;span class="k"&gt;let&lt;/span&gt; &lt;span class="n"&gt;xi_1&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="n"&gt;xi&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;h&lt;/span&gt;&lt;span class="p"&gt;*&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;h&lt;/span&gt;&lt;span class="p"&gt;*&lt;/span&gt;&lt;span class="n"&gt;iter&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
      &lt;span class="n"&gt;sum_recursive&lt;/span&gt; &lt;span class="n"&gt;xi_1&lt;/span&gt; &lt;span class="n"&gt;h&lt;/span&gt; &lt;span class="n"&gt;f&lt;/span&gt; &lt;span class="nc"&gt;N&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;iter&lt;/span&gt;&lt;span class="o"&gt;+&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="k"&gt;let&lt;/span&gt; &lt;span class="n"&gt;trapezoidal&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;a&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="kt"&gt;float&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;b&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="kt"&gt;float&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="n"&gt;f&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nc"&gt;N&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="kt"&gt;float&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt;
      &lt;span class="k"&gt;let&lt;/span&gt; &lt;span class="n"&gt;h&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;b&lt;/span&gt; &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="n"&gt;a&lt;/span&gt;&lt;span class="o"&gt;)/&lt;/span&gt;&lt;span class="nc"&gt;N&lt;/span&gt;
      &lt;span class="k"&gt;let&lt;/span&gt; &lt;span class="n"&gt;left_side&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="n"&gt;h&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="o"&gt;*(&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;a&lt;/span&gt;&lt;span class="o"&gt;)+&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;b&lt;/span&gt;&lt;span class="o"&gt;))&lt;/span&gt;
      &lt;span class="n"&gt;left_side&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;sum_recursive&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt; &lt;span class="n"&gt;h&lt;/span&gt; &lt;span class="n"&gt;f&lt;/span&gt; &lt;span class="nc"&gt;N&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This method can be used for things like: finding how much fluid is flowing through a specific area, calculating the work needed to move an object at a certain speed, or even finding the center of mass of an object.&lt;/p&gt;

&lt;p&gt;Overall, learning to program a numerical method has enabled me to relate mathematical concepts, that are normally just seen in class; with programming, which is something I actually use in my day to day life. Furthermore, this was also my first time working with a functional programming language such as F#; which I ended up enjoying.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/MarinesM/Trapezoidal-Rule" rel="noopener noreferrer"&gt;Here&lt;/a&gt;'s my complete code&lt;br&gt;
Hope you find it useful!&lt;/p&gt;

&lt;h3&gt;
  
  
  References
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://www.khanacademy.org/math/ap-calculus-ab/ab-accumulation-riemann-sums/ab-midpoint-trapezoid/a/understanding-the-trapezoid-rule" rel="noopener noreferrer"&gt;Understanding the trapezoidal rule&lt;/a&gt;&lt;br&gt;
&lt;a href="https://en.wikipedia.org/wiki/Trapezoidal_rule" rel="noopener noreferrer"&gt;Trapezoidal Rule&lt;/a&gt;&lt;br&gt;
&lt;a href="http://www.dummies.com/education/math/calculus/how-to-approximate-area-with-the-trapezoid-rule/" rel="noopener noreferrer"&gt;How to approximate area with the trapezoid rule&lt;/a&gt;&lt;/p&gt;

</description>
      <category>numericalmethods</category>
      <category>programming</category>
    </item>
  </channel>
</rss>
