<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Patrick Beeson on Medium]]></title>
        <description><![CDATA[Stories by Patrick Beeson on Medium]]></description>
        <link>https://medium.com/@patrickbeeson?source=rss-2471cf0a37d1------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*T_YGVg1n5hlvYGoR.jpeg</url>
            <title>Stories by Patrick Beeson on Medium</title>
            <link>https://medium.com/@patrickbeeson?source=rss-2471cf0a37d1------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 01:21:27 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@patrickbeeson/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Learning Python the harder way with O’Reilly School of Technology]]></title>
            <link>https://medium.com/@patrickbeeson/learning-python-the-harder-way-with-oreilly-school-of-technology-f9210dc7a376?source=rss-2471cf0a37d1------2</link>
            <guid isPermaLink="false">https://medium.com/p/f9210dc7a376</guid>
            <dc:creator><![CDATA[Patrick Beeson]]></dc:creator>
            <pubDate>Fri, 23 Jan 2015 16:32:01 GMT</pubDate>
            <atom:updated>2015-01-23T16:32:01.768Z</atom:updated>
            <content:encoded><![CDATA[<p><a href="http://patrickbeeson.com/">I’m a web developer</a>. And, as is often required for folks in my profession, I need to have knowledge a mile wide, and an inch deep.</p><p>This cliche is especially true working <a href="http://thevariable.com/">in a small creative agency</a> as I do.</p><p>But sometimes that’s not good enough for complex projects. It’s also boring.</p><p>After a few recommendations from folks at last year’s <a href="https://2015.djangocon.us/">DjangoCon</a>, including O’Reilly School of Technology (OST) instructor and Python-guru Pat Barton, I signed up for <a href="http://www.oreillyschool.com/certificate-programs/python-programming/">the Python certificate program at OST</a>.</p><p>The Python program at OST was written by former director of the Python Software Foundation <a href="http://holdenweb.com/">Steve Holden</a>.</p><p>Yes. It’s for Python 3.</p><p>Despite having a voracious appetite for subject-matter books and knowing when to <a href="https://github.com/rtfd/readthedocs.org">RTFD</a>, I’d never taken an online class to improve my understanding of web development. These efforts never seemed to be worth the money, or time.</p><p>OST changed my perception of online education for the better.</p><h4>The program</h4><p><a href="http://www.oreillyschool.com/oreilly-school-advantage/">OST follows a try/fail paradigm</a> where students are encouraged to submit assignments even if they’re not perfect (or even working), to get feedback from <a href="http://www.oreillyschool.com/about-us/our-faculty/">the instructors</a>. Feedback was never just answers, but helpful input to redirect your thoughts in the right area.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/356/1*1VLbf_rwofeltIifLWU-Kg.png" /><figcaption>I dig the tarsier.</figcaption></figure><p>Each lesson also has one or more quizzes to complete, some of which require writing code to show your understanding of what’s being asked.</p><p>Students are encouraged to use <a href="http://chimera.labs.oreilly.com/books/1230000000393/index.html">books</a>, <a href="https://docs.python.org/3/">docs</a> and even <a href="http://stackoverflow.com/">Stack Overflow</a> for research.</p><p>There are no traditional grades in OST. Rather, students are given a pass or fail.</p><p>All homework and quizzes are delivered back with helpful feedback on refactoring the existing program or alternate solutions.</p><p>And bonus: You can download your programs to show potential employers or for reference. <a href="https://github.com/patrickbeeson/python-classes">I posted mine to GitHub.</a></p><h4>The courses</h4><p>My Python certificate program was divided into four courses: the creatively named <a href="http://www.oreillyschool.com/individual-courses/python1/">Python 1</a>, <a href="http://www.oreillyschool.com/individual-courses/python2/">Python 2</a>, <a href="http://www.oreillyschool.com/individual-courses/python3/">Python 3</a>, and <a href="http://www.oreillyschool.com/individual-courses/python4/">Python 4</a>. (Click-through to see goals and offerings for each course.)</p><p>Though the numbering suggests taking these courses progressively, many of the individual lessons and assignments focus on specific aspects of the language.</p><p>For example, Python 1 introduces data structures (dictionaries, tuples, sets, lists, etc) and manipulation of data along with built-ins, module imports, and formatting, while Python 4 tackles advanced uses of generators and decorators as well as multi-threading, multi-processing and methods of refining your programs.</p><p>Barton was my instructor for Python 1 while the equally thoughtful <a href="http://www.oreilly.com/pub/au/5268">Kirby Urner</a> lead me through the remaining courses. Both provided just the right amount of feedback in a positive manner.</p><p>Students are introduced to testing early, first through docstrings and later (in Python 2) to unittests and TDD. This was tremendously helpful since I’m a new convert to this style of development.</p><p>With the exception of a lesson using <a href="https://docs.python.org/3/library/optparse.html?highlight=parse#module-optparse">optparse</a> (as opposed to the newer <a href="https://docs.python.org/3/library/argparse.html#module-argparse">argparse</a>), everything was up-to-date and followed my understanding of best practices.</p><h4>My experience</h4><p>OST provides you one year to complete a certificate program. ONE YEAR!</p><p>I decided early-on I would devote a few hours each day to completing my courses. This was helpful for my progression through the lessons and for ensuring I practiced an aspect of Python every day.</p><p>I began the program finishing one lesson — there are approximately 10 to 15 lessons per course —per day but quickly escalated this after breezing through the basics.</p><p>I had to wait a day or two (or more) for my instructors to grade each quiz and homework. They are humans, after all. ☺</p><p>Using what little hours I had available as a new dad, I was able to close out all four courses in a little more than 100 days without rushing.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HJYePPQZFlSRVHjWNH3dNA.png" /><figcaption>The OST Eclipse IDE in their virtual environment.</figcaption></figure><p>A word on OST technology: It needs improvement.</p><p>Users of Code Academy and Code School will likely be disappointed. Heck, anyone other than users of <a href="https://eclipse.org/">Eclipse</a> on Windows will be bummed because that’s what students must use in OST’s virtual environment.</p><p>And while I appreciated using an actual IDE instead of simulated interpreters, I found the environment slow and crash-prone in OSX.</p><h4>The result</h4><p>I learn best by doing. Whether it’s brewing beer or racing bicycles, if I can’t participate in the activity I’m interested in, I find it hard to grok.</p><p>OST’s “learn by making” approach combined with fantastic human instructors worked well for me and my preferred method of learning.</p><p>I came away from this certificate program with more confidence in my programming abilities and a tremendous appreciation for, and understanding of, the Python language.</p><p>Give OST’s Python program a try if you’re new to the language or, like I was, are seeking a more complete understanding of what’s available and How to Do It Right.</p><p><em>Have you tried or completed an OST course? Let me know your experience!</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f9210dc7a376" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[FormKeep and webhooks: A love story]]></title>
            <link>https://medium.com/@patrickbeeson/formkeep-and-webhooks-a-love-story-fea155961b6f?source=rss-2471cf0a37d1------2</link>
            <guid isPermaLink="false">https://medium.com/p/fea155961b6f</guid>
            <dc:creator><![CDATA[Patrick Beeson]]></dc:creator>
            <pubDate>Wed, 29 Oct 2014 13:36:55 GMT</pubDate>
            <atom:updated>2014-10-29T13:36:55.841Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7FFiWGQFlsZ0dePC4C5DTg.png" /><figcaption>FormKeep is forms for developers by the awesome folks at thoughtbot. It’s made better with webhooks.</figcaption></figure><p>Drag-and-drop web form generators such as <a href="http://www.wufoo.com/">Wufoo</a> have been around since the dawn of Web 2.0.</p><p>And while they’ve offered budding Web workers a way to introduce common HTTP verbs — GET and POST — these devices have always been a clunky and limiting experience.</p><p>That’s why t<a href="http://robots.thoughtbot.com/introducing-formkeep">houghtbot’s FormKeep web service</a> is such a fascinating concept.</p><p>FormKeep is part of a growing array of services that fit into the “____ for developers” paradigm. Think <a href="http://www.mailgun.com/">MailGun</a> or <a href="http://twilio.com/">Twilio</a> or other such products that offload specific services that are then made available programatically.</p><p>You don’t use FormKeep to build a form. Instead, it’s simply the mechanism to POST to while leaving you to use best practices to build your form as you see fit.</p><p>And like a good citizen of the post-Web 2.0 world, FormKeep offers <a href="http://en.wikipedia.org/wiki/Webhook">webhooks</a> for paid accounts.</p><p>My use of FormKeep, and their webhook service, was aimed at solving a basic data capture problem at work. We needed a way of easily integrating a one-field Web form (email capture) into an otherwise static website while also capturing said email addresses into a transportable data structure.</p><p>Oh, and folks submitting their email addresses should get an email back after submission, too.</p><p>Our steps:</p><ol><li>User enters their email address into a standard form field</li><li>The user’s email address is captured by FormKeep (available via CSV export or API access)</li><li>A tiny Flask app catches incoming submissions via a webhook and responds to the address with an email containing additional information.</li></ol><p>Of course, we could have accomplished this in a myriad number of ways. But time was tight, and FormKeep offered a way to tackle this immediately. (And I like experimenting with and supporting awesome products!)</p><p>After setting up our form in FormKeep, I initiated a monthly subscription — webhooks are only available for paid accounts — and set the URL to one I use for exposing my local development servers to the Web (for quick sharing or for web services requiring it).</p><p>Then, I set to writing a basic <a href="http://flask.pocoo.org/">Flask</a> app to make use of the webhook (<em>views.py</em>):</p><pre>import os<br>import textwrap<br>from flask import Flask, request<br>from flask.ext.mail import Mail, Message<br>from . import app</pre><pre>app.config.from_object(os.environ[‘APP_SETTINGS’])</pre><pre>mail = Mail(app)</pre><pre>@app.route(‘/’)<br>def home():<br> return “Nothing to see here. Move along.”</pre><pre>@app.route(‘/receive_email’, methods=[‘POST’])<br>def email_submissions():<br> email = request.values.get(‘email’, None)<br> if email:<br> msg = Message(<br> body=textwrap.dedent(“””\<br> You are receiving this email because you submitted your email<br> address at someurl.com.\n<br>”””),<br> subject=’Thank You For Your Interest!’,<br> sender=’noreply@someurl.com’,<br> recipients=[email])<br> mail.send(msg)<br> else:<br> return b”OH NO”<br> return b”OK”</pre><p>You’ll also want to have a basic <em>run.py</em> module to fire up the dev server:</p><pre>from app import app</pre><pre>app.run(debug=True)</pre><p>Call <em>run.py</em>, fire up <a href="https://ngrok.com/">ngrok</a> to expose your dev server to the Internet, and send (or <a href="http://www.hurl.it/">hurl if you will</a>) a POST request with the “email” parameter and value to your “receive_email” URL to test the webhook.</p><p>You should get a 200 response and an email if everything worked as intended.</p><p>Of course, this is just a basic example of the possibilities that exist using the FormKeep + webhook combo; you could also do things like pass hidden field values to use one form with different email responses.</p><p>Thanks again to the folks at <a href="http://thoughtbot.com/">thoughtbot</a> for creating FormKeep and making it so flexible.</p><p>I’ve <a href="https://github.com/patrickbeeson/formkeep-hooker">posted the code used for the project on GitHub</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fea155961b6f" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>