<?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 JT Paasch on Medium]]></title>
        <description><![CDATA[Stories by JT Paasch on Medium]]></description>
        <link>https://medium.com/@jtpaasch?source=rss-7560920f1e93------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*FO46uZHyFJaqeGpb.jpeg</url>
            <title>Stories by JT Paasch on Medium</title>
            <link>https://medium.com/@jtpaasch?source=rss-7560920f1e93------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 23:16:20 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@jtpaasch/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[Coq — Syntax (Real Simple Basics)]]></title>
            <link>https://medium.com/@jtpaasch/coq-syntax-real-simple-basics-813cf5c4c652?source=rss-7560920f1e93------2</link>
            <guid isPermaLink="false">https://medium.com/p/813cf5c4c652</guid>
            <category><![CDATA[coq]]></category>
            <category><![CDATA[proof-assistant]]></category>
            <dc:creator><![CDATA[JT Paasch]]></dc:creator>
            <pubDate>Fri, 05 Jan 2018 14:14:17 GMT</pubDate>
            <atom:updated>2018-01-05T14:18:45.166Z</atom:updated>
            <content:encoded><![CDATA[<p>Coq has its own language called <strong>Gallina</strong>. Here are some real simple basics.</p><h4>Statements and Periods</h4><p>Statements end with a period, not a semicolon or carriage return:</p><pre>&lt;Statement&gt;.</pre><h4>Types</h4><p>Often you specify what type some identifier is. You do that like this:</p><pre>&lt;Identifier&gt; : &lt;Type&gt;</pre><h4>Assignments</h4><p>The equal sign = is not used for assignments. Assignments are done with the := symbol:</p><pre>&lt;Identifier&gt; := &lt;Expression&gt;</pre><h4>Computing Values</h4><p>Compute values with the Compute command:</p><pre>Compute 1 + 1.</pre><h4>Enumerated Data Types</h4><p>Suppose we want to talk about a collection of items, which are all in the same set. One simple way to do that is to specify a distinct symbol or mark to stand for each item in the set.</p><p>For example, suppose we want to talk about the set of laptops you can buy from Apple: the Macbook, the Macbook Air, and the Macbook Pro.</p><p>We can specify exactly which symbols or marks should stand for these. Let’s stipulate that a stands for the Macbook, b stands for the Macbook Air, and c stands for the Macbook Pro. Let’s also stipulate that A stands for the whole set of them.</p><p>In Coq, we can specify these symbols like so:</p><pre>Inductive A : Type :=<br>  | a : A<br>  | b : A<br>  | c : A.</pre><p>This uses the Inductive command to say that we have a custom set of items called A, where the symbol a stands for one item in the set A, b stands for another item in the set A, and c stands for a third item in the set A.</p><p>Actually, we can use longer strings instead of just single letters to name these items, which is a good idea because it makes it easier to read:</p><pre>Inductive laptop : Type :=<br>  | macbook : laptop<br>  | air : laptop<br>  | pro : laptop.</pre><h4>Checking Types</h4><p>To check the type of an identifier, use the Check command. For instance:</p><pre>Check macbook.<br>Check air.<br>Check pro.</pre><p>What type is laptop?</p><pre>Check laptop.</pre><p>It’s a set!</p><h4>Named Maps</h4><p>A <strong>map</strong> takes two sets of items (called the <strong>domain</strong> and <strong>codomain</strong>) and it assigns to each item from the domain one item from the codomain.</p><p>Think of it as a lookup table: given one item from the domain, what’s the corresponding other item in the codomain?</p><p>For instance, we could map employee names to phone numbers, and then use the map to look up phone numbers. Given some employee’s name, what is the phone number that’s assigned to them?</p><p>To define a map, you can just list out the assignments — i.e., you can list what each item maps to. For instance, suppose we want to map each laptop to the next model that’s more expensive.</p><p>We can do that by listing each case. For the macbook, the next step up in price is the air. For the air, the next step up is the pro. For the pro the next step up is just another pro.</p><p>Here’s the map:</p><pre>macbook =&gt; air<br>air =&gt; pro<br>pro =&gt; pro</pre><p>In Coq, we can define these maps using the Definition command:</p><pre>Definition pricier_laptop (model : laptop) : laptop :=<br>  match model with<br>  | macbook =&gt; air<br>  | air =&gt; air<br>  | pro =&gt; pro<br>  end.</pre><p>Think of this as a lookup table called pricier_laptop. Given a laptop (let’s call it model for the moment), lookup which other laptop that model maps to.</p><p>Try it:</p><pre>Compute pricier_laptop macbook.<br>Compute pricier_laptop air.<br>Compute pricier_laptop pro.</pre><p>Check out it’s type:</p><pre>Check pricier_laptop.</pre><p>The type is laptop -&gt; laptop, which means it is a map from laptops to laptops. That is, it is a lookup table: give it one laptop, and it will look up the other laptop that the input laptop is mapped to.</p><h4>Deleting Maps</h4><p>Sometimes you define a map, only to realize later that you did it wrong. Perhaps you had a typo in one of the clauses.</p><p>If you try to redefine the map, Coq won’t let you. It’ll tell you the map already exists.</p><p>If this happens, you have to delete the map from the environment before you can define it again. Do this with the Reset command:</p><pre>Reset pricier_laptop.</pre><h4>Modules</h4><p>You can define maps inside modules. You begin a module like this:</p><pre>Module MyModule.</pre><p>Then specify any maps you like:</p><pre>Definition foo_1 ...<br>Definition foo_2 ...</pre><p>End the module like this:</p><pre>End MyModule.</pre><p>After that, you can refer to the maps as MyModule.foo_1, MyModule.foo_2, and so on.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=813cf5c4c652" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Using Coq in Docker: The Basics]]></title>
            <link>https://medium.com/@jtpaasch/using-coq-in-docker-the-basics-31e1c378a690?source=rss-7560920f1e93------2</link>
            <guid isPermaLink="false">https://medium.com/p/31e1c378a690</guid>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[proof-assistant]]></category>
            <category><![CDATA[coq]]></category>
            <dc:creator><![CDATA[JT Paasch]]></dc:creator>
            <pubDate>Fri, 01 Dec 2017 12:42:06 GMT</pubDate>
            <atom:updated>2018-01-05T14:19:03.780Z</atom:updated>
            <content:encoded><![CDATA[<p>Getting started with Coq can be straightforward, using docker.</p><h4>Installation</h4><p>Put it in a docker container. Save this Dockerfile:</p><pre>FROM ubuntu<br>RUN apt update; apt install -y coq</pre><p>Then build it:</p><pre>docker build --tag coq .</pre><h4>Installing the Latest Coq</h4><p>The above instructions may give you a Coq version that is a little old.</p><p>To get the latest version, use opam (inside a container).</p><p>Instead of the above Dockerfile, use this one:</p><pre>FROM ocaml/opam:alpine<br>RUN sudo apk add m4; opam install --yes coq<br>RUN sudo mkdir -p /workspace<br>WORKDIR /workspace<br>ENTRYPOINT [&quot;opam&quot;, &quot;config&quot;, &quot;exec&quot;, &quot;--&quot;]</pre><p>Build it:</p><pre>docker build --tag coq .</pre><p>This can take a long time to complete.</p><h4>Run the Interactive CLI</h4><p>The interactive CLI executable is called coqtop. Run it:</p><pre>docker run --rm -ti coq coqtop</pre><p>You should see a command line prompt like this:</p><pre>Coq &lt;</pre><p>To exit, type Quit. and hit enter (the final dot/period is needed because it terminates the expression):</p><pre>Coq &lt; Quit.</pre><p>That should leave the interactive CLI.</p><h4>Mounting Local Files</h4><p>Mount your current working directory to the /workspace folder in the container:</p><pre>docker run --rm -ti -v $(pwd):/workespace coq ls -la</pre><p>This way, the files in your local working directory are accessible to Coq inside the container, in its /workspace folder.</p><h4>Compile and Import a File</h4><p>Create a file with nothing but a comment in it. Call it Sample.v:</p><pre>(* This is a comment. *)</pre><p>To compile that file, you normally run coqc Sample.v. To do this in the container, mount your current working directory to the /workspace, and run the same command:</p><pre>docker run --rm -ti -v $(pwd):/workspace coq coqc Sample.v</pre><p>That will take Sample.v and produce a compiled version, called Sample.vo.</p><p>If you look at your current working directory, you’ll see the new file:</p><pre>ls -la</pre><p>Now you can start the interactive CLI again (be sure to mount your local working directory):</p><pre>docker run --rm -ti -v $(pwd):/workspace coq coqtop</pre><p>Then load/import the compiled file by name:</p><pre>Coq &lt; Require Import Sample.</pre><p>If all works fine, you should see no errors.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=31e1c378a690" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Serve PHP and Nginx with Docker]]></title>
            <link>https://medium.com/@jtpaasch/serve-php-and-nginx-with-docker-1d9e2e9478f7?source=rss-7560920f1e93------2</link>
            <guid isPermaLink="false">https://medium.com/p/1d9e2e9478f7</guid>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[nginx]]></category>
            <category><![CDATA[php]]></category>
            <category><![CDATA[php-fpm]]></category>
            <category><![CDATA[docker]]></category>
            <dc:creator><![CDATA[JT Paasch]]></dc:creator>
            <pubDate>Fri, 01 Jul 2016 17:38:40 GMT</pubDate>
            <atom:updated>2016-07-01T17:38:40.300Z</atom:updated>
            <content:encoded><![CDATA[<p>Make a PHP file called index.php:</p><pre>&lt;?php<br># The request URI.<br>$uri = $_SERVER[&#39;REQUEST_URI&#39;];<br>switch($uri) {<br>    case &quot;/foo&quot;:<br>        echo &quot;Serving the /foo.\n&quot;;<br>        break;<br>    case &quot;/bar&quot;:<br>        echo &quot;Serving the /bar.\n&quot;;<br>        break;<br>    default:<br>        echo &quot;No request URI was matched.\n&quot;;<br>        break;<br>}</pre><p>In a terminal, serve it with a docker PHP-FPM container:</p><pre>docker run -ti           \<br>    --name php           \<br>    --volume `pwd`:/srv  \<br>    --publish 9000:9000  \<br>    php:5.6-fpm</pre><p>Create an NGINX conf file called dev.conf:</p><pre>server {</pre><pre>    # Listen on port 8087.<br>    listen 8087;</pre><pre>    # Proxy to the PHP server.<br>    location / {<br>        fastcgi_pass php:9000;<br>        include fastcgi_params;<br>        fastcgi_param SCRIPT_FILENAME /srv/index.php;<br>    }</pre><pre>}</pre><p>In another terminal, run a docker NGINX container:</p><pre>docker run -ti                                             \<br>    --name nginx                                           \<br>    --publish 8087:8087                                    \<br>    --link php:php                                         \<br>    --volume `pwd`/dev.conf:/etc/nginx/conf.d/default.conf \<br>    nginx \<br>    nginx -g &#39;daemon off;&#39;</pre><p>In another terminal, get the IP address of the nginx container:</p><pre>docker inspect                                  \<br>    --format &quot;{{ .NetworkSettings.IPAddress }}&quot; \<br>    nginx</pre><p>And visit it in a browser: http://&lt;THE-IP&gt;:8087</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1d9e2e9478f7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Pyenv fails on OS X El Capitan: No SSL]]></title>
            <link>https://medium.com/@jtpaasch/pyenv-fails-on-os-x-el-capitan-no-ssl-25c49c2261b2?source=rss-7560920f1e93------2</link>
            <guid isPermaLink="false">https://medium.com/p/25c49c2261b2</guid>
            <category><![CDATA[ssl]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[el-capitan]]></category>
            <dc:creator><![CDATA[JT Paasch]]></dc:creator>
            <pubDate>Sun, 22 May 2016 00:43:52 GMT</pubDate>
            <atom:updated>2016-05-22T00:43:52.362Z</atom:updated>
            <content:encoded><![CDATA[<p>On OS X, you can install and use different python versions with <a href="https://github.com/yyuu/pyenv">pyenv</a>. For instance, you can install <strong>python 3.5.0</strong> like this:</p><pre>pyenv install 3.5.0</pre><p>That <strong>used</strong> to work. On OS X <strong>El Capitan</strong> though, it fails, because there’s <strong>no OpenSSL</strong> library on the system. Turns out Apple decided to get rid of it in El Capitan. It was there in previous versions of OS X, but now it’s gone.</p><p>Not to worry. You can <strong>install OpenSSL</strong> yourself, following the OpenSSL wiki’s <a href="https://wiki.openssl.org/index.php/Compilation_and_Installation">instructions</a>. I installed my copy in <strong>/usr/local/ssl</strong>, but you can install it wherever you like.</p><p>Then, to install a python version with <strong>pyenv</strong>, tell it where the OpenSSL library is, by prefixing the <strong>pyenv install</strong> command with <strong>CFLAG</strong> and <strong>LDFLAGS,</strong> like this:</p><pre>CFLAG=&quot;-I/usr/local/ssl/include&quot; LDFLAGS=&quot;-L/usr/local/ssl/lib&quot; pyenv install 3.5.0</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=25c49c2261b2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Installing VirtualBox 5 on OS X El Capitan (OS 10.11)]]></title>
            <link>https://medium.com/@jtpaasch/installing-virtualbox-5-on-os-x-el-capitan-os-10-11-55fffa5470d?source=rss-7560920f1e93------2</link>
            <guid isPermaLink="false">https://medium.com/p/55fffa5470d</guid>
            <category><![CDATA[apple]]></category>
            <category><![CDATA[virtualbox]]></category>
            <category><![CDATA[el-capitan]]></category>
            <dc:creator><![CDATA[JT Paasch]]></dc:creator>
            <pubDate>Tue, 11 Aug 2015 11:50:21 GMT</pubDate>
            <atom:updated>2015-08-11T11:50:50.058Z</atom:updated>
            <content:encoded><![CDATA[<p>Installing VirtualBox 5 on OS X El Capitan (OS 10.11)</p><p><a href="https://www.virtualbox.org/ticket/14392">https://www.virtualbox.org/ticket/14392</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=55fffa5470d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Right Way to Use Virtual Environments]]></title>
            <link>https://medium.com/@jtpaasch/the-right-way-to-use-virtual-environments-1bc255a0cba7?source=rss-7560920f1e93------2</link>
            <guid isPermaLink="false">https://medium.com/p/1bc255a0cba7</guid>
            <dc:creator><![CDATA[JT Paasch]]></dc:creator>
            <pubDate>Fri, 24 Oct 2014 11:02:05 GMT</pubDate>
            <atom:updated>2014-10-24T11:02:05.083Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Separate the environment from the source code</em></p><p>For a long time, Python developers used <a href="http://virtualenv.readthedocs.org/en/latest/"><strong>virtualenv</strong></a> to create sandboxed projects. With Python 3.4 and higher, they can use the native <a href="https://docs.python.org/3/library/venv.html"><strong>pyvenv</strong></a> package to do the same thing.</p><p>But many of the examples and tutorials encourage a bad practice. There’s a better way to do it.</p><h4>The bad way</h4><ul><li>Make a virtual environment:</li></ul><pre>pyvenv myproject</pre><ul><li>This is equivalent to creating a folder for your project…</li></ul><pre>mkdir myproject &amp;&amp; cd myproject</pre><ul><li>…and then converting it into a virtual environment:</li></ul><pre>pyvenv .</pre><ul><li>This installs the virtual environment folders inside your project’s root. Now you can activate it and use it:</li></ul><pre>source bin/activate</pre><h4>The good way</h4><ul><li>Make a project folder:</li></ul><pre>mkdir myproject &amp;&amp; cd myproject</pre><ul><li>Now create the virtual environment inside its own folder. Call it <strong>venv</strong> or <strong>env</strong> or something obvious:</li></ul><pre>pyvenv venv</pre><ul><li>Put the venv in your <strong>.gitignore</strong>:</li></ul><pre>git init<br>echo &#39;venv&#39; &gt; .gitignore</pre><ul><li>This keeps your virtual environment <strong>out of source control</strong>.</li><li>Activate the environment:</li></ul><pre>activate venv/bin/activate</pre><ul><li>Install something:</li></ul><pre>pip install django</pre><ul><li>Freeze the requirements:</li></ul><pre>pip freeze &gt; requirements.txt</pre><ul><li>Check <strong>requirements.txt</strong> into <strong>source control</strong>:</li></ul><pre>git add requirements.txt</pre><ul><li>The basic idea here is simple. Your virtual environment stays in its own folder, which you don’t check into source control. That way your environment does not pollute your project’s root. The requirements, on the other hand, do get checked into source control.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1bc255a0cba7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Easy Python 3 on your Mac]]></title>
            <link>https://medium.com/@jtpaasch/easy-python-3-on-your-mac-f61fe42d1c2b?source=rss-7560920f1e93------2</link>
            <guid isPermaLink="false">https://medium.com/p/f61fe42d1c2b</guid>
            <dc:creator><![CDATA[JT Paasch]]></dc:creator>
            <pubDate>Fri, 24 Oct 2014 05:09:46 GMT</pubDate>
            <atom:updated>2014-12-10T10:41:57.199Z</atom:updated>
            <content:encoded><![CDATA[<p><em>The easy way to get different versions of Python on your Mac.</em></p><p>OS X comes with Python installed by default! Yay!</p><p>It’s Python <strong>2.7</strong>. Yay, I guess. Except Python is up to <strong>3.4 (</strong>or higher).</p><p>Question: How do I use <strong>Python 3-point-whatever</strong> on my Mac?</p><p>Answer: use <a href="https://github.com/yyuu/pyenv"><strong>pyenv</strong></a>.</p><p>The neat little <strong>pyenv</strong> utility lets you put as many different versions of Python on your system as you like, and you can use any of those versions at any time.</p><p>Here are the steps I follow for my Mac.</p><ul><li>Use the <a href="https://github.com/yyuu/pyenv-installer"><strong>pyenv-installer</strong></a><strong> </strong>to install the <strong>pyenv</strong> utility.</li><li>After you run the pyenv-installer script, it will likely tell you to copy something into your ~/.bash_profile or ~/.bashrc file. Do what it says. The code you want to paste into the bash file should look something like this:</li></ul><pre>export PYENV_ROOT=&quot;${HOME}/.pyenv&quot;<br><br>if [ -d &quot;${PYENV_ROOT}&quot; ]; then<br> export PATH=&quot;${PYENV_ROOT}/bin:${PATH}&quot;<br> eval &quot;$(pyenv init -)&quot;<br>fi</pre><ul><li>Close the terminal window and open a new one so the changes take effect.</li><li>Make sure it got installed:</li></ul><pre>pyenv --version</pre><ul><li>Now you can list all of the Python versions installed on your system:</li></ul><pre>pyenv versions</pre><ul><li>You can see which version is the default for your whole system:</li></ul><pre>pyenv global</pre><ul><li>You can also see all the versions available to install:</li></ul><pre>pyenv install --list</pre><ul><li>And you can install any of those versions easily:</li></ul><pre>pyenv install 3.4.0</pre><ul><li>Look to see what’s installed now:</li></ul><pre>pyenv versions</pre><ul><li>You can change your system’s global version:</li></ul><pre>pyenv global 3.4.0</pre><ul><li>Or change it back:</li></ul><pre>pyenv global system</pre><ul><li>You can even tell a folder to use a specific Python version. Suppose you have a folder called “myproject,” and you want it to use Python 3.4.0. Do this:</li></ul><pre>// Change into the folder:<br>cd myproject </pre><pre>// Tell it to use 3.4.0 inside the folder.<br>pyenv local 3.4.0</pre><p>Gotchas:</p><ul><li>Beware when you upgrade your version of OS X or run OS X security updates. Apple has a way of just deleting your Python stuff and reinstalling its own default version again.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f61fe42d1c2b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why Mockups Are No Good]]></title>
            <link>https://medium.com/@jtpaasch/why-mockups-are-no-good-8ac11546b344?source=rss-7560920f1e93------2</link>
            <guid isPermaLink="false">https://medium.com/p/8ac11546b344</guid>
            <dc:creator><![CDATA[JT Paasch]]></dc:creator>
            <pubDate>Wed, 11 Jun 2014 23:45:38 GMT</pubDate>
            <atom:updated>2014-12-10T10:35:44.641Z</atom:updated>
            <content:encoded><![CDATA[<h4>Final Designs Matter</h4><p>If you’re a web designer, you might have experienced something akin to the following.</p><blockquote>You: Coding away at your cubicle.</blockquote><blockquote>Enter stage left: Product Manager (PM).</blockquote><blockquote>PM: “Here’s a mockup. It’s pretty close to the final design, but not 100%. Can you start working on this?”</blockquote><blockquote>You: “I don’t know . . . is this really the final design? If this and that . . . ”</blockquote><p>From the code point of view, that’s like asking your contractor to start building your new house before you’ve decided on the final blueprints.</p><p>Imagine this. You’re a contractor who’s been hired by one Sally James to build a new house for her outside Charleston.</p><blockquote>You: Working away in your office.</blockquote><blockquote>Enter stage left: Sally James (PM).</blockquote><blockquote>PM: “Here’s a mockup of the final blue prints. It’s pretty close to the final design, but not 100%. Can you start working on this?”</blockquote><blockquote>You: “I don’t know . . . is this really the final design? If this and that . . . ”</blockquote><p>You <em>could</em> start building off that blueprint. You <em>could</em> start pouring the foundation. You <em>could </em>start putting up the main support beams. You <em>could</em> start putting in the water pipes. You <em>could </em>start laying the wiring.</p><p>But that costs money. It costs $x for the materials, $y for the labor, and so on. (In developer terms, coding costs money too: just calculate the cost of each hour’s work given each developer’s salary and aggregate all the developers cumulative hours for a project together.)</p><p>But then the final blueprints (designs) come in. And the foundation is just 1 inch wider. To the PM, that doesn’t seem like a big deal right? But really, it is. You have to smash up the foundation, remove the pounded up concrete, repour the foundation, re-lay the water pipes and electrical, and so on and so forth. And that’s <strong>very</strong> expensive.</p><p>I think the cost of changes should come out of the PM’s salary. If they <strong>really</strong> want the change because they think it’ll pay off, they’ll be willing to take the hit. If not, the change really isn’t worth the company’s money.</p><p>I’m not saying that we shouldn’t have mockups and iterate on prototypes. On the contrary, I think that’s a very <em>good</em> idea. But that’s not the situation I’m talking about here.</p><p>The situation I’m talking about here is the case where a mockup is intended to stand in for a final design. <strong>Prototypes</strong> should be built from mockups. <strong>Final implementations</strong> should be built from final designs.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8ac11546b344" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[I’m gonna skip some details]]></title>
            <link>https://medium.com/@jtpaasch/im-gonna-skip-some-details-4b459d9cbd53?source=rss-7560920f1e93------2</link>
            <guid isPermaLink="false">https://medium.com/p/4b459d9cbd53</guid>
            <dc:creator><![CDATA[JT Paasch]]></dc:creator>
            <pubDate>Fri, 06 Jun 2014 00:03:27 GMT</pubDate>
            <atom:updated>2014-06-06T00:03:27.887Z</atom:updated>
            <content:encoded><![CDATA[<h4>Experts want to know why you can skip the details</h4><p>There is an art to saying “this is technical, and I am going to pass over it.” When saying this in the academic community, I often find I have to satisfy two parties.</p><p>(a) On the one hand, I need to <em>satisfy the experts</em>. They need to be told <strong>why</strong> the technicalities can be skipped over. Experts are like that, and <strong>for good reason</strong>. They know (far more painfully than others) that <strong>the devils are in the details</strong>. To the expert ear, anyone who proposes a convenient “solution” to some “problem,” and yet doesn’t deal with any details, smacks of no real experience or expertise.</p><p>(b) On the other hand, I need to explain this in a way that <em>doesn’t alienate the non-experts</em>. The non-experts <strong>want </strong>to listen and understand, but <strong>technicalities</strong> that really only matter to the seasoned old salts go against that entirely. I, for one, hate it when the speaker launches into areas I’m not competent to understand.</p><p>Something like the following sometimes works: “I’m going to skip over a few technical details here, but I want to say why (briefly) I think we can skip them. If you want to ignore these details, feel free to tune out for a moment. [then explain why we can skip the details…] Okay, I’m done with the technicalities. For those who tuned out, time to tune back in.”</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4b459d9cbd53" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Make a Java Program by Hand]]></title>
            <link>https://medium.com/@jtpaasch/make-a-java-program-by-hand-426e499a72da?source=rss-7560920f1e93------2</link>
            <guid isPermaLink="false">https://medium.com/p/426e499a72da</guid>
            <dc:creator><![CDATA[JT Paasch]]></dc:creator>
            <pubDate>Fri, 18 Apr 2014 12:39:49 GMT</pubDate>
            <atom:updated>2014-04-18T12:39:49.486Z</atom:updated>
            <content:encoded><![CDATA[<h4>How to write and compile a Java program from the command line</h4><p>Most Java tutorials talk about building Java projects in an IDE (like Eclipse). But I like to know how to do things <strong>by hand</strong>. I want to understand the basics: (i) how do I <strong>write some code</strong> in this language, and (ii) how do I <strong>convert that code into a program</strong> I can run? This is my humble attempt to explain that very thing.</p><p>One prerequisite: a JRE and JDK must be installed on your machine. See <a href="https://medium.com/p/336a22872e72"><strong>how to “install Java” on your machine</strong></a> for pointers.</p><h4>Write a Java Program</h4><p>It’s always a good idea to put each Java project in its own folder. For this example, create a folder somewhere called <strong>helloworld</strong>. For instance, we could open a terminal and create that folder in our home directory like this:</p><pre>$ cd ~<br>$ mkdir helloworld</pre><p>And, of course, we want to move into that folder so we can work there. From the terminal:</p><pre>$ cd helloworld</pre><p>Next, we need to write some Java code. Create a file called <strong>HelloWorld.java</strong>, with the following contents:</p><pre>public class HelloWorld {<br>    public static void main(String[] args) {<br>        System.out.println(“Hello World!”);<br>    }<br>}</pre><p>Here we have a class called <strong>HelloWorld</strong>, and it has one method called <strong>main</strong>, which simply prints the words “Hello World!” to the screen.</p><p>Notice the following:</p><ul><li>The file is named <strong>HelloWorld.java</strong>, and the class is named <strong>HelloWorld</strong>. This is standard in Java: files have the <strong>same name</strong> as the class they contain.</li><li>The file has an extension of <strong>.java</strong>. This too is standard in Java: any classes written in Java should have the extension <strong>.java</strong>.</li><li>The class has a <strong>main</strong> method. Every Java program has one <strong>main</strong> method, and that is the first bit of code that gets executed when the program is run.</li></ul><h4>Compile the Code</h4><p>The above is really just some source code in a text file. If it’s going to be a <strong>program</strong>, it needs to be compiled.</p><p>To compile it, run the <strong>javac</strong> command, followed by the name of the file. Like this:</p><pre>$ javac HelloWorld.java</pre><p>When this command is run, it might appear that nothing happens (except for a brief pause). However, something does happen: <strong>javac</strong> looks at <strong>HelloWorld.java</strong>, and from that, it builds a new file called <strong>HelloWorld.class</strong>.</p><p>To see it, in a terminal, list the files in the folder by typing:</p><pre>$ ls</pre><p>What gets listed is</p><pre>HelloWorld.java    HelloWorld.class</pre><p>See that file called <strong>HelloWorld.class</strong>? That’s the file <strong>javac</strong> built. It’s a program, which your <strong>JRE</strong> can run/execute.</p><h4>Run the Program</h4><p>Want to run/execute the program? Use the <strong>java</strong> command. In your terminal, type <strong>java</strong> followed by the name of the class, like this:</p><pre>$ java HelloWorld</pre><p>That should spit out the words “Hello World!”</p><p>But notice that you do not tell the <strong>java</strong> program which <strong>file</strong> to load. You do not type this:</p><pre>$ java HelloWorld.class</pre><p>Instead, you just tell it the <strong>class</strong> to load, and the class is named <strong>HelloWorld</strong>. That’s why you just typed this:</p><pre>$ java HelloWorld</pre><p>This is okay, because the <strong>java</strong> program is smart enough to know that it should look through all the class files in your current directory, until it finds the right one.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=426e499a72da" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>