<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Pivotal Labs &#187; future</title>
	<atom:link href="http://pivotallabs.com/tag/future/feed/" rel="self" type="application/rss+xml" />
	<link>http://pivotallabs.com</link>
	<description>Agility Developed</description>
	<lastBuildDate>Wed, 19 Jun 2013 07:57:10 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>All evidence points to OOP being bullshit</title>
		<link>http://pivotallabs.com/all-evidence-points-to-oop-being-bullshit/</link>
		<comments>http://pivotallabs.com/all-evidence-points-to-oop-being-bullshit/#comments</comments>
		<pubDate>Fri, 22 Feb 2013 00:40:32 +0000</pubDate>
		<dc:creator>John Barker</dc:creator>
				<category><![CDATA[Labs]]></category>
		<category><![CDATA[composition]]></category>
		<category><![CDATA[fp]]></category>
		<category><![CDATA[functional]]></category>
		<category><![CDATA[future]]></category>
		<category><![CDATA[inheritance]]></category>
		<category><![CDATA[mutability]]></category>
		<category><![CDATA[ny]]></category>
		<category><![CDATA[nyc]]></category>
		<category><![CDATA[performance]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[rant]]></category>

		<guid isPermaLink="false">http://pivotallabs.com/?p=15387</guid>
		<description><![CDATA[<p>This is the second part in a series I&#8217;m writing about lessons that can be learned from functional programming. Find the first part here. Object Oriented Programming (OOP) as an idea has been oversold. The most commonly used languages in use today are designed around the idea of OOP. Extremist languages like Java force you to think of everything in terms of objects. But is Object Orientation (OO) a good idea? Does it have problems? Is it the right tool for everything? Let&#8217;s explore some of these questions in a slightly tongue in cheek and cathartic rant. Imperative vs Declarative The object-oriented model makes it easy to build up programs by accretion. What this often means, in practice, is that it provides a structured way to write spaghetti code. — Paul Graham Procedural programming languages are designed around the idea of enumerating the steps required to complete a task. OOP&#8230;</p><p>The post <a href="http://pivotallabs.com/all-evidence-points-to-oop-being-bullshit/">All evidence points to OOP being bullshit</a> appeared first on <a href="http://pivotallabs.com">Pivotal Labs</a>.</p>]]></description>
				<content:encoded><![CDATA[<p><em>This is the second part in a series I&#8217;m writing about lessons that can be learned from functional programming. Find the first part <a href="http://pivotallabs.com/why-you-should-care-about-functional-programming/">here</a>.</em></p>
<p>Object Oriented Programming (OOP) as an idea has been oversold. The most commonly used languages in use today are designed around the idea of OOP. Extremist languages like Java force you to think of everything in terms of objects. But is Object Orientation (OO) a good idea? Does it have problems? Is it the right tool for everything? Let&#8217;s explore some of these questions in a slightly tongue in cheek and <a href="http://vimeo.com/43380467">cathartic rant</a>.</p>
<h1>Imperative vs Declarative</h1>
<blockquote><p>The object-oriented model makes it easy to build up programs by accretion. What this often means, in practice, is that it provides a structured way to write spaghetti code. — Paul Graham</p></blockquote>
<p>Procedural programming languages are designed around the idea of enumerating the steps required to complete a task. OOP languages are the same in that they are imperative &#8211; they are still essentially about giving the computer a sequence of commands to execute. What OOP introduces are abstractions that attempt to improve code sharing and security. In many ways it is still essentially procedural code.</p>
<p>Declarative languages on the other hand are about describing computation. While a a declarative language necessarily maps down to imperative code, the resulting code often reveals <a href="http://notes-on-haskell.blogspot.com/2007/02/whats-wrong-with-for-loop.html">less incidental complexity</a> and can sometimes be much more easily parallelized.</p>
<h1>State</h1>
<blockquote><p>The problem with object-oriented languages is they’ve got all this implicit environment that they carry around with them. You wanted a banana but what you got was a gorilla holding the banana and the entire jungle. — Joe Armstrong</p></blockquote>
<p>State is not your friend, state is your enemy. Changes to state make programs harder to reason about, harder to test and harder to debug. Stateful programs are harder to parallelize, and this is important in a world moving towards more units, more cores and more work. OOP languages encourage <a href="http://www.infoq.com/presentations/Simple-Made-Easy">mutability, non determinism and complexity</a>.</p>
<p>As someone who was initially hostile to the idea that state is the root of all problems, I initially greeted this idea with skepticism. Mutating state is so easy and fundamental in OOP that you often overlook how often it happens. If you&#8217;re invoking a method on an object that&#8217;s not a getter, you&#8217;re probably mutating state.</p>
<h1>Nouns and Verbs</h1>
<blockquote><p>Java is the most distressing thing to happen to computing since MS-DOS. — Alan Kay</p></blockquote>
<p>The typical college introduction to OOP starts with a gentle introduction to objects as metaphors for real world concepts. Very few real world OOP programs even consist entirely of nouns, they&#8217;re filled with <a href="http://steve-yegge.blogspot.com/2006/03/execution-in-kingdom-of-nouns.html">verbs masquerading as nouns: strategies, factories and commands</a>. Software as a mechanism for directing a computer to do work is primarily concerned with <em>verbs.</em></p>
<p>OOP programs that exhibit low coupling, cohesion and good reusability sometimes feel like nebulous constellations, with hundreds of tiny objects all interacting with each other. Sacrificing readability for changeability. Many of  <a href="http://en.wikipedia.org/wiki/SOLID_(object-oriented_design)">OOP best practices</a> are in fact encouraged by functional programming languages.</p>
<h1>Inheritance vs composition</h1>
<blockquote><p>Object-oriented programming is an exceptionally bad idea which could only have originated in California — Edsger W. Dijkstra</p></blockquote>
<p>Inheritance is one of the primary mechanisms for sharing code in an an OO language. But this idea is so problematic that even the keenest advocates of OO <a href="http://en.wikipedia.org/wiki/Composition_over_inheritance">discourage this pattern</a>. Inheritance forces you to define the taxonomy and structure of your application in advance, with all it&#8217;s connections and intricacies. This structure is <a href="https://github.com/raganwald/homoiconic/blob/master/2010/12/oop.md">resistant to change</a> which is one of the primary problems software developers face every day. It also <a href="http://en.wikipedia.org/wiki/Circle-ellipse_problem">fails to model</a> some pretty fundamental concepts.</p>
<h1>Further reading</h1>
<p>This is far from an <a href="http://c2.com/cgi/wiki?ArgumentsAgainstOop">exhaustive list of the criticisms leveled at OOP</a>. While I believe the problems with OOP are extensive, I do think it is a valuable mechanism for developing software. But is certainly not the only one. The biggest problem in my mind is thus:</p>
<p>When people overcome the significant hurdle of fully appreciating OOP, they tend to apply it to every problem. OOP becomes the solution, and every problem looks like a nail.</p>
<p>There&#8217;s got to be a better way&#8230;</p>
<p>The post <a href="http://pivotallabs.com/all-evidence-points-to-oop-being-bullshit/">All evidence points to OOP being bullshit</a> appeared first on <a href="http://pivotallabs.com">Pivotal Labs</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://pivotallabs.com/all-evidence-points-to-oop-being-bullshit/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Why you should care about functional programming.</title>
		<link>http://pivotallabs.com/why-you-should-care-about-functional-programming/</link>
		<comments>http://pivotallabs.com/why-you-should-care-about-functional-programming/#comments</comments>
		<pubDate>Wed, 30 Jan 2013 18:21:44 +0000</pubDate>
		<dc:creator>John Barker</dc:creator>
				<category><![CDATA[Labs]]></category>
		<category><![CDATA[clojure]]></category>
		<category><![CDATA[fp]]></category>
		<category><![CDATA[functional]]></category>
		<category><![CDATA[future]]></category>
		<category><![CDATA[lisp]]></category>
		<category><![CDATA[nyc]]></category>
		<category><![CDATA[performance]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[scala]]></category>

		<guid isPermaLink="false">http://pivotallabs.com/?p=12024</guid>
		<description><![CDATA[<p>I&#8217;ve been experimenting with functional programming (FP) languages for a little while now and their acceptance is generally increasing amongst the wider developer community. This is the first post in a series of articles I hope to do that explore FP, what it is and what we could learn from this trend. Why now? Functional programming languages are by no means new. LISP often thought of as one of the first programming languages was developed in 1958. IPL a sort of assembler like symbolic language appeared in 1954. The foundations of FP are embedded in mathematical constructs much older than the concept of an electronic computer. But for all intents and purposes they sort of disappeared into obscurity, replaced by procedural languages like C or Object Orientated (OO) like C++ or Java. Partially because they were impractical &#8211; some of the constructs used by FP languages performed worse than their imperative counterparts. In a&#8230;</p><p>The post <a href="http://pivotallabs.com/why-you-should-care-about-functional-programming/">Why you should care about functional programming.</a> appeared first on <a href="http://pivotallabs.com">Pivotal Labs</a>.</p>]]></description>
				<content:encoded><![CDATA[<p>I&#8217;ve been experimenting with functional programming (FP) languages for a little while now and their acceptance is generally increasing amongst the wider developer community. This is the first post in a series of articles I hope to do that explore FP, what it is and what we could learn from this trend.</p>
<h1>Why now?</h1>
<p>Functional programming languages are by no means new. LISP often thought of as one of the first programming languages was developed in 1958. IPL a sort of assembler like symbolic language appeared in 1954. The foundations of FP are embedded in mathematical constructs much older than the concept of an electronic computer.</p>
<p>But for all intents and purposes they sort of disappeared into obscurity, replaced by procedural languages like C or Object Orientated (OO) like C++ or Java. Partially because they were impractical &#8211; some of the constructs used by FP languages performed worse than their imperative counterparts. In a time when CPU power was scarce, this was not an option.</p>
<h1>A different age</h1>
<p>Thanks to Moore&#8217;s law this has changed somewhat. Computers now are certainly more powerful then they were when the first LISP interpreter appeared. But the ever scaling MHZ peak has slowed. New CPUs come with more cores, not more cycles. To take advantage of these improvements we need to look to parallelization and FP languages are inherently suited to this kind of work.</p>
<p>I am not alone in recognizing this. IBM released <a href="http://www.ibm.com/developerworks/library/j-ft20/">this article</a> recognizing the rising trend. ThoughtWorks has identified Scala and Clojure in its technology radar and recognizes momentum building behind several FP languages: <a href="http://www.drdobbs.com/mobile/thoughtworks-eyes-seismic-shift-in-progr/240009675">http://www.drdobbs.com/mobile/thoughtworks-eyes-seismic-shift-in-progr/240009675</a>. Spend any time on <a href="http://news.ycombinator.com/">Hacker News</a> and you&#8217;ll regularly see links on the topic.</p>
<p>I feel like FP is an idea whose time has come and I&#8217;m very excited by the new languages, ideas and technologies that are appearing. Hopefully Pivotal Labs will someday join me on this journey.</p>
<p>The post <a href="http://pivotallabs.com/why-you-should-care-about-functional-programming/">Why you should care about functional programming.</a> appeared first on <a href="http://pivotallabs.com">Pivotal Labs</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://pivotallabs.com/why-you-should-care-about-functional-programming/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic (Feed is rejected)
Page Caching using apc
Database Caching 3/7 queries in 0.004 seconds using apc
Object Caching 512/520 objects using apc

 Served from: pivotallabs.com @ 2013-06-19 07:26:12 by W3 Total Cache -->