<?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[Software Development - Medium]]></title>
        <description><![CDATA[Constructing and organizing software - Medium]]></description>
        <link>https://medium.com/software-development?source=rss----eb75757499fe---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*UZ5YhCGvRbCXAkNY.png</url>
            <title>Software Development - Medium</title>
            <link>https://medium.com/software-development?source=rss----eb75757499fe---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 11:23:32 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/software-development" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Multi language support — Feature of Sortfolio Clone]]></title>
            <link>https://medium.com/software-development/multi-language-support-feature-of-sortfolio-clone-583f18fbae5c?source=rss----eb75757499fe---4</link>
            <guid isPermaLink="false">https://medium.com/p/583f18fbae5c</guid>
            <dc:creator><![CDATA[Ruso Frank]]></dc:creator>
            <pubDate>Sun, 20 Jul 2014 16:25:05 GMT</pubDate>
            <atom:updated>2014-03-11T11:37:19.321Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Introduction</strong></p><p>Agriya always facilitates their customers by means of its outstanding products and services. Each and every product has definite scope and exclusivity. In a way, Agriya formulated a comprehensive script which specially serves best for the niche classifieds marketplace, which is nothing but Exposure an endeavoring <a href="http://www.agriya.com/products/sortfolio-clone"><strong>sortfolio clone</strong></a> script.</p><p>This highlighted script allows the webmaster to launch and run their website in any of their preferred region without any linguistic barrier. This exclusive script is fully equipped with linguistic portability in such a way It can be applied to any of the region irrespective of the language barrier.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/530/1*mUXGSuPwupEUiHd7GRZfiQ.jpeg" /></figure><p>Likewise, there are several advanced features and options are there to access the demo. So to know more about the exclusivity of the product, feel free to contact <a href="http://www.agriya.com/"><strong>Agriya</strong></a>, experience the demo and get your queries solved.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=583f18fbae5c" width="1" height="1" alt=""><hr><p><a href="https://medium.com/software-development/multi-language-support-feature-of-sortfolio-clone-583f18fbae5c">Multi language support — Feature of Sortfolio Clone</a> was originally published in <a href="https://medium.com/software-development">Software Development</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Future of Data Engineering]]></title>
            <link>https://medium.com/@Dima/the-future-of-data-engineering-3e3cb5dc3293?source=rss----eb75757499fe---4</link>
            <guid isPermaLink="false">https://medium.com/p/3e3cb5dc3293</guid>
            <dc:creator><![CDATA[Dima]]></dc:creator>
            <pubDate>Fri, 09 May 2014 16:59:47 GMT</pubDate>
            <atom:updated>2015-04-18T19:37:26.621Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/850/1*a9iQITRzBfAP3u63nJ61Gw.jpeg" /></figure><h4>What would happen after SQL is no more.</h4><h3>I believe SQL would:</h3><ul><li>Exist in 5 years,</li><li>Exist as legacy in 10 years, and</li><li>Go extinct in 15 years.</li></ul><h3><strong>What would replace it?</strong></h3><p><strong>The language that is designed to be pre-optimized for real-time querying.</strong></p><p>Say, we want a rolling counter of the visitors of certain page in the past one hour.</p><p>On a high level, it’s one SQL query:</p><pre>SELECT COUNT WHERE TIMESTAMP &gt; CUTOFF</pre><p>One may well live with such an implementation for the first prototype.</p><p>Going deeper, this design, obviously, doesn’t scale. An expiring, bucketing- or sliding-window-based algorithm is the way to go.</p><blockquote><strong>It would soon become clear that the latter and the former can and should be implemented in the same language.</strong></blockquote><p>In other words, the language would be implemented and popularized, where a syntax as simple as the above SELECT would internally get “compiled” into a sliding-window-based algorithm.</p><h3><strong>What language would it be?</strong></h3><p><strong>I’d bet for a clean, lazily evaluatable one, like Haskell.</strong></p><p>LINQ and its clones would do.</p><p>Syntax-wise, <a href="http://rethinkdb.com/">http://rethinkdb.com/</a> is making it look neat.</p><p>As a conceptual change, the set of queries to run efficiently would become part of DB “schema”.</p><p>They would have to be either known beforehand, or would take some time to “propagate” — i.e., to replay existing data against the algorithms that maintain efficient internal data structures.</p><p>Of course, while prototyping, one could run any query in “interactive mode”. This makes it no different from common MapReduce frameworks — except it is implemented in a language that enables the prototype code to be production-ready once proved feasible.</p><h4><strong>The jobs of DBA-s and DB SRE-s would change.</strong></h4><p>Their daily work would be to keep the cluster running both production and sandbox databases in parallel.</p><p>Their jobs would be to keep the production database sane and holding the load with under-single-digit millisecond latency, while making sure that the developers can run their “slow” queries against the data that is either reflecting the live site, or, at least, not too far behind.</p><p>One could work on snapshots as well — for faster results, which are repeatable.</p><p>SRE-s and DBA-s would be the people in charge when it comes to approving certain new real-time “query” to enter the “schema”. Since each new query might potentially require non-trivial data structures added internally, reviewing them to ensure that disk-, memory- and network profiles don’t get bloated would be the major part of the job of those new generation SRE-s and DBA-s.</p><p>DBA-s would be taking care of the underlying algorithms — and, perhaps, manually optimizing them. The programming language would allow providing mathematical proofs for the fact that those “rewritten” queries mean the same as the original ones.</p><p>“Rewritten” queries may be rather complex: for the sake of efficiency, they might span different “tables” of real-time pre-processed results, or even create those tables as necessary. DBA-s would, certainly, work closely with the engineering team, since often times slightly modifying the query would allow it to be computed significantly cheaper. For example, a machine learning algorithm is unlikely to need specifically the 95th percentile — a cheaper to compute statistic might well do.</p><p>SRE-s would keep an eye on how are those tables sharded. Designing real-time-sensitive dataflows between replicas, especially when fault-tolerance is an integral part of requirements, is a non-trivial task.</p><p>And the permissions to run certain types of queries would be controlled by the SRE-s.</p><p>In a well-designed engineering organization, there would be no need to run MapReduces or other type of jobs. One would just define a new type of “table”, get it [pre-]approved by an SRE on the sandbox cluster, and be good to go to start using data from it.</p><p>Even real-time data!</p><h4><strong>The job of data-driven software architects and developers would change.</strong></h4><p>After this happens, we would have the world where machine learning engineers and data scientists would have the “time to market” of their features shrinked from weeks and months to hours and days.</p><p>And the would not have to worry about bugs and logical errors when converting a slow-but-correct statistics computation algorithms into fast-and-caching ones that can be used in production.</p><p>I am very much looking forward to this world.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3e3cb5dc3293" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Describing a Software Developer]]></title>
            <link>https://medium.com/software-development/describing-a-software-developer-c6eac18ee7a6?source=rss----eb75757499fe---4</link>
            <guid isPermaLink="false">https://medium.com/p/c6eac18ee7a6</guid>
            <dc:creator><![CDATA[Neil James]]></dc:creator>
            <pubDate>Sun, 20 Jul 2014 16:24:00 GMT</pubDate>
            <atom:updated>2014-04-13T22:09:37.267Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/desat/multiply/blue/60/overlay/blue/1*Oe6MXi8sAMsc72729JNdFw.jpeg" /></figure><h4>What is it we actually do.</h4><p>I&#39;m sure most software developers are asked the same question everyday by new people they meet.</p><blockquote>What is it you actually do?</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*ETLDBi_imqlbhfuvBJ-aAQ.png" /></figure><p>This is a question I&#39;ve had to answer numerous times and each time I think I&#39;ve given a different answer. I’ll try to explain it in the most non-technical perspective way possible. I hope this helps.</p><p>Think of a software developer as a type of builder on a construction site.</p><p>Instead of building a house, we are building a program.</p><p>Instead of using tools such as hammers and nails, we use keyboards and monitors.</p><p>Does this make it clearer? We are inventors, designers, innovaters and creators all in one.</p><p>Like all houses nothing is perfect, much like programs. These “Problems” in programs are known as bugs.</p><p>Like all houses they need to be designed from the outside and inside, in a program the design is the UI or User Interface of the program. This is essentially how the program looks to a user.</p><p>Like all houses they need to be planned from the very start by an architect, this is similar to programs, they also need to be planned weeks before anything is coded.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lgToiaxDffhnxtz--hE0Wg.jpeg" /></figure><p>Long story short think of a program as building a house. A lot of thought is needed, it can be done in so many different ways, it could take weeks even months to build depending on size. There will always be problems and it will never be perfect.</p><p>You might even call us:</p><blockquote>Virtual Architects</blockquote><p>if it helps to remember what we do.</p><p>P.S. We don’t spend endless hours on Facebook and Twitter!</p><p>Thanks for the read!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c6eac18ee7a6" width="1" height="1" alt=""><hr><p><a href="https://medium.com/software-development/describing-a-software-developer-c6eac18ee7a6">Describing a Software Developer</a> was originally published in <a href="https://medium.com/software-development">Software Development</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[“The people that work for you need to get into flow.” — Peopleware]]></title>
            <link>https://medium.com/software-development/the-people-that-work-for-you-need-to-get-into-flow-peopleware-4ad5d64b1467?source=rss----eb75757499fe---4</link>
            <guid isPermaLink="false">https://medium.com/p/4ad5d64b1467</guid>
            <dc:creator><![CDATA[Ismaël Héry]]></dc:creator>
            <pubDate>Sun, 20 Jul 2014 16:22:38 GMT</pubDate>
            <atom:updated>2016-07-12T05:30:40.141Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*ce6JhaySb_XGmIg-YOKzGA.jpeg" /></figure><h4>Isn’t it disappointing that all your great ideas emerge at home, whereas you rarely solve your hardest problems at work?</h4><p>In this quote from the book <em>Peopleware</em>, Tom DeMarco and Timothy Lister remind us that programmers, designers and writers are really productive in the state that Mihaly Csikszentmihalyi has popularized as <a href="http://en.wikipedia.org/wiki/Flow_%28psychology%29">“Flow”</a>. A more explicit extract is:</p><blockquote>“The people that work for you need to get into flow. Anything that keeps them from it will reduce their effectiveness.”</blockquote><p>Are we so efficient in this state? How typical software workplace environments disturb the flow? What tricks can we use to prevent from flow interruptions?</p><h3>Statistics about productivity vs interruptions</h3><p>DeMarco and Lister describe the quantitative tests they’ve made to measure the effects of various factors on programmers’ productivity (used programming language, available space, level of noise, level of interruptions, etc).</p><p>Average performance of the top quarter is 2.6 higher than bottom quarter’s. What about the difference of interruptions between top and bottom quarters?</p><p>76% of worst performers say they are often interrupted, while half the percentage (38%) of the top performers say the same. Top performer programmers are found mostly in low noise, large space, low level of interruptions environments.</p><p>Whether good environment is the cause of good programmer or a factor to retain them does not matter: you just want them with you.</p><h3>Getting in the flow is difficult, getting out is too easy</h3><p>The hardest tasks require several hours of 100% pure flow state but it’s hard to get there. You need 15 minutes with no interruption at all to get in the flow state. A single tiny interruptions and you’re out of flow, needing at least another 15 minutes to get back in.</p><h3>Tricks to avoid disturbance in the flow</h3><h4>Managers vs programmers: not the same need for flow</h4><p>If you’re a manager you need to ask, communicate, warn, coach etc: you thrive in a world of interruptions and you take your job as information flow optimization. But don’t take your needs as others’ needs! As De Marco and Lister say:</p><blockquote>“You do most of your own work in interrupt mode — that’s management — but the people who work for you need to get into flow.”</blockquote><p>As a manager you should be responsible for communication and knowledge flows but also mind flows!</p><h4>Rely on scheduled rituals for most of communications</h4><p>Schedule most of communication moments through regular meetings, with lower setup up costs, like daily stand up meeting. Ensure those regular meetings are the most efficient (on time, prepared etc).</p><h4>Joke about the flow</h4><p>It’s very hard to explain this flow thing for people who’ve never needed it, so it may help to joke about it with them. For instance, when a typical interrupting guy try to reach one focused developer, just tell him/her to get back latter because the programmer is currently “inside the matrix“. They may smile and wait a litter more, and sometimes this joke helps them having a glimpse of what flow means.</p><h4>Coach weak flow practitioners</h4><p>Some programmers, particularly younger ones, are very weak at managing internal and self inflicted interruptions. Once you’ve detected that with a programmer, you may coach her/him to various techniques for staying longer in the flow:</p><ul><li>remove email/twitter desktop notifications (worst thing ever)</li><li>resist the temptation to check mail/Facebook/Twitter, prefer checking at regular intervals</li><li>use the <a href="http://pomodorotechnique.com/">Pomodoro technique</a> to manage sprints of flow state</li></ul><h3>What about you?</h3><p>How do you resist from interrupting your knowledge workers from their flow state? What tricks and heuristics do you use to balance a really urgent need for interruption with the related loss of focus and productivity? How do you create a workplace that optimizes both communication flows and mind flows?</p><p>For french readers, more stories about flow, attention and focus at <a href="http://letempsreconquis.fr/">http://letempsreconquis.fr</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4ad5d64b1467" width="1" height="1" alt=""><hr><p><a href="https://medium.com/software-development/the-people-that-work-for-you-need-to-get-into-flow-peopleware-4ad5d64b1467">“The people that work for you need to get into flow.” — Peopleware</a> was originally published in <a href="https://medium.com/software-development">Software Development</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Automating Development Environments with Vagrant and Puppet]]></title>
            <link>https://medium.com/software-development/automating-development-environments-with-vagrant-and-puppet-a6bd143d222e?source=rss----eb75757499fe---4</link>
            <guid isPermaLink="false">https://medium.com/p/a6bd143d222e</guid>
            <dc:creator><![CDATA[Kloudless]]></dc:creator>
            <pubDate>Sun, 20 Jul 2014 16:22:27 GMT</pubDate>
            <atom:updated>2014-05-28T19:01:52.299Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/desat/multiply/grey/60/overlay/grey/1*SnYuaXabZca6sl5p-oY6NQ.png" /></figure><h4>Make development and deployment a lot easier with these two tools!</h4><h3><strong>Your Situation</strong></h3><p>This could be quite varied, you could be:</p><ol><li>A solo developer looking for a fast/easy way to have a local dev environment that resembles your production environment (say you develop on OS X, but are deploying to an infrastructure running some distribution of Linux. As a bonus, there is also an easy way to deploy to Amazon’s EC2 if you have a solid setup locally.</li><li>A member of a team, where everyone has their own development style and want to avoid the headaches of cross-platform support.</li><li>Someone who normally sets up servers in a third-party hosting environment, but you want to test your deployment without paying a bunch of money in wasted servers (this is where I am!)</li></ol><h3><strong>What is Vagrant?</strong></h3><p><a href="http://vagrantup.com/">Vagrant</a> is essentially a wrapper around a variety of virtual machine providers. If you have ever used Make to build a piece of software, it is kind of like that except with virtual machines. It provides a single command that uniformly creates, provisions, destroys, and connects to machines. You can use many different VM providers, but I will be using VirtualBox because it is free and easy to use. Usually it is a pain in the butt to create a virtual machine, install the operating system, etc. Vagrant makes it super easy, and there are lots of premade “boxes” for you to use (more on this later).</p><h3><strong>What is Puppet?</strong></h3><p><a href="http://puppetlabs.com/">Puppet</a> is an infrastructure automation tool and we are going to use it to take the hard work out of setting up our systems. We can do this because lots of people have put a ton of effort into writing modules that we can use. This won’t be a tutorial on Puppet, but it will go over the basics so that you can use modules that other people have written.</p><h4><strong>But I don’t like/use Puppet!</strong></h4><p>That is fine. Thankfully Vagrant is flexible in its provisioners and you can read more about <a href="http://docs.vagrantup.com/v2/provisioning/index.html">the alternatives</a>. For simplicity I am just going to cover Bash and Puppet since that is what I am familiar with. The overall process should be the same if you decide to use <a href="http://www.opscode.com/chef/">Chef</a> or <a href="http://www.ansibleworks.com/">Ansible</a>, but because I don’t know much about them, I won’t discuss them further.</p><h3><strong>Getting Started</strong></h3><h4><strong>Installation</strong></h4><p>Vagrant is a breeze to install: you can read over their <a href="http://docs.vagrantup.com/v2/installation/index.html">installation instructions</a>. Essentially, download the package that is relevant for your platform of choice and install it in the way you would normally install a package.</p><p>You will also need to install your virtual machine provider, in my case <a href="https://www.virtualbox.org/">VirtualBox</a>.</p><h4><strong>First VM</strong></h4><p>Once it is installed, you will want to create a new project directory and initialize it.</p><pre>$ mkdir ~/Vagrant<br>$ cd ~/Vagrant<br>$ vagrant init</pre><p>This will create a new directory and get it ready with a file called <a href="http://docs.vagrantup.com/v2/vagrantfile/index.html">Vagrantfile</a> which will contain all the information that Vagrant needs to manage your dev environments.</p><p>In that file there will be a bunch of comments about the different things you can put in that file. For now we just care about configuring a base <a href="http://docs.vagrantup.com/v2/boxes.html">“box”</a> (which is just a virtual machine image) and some other machine properties. I ended up with a file that looked something like this:</p><pre># -*- mode: ruby -*-<br># vi: set ft=ruby :</pre><pre>Vagrant.configure(“2&quot;) do |config|<br> # Every vagrant virtual env requires a box to build off of<br> config.vm.box = “puppetlabs-precise64&quot;<br> config.vm.box_url = “http://puppet-vagrant-boxes.puppetlabs.com/ubuntu-server-12042-x64-vbox4210-nocm.box&quot;<br> config.vm.hostname = “development.kloudless.vm”<br> config.vm.network :private_network, ip: “192.168.33.10&quot;<br> config.vm.network :forwarded_port, guest: 80, host: 8080</pre><pre> # VirtualBox Specific Customization<br> config.vm.provider :virtualbox do |vb|<br> # Use VBoxManage to customize the VM. For example to change memory:<br> vb.customize [“modifyvm”, :id, “—memory”, “1024&quot;]<br> end<br>end</pre><p>Here are the things that we configured so far:</p><ol><li>config.vm.box: The name of the box that you are bringing up.</li><li>config.vm.box_url: The location where Vagrant can look to download the box if you don’t already have a copy on your machine.The box that I chose is provided by Puppet Labs and doesn’t have any pre-installed provisioning software. This will be installed later as part of the bootstrapping process so that it can always be up to date.</li><li>config.vm.hostname: The hostname of the VM.</li><li>config.vm.network :private_network: The private IP address that the VM will have on the private VM network.</li><li>config.vm.network :forwarded_port: The port labelled “guest” on the guest VM will be accessible on the port labelled “host” on your machine.</li><li>VM memory: I gave my VM 1GB because it seemed like it would be enough (<strong>Note</strong>: this is provider dependent).</li></ol><p>Once you have the file in place you can create and provision your VM from the same directory:</p><pre>$ vagrant up </pre><p>After that command finishes running, you will have a VM ready for you to connect and start messing around with. You can access the machine via SSH using:</p><pre>$ vagrant ssh </pre><p>You will now have a shell on your virtual machine as the vagrant user. The user has passwordless sudo access on the machine, it full fledged Ubuntu 12.04 LTS VM and you can do whatever you want! This is great and all, but we want to make things more automated, so you will want to exit your SSH session and get rid of the VM with:</p><pre>$ vagrant destroy </pre><h3><strong>Automating All the Things</strong></h3><p>As was talked about earlier, the nice thing about Vagrant is that it is really easy to offload the configuration to an automated tool, in this case Puppet. Since our VM is pretty bare bones, there is some extra work that we want to do to prepare it.</p><h4><strong>Bootstrapping</strong></h4><p>The box that I chose doesn’t by default come with puppet installed on it, this was a deliberate choice to make sure that I could use the same version I am using in production without having to change the box all the time. As such we need to do a little extra work. Preparing the machine to be puppeted is relatively straightforward and we are going to take advantage of the fact that you can use multiple provisioners on a single machine. In order to use the shell provisioner we add the following lines to our Vagrantfile before the final end:</p><pre># Enable shell provisioning to bootstrap puppet<br>config.vm.provision :shell, :path =&gt; “bootstrap.sh”</pre><p>Then we create a file called bootstrap.sh in the same folder as our Vagrantfile that contains the following:</p><pre>#!/usr/bin/env bash<br>set -e</pre><pre>if [ “$EUID” -ne “0&quot; ] ; then<br> echo “Script must be run as root.” &gt;&amp;2<br> exit 1<br>fi</pre><pre>if which puppet &gt; /dev/null ; then<br> echo “Puppet is already installed”<br> exit 0<br>fi</pre><pre>echo “Installing Puppet repo for Ubuntu 12.04 LTS”<br>wget -qO /tmp/puppetlabs-release-precise.deb \<br> <a href="https://apt.puppetlabs.com/puppetlabs-release-precise.deb">https://apt.puppetlabs.com/puppetlabs-release-precise.deb</a><br>dpkg -i /tmp/puppetlabs-release-precise.deb<br>rm /tmp/puppetlabs-release-precise.deb<br>aptitude update<br>#aptitude upgrade -y<br>echo Installing puppet<br>aptitude install -y puppet<br>echo “Puppet installed!”</pre><p>One important thing to notice is that the script is idempotent (meaning that it can be run multiple times without having any bad effects), this is important because we can run the provisioners without creating a new machine. Your virtual machine will now be ready to be controlled via Puppet!</p><h3><strong>Adding Puppet</strong></h3><p>Since we don’t want to install Puppet on our host machine, bring up the VM and connect to it. Puppet is already installed. We can do all of our initial Puppet configuration directly within the vm. By default, the folder containing the Vagrantfile is shared on the virtual machine in the path /vagrant and this will make a good location to store our puppet configurations. Once in that directory you will want to create a skeleton of your puppet dir:</p><pre>$ mkdir -p puppet/{manifests,modules}<br>$ touch manifests/site.pp </pre><p>From here we will want to install some puppet modules that will make setting up a basic LAMP server easy (for now we will just keep everything on the same box). There are lots of different ways to install puppet modules, but the most straightforward is using the way that is built into puppet:</p><pre>$ puppet module puppetlabs-apache —modulepath \<br>/vagrant/puppet/modules</pre><pre>$ puppet module install puppetlabs-mysql —modulepath \<br>/vagrant/puppet/modules</pre><p>Now we will want to actually write a puppet manifest , so we will want to create /vagrant/puppet/manifests/site.pp with the following:</p><pre>node ‘development.kloudless.vm’ { # [1]<br> class { ‘mysql::server’: # [2]<br> config_hash =&gt; { ‘root_password’ =&gt; ‘herpderpderp’ },<br> }<br> include mysql::php # [3]</pre><pre> # Configuring apache<br> include apache # [4]<br> include apache::mod::php</pre><pre> apache::vhost { $::fqdn: # [5]<br> port =&gt; ‘80&#39;,<br> docroot =&gt; ‘/var/www/test’,<br> require =&gt; File[‘/var/www/test’],<br> }</pre><pre> # Setting up the document root<br> file { [‘/var/www’, ‘/var/www/test’] : # [6]<br> ensure =&gt; directory,<br> }</pre><pre> file { ‘/var/www/test/index.php’ : # [7]<br> content =&gt; ‘&gt;?php echo \’&gt;p&lt;Hello world!&gt;/p&lt;\’ ?&lt;’,<br> }</pre><pre> # “Realize” the firewall rule<br> Firewall &lt;| |&gt; # [8]<br>}</pre><p>This describes how the server gets configured, the basic function is setting your vm with apache, mysql, and php along with a test page. Here are some more details about the different parts:</p><ol><li>The node definition is how we collect configuration for the machine, the label ‘development.kloudless.vm’ matches the hostname that we configured the vagrant box with.</li><li>This statement uses the mysql class to install the mysql server and sets up the admin password for the db as ‘herpderpderp’.</li><li>That is how the php bindings for mysql get installed</li><li>Those two lines install the apache server package and mod_php respectively</li><li>We want an apache vhost where we can access our basic test application.</li><li>This actually creates the directories where the vhost content will live</li><li>That is our application! Right now it doesn’t actually use the database, but it is a good example, we can define the contents of the file inline relatively easily this way. We will replace this later.</li><li>This is a way of realizing virtual resources which in this case configures your machine’s firewall rules.</li></ol><p>Now that we have the puppet configuration ready, we need to have Vagrant use it. This can be done easily by adding the following lines to your Vagrantfile after the shell provisioner lines:</p><pre># Enable provisioning with Puppet stand alone.<br>config.vm.provision :puppet do |puppet|<br> puppet.manifests_path = “puppet/manifests”<br> puppet.manifest_file = “site.pp”<br> puppet.module_path = “puppet/modules”<br> puppet.options = “—verbose —debug”<br>end </pre><p>This just tells vagrant where to find the modules we installed and the manifest we wrote. So now you are ready to vagrant up. Once your box is built, you should be able to visit <a href="http://localhost:8080/">http://localhost:8080</a> and see the output of your test page.</p><p>With a few small adjustments, you could use this to develop a full blown php app. The adjustments you would probably want to make are as follows:</p><ol><li>Remove the index.php file block from the sites.pp file</li><li>Change the webroot value in the vhost code block to be “/var/www/app”</li><li>Configure a shared folder that apache can point to as the webroot. For example, if you have a folder called app that contained your application and it is in the same directory as your Vagrantfile, you would add the following line to the Vagrantfile:<br>config.vm.synced_folder “app”, “/var/www/app”</li></ol><p>Once those changes are made, you should be able to just run vagrant provision to update the settings and you can start dumping your project files into the app directory and you should see those changes on the vm.</p><h4><strong>Learning More</strong></h4><p>If you wanted a LAMP server to develop a php application, you don’t really need to go any further. Odds are, however, that you want to do something more than just this. If you want to run a more complicated application you can do this pretty easily if you can find a module to do it. The specific details of how you use a module depends on what it is, but the documentation is usually ok. If you want to more seriously manage your dev box with puppet, you should do some more reading so you can use the different modules people have written more easily. Here is some recommended reading :</p><ol><li><a href="http://docs.puppetlabs.com/learning/index.html">The Learning Puppet Series</a></li><li><a href="http://www.example42.com/?q=Example42PuppetTutorials">Example42 Tutorials</a>. They also have a bunch of good modules you can use</li><li><a href="http://docs.puppetlabs.com/puppet/3/reference/">Puppet 3 reference manual</a></li></ol><h4><strong>Hiera</strong></h4><p>If you are a more experienced puppet user, you might be familiar with Hiera and want to use it with the modules/classes that you have written. It is pretty easy to do. First, change the value of puppet.options in your Vagrantfile to “—verbose —debug —hiera_config /vagrant/puppet/hiera.yaml”. Now you need to populate that file with your hiera configuration, depending on how you are using it you might end up with something like this:</p><pre>—-<br>:hierarchy:<br> — common</pre><pre>:backends:<br> — yaml<br> — puppet</pre><pre>:yaml:<br> :datadir:<br> /vagrant/puppet/hieradata </pre><p>Now you will want to make a directory called hieradata in the puppet directory. From there you can put all of your hiera variables in a file called common.yaml.</p><h3><strong>Multiple Servers</strong></h3><p>One server is great, but if you have a real production infrastructure, it most likely doesn’t consist of a single machine. Vagrant is pretty nice in that it inherently supports it, you just need to do some modifications to your Vagrantfile. If we wanted to have our database server be separate from our web server. Here is our new Vagrantfile:</p><pre># -*- mode: ruby -*-<br># vi: set ft=ruby :</pre><pre>Vagrant.configure(“2&quot;) do |config|<br> # All Vagrant configuration is done here. The most common configuration<br> # options are documented and commented below. For a complete reference,<br> # please see the online documentation at vagrantup.com.</pre><pre> # Every Vagrant virtual environment requires a box to build off of.<br> config.vm.box = “puppetlabs-precise64&quot;<br> config.vm.box_url = “http://puppet-vagrant-boxes.puppetlabs.com/ubuntu-server-12042-x64-vbox4210-nocm.box&quot;</pre><pre> config.vm.define :web do |www| # [1]<br> <a href="http://www.vm.hostname/">www.vm.hostname</a> = “dev-www.kloudless.vm&quot;<br> <a href="http://www.vm.network/">www.vm.network</a> :private_network, ip: “192.168.33.10&quot;<br> <a href="http://www.vm.network/">www.vm.network</a> :forwarded_port, guest: 80, host: 8080<br> end</pre><pre> config.vm.define :db do |db| # [2]<br> db.vm.hostname = “db.kloudless.vm”<br> db.vm.network :private_network, ip: “192.168.33.11&quot;<br> end</pre><pre> # VirtualBox Specific Customization<br> config.vm.provider :virtualbox do |vb|<br> # Use VBoxManage to customize the VM. For example to change memory:<br> vb.customize [“modifyvm”, :id, “—memory”, “512&quot;]<br> end</pre><pre> # View the documentation for the provider you’re using for more<br> # information on available options.</pre><pre> # Enable shell provisioning to bootstrap puppet<br> config.vm.provision :shell, :path =&gt; “bootstrap.sh”</pre><pre> # Enable provisioning with Puppet stand alone.<br> config.vm.provision :puppet do |puppet|<br> puppet.manifests_path = “puppet/manifests”<br> puppet.manifest_file = “site.pp”<br> puppet.module_path = “puppet/modules”<br> puppet.options = “—verbose —debug”<br> end<br>end </pre><p>The primary change are the blocks labelled [1] and [2], those are just adding the host specific configurations for the network settings, so that they can be dealt with separately and talk to each other. Now that there are two boxes vagrant can refer to, for example if you wanted to just bring up the webserver you would do vagrant up web. The name you refer it to is the key that is the argument to config.vm.define.</p><p>In order to have puppet provision both of the servers, we also need to modify the site.pp file so we take into account the fact that we have two nodes. This is pretty straightforward and ends up essentially splitting the single node declaration into two, resulting in:</p><pre>node ‘dev-www.kloudless.vm&#39; {<br># Configuring apache<br> include apache<br> include apache::mod::php</pre><pre> apache::vhost { $::fqdn:<br> port =&gt; ‘80&#39;,<br> docroot =&gt; ‘/var/www/test’,<br> require =&gt; File[‘/var/www/test’],<br> }</pre><pre># Setting up the document root<br> file { [‘/var/www’, ‘/var/www/test’] :<br> ensure =&gt; directory,<br> }</pre><pre> file { ‘/var/www/test/index.php’ :<br> content =&gt; ‘&gt;?php echo \’&gt;p&lt;Hello world!&gt;/p&lt;\’ ?&lt;’,<br> }</pre><pre> # “Realize” the firewall rule<br> Firewall &lt;| |&gt;<br>}</pre><pre>node ‘db.kloudless.vm’ {<br> class { ‘mysql::server’:<br> config_hash =&gt; { ‘root_password’ =&gt; ‘herpderpderp’ },<br> }</pre><pre> include mysql::php</pre><pre> # “Realize” the firewall rule<br> Firewall &lt;| |&gt;<br>} </pre><p>Essentially all that happened, is that we split the original node definitions into two separate ones. Once you have these manifests in place, running vagrant up brings up both virtual machines in sequence. Once they are up, they can communicate over the private network via the configured ip addresses. The hostnames you configure can’t get resolved (it wouldn’t be too hard to put the ip’s and hostnames in each server’s /etc/hosts file through puppet, but that isn’t too relevant here). Now this is more like something you would see in your actual infrastructure.</p><h3><strong>Moving to the Cloud</strong></h3><p>Once you have a real application developed and configured you probably want it to be accessible to everyone, so why not push it out to Amazon’s EC2! This can be done easily through the AWS provider add on to Vagrant. This will basically be a different Vagrantfile that you will use specifically to push to EC2. In order to replicate the configuration we had locally, you first need to install the plugin:</p><pre>$ vagrant plugin install vagrant-aws </pre><p>Once you have the plugin installed, we are going to take advice from the plugin’s docs to get started quickly using a dummy box. All this means is that our configuration will be explicit within the declaration of the box. To register the dummy box, we do the following:</p><pre>$ vagrant box add dummy <a href="https://github.com/mitchellh/vagrant-aws/raw/master/dummy.box">https://github.com/mitchellh/vagrant-aws/raw/master/dummy.box</a> </pre><p>Then we need to modify our existing Vagrantfile to create and provision the box, since it is going to be pretty different, we can create the different configuration blocks:</p><pre># Begin the AWS Provider Configuration:<br> config.vm.provider :aws do |aws,override|<br> aws.access_key_id = “YOUR KEY”<br> aws.secret_access_key = “YOUR SECRET KEY”<br> aws.keypair_name = “KEYPAIR NAME”<br> aws.region = “us-west-2&quot;</pre><pre> aws.ami = “ami-ff68f8cf” # Ubuntu 12.04LTS in us-west-2&quot;</pre><pre> override.ssh.username = “ubuntu”<br> override.ssh.private_key_path = “PATH TO YOUR PRIVATE KEY”<br> end</pre><pre> # This box will be brought up in EC2<br> config.vm.define :web_aws do |web|<br> web.vm.box = “dummy”<br> web.vm.hostname = “www.kloudless.aws&quot; # Dummy hostname<br> end </pre><p>These blocks can just be added into your Vagrantfile before the final end. This assumes that you already have an account and a key-pair set up, so you will need to substitute your credentials into the proper place. I have chosen the Ubuntu 12.04LTS AMI because it is easy to use and us-west-2 because it is pretty close to where I am located (it is in Oregon). Now here is the somewhat tricky bit, because of the way that EC2 works, you won’t really know the hostname of the machine before you bring it up and the network configuration options of Vagrant don’t support setting the hostname. There are a couple ways around this:</p><ol><li><a href="https://github.com/jordansissel/puppet-examples/tree/master/nodeless-puppet/">Nodeless Puppet</a>: A pretty novel approach that is fact driven. It is interesting and probably what I would recommend if you are going to use this in a real production environment.</li><li>Just bring it up and do provisioning afterwards: This is clunky, but easy and what I will do for this blog post.</li></ol><p>So you will bring up your vm with vagrant up web_aws. The shell provisioning will go ahead just fine, but the puppet provisioning will fail. Ths is ok, we just need another puppet node definition. Basically I am going to just copy the node definition on dev-www (if you wanted to bring up the database server in EC2 it would be the same kind of process):</p><pre>node ‘THE NEW HOSTNAME’ {<br> # Configuring apache<br> include apache<br> include apache::mod::php</pre><pre> apache::vhost { $::fqdn:<br> port =&gt; ‘80&#39;,<br> docroot =&gt; ‘/var/www/test’,<br> require =&gt; File[‘/var/www/test’],<br> }</pre><pre> # Setting up the document root<br> file { [‘/var/www’, ‘/var/www/test’] :<br> ensure =&gt; directory,<br> }</pre><pre> file { ‘/var/www/test/index.php’ :<br> content =&gt; ‘&gt;?php echo \’&gt;p&lt;Hello world!&gt;/p&lt;\’ ?&lt;’,<br> }</pre><pre> # “Realize” the firewall rule<br> Firewall &lt;| |&gt;<br>}</pre><p>You can replace THE NEW HOSTNAME with the short domain name that the node thinks it has, in my case it was ip-10-251-32-195. Now you can actually provision your vm with vagrant provision web_aws. In order to actually view the test page, you will need to have your security groups set up properly, but if you just want to check you can vagrant ssh web_aws and then curl <a href="http://localhost/">http://localhost</a> and see that it works.</p><h4><strong>Extra Notes</strong></h4><p>Some things work differently when you are using the AWS provider and the main one you will notice is the shared directories. These get sync’d with rsync every time you run vagrant up, vagrant reload, or vagrant provision. You can also build a bunch more aws configuration into your box definition, so you don’t have to specify it by hand.</p><p>Since it is in EC2 you can take advantage of tags and user data. In our production puppet environment, we have an enc that decides what classes to give an instance based on its tags, but that requires a puppet master, which I didn’t really talk about (right now, vagrant just uses puppet apply).</p><h3><strong>Conclusion</strong></h3><p>Hopefully I have given you a good taste of how easy it is to put these two tools together to make your development and deployment a lot easier! Puppet is a really great tool and I highly recommend learning more so you can take full advantage of this work flow. I am still working to fully utilize all these great tools and it would be great to hear about other peoples’ experiences.</p><p><em>Originally posted by David Thorman(</em><a href="http://twitter.com/david_thorman"><em>@david_thorman</em></a><em>) for the </em><a href="http://blog.kloudless.com/"><em>Kloudless Blog</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a6bd143d222e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/software-development/automating-development-environments-with-vagrant-and-puppet-a6bd143d222e">Automating Development Environments with Vagrant and Puppet</a> was originally published in <a href="https://medium.com/software-development">Software Development</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Tips for Using AWS at Your Startup]]></title>
            <link>https://medium.com/@lob/tips-for-using-aws-at-your-startup-e30883c6ed09?source=rss----eb75757499fe---4</link>
            <guid isPermaLink="false">https://medium.com/p/e30883c6ed09</guid>
            <dc:creator><![CDATA[Lob]]></dc:creator>
            <pubDate>Thu, 19 Jun 2014 02:22:00 GMT</pubDate>
            <atom:updated>2014-06-27T17:42:16.030Z</atom:updated>
            <content:encoded><![CDATA[<h4>Lob</h4><p>Below are some tips that we have aggregated to help startups as they grow on AWS. Most of these lessons came as a direct result of some mishap or mistake that happened in the first year of Lob. These are things that we wish we knew from day 1 that would have eliminated some early hiccups.</p><h4>1. Development/Production Environment Separation</h4><p>When trying to scale engineering one of the best things we learned was to completely separate the development infrastructure from the production infrastructure. This means development and production should be on completely separate accounts. This way only those who absolutely need access to the production infrastructure have the credentials. Meanwhile, all other developers can run tests using the development account without accidently deleting an important AMI, changing a security group, or taking down a set of core servers.</p><h4>2. IAM Access controls and permissions</h4><p>Not everyone in the organization is an AWS expert. From day 1, create a set of simple IAM groups that restrict access and give permissions to users. Ensure that both production and development accounts have these groups. This will eliminate a new hire or intern accidentally destroying something important. Be disciplined with your IAM access, never sign into the master account unless you have to update billing.</p><h4>3. Databases (RDS)</h4><p>Create at least 3 different users to access your DB — an admin, a read-only user, and a read-write user. Your application should be the only one with write access. Give everyone else read-only access. This will eliminate the probability of someone dropping or overwriting your entire users table. It happens. Ensure that your database is multi-az, has automated backs, and has DB snapshots turned on. This way when something goes wrong you can revert. Also save a full copy of your DB to S3 every night at midnight.</p><h4>4. Development/Production Parity</h4><p>Make sure to set up your development and production infrastructure to be identical on AWS. That includes VPC, security groups, IAM groups, AMI’s, S3 buckets. Never cross share information. This will allow your development workflow to be almost identical.</p><h4>5. Route 53</h4><p>Since you will most likely want to share domains across both production and development accounts there are complicated ways to share NS records so both accounts can have access to the same domain. That way you can have<em>www.yourwebsite.com</em> on production and <em>internal.yourwebsite.com </em>on your dev. If you want even cleaner separation than you can have an entire different domain for your development account.</p><h4>6. AMI’s</h4><p>Don’t rely on AMI’s. They get stale quickly and can have bad data stored on them. It is best to always start with a fresh server build. This will also force you to learn how to use Chef or Puppet early on and how best automate server configuration.</p><h4>7. Alerts</h4><p>Add alerts to all your AWS and DB instances. This is an easy way to know when your servers have high CPU, are down, or are running out of memory. It will also give you warnings when they are close to certain thresholds.</p><p>Let us know if you found these helpful!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e30883c6ed09" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why Publishing is the New King]]></title>
            <link>https://medium.com/@mlimonczenko/why-publishing-is-the-new-king-8b7f2e910f34?source=rss----eb75757499fe---4</link>
            <guid isPermaLink="false">https://medium.com/p/8b7f2e910f34</guid>
            <dc:creator><![CDATA[Miranda Limonczenko]]></dc:creator>
            <pubDate>Sun, 11 May 2014 00:48:51 GMT</pubDate>
            <atom:updated>2014-05-22T19:37:47.714Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*D1BOSd_fVT62OjJ1gzqC4A.jpeg" /></figure><h4>The Rise of Simplified Content Management</h4><p>Simple design is everywhere: on billboards, websites and in magazines. Every high-profile startup is sporting the bold colors, clean lines and minimal shading. They show off clean dashboards and ridiculously uncluttered user interfaces. But <a href="http://www.business-software.com/content-management">CMS software</a> struggled with this trend. How can such a complex publishing system, with marketplaces and infinite add-ons, become <em>simple</em>?</p><p>CMS as a business tool satisfies many needs: it organizes company knowledge, tracks documents, helps author digital pages, supports landing pages, runs multimedia, aids website designers and often includes SEO and ecommerce tools. CMS can convert into a makeshift CRM or contract management system with patience. But as the CMS definition expands, weaving in and out of different software types, our understanding of the solution becomes tangled. We have no idea <em>what </em>CMS really is.</p><h4><strong>How Ghost Brought CMS Back to its Roots</strong></h4><p>Simplified CMS became a sensation after <a href="https://www.kickstarter.com/projects/johnonolan/ghost-just-a-blogging-platform">Ghost</a>, a Kickstarter campaign backed by 5,236 people, reached over $330,000 in funding last year — a shocking 800 percent of its pledged goal. The campaign was beyond successful, spawning a new era for content management and blogging. The new CMS broke into the world’s consciousness when Ghost founder, John O’Nolan, opened his Kickstarter campaign with this:</p><blockquote>“Ghost is a platform dedicated to one thing: Publishing.”</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KPWogSUW2b_ev37d_YVriQ.jpeg" /></figure><p>O’Nolan knew that if we stripped away the add-ons and extensions, the core of any content management system was its publishing. In order to build a great CMS, we only needed the system to be a remarkable publishing tool. Everything else was secondary.</p><p>Ghost gave users room to breathe. Its authoring tool was one of the first to show a crisp, white screen expansive enough to let the author’s mind swim. Unlike WordPress, Drupal or even Microsoft Word, formatting options are invisible to the eye, leaving users with no choice but to focus on writing.</p><h4><strong>The New CMS Era</strong></h4><p>After Ghost, we’ve spotted emerging sites that embody a similar mentality. Twitter founders Evan Williams and Biz Stone developed and released <a href="https://medium.com/">Medium</a>, a blog with an author interface similar to Ghost: stark white, with nothing but text and images.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/992/1*43AlMSJS0ESURR9Pha01oA.png" /><figcaption>About to write a new blog post on Medium. Look at this barren desert of white.</figcaption></figure><p>Medium’s simplicity goes a step further than Ghost’s original concept. It strips away open source and our ability to design or add plugins. The only control we have on Medium is to publish content, curate content and comment on others’ content — a concept so simple that it can be scary to some. Yet it <a href="http://techcrunch.com/2014/01/28/blogging-platform-medium-reportedly-closes-25m-round-led-by-greylock/">closed $25M of funding</a> last January. Medium, like Ghost, is on to something.</p><h4><strong>How CMS is Evolving to Serve Content Marketing</strong></h4><p>On Twitter and in the content management industry, we’ve been hearing the term “content is king” so frequently that it can be nauseating. Businesses everywhere have increased their spending and efforts toward quality original content. The systems that house that content are transforming to meet the need of complete and total content focus, which happens to be an asset when building responsive designs.</p><p>Content management and content marketing are not separate from each other, but evolving together. CMS’s definition is changing. Right now it can be the umbrella term that shades thousands of themes and features. Yet it can also be the lean, responsive solution that cares exclusively for publishing.</p><p>CMS is continually evolving, which is why I follow and curate my own observations of these trends in real time with my <a href="https://twitter.com/BiznessCMS">CMS Twitter handle</a>. Simplicity is the greatest form of elegance (allowing us to focus on publishing, rather than a sea of less-relevant functions), and together (with the aid of Twitter) we will support a simplified and less sporadic future.</p><p><em>This post was originally published on </em><a href="http://www.business-software.com/blog/cms-simplified-publishing-king/"><em>Business-Software.com</em></a><em> and edited for Medium readers.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8b7f2e910f34" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Revenge of the Lispers]]></title>
            <link>https://medium.com/@jefflaporte/revenge-of-the-lispers-996a80b5e313?source=rss----eb75757499fe---4</link>
            <guid isPermaLink="false">https://medium.com/p/996a80b5e313</guid>
            <dc:creator><![CDATA[Jeff LaPorte]]></dc:creator>
            <pubDate>Mon, 10 Mar 2014 22:31:05 GMT</pubDate>
            <atom:updated>2014-03-10T22:53:57.510Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/410/1*VF76jHCoGu-NJ2OtG-5lpQ.jpeg" /></figure><h4>What’s driving uptake of functional programming languages?</h4><p>The software industry is more oriented towards functional languages than ever in 2014.</p><p>What has caused the resurgence of functional programming in industry? I suspect that the following are the big factors:</p><ul><li><strong>PG</strong>: Paul Graham’s strong influence on a decade’s worth of startups and hackers via Y Combinator, during a period of rapid development of new programming frameworks and willingness to experiment.</li><li><strong>VMs are the new normal</strong>:<strong> </strong>The long, continuous shift to VM-based runtimes (<a href="http://en.wikipedia.org/wiki/Java_virtual_machine">JVM</a>, <a href="http://en.wikipedia.org/wiki/Common_Language_Runtime">CLR</a>, <a href="https://code.google.com/p/v8/">V8</a>, <a href="http://llvm.org/">LLVM</a>, <a href="http://morepypy.blogspot.ca/2013/02/announcing-topaz-rpython-powered-ruby.html">RPython toolchain</a>), and huge progress in speed of these runtimes. This has <strong>opened up the market for languages</strong>, and reduced the old knee-jerk reactions against anything that doesn’t compile to machine code that used to dominate conversations about languages.</li><li><strong>Ruby’s functional flavour</strong>: Ruby’s functional aspects and popularity over the last decade have given devs <a href="http://www.rubyinside.com/functional-programming-in-ruby-2713.html">a taste of functional techniques</a>, causing them to dig deeper.</li><li><strong>MapReduce and Hadoop</strong>: Google’s widely-read MapReduce acted as a great “Hello World” type introduction to a couple of higher-order functions.</li><li><strong>Proliferation of DSLs</strong>: DSLs are a great gateway drug for functional programming, and they’ve become <a href="https://github.com/search?o=desc&amp;q=dsl&amp;ref=cmdform&amp;s=forks&amp;type=Repositories">popular and common</a></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wUUVyrVhWQlknMOCsVYF2w.png" /><figcaption>Lots of DSL-focused projects on Github</figcaption></figure><p>Have thoughts on this piece or the resurgence of functional languages in industry? <a href="https://news.ycombinator.com/item?id=7376125">Discuss it on Hacker News</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=996a80b5e313" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Whiteboard and the Coding Interview]]></title>
            <link>https://medium.com/@Dima/whiteboard-and-the-coding-interview-9eddf98bde18?source=rss----eb75757499fe---4</link>
            <guid isPermaLink="false">https://medium.com/p/9eddf98bde18</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[interview]]></category>
            <category><![CDATA[careers]]></category>
            <dc:creator><![CDATA[Dima]]></dc:creator>
            <pubDate>Sun, 20 Apr 2014 02:39:11 GMT</pubDate>
            <atom:updated>2015-09-05T07:15:35.817Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/656/desat/multiply/red/60/overlay/red/1*D7byFv6xZyhctOG7d5Hrxw.png" /></figure><h4>Why is coding without a keyboard helpful.</h4><h3>Skills to probe during technical assessment.</h3><p>There are two universes of skills that whiteboard coding probes:</p><ol><li><strong>Writing clean code from the very beginning, and</strong></li><li><strong>Reasoning about how does the code work.</strong></li></ol><p>Both universes of skills are essential for a great software developer.</p><p>Both universes of skills are probed extensively by employing whiteboard coding.</p><h3><strong>Writing clean code from the very beginning.</strong></h3><p>Whether we like it or no, modern software engineering is largely about knowing enough patterns and applying the right ones in the right order.</p><p>The result of a few days or even a few weeks of work often is a code change just a few hundred lines long.</p><p>On the surface, it does not matter much what amount of support did the original developer need while composing that code. They may have all the pieces in their head down to a character before getting hands down to code. Or they may use API documentation, examples and language syntax tutorial for each and every line.</p><p>Looking deeper, however, there is a huge difference.</p><blockquote>Understanding concepts is more important than understanding facts.</blockquote><p>The more complex a piece of code becomes, the harder it is to develop and even understand it based purely on the knowledge of some development patterns.</p><p>A good whiteboard coding exercise opens a door to probe those skills of understanding concepts vs. masking the lack of fundamental knowledge by keeping a large enough number of patterns in mind.</p><blockquote>When we ask “What programming language is your strongest?” we don’t really look for crispy clean syntax. We look for a starting point to get further and to figure out how deep the rabbit hole is.</blockquote><p>Here is a short summary of the mapping from “what field is the candidate familiar with” to “what aspects should be touched during the interview”:</p><ul><li><strong>OOP</strong> — Multiple inheritance, virtual functions, object construction/destruction order, exception handling.</li><li><strong>Frontend</strong> — Asynchronous logic and closures, REST API-s, components and usability, validating user input.</li><li><strong>Algorithms and Data Structures</strong> — Motivation, usage, average- and worst-case complexity.</li><li><strong>Backend and Infrastructure</strong> — Memory model, garbage collection, multithreading, locking mechanisms, benchmarking, profiling.</li><li><strong>Functional Programming</strong> — Lambdas, currying, sequencing actions, monads.</li><li><strong>Kernel Level </strong>— File system, networking internals, POSIX, protocols, standard tools to examine / troubleshoot those.</li><li><strong>Testing</strong> — Unit-, regression and end-to-end testing, imperative and model-based testing, test- and behavior-driven development, integration testing.</li></ul><p>The best way to talk about the above with the candidate is to start from an example. And the best example is a short and simple one they write themselves.</p><p>In practice, most code snippets the candidates would write will be imperfect. Which is a great opportunity to explore the boundaries of one’s knowledge.</p><h4><strong>Whiteboard coding helps because:</strong></h4><ul><li><strong>The physical space to fit the code in is limited.</strong></li><li><strong>The “coding” speed is limited.</strong></li><li><strong>“Editing” is painful and is best to be avoided.</strong></li><li><strong>There is no completion, syntax highlighting and other fancy IDE features.</strong></li></ul><h3><strong>Reasoning about what does the code do.</strong></h3><p>Walking through how a code snippet works is an amazing exercise.</p><p>When doing technical interviews, it would be an absolutely wrong thing to skip.</p><p>If the code presents an algorithm, one could walk through the steps. One could consider corner cases. One could write down invariants and prove them. One could explain complexity based on each individual looping construct or a recursive call.</p><p>If the code is OOP, one could articulate what does it do under the hood. When and how are the object created. How are they destroyed. When are constructors / destructors called, and in which order. What if an exception occurs. How would the memory layout look like.</p><p>It does not matter much at this point whether the code is perfectly clean or contains obvious bugs.</p><blockquote>Watching the candidate carefully explain what is the code supposed to do on each step gives quite a few insights into the way they think and talk.</blockquote><p>As well as into what other areas are worth going deeper into.</p><p>And, at the end, those are the skills that are to be probed during a technical interview. Not the skills to use an API and the skills to use an IDE to produce the code that accomplishes certain task.</p><h4><strong>Whiteboard coding helps because:</strong></h4><ul><li><strong>The contents of the whiteboard stays more or less immutable.</strong></li><li><strong>Changing the marker to color code “original code by the candidate”, “interviewer comments” and “candidate comments” is a great way to visualize the conversation.</strong></li></ul><h3><strong>Is it possible to assess the above set of skills without the whiteboard?</strong></h3><p>Yes and no.</p><blockquote>For the part of writing clean code, I have no problem with allowing the candidate to code on their laptop.</blockquote><p>The constraints would be:</p><ul><li>The code is projected onto a huge screen.</li><li>The font is extremely large.</li><li>Most or all IDE features are turned off.</li></ul><p>Keep in mind that coding on an unfamiliar OS, keyboard and even editor is a challenge that is comparable, if not worse, than coding on a whiteboard. Either let them use their own machine, or confirm that the setup you may offer is comfortable enough for them.</p><blockquote>For the part of reasoning about the code, whiteboard really helps.</blockquote><p>Ideally, if the projector surface is itself a whiteboard, I would gladly allow the candidate to get to the projected code and take it from there, with a few markers in our hands.</p><p>I would, however, make it very explicit that getting back to the keyboard and “quickly fixing” certain things would not be allowed.</p><p>If there are only two people talking, and the printer is nearby, printing out the code — in a huge font — and analyzing it with a few colored pens works very well too.</p><h3><strong>Teaching helps practice those skills.</strong></h3><p>I am often asked how can one master the skills above. One answer I like to give is: <strong>Teaching helps a lot.</strong></p><p>It improves both the skills of being an interviewer and an interviewee.</p><p>Myself, I have a very simple standard of my own level of knowledge. I consider my knowledge in certain area deep if I can give a talk and explain it without preparation.</p><p>In software, among other things, this implies writing flawless code without hitting a backspace once, and then explaining what it does, step by step.</p><p>If you often are the person who is being called over to explain certain algorithm or API — then you would likely have no problems passing and hosting whiteboard coding interviews.</p><h3><strong>Resume: Is whiteboard coding a necessary part of an interview?</strong></h3><p>It certainly is very helpful.</p><p>But one can get away without it.</p><p>Especially if there is a big screen onto which the code can be projected. Especially if this screen itself is a whiteboard surface on which the logic of the code can be explained afterwards, with a few colorful markers.</p><p>I personally like to gently push people towards the whiteboard until it works. And see no reason to retire this approach☺</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9eddf98bde18" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How API-First Development Boosts Productivity]]></title>
            <link>https://medium.com/@lob/how-api-first-development-boosts-productivity-6688fc489ef4?source=rss----eb75757499fe---4</link>
            <guid isPermaLink="false">https://medium.com/p/6688fc489ef4</guid>
            <dc:creator><![CDATA[Lob]]></dc:creator>
            <pubDate>Tue, 08 Apr 2014 17:15:38 GMT</pubDate>
            <atom:updated>2014-04-08T17:15:38.300Z</atom:updated>
            <content:encoded><![CDATA[<h4>www.Lob.com</h4><p>Here at Lob, we are an API company. That means that not only are our external product offerings all APIs, but that all of the internal tools we build are also APIs. We believe that an API-first approach to development improves the quality of our code and empowers our developers to be more productive.</p><h4>What is API-First Development?</h4><p>API-first development is the idea that whenever you are developing a piece of shared functionality for your organization it should be exposed as a RESTful HTTP API to all of your other developers. Rather than creating a library or module that needs to be added to all code bases requiring the functionality, developers can consume all the necessary functionality through the API. Having developers consume all functionality through an API enforces separation of concerns and hides internal complexity.</p><h4>Enforcing Separation of Concerns</h4><p>One of the most basic examples of using API-first development to enforce separation of concerns is to decouple the the front and back ends of a web application. In this case an API is created to house the business logic and data access (the back end) which is only responsible for communicating through a RESTful interface with the front end. This makes it much easier for developers to create a front-end website, native mobile apps, and consumer facing APIs using the same back end.</p><p>At Lob, we believe taking this separation even further makes it easier for our developers to quickly create high quality applications. In the example below you can see how the internal functionality for billing, accounts, and shipping have been moved to independent APIs that can be accessed over a RESTful interface.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gTWdaaj3O4pAW3XpmDLPpg.png" /><figcaption>Lob Internal Infrastructure</figcaption></figure><p>This means whenever our team needs to add a new product offering which involves billing, shipping, or accounts there is a well documented interface to work with.</p><h4>Hiding Complexity</h4><p>Providing internal functionality through a RESTful API allows developers to abstract the complexity of that functionality away from the developers consuming the API. Consuming developers only need to know about endpoints, responses, and errors which can all easily be handled with quality documentation.</p><p>If I am the developer in charge of the billing functionality here is just a sampling of the features I need to worry about.</p><ul><li>Multiple payment platforms (Stripe, Balanced, BrainTree, BitCoin, etc.)</li><li>Payment Cycles (recurring subscriptions, one time charges, etc.)</li><li>Issuing refunds and tracking credits</li><li>Following up on unpaid bills and expired credit cards</li></ul><p>However, if I am the developer in charge of a new product endpoint I am only concerned about things like <em>charge customer A $50 on June 12 </em>or <em>bill customer B $200 at the beginning of each month for the next year. </em>I’m not concerned about which payment provider is used to charge the customer, whether the customer has credits on file, or following up with a customer to get a valid credit card. Internal functionality through RESTful APIs allows developers to focus their energy on the complexities of their product rather than everyone else’s.</p><h4>Going Forward</h4><p>At Lob we believe that APIs are the future for how businesses will communicate with one another. Enforcing this type of communication between our internal teams allows us to develop more efficiently and to learn what works and what doesn’t when developing APIs. This has been a great learning experience for the team thus far. We have learned <a href="https://www.lob.com/blog/tech-that-drive-lob"><strong>what tools allow us to be the most efficient</strong></a> and which ones hinder efficiency — we have dropped CoffeeScript since that blog was written. The biggest challenges we have faced so far have been how to efficiently and comprehensively test API endpoints and how to version breaking changes in an API.</p><p>If you have any thoughts on the use of RESTful APIs for internal functionality, biggest challenges when developing APIs, or tools/techniques that you rely on for API development we would love to hear about them!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6688fc489ef4" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>