<?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: Brian.Mumo</title>
    <description>The latest articles on DEV Community by Brian.Mumo (@007mumo).</description>
    <link>https://dev.to/007mumo</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%2F1151017%2Fa8b3628b-e51b-457c-90b6-e3e0437c48ea.jpeg</url>
      <title>DEV Community: Brian.Mumo</title>
      <link>https://dev.to/007mumo</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/007mumo"/>
    <language>en</language>
    <item>
      <title>SICP Chapter 1:3:1</title>
      <dc:creator>Brian.Mumo</dc:creator>
      <pubDate>Thu, 14 Sep 2023 10:07:46 +0000</pubDate>
      <link>https://dev.to/007mumo/sicp-chapter-131-2b6p</link>
      <guid>https://dev.to/007mumo/sicp-chapter-131-2b6p</guid>
      <description>&lt;p&gt;&lt;strong&gt;&lt;u&gt; Procedures as Arguments&lt;/u&gt;&lt;/strong&gt;&lt;br&gt;
Its a pseudo-revamp or alternative approach to the examples and some exercises in the book&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Addition via linear recursion&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;(define (sum a b)&lt;br&gt;
(if (&amp;gt; a b) &lt;br&gt;
0&lt;br&gt;
(+ a (sum(+ a 1) b))))&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Approach 2 of addition via linear recursion&lt;/em&gt;&lt;br&gt;
(define (sum-int a b)&lt;br&gt;
(define (inc n )(+ n 1))&lt;br&gt;
(if (&amp;gt; a b) &lt;br&gt;
0&lt;br&gt;
(+ a (sum-int (inc a) b))))&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Addition of cubes via linear recursion&lt;/em&gt;&lt;br&gt;
(define (sum-cubes a b)&lt;br&gt;
(define (cube z)(* z z z ))&lt;br&gt;
(if (&amp;gt; a b)&lt;br&gt;
0&lt;br&gt;
(+ (cube a)(sum-cubes(+ a 1) b))))&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Approach 2 of addition of cubes via linear recursion&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;(define (sum-cubes a b)&lt;br&gt;
(define (cube z)(* z z z))&lt;br&gt;
(define (inc n)(+ n 1))&lt;br&gt;
(if (&amp;gt; a b)&lt;br&gt;
0&lt;br&gt;
(+ (cube a)(sum-cubes (inc a) b))))&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Approach of sequential sum&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;(define (sum-pi a b)&lt;br&gt;
(if (= a 0)&lt;br&gt;
"null"&lt;br&gt;
(if (&amp;gt; a b) &lt;br&gt;
0&lt;br&gt;
(+ (/ 1.0 (* a(+ a 2)))(sum-pi (+ a 4) b)))))&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Approach of exercise 1.30 Additions via iteration&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;(define (sum a b)&lt;br&gt;
(define (next n)(+ n 1))&lt;br&gt;
(define (iter a result)&lt;br&gt;
(if (&amp;gt; a b)&lt;br&gt;
result&lt;br&gt;
(iter (next a)(+ result (next a)))))&lt;br&gt;
(iter a 0))&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Approach to exercise 1.31 Factorial via iteration&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;(define (Product a b)&lt;br&gt;
(define (next n)(+ n 1))&lt;br&gt;
(define (iter a result)&lt;br&gt;
(if (&amp;gt; a b)&lt;br&gt;
result&lt;br&gt;
(iter (next a)(* result (next a)))))&lt;br&gt;
(iter a 0))&lt;/p&gt;

</description>
      <category>sicp</category>
      <category>discuss</category>
    </item>
    <item>
      <title>Season 1 Episode 1</title>
      <dc:creator>Brian.Mumo</dc:creator>
      <pubDate>Fri, 01 Sep 2023 17:55:12 +0000</pubDate>
      <link>https://dev.to/007mumo/season-1-episode-1-2j7</link>
      <guid>https://dev.to/007mumo/season-1-episode-1-2j7</guid>
      <description>&lt;p&gt;Perfection vs Productivity&lt;/p&gt;

&lt;p&gt;Reading this book has not been a walk in the park ,it's more  of a walk in a landmine , from learning the centenarian language of lisp , to creating procedures to attempt the examples at the end of the subchapters, but looking at it now I was working with a &lt;br&gt;
an unrealistic "Perfection " mindset . &lt;/p&gt;

&lt;p&gt;Perfection is akin to infinity the move you strive the harder it gets to attain it.&lt;/p&gt;

&lt;p&gt;Soon after I came across  this quote ::&lt;/p&gt;

&lt;p&gt;"Everyday it get's easier but you have to do it everyday that's the hard part"  ~ BojackHorseman&lt;/p&gt;

&lt;p&gt;Having a perfection mindset was leading (Recursively) me to the same  wall of wanting to exceed an unattainable goal and it led me to states of  inaction .&lt;/p&gt;

&lt;p&gt;Adopting the Pomodoro Technique and having a continuous improvement mindset has largely helped me remain consistent and "loyal" to the course&lt;/p&gt;

&lt;p&gt;To my fellow developers reading this resilience and consistency is more important than perfection.&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

</description>
      <category>sicp</category>
      <category>beginners</category>
      <category>productivity</category>
    </item>
  </channel>
</rss>
