<?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>Forem: ChrisMuga</title>
    <description>The latest articles on Forem by ChrisMuga (@chrismuga).</description>
    <link>https://forem.com/chrismuga</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%2F49983%2Ff46094eb-f56a-4e48-97bc-3fe3fa50604b.jpg</url>
      <title>Forem: ChrisMuga</title>
      <link>https://forem.com/chrismuga</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/chrismuga"/>
    <language>en</language>
    <item>
      <title>My frustrations with Python</title>
      <dc:creator>ChrisMuga</dc:creator>
      <pubDate>Fri, 09 Mar 2018 10:25:35 +0000</pubDate>
      <link>https://forem.com/chrismuga/my-frustrations-with-python--1n1m</link>
      <guid>https://forem.com/chrismuga/my-frustrations-with-python--1n1m</guid>
      <description>&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--sIWEfBRA--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/ayp5cyj0t26wluuuvjlu.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--sIWEfBRA--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/ayp5cyj0t26wluuuvjlu.gif" alt=""&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I have been coding using Python for almost 2 weeks now and I think I have a good handle on the basic stuff, i.e the basic syntax, declaring variables, printing them, playing around with the lists, dictionaries and that kind of stuff, pretty basic.&lt;/p&gt;

&lt;p&gt;Now I am pretty good at PHP and by that what I mean is that PHP is the language I know better than other languages and that I use for most of my work, but due to it's popularity in various Dev forums and also due to my curiosity as a developer I came to the conclusion that I would be better off knowing some Python and if it grows on me, I could actually start doing some projects with it.&lt;/p&gt;

&lt;p&gt;So when I set up the environment and was ready to start my python coding adventure, when I had obtained sufficient understanding of the language to now start doing some database scripting tests i.e.. connecting to the DB, querying the DB and that kind of stuff, I ran into some errors, and long story short those errors had to do with the mysql-connector module that I had imported in my script vis-a-vis the version of Python in my system (I run Python3.6 on Ubuntu). The most stable release as I found out is Python2.7 and is actually the default Python environment in my OS, so when I run my little DB connecting script, it runs perfectly.&lt;/p&gt;

&lt;p&gt;I hopped back to the online forums to find a work-around for my situation and apparently I would have had an easier time just using Python2.7 in my DB test. The dilemma is that I actually want to write Python in its most progressive version which right now is 3.6, probably 3.7. It's like I'm stuck in ver 2.7 for now, and I'm not so sure about that.&lt;/p&gt;

&lt;p&gt;Comparing PHP to Python where the most fundamental code is really the same (at least as far as DB connection is concerned for me), I cannot help but be frustrated by all this, if anyone out there knows some good starting points for me, please feel free to share your pointers.&lt;/p&gt;

&lt;p&gt;Thanks. :)&lt;/p&gt;

&lt;h1&gt;
  
  
  Python #Frustrations #Backend #Scripting
&lt;/h1&gt;

</description>
      <category>python</category>
    </item>
  </channel>
</rss>
