<?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: James Gill</title>
    <description>The latest articles on DEV Community by James Gill (@thinkhuman).</description>
    <link>https://dev.to/thinkhuman</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%2F277671%2Faf8e2707-f83f-4c13-a700-8b9f246073a0.jpeg</url>
      <title>DEV Community: James Gill</title>
      <link>https://dev.to/thinkhuman</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/thinkhuman"/>
    <language>en</language>
    <item>
      <title>How To Start Learning Python *NOW*</title>
      <dc:creator>James Gill</dc:creator>
      <pubDate>Sun, 08 Dec 2019 18:03:39 +0000</pubDate>
      <link>https://dev.to/thinkhuman/how-to-start-learning-python-now-3b28</link>
      <guid>https://dev.to/thinkhuman/how-to-start-learning-python-now-3b28</guid>
      <description>&lt;p&gt;I see variations on the same question repeated hundreds of times. I want to point everyone to the excellent resources on &lt;a href="https://python.org"&gt;python.org&lt;/a&gt; itself. Save yourself a lot of time scouring third-party resources and &lt;em&gt;start here&lt;/em&gt;:&lt;/p&gt;

&lt;p&gt;Step 0: The official Beginner's Guide:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://wiki.python.org/moin/BeginnersGuide"&gt;https://wiki.python.org/moin/BeginnersGuide&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you've never programmed before:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://wiki.python.org/moin/BeginnersGuide/NonProgrammers"&gt;https://wiki.python.org/moin/BeginnersGuide/NonProgrammers&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you have some programming experience:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://wiki.python.org/moin/BeginnersGuide/Programmers"&gt;https://wiki.python.org/moin/BeginnersGuide/Programmers&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I &lt;em&gt;especially&lt;/em&gt; want to direct newbies to the list of ranked and rated learning resources:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://hackr.io/tutorials/learn-python"&gt;https://hackr.io/tutorials/learn-python&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>What is the __construct Method Used For in PHP?</title>
      <dc:creator>James Gill</dc:creator>
      <pubDate>Sat, 23 Nov 2019 01:01:49 +0000</pubDate>
      <link>https://dev.to/thinkhuman/what-is-the-construct-method-used-for-in-php-1bb8</link>
      <guid>https://dev.to/thinkhuman/what-is-the-construct-method-used-for-in-php-1bb8</guid>
      <description>&lt;p&gt;The &lt;code&gt;__construct&lt;/code&gt; method is used to pass in parameters when you &lt;em&gt;first&lt;/em&gt; create an object--this is called 'defining a constructor method', and is a common thing to do. &lt;/p&gt;

&lt;p&gt;However, constructors are &lt;strong&gt;optional&lt;/strong&gt;--if you don't want to pass any parameters at object construction time, you don't need it.&lt;/p&gt;

&lt;p&gt;Here's an example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight php"&gt;&lt;code&gt;    &lt;span class="c1"&gt;// Create a new class, and include a __construct method&lt;/span&gt;
    &lt;span class="kd"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;Task&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;

        &lt;span class="k"&gt;public&lt;/span&gt; &lt;span class="nv"&gt;$title&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
        &lt;span class="k"&gt;public&lt;/span&gt; &lt;span class="nv"&gt;$description&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

        &lt;span class="k"&gt;public&lt;/span&gt; &lt;span class="k"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;__construct&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$title&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nv"&gt;$description&lt;/span&gt;&lt;span class="p"&gt;){&lt;/span&gt;
            &lt;span class="nv"&gt;$this&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="na"&gt;title&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nv"&gt;$title&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
            &lt;span class="nv"&gt;$this&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="na"&gt;description&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nv"&gt;$description&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
        &lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;

    &lt;span class="c1"&gt;// Create ('construct') a new object, passing in a $title and $description&lt;/span&gt;
    &lt;span class="nv"&gt;$task&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nx"&gt;Task&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'Learn OOP'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="s1"&gt;'This is a description'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

    &lt;span class="c1"&gt;// Try it and see&lt;/span&gt;
    &lt;span class="nb"&gt;var_dump&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$task&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="na"&gt;title&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nv"&gt;$task&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="na"&gt;description&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;For more details on what a constructor is, see &lt;a href="http://php.net/manual/en/language.oop5.decon.php"&gt;the manual&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>php</category>
      <category>oop</category>
    </item>
  </channel>
</rss>
