<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title>Daemon.co.za</title>
		<description>Online Presence of Adrian Rossouw</description>
    <link>http://daemon.co.za/</link>
    <pubDate>Sun, 14 Jan 2024 04:51:45 +0000</pubDate>
    <lastBuildDate>Sun, 14 Jan 2024 04:51:45 +0000</lastBuildDate>
    
		
			<item>
				<title>The Rise of Microservices</title>
        <pubDate>Fri, 23 Jan 2015 00:00:00 +0000</pubDate>
				<description>&lt;p&gt;&lt;a href=&quot;http://martinfowler.com/articles/microservices.html&quot;&gt;Microservices&lt;/a&gt; are a very old idea that have picked up a new head of steam, and they are becoming a very popular approach to building applications with node.js.&lt;/p&gt;

&lt;p&gt;I have &lt;a href=&quot;http://daemon.co.za/2014/04/monkeys-and-microservices&quot;&gt;written about them in the past&lt;/a&gt;, but I have many months of experience migrating a monolithic app to a set of services now, so it was a good time to bundle everything up and share the knowledge.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Slides from this presentation: arrow keys or space navigates between slides.&lt;/strong&gt;&lt;/p&gt;

&lt;div class=&quot;img-wrapper&quot;&gt;
   &lt;a href=&quot;http://adrianrossouw.github.io/rise-of-microservices&quot;&gt;&lt;img alt=&quot;rise of microservices slides&quot; src=&quot;/img/rise-microservices.png&quot; /&gt;&lt;/a&gt;
&lt;/div&gt;

&lt;p&gt;Instead of building a single application, why not build many applications that communicate over standard network protocols? With each service being very small (often around 100 lines of code), they become very easy to build and compose into new systems.&lt;/p&gt;

&lt;p&gt;While they do have a lot of promise of being much more developer friendly, flexible and scaleable, there is no such thing as a silver bullet, and every benefit comes with some drawbacks.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Originally built for the &lt;a href=&quot;http://www.meetup.com/nodecpt/events/199313432/&quot;&gt;Node.js Cape Town user group&lt;/a&gt;, but I have presented these a couple of times since. The &lt;a href=&quot;https://adrianrossouw.github.io/rise-of-microservices&quot;&gt;microservice slides&lt;/a&gt;, and &lt;a href=&quot;https://github.com/AdrianRossouw/rise-of-microservices&quot;&gt;source code&lt;/a&gt; are available on &lt;a href=&quot;https://github.com/AdrianRossouw&quot;&gt;my github account&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;!--break--&gt;
</description>
        <guid>http://daemon.co.za//2015/01/rise-of-microservices</guid>
				<link>http://daemon.co.za/2015/01/rise-of-microservices</link>
			</item>
		
			<item>
				<title>What does "Full-Stack" mean?</title>
        <pubDate>Fri, 25 Apr 2014 00:00:00 +0000</pubDate>
				<description>&lt;p&gt;Last week we had the introduction to my series on the &lt;a href=&quot;/2014/04/introduction-fullstack-fundamentals&quot;&gt;Full-Stack Fundamentals&lt;/a&gt;, but I left some in my target audience confused as to why they needed to be pay attention. This is completely understandable because, for an industry that requires precision, we use a lot of terminology that is actually quite ill-defined.&lt;/p&gt;

&lt;p&gt;After some research I’ve concluded that being a “Full-Stack Engineer” has a range of meanings, and it’s probably best if I show you the bigger picture.&lt;/p&gt;

&lt;!--more--&gt;

&lt;div class=&quot;figure-wrapper&quot;&gt;
    &lt;a href=&quot;/img/fullstack.venn.jpg&quot;&gt;&lt;img alt=&quot;fullstack venn diagram&quot; src=&quot;/img/fullstack.venn.jpg&quot; /&gt;&lt;/a&gt;
&lt;/div&gt;

&lt;div class=&quot;bs-callout bs-callout-warning&quot;&gt;This diagram isn't the literal truth, merely a representation of one aspect of it.&lt;/div&gt;

&lt;h2 id=&quot;disciplines&quot;&gt;Disciplines&lt;/h2&gt;

&lt;p&gt;Almost every position in our industry involves a combination of the following.&lt;/p&gt;

&lt;dl&gt;
&lt;dt&gt;Empathy&lt;/dt&gt;
&lt;dd&gt;Communication, leadership and other &quot;Soft-Skills&quot;.&lt;br /&gt;Ability to see from someone's point-of-view.&lt;/dd&gt;
&lt;dt&gt;Design&lt;/dt&gt;
&lt;dd&gt;Creativity and planning.&lt;br /&gt;Not just visual; also interaction design, etc.&lt;/dd&gt;
&lt;dt&gt;Code&lt;/dt&gt;
&lt;dd&gt;Actual building of software.&lt;br /&gt;Includes debugging, version control, unit tests, etc.&lt;/dd&gt;
&lt;dt&gt;Systems&lt;/dt&gt;
&lt;dd&gt;Networking, databases and operations.&lt;br /&gt;Data: how to store, access and transfer it.&lt;/dd&gt;
&lt;/dl&gt;

&lt;p&gt;DevOps is on the intersection of Code + Systems.&lt;br /&gt;
Interface Design is on the intersection of Code + Empathy + Design.&lt;br /&gt;
Let’s explore where “Full-Stack Engineers” fall on it.&lt;/p&gt;

&lt;div class=&quot;img-wrapper&quot;&gt;
    &lt;img src=&quot;/img/header/web-stack.jpg&quot; /&gt;
&lt;/div&gt;

&lt;h2 id=&quot;the-minimum-and-lesser-spotted-definition&quot;&gt;The Minimum and Lesser-Spotted Definition&lt;/h2&gt;

&lt;p&gt;Mostly when people call themselves full-stack, they mean in this way; the narrowest definition of the term. This is almost indistinguishable from what we know as “web developers”, which dilutes the original meaning.&lt;/p&gt;

&lt;p&gt;I think it is a valid definition, because it really depends on what you consider “the stack” to be. In this case it means the front-end, the back-end and some form of database.&lt;/p&gt;

&lt;h3 id=&quot;defining-feature&quot;&gt;Defining Feature&lt;/h3&gt;
&lt;p&gt;You can build the front-end and back-end of a site on your own. You can set up and manage the servers, configure and maintain the database.&lt;/p&gt;

&lt;h3 id=&quot;required-skills&quot;&gt;Required Skills&lt;/h3&gt;

&lt;p&gt;You will need to know at least one programming language for the front-end, and one programming language for the back-end. Since the front-end has to be JavaScript, choosing JavaScript for the back-end means you are done.&lt;/p&gt;

&lt;p&gt;You don’t need to be the world’s best programmer, but there is a lot of domain knowledge that you will need to gain.&lt;/p&gt;

&lt;p&gt;You don’t need to be the world’s best designer, but you need to able to visualize an outcome and then be able to express it in code. To be able to implement your designs, you are going to need more than a glancing familiarity with foundations of the browser environment.&lt;/p&gt;

&lt;p&gt;You need just enough database and network experience to be the full package, but mostly this kind of developer knows just enough to be dangerous.&lt;/p&gt;

&lt;h3 id=&quot;the-difference&quot;&gt;The Difference&lt;/h3&gt;

&lt;p&gt;The only real difference between these is your starting point. Are you coming from the code or design disciplines? A designer learning enough about code and systems is a much rarer animal than a developer learning enough about design.&lt;/p&gt;

&lt;p&gt;They have contrasting mechanisms for improvement too. The computer will tell you when your code is wrong, but you have to trust
your instincts on whether your design works. You probably need some level of talent to improve your design skills much,
but programming mostly involves practice and determination.&lt;/p&gt;

&lt;p&gt;I don’t think the distinction between the front-end and the back-end is as important as people make it out
to be, but you will need to have solid footing in both.&lt;/p&gt;

&lt;div class=&quot;img-wrapper&quot;&gt;
    &lt;img src=&quot;/img/header/stone-stack.jpg&quot; /&gt;
&lt;/div&gt;

&lt;h2 id=&quot;the-classical-definition&quot;&gt;The Classical Definition&lt;/h2&gt;

&lt;p&gt;This is the point where things become a bit enterprisey, or dare I say it, web-scale.&lt;/p&gt;

&lt;p&gt;The term was popularized about 5 years ago in a &lt;a href=&quot;https://www.facebook.com/notes/facebook-engineering/the-full-stack-part-i/461505383919&quot;&gt;pretty informative post from Facebook’s engineering department&lt;/a&gt;. The context here is vastly different from just building a web-app, and relies on a much wider set of skills.&lt;/p&gt;

&lt;p&gt;From this perspective, you are looking as the “stack” as being the entire distributed system. The front-end, back-end, datastores, message queues, networks, data centers .. everything.&lt;/p&gt;

&lt;h3 id=&quot;definining-feature&quot;&gt;Definining Feature&lt;/h3&gt;

&lt;blockquote&gt;&lt;p&gt;&quot;The ability to quickly discard bad solutions, without actually building them, is a lot of what good systems programming is. Some of that is instinct, some experience, but a lot of it is algebra.&quot;&lt;/p&gt;
  &lt;footer&gt;Keith Adams&lt;/footer&gt;
&lt;/blockquote&gt;

&lt;h3 id=&quot;required-skills-1&quot;&gt;Required Skills&lt;/h3&gt;

&lt;p&gt;You need to have a solid level of experience in a few different languages (you shouldnt just be a “all i know is java so i do everything in java” programmer). Industry best practices such as version control, testing and backups, and various development metholodogies will be second nature to you at this point.&lt;/p&gt;

&lt;p&gt;You will need to understand the shape of data, and how it flows through the network. How does it need to be accessed, and changed? There is a really deep level of knowledge needed to understand performance implications in distributed systems, so you will know how best to structure your system to avoid these bottlenecks.&lt;/p&gt;

&lt;p&gt;At the &lt;em&gt;bare minimum&lt;/em&gt; you will need to know at least one NoSQL database, and one relational database. You don’t need to know both of them equally well, but you need to be able to
understand that they have different strengths and weaknesses, trying to jam every type of data into the same container is only going to lead to problems in the long term.&lt;/p&gt;

&lt;p&gt;It’s unlikely that you will get away just using your favorite tools all the time, so you will need to understand how to evaluate other data stores, what kind of performance
you can expect and what kind of data you should use them with.&lt;/p&gt;

&lt;p&gt;Deep understanding of operating systems and virtualization will be a necessity, and you need to be able to build and manage servers, write deployment scripts and manage releases.&lt;/p&gt;

&lt;p&gt;You need to be able to quickly diagnose problems that occur in complex systems, and figure out how to resolve them. 
At this level it is very unlikely you will be working alone, so you have to be able to clearly communicate with team members to aid the decision making process.&lt;/p&gt;

&lt;div class=&quot;img-wrapper&quot;&gt;
    &lt;img src=&quot;/img/header/unicorn.jpg&quot; /&gt;
&lt;/div&gt;

&lt;h2 id=&quot;unicorns-and-other-mythical-beasts&quot;&gt;Unicorns and other mythical beasts&lt;/h2&gt;

&lt;p&gt;Many of the definitions have points that have no relation to programming at all, because empathy is a critical skill for effective communication.&lt;/p&gt;

&lt;p&gt;The scope here is to consider all of the things that happen on the technical level as just part of a separate tech stack. You now have to be able to consider
the environment in which these decisions need to be made.&lt;/p&gt;

&lt;h3 id=&quot;defining-feature-1&quot;&gt;Defining Feature&lt;/h3&gt;

&lt;p&gt;Being able to see past the details, and figure out what the user actually needs. Using your
knowledge of the entire tech stack to make decisions that can actually be accomplished. Knowing the
capabilities of the business to deliver on any promises you make. Being able to motivate and manage
others to help you reach that goal.&lt;/p&gt;

&lt;h3 id=&quot;required-skills-2&quot;&gt;Required skills&lt;/h3&gt;

&lt;blockquote&gt;
&lt;dl&gt;
&lt;dt&gt;em·pa·thy, ˈempəTHē/&lt;/dt&gt;
&lt;dd&gt;&lt;strong&gt;1. the ability to understand and share the feelings of another.&lt;/strong&gt;&lt;/dd&gt;
&lt;/dl&gt;
&lt;/blockquote&gt;

&lt;p&gt;This isnt something I care to write a great deal about, but I needed to include it because this is probably the thing that actually drives
the value for business.&lt;/p&gt;

&lt;p&gt;You need to know how to ask the right questions, and what the right questions are to ask. If we implement this feature, does it further
our goals as a company or make the lives of our users easier? That kind of thing.&lt;/p&gt;

&lt;p&gt;You need to be able to understand what matters to your collaborators, and avoid triggering a defensive reaction to new views that are shared.
Nobody likes being told they are wrong, and nobody likes admitting that they are.&lt;/p&gt;

&lt;p&gt;All of your know-how isn’t going to make any difference to a project if you aren’t able to share what you know in a way
that your team will be able to make use of it. This goes beyond just logically arguing a point, and requires you to strike the right
tone and share the right message.&lt;/p&gt;

&lt;p&gt;You will also need to be able to swallow your pride, and just do what needs to be done. You need to acknowledge that you can’t know everything
about everything, but know enough about those things to be able to recieve help from others graciously.&lt;/p&gt;

&lt;div class=&quot;img-wrapper&quot;&gt;
    &lt;img src=&quot;/img/header/stack-rope.jpg&quot; /&gt;
&lt;/div&gt;

&lt;p&gt;So yes, it is impossible to nail down a single meaning; I think it still seems to have allowed people to communicate some very abstract ideas, which they would have needed to invent terminology for anyway.&lt;/p&gt;

&lt;p&gt;There is probably a deeper philosophic principle at play here, about the point where any term becomes so vague that it ceases to have any meaning, or so specific that it doesn’t allow people with different perspectives to communicate about complex subjects.&lt;/p&gt;

&lt;p&gt;Being full stack is not a destination you can ever really reach. It is a constant process of expanding your knowledge of how things work,
how the parts fit together, and the reasons for things working that way. Whatever your “stack” is, it’s probably a tiny speck in a much
larger one.&lt;/p&gt;

&lt;p&gt;This is not a new idea either. There is a much older term called &lt;a href=&quot;http://en.wikipedia.org/wiki/T-shaped_skills&quot;&gt;“T-Shaped Skills”&lt;/a&gt;, that are defined as having a deep specialization in one
area but having a broad working knowledge in many other related areas. Way before that, people who aimed for this were called renaissance men.&lt;/p&gt;

&lt;p&gt;Everything old is new again.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;a href=&quot;http://www.reddit.com/r/FullStack/comments/24534d/what_does_fullstack_mean/&quot;&gt;Discussion on the /r/FullStack subreddit&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;
</description>
        <guid>http://daemon.co.za//2014/04/what-does-full-stack-mean</guid>
				<link>http://daemon.co.za/2014/04/what-does-full-stack-mean</link>
			</item>
		
			<item>
				<title>When is MongoDB the Right Tool for the Job?</title>
        <pubDate>Tue, 08 Apr 2014 00:00:00 +0000</pubDate>
				<description>&lt;p&gt;Recently, I’ve been mentoring a few full-stack developers through a process that bears some similarity to the &lt;a href=&quot;http://datascienceretreat.com/meerkat-method.html&quot;&gt;Meerkat Method&lt;/a&gt;. Since I also intend to publish a series of articles about the whole journey, I have to be careful to keep things factual and honest.&lt;/p&gt;

&lt;p&gt;This puts me in a quandary, because my recent stint on the job market has shown that just about everybody is using &lt;a href=&quot;https://www.mongodb.com&quot;&gt;MongoDB&lt;/a&gt;, and I’ve just never been in any situation that I have needed to use it.&lt;/p&gt;

&lt;p&gt;I also can’t foresee any situation where there is a solid technical reason for choosing MongoDB over it’s competitors either, and the last thing I want to do is lead people astray or foist my preconceptions onto them.&lt;/p&gt;

&lt;!--more--&gt;

&lt;h2 id=&quot;why-mongodb&quot;&gt;Why MongoDB?&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;I’m looking for the cases where MongoDB was the right technical decision to make.&lt;/strong&gt; I’m finding it really difficult to cut through the FUD to find any really impartial information about it.&lt;/p&gt;

&lt;p&gt;This is something I have been asking other developers privately, and in some cases such as this &lt;a href=&quot;https://news.ycombinator.com/item?id=7446919&quot;&gt;AskHN&lt;/a&gt; and &lt;a href=&quot;https://news.ycombinator.com/item?id=7498637&quot;&gt;again a few days later&lt;/a&gt;, publicly. I am &lt;strong&gt;not&lt;/strong&gt; trolling here, I genuinely want to know.&lt;/p&gt;

&lt;p&gt;As some of my students are hoping to use these skills I share with them on the job market, I am either going to have to buckle down and learn it, or have a concrete reason not to.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;I want to know what your data looks like.&lt;/strong&gt; What are the data access patterns, how much of it is there, how much trouble did you have building it, scaling it, but especially maintaining it?&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Show me your algorithm and I will remain puzzled,&lt;br /&gt;
but show me your data structure and I will be enlightened.&lt;/p&gt;
&lt;footer&gt;Old programming proverb&lt;/footer&gt;&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;I want to know the reasons you had for choosing Mongo.&lt;/strong&gt; What databases were you using originally, what other databases did you evaluate, and why did you decide against them?&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Would you use MongoDB again?&lt;/strong&gt; If you had to do it all over again, would you make the same choice, or would you use one of the other options such as &lt;a href=&quot;http://postgresql.org&quot;&gt;PostgreSQL&lt;/a&gt;, &lt;a href=&quot;http://redis.io/&quot;&gt;Redis&lt;/a&gt;, &lt;a href=&quot;http://couchdb.org&quot;&gt;CouchDB&lt;/a&gt;, &lt;a href=&quot;http://elasticsearch.org&quot;&gt;ElasticSearch&lt;/a&gt;, or any of the &lt;a href=&quot;http://en.wikipedia.org/wiki/NoSQL#Examples&quot;&gt;dozens of competitors&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;I’m not looking for more MongoDB horror stories.&lt;/strong&gt; There are plenty of those out there already. All that noise makes it really difficult to evaluate MongoDB on a technical level.&lt;/p&gt;

&lt;h2 id=&quot;my-current-perception-of-mongodb&quot;&gt;My current perception of MongoDB.&lt;/h2&gt;

&lt;div class=&quot;alert alert-info&quot;&gt;
Read my post on a &lt;a href=&quot;/2014/03/simple-and-easy-vocabulary-to-describe-software-complexity&quot;&gt;vocabulary to describe software complexity&lt;/a&gt; for the exact meanings of the terms &lt;strong&gt;simple&lt;/strong&gt;, &lt;strong&gt;easy&lt;/strong&gt;, &lt;strong&gt;complex&lt;/strong&gt;, &lt;strong&gt;hard&lt;/strong&gt;, &lt;strong&gt;complect&lt;/strong&gt; and &lt;strong&gt;simplify&lt;/strong&gt; as used in this context.
&lt;/div&gt;

&lt;p&gt;I’m not saying that I am free of biases myself. Everybody has them, and I’m no different. I just don’t feel comfortable making any kind
of blanket statement about a technology unless I’ve done my due diligence. These are the things about it that I hope to prove or disprove.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The only benefit I can see in MongoDB is that it’s popular.&lt;/strong&gt; The only reason I can see for it being popular, is that everybody uses it, and so on.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;I worry about vendor lock-in.&lt;/strong&gt; I spent years working with MySQL when I thought PostgreSQL was superior. The difference is that
they were so closely related that the majority of database code I wrote was incredibly portable between them.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;I have deep reservations about any database that is as prone to catastrophic failure.&lt;/strong&gt; I’m not really sure that the possibility to configure it correctly
in any way makes up for the fact that it just doesn’t come with sane defaults.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;A lot of people are saying that MongoDB is very easy,&lt;/strong&gt; if you are only familiar with relational databases. I’m not convinced that not being relational is
a good enough reason to choose it if you are really going for something familiar.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;It really just seems too complex to me.&lt;/strong&gt; MongoDB just tries to do so much, that it doesn’t surprise me that
there are all of these nightmares with it. Redis I get, CouchDB I get, ElasticSearch I get. MongoDB? Not so much.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why is one of the major pluses that it has a really popular ORM for it?&lt;/strong&gt; I don’t like ORM’s at the best of times, but using one for a non-relational database
just feels really strange to me. It’s NoSQL so the first thing you do is declaratively define your schema?&lt;/p&gt;

&lt;h2 id=&quot;i-dont-mind-being-proven-wrong&quot;&gt;I don’t mind being proven wrong&lt;/h2&gt;

&lt;p&gt;I actually kind of enjoy it, because I find that I can &lt;a href=&quot;/2014/03/wrong-to-be-afraid-of-angular&quot;&gt;learn so much from those experiences&lt;/a&gt;.
I &lt;strong&gt;will&lt;/strong&gt; update this post, or even write a new one if I manage to learn anything from this process.&lt;/p&gt;

&lt;p&gt;For instance, the &lt;a href=&quot;https://news.ycombinator.com/item?id=7498803&quot;&gt;one use case I have found&lt;/a&gt; so far that actually makes a lot of sense.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Geolocation, specifically GeoJSON … I’m not doing trivial ‘find my 3 places near [y,x]’ queries, but am traversing a pseudo-network of routes to calculate directions. Neo4j also wouldn’t have worked in my case.&lt;/p&gt;
&lt;footer&gt;&lt;a href=&quot;https://news.ycombinator.com/item?id=7498803&quot;&gt;Nevi-M on HN&lt;/a&gt;&lt;/footer&gt;&lt;/blockquote&gt;

&lt;p&gt;I believe it because PostGIS/spatialite were so incredibly frustrating to move GeoJSON around in, and GeoCouch wasn’t up to scratch either. I don’t know if it would still be the right tool now, but I am willing to admit it was the right decision back then.&lt;/p&gt;

&lt;h2 id=&quot;how-to-reach-me&quot;&gt;How to reach me&lt;/h2&gt;

&lt;p&gt;I don’t have comments on this blog, but I will read and respond to anything posted on:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;The &lt;a href=&quot;https://news.ycombinator.com/item?id=7551125&quot;&gt;HackerNews discussion&lt;/a&gt;.&lt;/li&gt;
  &lt;li&gt;The &lt;a href=&quot;http://www.reddit.com/r/programming/comments/22hf4c/when_is_mongodb_the_right_tool_for_the_job/&quot;&gt;/r/programming thread&lt;/a&gt;.&lt;/li&gt;
  &lt;li&gt;You could even leave an &lt;a href=&quot;https://github.com/Vertice/daemon-co-za/issues&quot;&gt;issue on GitHub&lt;/a&gt; for me.&lt;/li&gt;
&lt;/ul&gt;

&lt;aside class=&quot;bs-callout bs-callout-warning&quot;&gt;&lt;strong&gt;Please try to be impartial.&lt;/strong&gt; A lot of the feedback I have seen is that the way that MongoDB has been sold to developers is a large part of the problem. I am going to find it difficult to place a lot of trust in any party that stands to gain from selling Mongo as a product.&lt;/aside&gt;

&lt;h2 id=&quot;unless-otherwise-convinced&quot;&gt;Unless otherwise convinced&lt;/h2&gt;

&lt;p&gt;I will probably teach them the tools that I know the best. Those would be CouchDB as a data store, ElasticSearch as a search index and sometimes Redis to store sessions and other ephemeral data.&lt;/p&gt;

&lt;p&gt;Using CouchDB as a separate “source-of-truth” and doing queries and reads from ElasticSearch makes a lot of sense to me because those things often scale differently. It is also in-line  with some of the &lt;a href=&quot;http://vitalflux.com/data-handled-linkedin-com/&quot;&gt;data storage lessons that LinkedIn have shared recently&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Teaching CouchDB+ElasticSearch also means I can focus more on the principles of REST, and teach the concepts of node streams through the use of proxying connections around.&lt;/p&gt;

&lt;p&gt;This in turn would give me the opportunity to teach them about realtime systems such as Websockets or WebRTC instead of mucking around in MongoDB specifics.&lt;/p&gt;

&lt;p&gt;That’s probably the best course of action anyway, but I want to be able to take it with a clear conscience.&lt;/p&gt;
</description>
        <guid>http://daemon.co.za//2014/04/when-is-mongodb-the-right-tool</guid>
				<link>http://daemon.co.za/2014/04/when-is-mongodb-the-right-tool</link>
			</item>
		
			<item>
				<title>Of Monkeys and Microservices: Introduction</title>
        <pubDate>Thu, 03 Apr 2014 00:00:00 +0000</pubDate>
				<description>&lt;p&gt;This is the first in a series documenting the process of building
out an example application for the &lt;a href=&quot;http://senecajs.org/&quot;&gt;Seneca.js framework&lt;/a&gt;, which is built
around the concept of microservices. This post is more
about the theory behind microservices though, to lay the groundwork
for future posts as I embark on this journey.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;a href=&quot;http://nearform.com&quot;&gt;NearForm&lt;/a&gt; is paying for the development work,
but blogging about it is all me.&lt;/strong&gt;&lt;/p&gt;

&lt;!--more--&gt;

&lt;div class=&quot;bs-callout&quot;&gt;

&lt;h2 id=&quot;the-parable-of-the-programmable-primate&quot;&gt;The Parable of the Programmable Primate&lt;/h2&gt;

&lt;p&gt;&lt;em&gt;I’m starting here because I think it’s probably going to be easier if everybody knows&lt;br /&gt;
what kind of article this is going to be upfront.&lt;/em&gt;&lt;/p&gt;

&lt;h3&gt;It is helpful to think of your application as a monkey...&lt;/h3&gt;
&lt;div class=&quot;pull-right hidden-xs&quot;&gt;
&lt;img class=&quot;img-responsive&quot; src=&quot;/img/codemonkey.jpg&quot; /&gt;
&lt;footer class=&quot;bs-callout&quot;&gt;
   &lt;h4&gt;This is not your monkey!&lt;/h4&gt;
   &lt;p&gt;This monkey's name is Charles,&lt;br /&gt;
   and he's a better programmer&lt;br /&gt;
   than you will ever be.&lt;/p&gt;
   &lt;p&gt;If anything, I guess you could say&lt;br /&gt;he is &lt;a href=&quot;https://www.kickstarter.com/projects/gregpak/code-monkey-save-world&quot;&gt;JoCo and gPak's monkey&lt;/a&gt;&lt;/p&gt;
&lt;/footer&gt;
&lt;/div&gt;

&lt;p&gt;Your application is a monkey that you have trained to take a note from you, and then perform whatever actions are required to produce the results you asked for on the note&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;When it has finished reading the note:&lt;/strong&gt; it starts skittering around
the factory floor, running in no discernible pattern, dashing between a random subset of
these bespoke manafacturing behemoths on display in front of you.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Once it stops flipping levers&lt;/strong&gt; and feeding industrial offal into the various machines, it comes back to you and gives you (hopefully) the result you requested.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;If it doesn’t get everything perfectly right&lt;/strong&gt;, it might lose a limb on the belt sander, or set off a catastrophic factory fire.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The monkey might be cleverer than most&lt;/strong&gt;, but it’s still just a monkey. &lt;strong&gt;It doesn’t matter how well you dress it&lt;/strong&gt;, it is still always just going to stay a monkey.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The monkey can never be smarter than the one who trained  him&lt;/strong&gt;, so if you didn’t warn it about 
putting ball bearings in the industrial microwaves… that’s your fault. If you didn’t tell him &lt;em&gt;not&lt;/em&gt; to 
hand out the keys to your bitcoin vault when asked? That’s also your fault.&lt;/p&gt;


&lt;/div&gt;

&lt;div class=&quot;clearfix&quot;&gt;
I think my distaste for needless complexity is nothing more than the realization that suspending a &lt;a href=&quot;/2014/03/complexity-creeps-concerned-for-future-of-angular&quot;&gt;tightrope
over a pit of alligators&lt;/a&gt; between the industrial lathes and the smeltery might &lt;em&gt;look&lt;/em&gt; cool,
but you can never be sure your monkey isn't going to need to drag a crate of sousaphones across it.
&lt;/div&gt;

&lt;div class=&quot;img-wrapper&quot;&gt;
    &lt;img src=&quot;/img/monkey1.png&quot; /&gt;
&lt;/div&gt;

&lt;h2 id=&quot;how-do-you-train-a-better-monkey&quot;&gt;How do you train a better monkey?&lt;/h2&gt;

&lt;p&gt;When your monkey inevitably dies in a gruesome industrial accident, you are going to need to debug it by &lt;a href=&quot;http://en.wikipedia.org/wiki/Core_dump&quot;&gt;digging around in it’s
entrails&lt;/a&gt; or cloning a new one and &lt;a href=&quot;http://en.wikipedia.org/wiki/Debugger&quot;&gt;following it around carefully&lt;/a&gt; on the factory floor to see where it went wrong so you can train it how to do the right thing. You might even write some tests to include in future
monkey training regimens.&lt;/p&gt;

&lt;p&gt;You want to scale up your output? Sure, just build more factories with yet more monkeys. Redundancy is the same thing,
but you just leave a few spare factories and monkeys lying around for when the others explode.&lt;/p&gt;

&lt;p&gt;What about threads? There is no reason you can’t have more than one monkey per factory, you just have to be careful
to orchestrate it in such a way that they never run into each other or get into fights for the same 2x4 
from the wood pile.&lt;/p&gt;

&lt;div class=&quot;img-wrapper&quot;&gt;
    &lt;img src=&quot;/img/monkey2.png&quot; /&gt;
&lt;/div&gt;

&lt;h2 id=&quot;microservices-are-a-humane-alternative&quot;&gt;Microservices are a humane alternative&lt;/h2&gt;

&lt;p&gt;&lt;a href=&quot;http://martinfowler.com/articles/microservices.html&quot;&gt;Microservices&lt;/a&gt; are a relatively new and not widely known approach to designing systems
in an incredibly distributed fashion. I say &lt;em&gt;“relatively new”&lt;/em&gt;, but to put this into context,
there isn’t even a wikipedia entry for the term yet.&lt;/p&gt;

&lt;p&gt;What they come down to though, is the following :&lt;/p&gt;

&lt;div class=&quot;bs-callout&quot;&gt;

&lt;h3&gt;Why don't we just give each machine it's own monkey?&lt;/h3&gt;

&lt;p&gt;Every monkey would just get a note, with whatever resources it needed,&lt;br /&gt;
that tells it to &lt;strong&gt;do exactly one thing&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;If it is able, it does that one thing it knows how to do,&lt;br /&gt;
and then it will &lt;strong&gt;return the result&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;That is the sum total of the expectations we make of the monkey.&lt;/strong&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;p&gt;And also, no matter how you slice it, training a monkey to do only one thing with one known
set of inputs, is much much simpler and easier. Just about every monkey trainer out today
should be able to do it with their eyes closed, and only nominal amounts of facial scarring.&lt;/p&gt;

&lt;div class=&quot;img-wrapper&quot;&gt;
  &lt;img src=&quot;/img/monkey3.png&quot; /&gt;
&lt;/div&gt;

&lt;h2 id=&quot;benefits-of-a-many-monkey-maelstrom&quot;&gt;Benefits of a Many-Monkey Maelstrom&lt;/h2&gt;

&lt;p&gt;Apart from just allowing us monkey trainers to sleep easier, with the knowledge that we are causing less
senseless carnage, there are many benefits to this approach as well.&lt;/p&gt;

&lt;h3 id=&quot;scalability&quot;&gt;Scalability&lt;/h3&gt;

&lt;p&gt;Although not a requirement, systems designed this way are &lt;strong&gt;inherently distributable and parallelizable&lt;/strong&gt;, since 
all of the monkeys only need a message and the required resources, it doesn’t matter if they are
in the same factory, or hundreds of factories.&lt;/p&gt;

&lt;p&gt;That alone makes them &lt;strong&gt;easier to scale&lt;/strong&gt;, but let’s say you notice that it’s taking your monkey too 
long to paint things? How do you scale that? Easy, you just clone some more monkeys and give them paint brushes.&lt;/p&gt;

&lt;p&gt;Because of their very nature, they are also &lt;strong&gt;easier to build redundant systems with&lt;/strong&gt; because you
can switch out individual monkeys/machines on the fly without bringing the whole factory to a halt.&lt;/p&gt;

&lt;p&gt;You can even &lt;strong&gt;upgrade parts of your system without any downtime&lt;/strong&gt;, and with the right metrics and tooling
can even automatically rollback if any errors occur.&lt;/p&gt;

&lt;h3 id=&quot;simplicity&quot;&gt;Simplicity&lt;/h3&gt;

&lt;div class=&quot;alert alert-info&quot;&gt;
Read my post on a &lt;a href=&quot;/2014/03/simple-and-easy-vocabulary-to-describe-software-complexity&quot;&gt;vocabulary to describe software complexity&lt;/a&gt; for the exact meanings of the terms &lt;strong&gt;simple&lt;/strong&gt;, &lt;strong&gt;easy&lt;/strong&gt;, &lt;strong&gt;complex&lt;/strong&gt;, &lt;strong&gt;hard&lt;/strong&gt;, &lt;strong&gt;complect&lt;/strong&gt; and &lt;strong&gt;simplify&lt;/strong&gt; as used in this context.
&lt;/div&gt;

&lt;p&gt;My favorite benefit is probably the focus on simplicity, that results in microservices
getting down to &lt;strong&gt;less than 100 lines of code&lt;/strong&gt;. The resulting code is often so simple, that many
practitioners have found that &lt;strong&gt;they no longer need unit tests&lt;/strong&gt;!&lt;/p&gt;

&lt;p&gt;It’s just &lt;strong&gt;fundamentally simpler&lt;/strong&gt;, and therefore &lt;strong&gt;easier to debug&lt;/strong&gt; a system that has been
built on these principles. They make sense for the same reasons that people have realized
that functional programming really makes sense.&lt;/p&gt;

&lt;p&gt;This also allows you to &lt;strong&gt;more easily coordinate projects&lt;/strong&gt;, because each developer or team
only has a very specific set of requirements and can work on these completely independently.&lt;/p&gt;

&lt;p&gt;It’s also truly &lt;strong&gt;independent of the implementation language&lt;/strong&gt;, because we don’t care if
there’s a capuchin monkey or an orangutang pulling levers behind the scenes. It just doesn’t matter
to us.&lt;/p&gt;

&lt;div class=&quot;img-wrapper&quot;&gt;
  &lt;img src=&quot;/img/monkey4.png&quot; /&gt;
&lt;/div&gt;

&lt;h2 id=&quot;is-this-just-soa-by-another-name&quot;&gt;Is this just SOA by another name?&lt;/h2&gt;

&lt;p&gt;&lt;a href=&quot;http://en.wikipedia.org/wiki/Service-oriented_architecture&quot;&gt;Service-oriented architecture&lt;/a&gt; (or SOA) does have very similar goals, but through nature or nurture, SOA has evolved in a direction
that would be more accurately described as segmenting responsibilities through specialization.&lt;/p&gt;

&lt;p&gt;In the context of this article, SOA would be like building a factory to house all your woodworking equipment,
and forcing everything that involves wood in some way to pass through this factory. That’s still a valid approach,
but it’s also not nearly as granular as microservices would suggest.&lt;/p&gt;

&lt;p&gt;I think that the desire and need to build systems this way has been with us for a long time, but
I think the environment this latest iteration is evolving in is going to allow us to get closer 
to some “platonic ideal” for distributed systems than before.&lt;/p&gt;

&lt;p&gt;SOA is from an era before the advent of &lt;a href=&quot;http://en.wikipedia.org/wiki/DevOps&quot;&gt;DevOps&lt;/a&gt; and the &lt;a href=&quot;http://en.wikipedia.org/wiki/Cloud_computing&quot;&gt;Cloud&lt;/a&gt;, and we have become a lot more efficient at cloning monkeys and propping up prefab factories in that time.&lt;/p&gt;

&lt;div class=&quot;img-wrapper&quot;&gt;
  &lt;img src=&quot;/img/monkey5.png&quot; /&gt;
&lt;/div&gt;

&lt;h2 id=&quot;if-only-things-were-really-that-easy&quot;&gt;If only things were really that easy&lt;/h2&gt;

&lt;p&gt;Theories are wonderful things, but things often fall apart when it comes to putting
them to practical use. Even if microservices seem attractive now, there are some really deep
undercurrents of complexity flowing through this problem space.&lt;/p&gt;

&lt;h3 id=&quot;what-do-we-gain-in-net-simplicity&quot;&gt;What do we gain in net-simplicity?&lt;/h3&gt;

&lt;p&gt;Hopefully the most obvious one, is that &lt;strong&gt;we are really just moving problem complexity around by relying
on our ability to route messages&lt;/strong&gt; efficiently.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;a href=&quot;http://en.wikipedia.org/wiki/Message_queue&quot;&gt;Message Queues&lt;/a&gt; and &lt;a href=&quot;http://en.wikipedia.org/wiki/Enterprise_service_bus&quot;&gt;Service Buses&lt;/a&gt; are very complex&lt;/strong&gt; factories with highly specialized monkeys all of
their own, and &lt;strong&gt;there is a lot of domain knowledge&lt;/strong&gt; that a web developer such
as myself will have to pick up to truly be able to hit their stride.&lt;/p&gt;

&lt;p&gt;The &lt;strong&gt;&lt;a href=&quot;http://en.wikipedia.org/wiki/Fallacies_of_Distributed_Computing&quot;&gt;Fallacies of Distributed Computing&lt;/a&gt; still apply&lt;/strong&gt;, 
and there will probably be some very difficult life lessons learnt the very hard way, until more people come to grips with them.&lt;/p&gt;

&lt;h3 id=&quot;how-applicable-is-all-of-this-to-the-web&quot;&gt;How applicable is all of this to the web?&lt;/h3&gt;

&lt;p&gt;I’m actually am &lt;strong&gt;not sure that microservices will be practical on the front-end&lt;/strong&gt;, because a lot of the problems
you face there seem almost antithetical to what they attempt to solve.&lt;/p&gt;

&lt;p&gt;For instance, the DOM is like the shared-state that other shared-states
tell their .children scary bedtime stories of, and &lt;strong&gt;if I were to imagine the browser environment as a factory, it looks like something out of the minds
of HR Giger and the villains in Saw&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;I’m not sure this approach can really map &lt;em&gt;cleanly&lt;/em&gt; onto REST either, but I am starting to suspect that it
might become a secret ingredient in the ‘real-time web’ recipe.&lt;/p&gt;

&lt;h3 id=&quot;so-bleeding-edge-it-hurts&quot;&gt;So bleeding edge it hurts&lt;/h3&gt;

&lt;p&gt;What I find fascinating about them, is that &lt;strong&gt;they currently only exist as a form of tribal knowledge&lt;/strong&gt;,
which has been evolving out of hard-earned lessons by engineers with decades of experience building really 
complex enterprise level systems.&lt;/p&gt;

&lt;p&gt;Many of the &lt;a href=&quot;http://martinfowler.com/articles/microservices.html&quot;&gt;“seminal” writings&lt;/a&gt; on microservices, were only published in the last 3 weeks, for instance. They also
have a severe case of &lt;em&gt;“wow, these things are awesome. go watch this hour long presentation so I can talk
to you about them”&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;To combat this last point I will be publishing a field guide to microservices soon.&lt;/strong&gt;
&lt;strong&gt;You can also &lt;a href=&quot;http://twitter.com/AdrianRossouw&quot;&gt;follow me on twitter&lt;/a&gt;, where I will be posting more links as I find them.&lt;/strong&gt;&lt;/p&gt;
</description>
        <guid>http://daemon.co.za//2014/04/monkeys-and-microservices</guid>
				<link>http://daemon.co.za/2014/04/monkeys-and-microservices</link>
			</item>
		
			<item>
				<title>I Was Afraid of Angular.js Because it Reminded me of Drupal</title>
        <pubDate>Wed, 26 Mar 2014 00:00:00 +0000</pubDate>
				<description>&lt;p&gt;&lt;strong&gt;This post has nothing to do with any technical similarity
between the two systems.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;It is the conclusion of a series of posts, in which
I have attempted to understand why my &lt;a href=&quot;/2014/03/wrong-to-be-afraid-of-angular&quot;&gt;instincts were telling me to avoid
Angular.js&lt;/a&gt; at all costs.&lt;/p&gt;

&lt;!--more--&gt;

&lt;h3 id=&quot;conflicting-emotions&quot;&gt;Conflicting Emotions&lt;/h3&gt;

&lt;div class=&quot;img-wrapper&quot;&gt;
    &lt;img src=&quot;/img/drupalcon/brussels.png&quot; /&gt;
&lt;/div&gt;

&lt;p&gt;It’s not something I really emphasize on my &lt;a href=&quot;/portfolio&quot;&gt;online portfolio&lt;/a&gt;, but
I was actually a &lt;a href=&quot;https://drupal.org/node/956624&quot;&gt;&lt;strong&gt;major contributor to Drupal&lt;/strong&gt;&lt;/a&gt;. I don’t think
it’s hyperbolic to say that I was responsible for a lot of the parts of the framework
that could generally be considered some of the most quintessentially ‘Drupal’ api’s.&lt;/p&gt;

&lt;p&gt;It was only after almost 10 years with the project that I became aware that it’s
growing complexity would eventually overwhelm me and become an obstacle to my future happiness.&lt;/p&gt;

&lt;p&gt;It wasn’t really Drupal’s fault that I needed to leave, I think it is just any system
that gets to this level of complexity. I can work on this level for a while, but working
on this level every day will start to drain the colour out of my world, and is ultimately
not going to make me a better person.&lt;/p&gt;

&lt;p&gt;I had invested so much of myself into Drupal, that it had become part of my identity.
Subsequently, stepping away from the project was one of the hardest things I had ever needed to do.&lt;/p&gt;

&lt;h4 id=&quot;when-i-looked-at-angularjs&quot;&gt;When I looked at Angular.js&lt;/h4&gt;

&lt;blockquote class=&quot;col-md-6&quot;&gt;
&lt;h5&gt;Consciously&lt;/h5&gt;
&lt;p&gt;I saw the same endless potential that I had initially seen in Drupal.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;blockquote class=&quot;col-md-6&quot;&gt;
&lt;h5&gt;Subconsciously&lt;/h5&gt;
&lt;p&gt;I dreaded feeling the way I had near the end of my time with Drupal.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;I think it was this conflict that drove my need to properly evaluate Angular.js,
even if just to put my mind to rest.&lt;/strong&gt;&lt;/p&gt;

&lt;h3 id=&quot;nature-of-my-intuition&quot;&gt;Nature of my Intuition&lt;/h3&gt;

&lt;div class=&quot;img-wrapper&quot;&gt;
    &lt;img src=&quot;/img/drupalcon/amst2.png&quot; /&gt;
&lt;/div&gt;

&lt;p&gt;I now believe that my intuition was, in a way, projecting my possible/likely emotional
state 6 (or maybe even up to 8) years down the line, if I were to invest myself or my time into this.
Basically, would I be happy doing this for a really long time?&lt;/p&gt;

&lt;p&gt;The only way this extra sense could really develop is through personal experience and
if I hadn’t had those experiences, I would probably have charged ahead, not thinking
about where I could be headed.&lt;/p&gt;

&lt;p&gt;I can only really intellectually extrapolate how these types of systems could evolve
maybe 2-3 years down the line, and even then when I am wrong, I can acknowledge it
mostly on an intellectual level.&lt;/p&gt;

&lt;p&gt;This form of intuition feels like I will really need to have experienced an outcome for
it to become more honed, and that means I will need to make more mistakes =)&lt;/p&gt;

&lt;h3 id=&quot;why-my-intuition-was-wrong-about-angularjs&quot;&gt;Why my intuition was wrong about Angular.js&lt;/h3&gt;

&lt;div class=&quot;alert alert-info&quot;&gt;
Read my post on a &lt;a href=&quot;/2014/03/simple-and-easy-vocabulary-to-describe-software-complexity&quot;&gt;vocabulary to describe software complexity&lt;/a&gt; for the exact meanings of the terms &lt;strong&gt;simple&lt;/strong&gt;, &lt;strong&gt;easy&lt;/strong&gt;, &lt;strong&gt;complex&lt;/strong&gt;, &lt;strong&gt;hard&lt;/strong&gt;, &lt;strong&gt;complect&lt;/strong&gt; and &lt;strong&gt;simplify&lt;/strong&gt; as used in this context.
&lt;/div&gt;

&lt;p&gt;With Drupal, my problem was that I came to realize there was no way I could make it
any &lt;strong&gt;simpler&lt;/strong&gt;, while still doing what it was busy doing. It would never get any
&lt;strong&gt;easier&lt;/strong&gt; for me, ever again.&lt;/p&gt;

&lt;p&gt;I think that Angular is very rare in that actually has real potential to become &lt;strong&gt;simpler&lt;/strong&gt;
over time as the standards evolve. A lot of the things I was uncomfortable with,
such as &lt;a href=&quot;/2014/03/why-wrong-to-be-afraid-angular#observables&quot;&gt;dirty-checking observables&lt;/a&gt;, can eventually be removed entirely.&lt;/p&gt;

&lt;p&gt;The last thing that set off my spidey-sense was the &lt;a href=&quot;/2014/03/complexity-creeps-concerned-for-future-of-angular&quot;&gt;black magic dependency injection&lt;/a&gt;,
but even that is going to be gone in Angular 2.0. I really do think the developers know
what they are doing, and I hope they will pick &lt;strong&gt;simple&lt;/strong&gt; over &lt;strong&gt;easy&lt;/strong&gt; whenever they can.&lt;/p&gt;

&lt;p&gt;I am still not the model user for Angular, and I am still [likely to use
Backbone when I have the choice]((/2014/03/why-wrong-to-be-afraid-angular#reuse), but I do look forward to seeing how
it evolves over time.&lt;/p&gt;

&lt;h3 id=&quot;did-i-learn-anything&quot;&gt;Did I learn anything?&lt;/h3&gt;

&lt;div class=&quot;img-wrapper&quot;&gt;
    &lt;img src=&quot;/img/drupalcon/amst.png&quot; /&gt;
&lt;/div&gt;

&lt;p&gt;Yeah, I’d say I did. I now know why certain types of tools have a visceral
reaction on me, and I’ve expanded my vocabulary in ways that will
aid me when discussing these topics in the future.&lt;/p&gt;

&lt;p&gt;I’ve also realized that I still have a Drupal community sized hole in my heart. Those were
some of the happiest times of my life and I will always cherish them. I’d
like to think I left behind an Adrian sized hole in theirs too.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Pictures below are from the first DrupalCon I missed, and therefor was carried around in effigy by my friends.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;But I also know that leaving was the right thing for me to do, and I am
in a much better place than I would have been otherwise.&lt;/p&gt;

&lt;p&gt;Nowadays, I actively try to do less, and I pick my battles more carefully.&lt;/p&gt;

&lt;div id=&quot;project&quot; class=&quot;carousel slide&quot; data-ride=&quot;carousel&quot;&gt;
    &lt;!-- Indicators --&gt;
    &lt;ol class=&quot;carousel-indicators&quot;&gt;
      
      &lt;li data-target=&quot;#project&quot; data-slide-to=&quot;0&quot; class=&quot;active&quot;&gt;&lt;/li&gt;
      
      &lt;li data-target=&quot;#project&quot; data-slide-to=&quot;1&quot;&gt;&lt;/li&gt;
      
      &lt;li data-target=&quot;#project&quot; data-slide-to=&quot;2&quot;&gt;&lt;/li&gt;
      
      &lt;li data-target=&quot;#project&quot; data-slide-to=&quot;3&quot;&gt;&lt;/li&gt;
      
      &lt;li data-target=&quot;#project&quot; data-slide-to=&quot;4&quot;&gt;&lt;/li&gt;
      
    &lt;/ol&gt;

    &lt;!-- Wrapper for slides --&gt;
    &lt;div class=&quot;carousel-inner&quot;&gt;
        
          &lt;div class=&quot; active  item&quot;&gt;
            &lt;img src=&quot;http://daemon.co.za/img/drupalcon/gone.angie1.jpg&quot; /&gt;
          &lt;/div&gt;
        
          &lt;div class=&quot; item&quot;&gt;
            &lt;img src=&quot;http://daemon.co.za/img/drupalcon/gone.dries.jpg&quot; /&gt;
          &lt;/div&gt;
        
          &lt;div class=&quot; item&quot;&gt;
            &lt;img src=&quot;http://daemon.co.za/img/drupalcon/gone.1.jpg&quot; /&gt;
          &lt;/div&gt;
        
          &lt;div class=&quot; item&quot;&gt;
            &lt;img src=&quot;http://daemon.co.za/img/drupalcon/gone.2.jpg&quot; /&gt;
          &lt;/div&gt;
        
          &lt;div class=&quot; item&quot;&gt;
            &lt;img src=&quot;http://daemon.co.za/img/drupalcon/gone.leslie.jpg&quot; /&gt;
          &lt;/div&gt;
        
      &lt;/div&gt;

      
  &lt;!-- Controls --&gt;
  &lt;a class=&quot;left carousel-control&quot; href=&quot;#project&quot; data-slide=&quot;prev&quot;&gt;
    &lt;span class=&quot;glyphicon glyphicon-chevron-left&quot;&gt;&lt;/span&gt;
  &lt;/a&gt;
  &lt;a class=&quot;right carousel-control&quot; href=&quot;#project&quot; data-slide=&quot;next&quot;&gt;
    &lt;span class=&quot;glyphicon glyphicon-chevron-right&quot;&gt;&lt;/span&gt;
  &lt;/a&gt;
&lt;/div&gt;

</description>
        <guid>http://daemon.co.za//2014/03/angular-reminded-me-of-drupal</guid>
				<link>http://daemon.co.za/2014/03/angular-reminded-me-of-drupal</link>
			</item>
		
			<item>
				<title>How Complexity Affects Your Software</title>
        <pubDate>Tue, 25 Mar 2014 00:00:00 +0000</pubDate>
				<description>&lt;p&gt;This is the second in a series of notes I have made about an enlightening presentation called &lt;a href=&quot;http://www.infoq.com/presentations/Simple-Made-Easy&quot;&gt;Simple Made Easy&lt;/a&gt; by Rich Hickey, the creator of &lt;a href=&quot;http://en.wikipedia.org/wiki/Clojure&quot;&gt;Clojure&lt;/a&gt;.&lt;/p&gt;

&lt;!--more--&gt;

&lt;div class=&quot;alert alert-info&quot;&gt;
Read my post on a &lt;a href=&quot;/2014/03/simple-and-easy-vocabulary-to-describe-software-complexity&quot;&gt;vocabulary to describe software complexity&lt;/a&gt; for the exact meanings of the terms &lt;strong&gt;simple&lt;/strong&gt;, &lt;strong&gt;easy&lt;/strong&gt;, &lt;strong&gt;complex&lt;/strong&gt;, &lt;strong&gt;hard&lt;/strong&gt;, &lt;strong&gt;complect&lt;/strong&gt; and &lt;strong&gt;simplify&lt;/strong&gt; as used in this context.
&lt;/div&gt;

&lt;h3 id=&quot;the-parable-of-the-usb-rats-nest&quot;&gt;The Parable of the USB Rat’s Nest&lt;/h3&gt;

&lt;blockquote&gt;
&lt;p&gt;Think of removing a cable from a big box filled with them.&lt;/p&gt;
&lt;p&gt;The way those other cables come along with it, in a tangled mess?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;That's what complexity does to your software.&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3 id=&quot;development-speed&quot;&gt;Development Speed&lt;/h3&gt;

&lt;div class=&quot;img-wrapper&quot;&gt;
   &lt;a href=&quot;http://www.slideshare.net/evandrix/simple-made-easy&quot;&gt;&lt;img alt=&quot;simple made easy - development speed&quot; src=&quot;/img/simple.easy.speed.png&quot; /&gt;&lt;/a&gt;
&lt;/div&gt;

&lt;p&gt;This ‘experiential graph’ represents how, if you focus on ease while ignoring simplicity, you might be able to move at top speed at the beginning of the project.
However, no matter what your tools are, or how advanced they are, the complexity will eventually kill your productivity.&lt;/p&gt;

&lt;p&gt;While, If you focus on simplicity, you might not be able to move as fast initially because you will actually need to think
and plan before you start, you will be able to accomplish much more in the long run.&lt;/p&gt;

&lt;p&gt;A lot of simple tools are still very easy, but the focus on simplicity is what is going to help you succeed.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Complexity reduces your productivity over time to a point of grinding you to a near halt, whereas&lt;br /&gt;
simplicity will slow you down initially and then level out to keep you productive for much longer than otherwise.&lt;/strong&gt;&lt;/p&gt;

&lt;h3 id=&quot;there-are-limits-to-our-understanding&quot;&gt;There are limits to our understanding&lt;/h3&gt;

&lt;p&gt;We can’t make things reliable if we don’t understand them, and there is a limit to the amount of things that can be considered together.
Intertwining things need to be considered together, because to understand the one thing you will need to understand how it affects the
others.&lt;/p&gt;

&lt;p&gt;This braiding together of things is going to limit our ability to understand our software.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Complexity makes it harder to understand your program,&lt;br /&gt;
whereas simplicity makes it easier to understand.&lt;/strong&gt;&lt;/p&gt;

&lt;h3 id=&quot;changing-things-is-hard&quot;&gt;Changing Things is Hard&lt;/h3&gt;

&lt;p&gt;To be able to change our software, we need to analyze what it does and make decisions about what it ought to do.
To be able to do that we will need to know where these changes need to be made and what will be impacted by them.&lt;/p&gt;

&lt;p&gt;You need to be able to reason about your program to be able to change it without fear.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Complexity makes it harder to change your program,&lt;br /&gt;
whereas simplicity makes it easier to change.&lt;/strong&gt;&lt;/p&gt;

&lt;h3 id=&quot;fixing-things-is-even-harder&quot;&gt;Fixing Things is Even Harder&lt;/h3&gt;

&lt;p&gt;Every bug in the field has passed the type checker and passed all of the tests! These tools are like guard
rails, which are not going to help you figure out where you need to be going, and they won’t steer your car
for you. You need to be able to use logic to debug your program, and to determine where the bugs may lie.&lt;/p&gt;

&lt;p&gt;If you are not able to reason about your program, you will not be able to debug it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Complexity makes it harder to debug your program,&lt;br /&gt;
whereas simplicity makes it easier to debug.&lt;/strong&gt;&lt;/p&gt;

</description>
        <guid>http://daemon.co.za//2014/03/how-complexity-affects-software</guid>
				<link>http://daemon.co.za/2014/03/how-complexity-affects-software</link>
			</item>
		
			<item>
				<title>Simple and Easy: A Vocabulary to Describe Software Complexity</title>
        <pubDate>Sun, 23 Mar 2014 00:00:00 +0000</pubDate>
				<description>&lt;p&gt;Recently I was directed to an enlightening presentation called &lt;a href=&quot;http://www.infoq.com/presentations/Simple-Made-Easy&quot;&gt;Simple Made Easy&lt;/a&gt; by Rich Hickey, the creator of &lt;a href=&quot;http://en.wikipedia.org/wiki/Clojure&quot;&gt;Clojure&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Because it’s really difficult to justify asking someone to watch an hour long presentation just to be able to use the same terminology,
I’m publishing some notes here in a more easily digestible format. This is not a direct transcription, but more of a selective overview of the parts I consider the most important.&lt;/p&gt;

&lt;p&gt;I still &lt;strong&gt;highly recommend&lt;/strong&gt; that you watch at least the first half of the &lt;a href=&quot;http://www.infoq.com/presentations/Simple-Made-Easy&quot;&gt;presentation itself&lt;/a&gt;. 
While it does become a tad Clojure-specific at times, on the whole it remains broadly relevant. There are also
&lt;a href=&quot;http://www.slideshare.net/evandrix/simple-made-easy&quot;&gt;slides from the presentation&lt;/a&gt; up on slideshare, from which I have taken some screencaps for this post.&lt;/p&gt;

&lt;!--more--&gt;

&lt;h3 id=&quot;terminology&quot;&gt;Terminology&lt;/h3&gt;

&lt;p&gt;Rich starts the presentation by examining the latin roots of the terms, to illustrate their meanings in this context.&lt;/p&gt;

&lt;blockquote class=&quot;col-sm-6&quot;&gt;
&lt;dl&gt;
&lt;dt&gt;sim·ple&lt;/dt&gt;
&lt;dd&gt;cf. &lt;em&gt;sim- plex&lt;/em&gt;&lt;/dd&gt;
&lt;dd&gt;one fold/braid&lt;/dd&gt;
&lt;/dl&gt;
&lt;/blockquote&gt;

&lt;blockquote class=&quot;col-sm-6&quot;&gt;
&lt;dl&gt;
&lt;dt&gt;eas·y&lt;/dt&gt;
&lt;dd&gt;cf. &lt;em&gt;ease&amp;nbsp;&amp;lt;&amp;nbsp;aise&amp;nbsp;&amp;lt;&amp;nbsp;adjacens&lt;/em&gt;&lt;/dd&gt;
&lt;dd&gt;to lie near&lt;/dd&gt;
&lt;/dl&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;Simple&lt;/strong&gt; is traced to &lt;em&gt;simplex&lt;/em&gt;, a combination of &lt;em&gt;sim-&lt;/em&gt; (meaning one), and &lt;em&gt;plex&lt;/em&gt; (meaning fold or braid).  He describes it as a piece of string,
which if it only had one fold or twist, would still basically have no twists. The opposite of simplex is &lt;strong&gt;complex&lt;/strong&gt;, which
literally means ‘braided together’.  He describes it as having a couple or pieces of string that have been braided or
knotted together.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Easy&lt;/strong&gt;, when traced down to the original latin &lt;em&gt;adjacens&lt;/em&gt;, means ‘lying close by’ or ‘to lie near’.  In the sense of
being having something be within reachable distance. The opposite of easy is &lt;strong&gt;hard&lt;/strong&gt;, which doesn’t actually have a specific
meaning here beyond the general usage of the term.&lt;/p&gt;

&lt;h4 id=&quot;simple-vs-complex&quot;&gt;Simple vs Complex&lt;/h4&gt;

&lt;p&gt;When we look for things that are simple, we are looking for things that have one of something, such as
having one role; fulfilling one task or job; be about accomplishing one objective; be
about one concept (like security); or be about a particular dimension of a problem you are trying to solve.&lt;/p&gt;

&lt;p&gt;Simple doesn’t mean that there is just one of them, or that is an interface that only has one operation. It
is about the lack of &lt;a href=&quot;http://en.wiktionary.org/wiki/interleave#English&quot;&gt;interleaving&lt;/a&gt;, not the &lt;a href=&quot;http://en.wiktionary.org/wiki/cardinality&quot;&gt;cardinality&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Simple is Objective:&lt;/strong&gt; To see if something is &lt;strong&gt;simple&lt;/strong&gt;, you can go look in the code and see whether there any connections, or any place that it twists with something else.
If it isn’t interleaved, it’s simple, otherwise it’s complex.&lt;/p&gt;

&lt;h4 id=&quot;easy-vs-hard&quot;&gt;Easy vs Hard&lt;/h4&gt;

&lt;p&gt;There are several different senses in which something can be easy or hard.&lt;br /&gt;
Rich categorizes them in the following ways :&lt;/p&gt;

&lt;dl&gt;
&lt;dt&gt;Near, as in at Hand&lt;/dt&gt;
&lt;dd&gt;On our hard drive, in our toolset or IDE... just generally available.&lt;/dd&gt;
&lt;dd&gt;&lt;em&gt;&quot;Oh, library X includes that so we might as well use theirs!&quot;&lt;/em&gt;&lt;/dd&gt;
&lt;dt&gt;Near to our Understanding/Skillset&lt;/dt&gt;
&lt;dd&gt;Familiar, or closely enough related to allow for knowledge transfer.&lt;/dd&gt;
&lt;dd&gt;&lt;em&gt;&quot;I already know Library Y, so I will just use that!&quot;&lt;/em&gt;&lt;/dd&gt;
&lt;dt&gt;Near to our Capabilities&lt;/dt&gt;
&lt;dd&gt;Whether it is within our ability to reason about, how 'smart' we are.&lt;/dd&gt;
&lt;dd&gt;&lt;em&gt;&quot;What the hell is going on in Incredibly Complex Topic Z, I'm so lost!&quot;&lt;/em&gt;&lt;/dd&gt;
&lt;/dl&gt;

&lt;p&gt;&lt;strong&gt;Easy is Subjective:&lt;/strong&gt; For something to be &lt;strong&gt;easy&lt;/strong&gt; to me, it needs to be near to me, so it is relative to how
available and understandable it is to me, or whether I am even capable of understanding it.&lt;/p&gt;

&lt;p&gt;Stuff that is easy to me, in the familiar sense, might not be easy to you. 
Stuff that is easy to you, in the capability sense, I might not even be able to comprehend.&lt;/p&gt;

&lt;h4 id=&quot;constructs-vs-artifacts&quot;&gt;Constructs vs Artifacts&lt;/h4&gt;

&lt;p&gt;We program using &lt;strong&gt;constructs&lt;/strong&gt;. The programming languages, libraries, and tools we use
are all constucts. All of them also have these characteristics of being simple or easy, in
and of themselves.&lt;/p&gt;

&lt;p&gt;The programs we build are the &lt;strong&gt;artifacts&lt;/strong&gt;. All of the characteristics such as whether it runs, whether it
performs acceptably, or whether we have the ability to change it… those are all properties of the artifact, not the construct.&lt;/p&gt;

&lt;p&gt;We tend to focus on our experience from using the construct, by emphasising how convenient it is for the programmer, or how
easy it is to replace programmers on a project.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;We should be thinking about the artifacts we produce and how long term use of a construct will
affect software quality and our ability to maintain or change the software over time.&lt;/strong&gt;&lt;/p&gt;

&lt;h3 id=&quot;conclusion&quot;&gt;Conclusion&lt;/h3&gt;

&lt;p&gt;We are going to stop here at about 25 minutes in, mostly because it’s a really dense
presentation with a lot of concepts, and these are the most important ones I needed
to get across.&lt;/p&gt;

&lt;p&gt;This article originally had 2 parts, but I felt it was better to just keep on updating
this document with the terminology, and moved the effects of complexity to the second
part in the series.&lt;/p&gt;

&lt;p&gt;I &lt;strong&gt;highly recommend&lt;/strong&gt; that you watch the &lt;a href=&quot;http://www.infoq.com/presentations/Simple-Made-Easy&quot;&gt;presentation itself&lt;/a&gt;, if you want to learn more.&lt;/p&gt;
</description>
        <guid>http://daemon.co.za//2014/03/simple-and-easy-vocabulary-to-describe-software-complexity</guid>
				<link>http://daemon.co.za/2014/03/simple-and-easy-vocabulary-to-describe-software-complexity</link>
			</item>
		
			<item>
				<title>Complexity Creeps: Why I'm Concerned for the Future of Angular.js</title>
        <pubDate>Mon, 17 Mar 2014 00:00:00 +0000</pubDate>
				<description>&lt;p&gt;In recent weeks I have been trying to resolve &lt;a href=&quot;http://daemon.co.za/2014/03/wrong-to-be-afraid-of-angular&quot;&gt;why I had such a visceral reaction to Angular.js&lt;/a&gt;,
that I even started dreaming about it.&lt;/p&gt;

&lt;p&gt;After having worked my way through the &lt;a href=&quot;http://daemon.co.za/2014/03/why-wrong-to-be-afraid-angular&quot;&gt;parts of Angular.js that concerned me the most&lt;/a&gt;, I think
that I have finally narrowed it down to the fact that I believe the way it tries to infer dependencies is a
critical mistake.&lt;/p&gt;

&lt;!--more--&gt;

&lt;div class=&quot;bs-callout-info bs-callout&quot;&gt;
 
&lt;p&gt;&lt;strong&gt;Some people on twitter have been using this article to say that angular sucks. That couldn’t be further from the truth.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;You should read the previous article in this series: &lt;a href=&quot;http://daemon.co.za/2014/03/why-wrong-to-be-afraid-angular&quot;&gt;Why I Was Wrong About Angular.js&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I thought I wouldn’t like it, but I had to build something to make sure. What I found was a really amazing framework that is almost prescient in it’s vision for the internet.
This issue I bring up here was the &lt;strong&gt;only&lt;/strong&gt; thing in Angular I found objectionable, and I needed to express why I felt this way, because I couldn’t find any dissenting
voices.&lt;/p&gt;

&lt;p&gt;I also got some feedback from the developers in the &lt;a href=&quot;https://github.com/angular/angular.js/issues/6717&quot;&gt;github issue queue&lt;/a&gt;, and according to them they have
scheduled the dependency annotations to be removed for Angular.js 2.0. It is being replaced by their &lt;a href=&quot;https://github.com/angular/di.js&quot;&gt;new DI system&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;I think this feedback is still valuable to provide perspective on why I reacted to Angular in that way, and how small changes can lead to major problems
when you don’t keep in mind how future contributions can affect them.&lt;/p&gt;

&lt;/div&gt;

&lt;h3 id=&quot;inferred-dependencies&quot;&gt;Inferred Dependencies&lt;/h3&gt;

&lt;p&gt;Angular.js uses a pattern called called &lt;a href=&quot;http://en.wikipedia.org/wiki/Dependency_injection&quot;&gt;Dependency Injection&lt;/a&gt; to pass references into various parts of the system, but it
is not this pattern in itself that I object to.&lt;/p&gt;

&lt;p&gt;When you reach this point of the developer guide, it will introduce you to three different ways of accomplishing the exact same outcome. What is disconcerting though, is that the first way they tell you to do it, also has the documented caveat that it breaks under minification.&lt;/p&gt;

&lt;p&gt;The reason that it breaks minification, is that is using some really clever trickery to abuse parts of the javascript language, to 
do things that conflict with the fundamentals of the language itself.&lt;/p&gt;

&lt;p&gt;Specifically, it uses Function.prototype.toString(), to read the source code of the function that is being called, and extract the names
that the parameters were given in your source. Because minification changes those variable names, it can no longer rely on that to work.&lt;/p&gt;

&lt;p&gt;This following video is not needed to understand the rest of the article, but it shows you what Angular is actually doing when it does this:&lt;/p&gt;

&lt;iframe class=&quot;youtube col-lg-12 col-md-12 col-sm-12 col-xs-12&quot; height=&quot;315&quot; src=&quot;//www.youtube.com/embed/Jyhz2e4grHo&quot; frameborder=&quot;0&quot;&gt;
&lt;/iframe&gt;

&lt;h3 id=&quot;parable-of-the-fulminating-automobile&quot;&gt;Parable of the Fulminating Automobile.&lt;/h3&gt;

&lt;p&gt;I think that all of this is a just really bad idea and is going to have signicant negative consequences for the long term maintainability
and viability of Angular.js as a platform.&lt;/p&gt;

&lt;p&gt;When I first read all this, this is the scenario came to mind:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;On your first day at a new company, you are offered the use of one of three company cars.&lt;/p&gt;

&lt;p&gt;As you slip into the red car nearest you, you notice a small sign on the dashboard saying “warning: red cars will explode violently on wednesdays”.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;I worry about the fact that something like this is just accepted and people have decided that it’s easier to just warn others about the exploding cars rather
than just not giving people exploding cars to begin with. This is expounded by the fact that there are two other perfectly working cars, which might not be your favorite color, but at least they won’t
kill you.&lt;/p&gt;

&lt;p&gt;When I’ve discussed these opinions with people, many of them have pointed out the existence of &lt;a href=&quot;https://github.com/btford/ngmin&quot;&gt;ngmin&lt;/a&gt;, which
is a pre-minifier for Angular applications that rewrites the source code into something that can be minified.&lt;/p&gt;

&lt;h3 id=&quot;tooling-as-a-workaround&quot;&gt;Tooling as a workaround&lt;/h3&gt;

&lt;div class=&quot;bs-callout-info bs-callout&quot;&gt;

&lt;p&gt;I really need to state first, that I greatly respect the developers and maintainers of ngmin, and I value that they have taken their
time and energy identify a common problem and by solving it enriched the lives of their users and the open source community in general.&lt;/p&gt;

&lt;p&gt;The following is in no way an attack on the quality of their work or the time and dedication they have spent on their project.&lt;/p&gt;

&lt;/div&gt;

&lt;p&gt;When you start talking about solving a problem this fundamental with tooling, you are saying something like:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;“The red cars won’t explode as long as you drive on these roads we specifically built for them.
These roads are closed on wednesdays.”&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;I think we need to acknowledge that the primary reason for the existence of a tool like ngmin, is
to work around the bug that is not possible to fix in and of itself. I also think we would all be better off in a world where the authors of ngmin would have been able
to solve problems for the greater good that weren’t ultimately completely self inflicted.&lt;/p&gt;

&lt;h3 id=&quot;matter-of-principle&quot;&gt;Matter of Principle&lt;/h3&gt;

&lt;p&gt;I don’t believe it is justified to argue that this allows you to program in a more &lt;a href=&quot;http://en.wikipedia.org/wiki/Don't_repeat_yourself&quot;&gt;DRY&lt;/a&gt; manner
while ignoring the fact that it breaks the principles of &lt;a href=&quot;http://en.wikipedia.org/wiki/KISS_principle&quot;&gt;KISS&lt;/a&gt; and &lt;a href=&quot;http://en.wikipedia.org/wiki/Principle_of_least_astonishment&quot;&gt;least astonishment&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;It’s also not correct to try and optimize for the avoidance of localized bugs caused by user error,
by introducing deep systemic problems.&lt;/p&gt;

&lt;p&gt;The user can easily fix their typo, but needing to dive through all those layers of abstraction when this magic breaks? You will also still be able to make a typo in the format that has all the magic.&lt;/p&gt;

&lt;h3 id=&quot;the-long-tail&quot;&gt;The Long Tail&lt;/h3&gt;

&lt;p&gt;Even though I have been accused of overthinking this, people really need to understand that this
kind of thing has an incredibly long tail.&lt;/p&gt;

&lt;p&gt;Ngmin has a grunt plugin, and I’ve seen many people recommending the yeoman Angular generator
primarily because it configures ngmin correctly out of the box. All of those projects have
issue queues and stack overflow questions and thousands of references all over the internet.&lt;/p&gt;

&lt;p&gt;None of that needed to exist, if this feature was acknowledged as being flawed in the first place.&lt;/p&gt;

&lt;h3 id=&quot;past-sets-precedent&quot;&gt;Past sets precedent&lt;/h3&gt;

&lt;p&gt;I have thought about this a lot, and I really only see one way that this can end, and it’s not pretty.&lt;/p&gt;

&lt;p&gt;At some point someone is going to find a compelling reason to use this technique to do something that
has a desirable enough outcome to make it seem like a good idea.&lt;/p&gt;

&lt;p&gt;It’s probably going to be something like “let’s inspect the source to tune the digest cycle”, which I have no
idea if it is even possible, but i’m pretty sure it will be along those lines. It might also be further syntactic
sugar.&lt;/p&gt;

&lt;p&gt;People might feel a little uneasy about it, but ultimately it’s going to win support because you will
be able to extend the tooling to support this new feature. This will make the tooling more complex, and
expand the ecosystems built on top of them further.. etc.&lt;/p&gt;

&lt;h3 id=&quot;you-cant-just-say-no&quot;&gt;You Can’t just say no&lt;/h3&gt;

&lt;p&gt;With so many people interested in Angular, and the amount of time this will play off in, I think it really
is inevitable that at some point, somebody will come up with reason so compelling you can’t say no to it.&lt;/p&gt;

&lt;p&gt;If you try to head this off using social engineering, by refusing any additional changes along these lines,
you are in fact admitting that there is something wrong with this feature to begin with.&lt;/p&gt;

&lt;h3 id=&quot;no-hope-for-improvement&quot;&gt;No hope for improvement&lt;/h3&gt;

&lt;p&gt;What really struck me about Angular after I played with it a bit, is that there is a possibility
that it can actually become simpler over time.&lt;/p&gt;

&lt;p&gt;All the major problems I had with it at first, such as not trusting the dirty checking, can
get better over time. This is because a lot of these things are so close to the web component
standards being worked on, that they can be removed as they become implemented on a browser
level.&lt;/p&gt;

&lt;p&gt;I can see that it might be possible to remove entire parts of the framework, without sacrificing
any of the things that it can currently do. That is just so incredibly &lt;em&gt;rare&lt;/em&gt; in a system,
that it makes me really interested in seeing how it evolves.&lt;/p&gt;

&lt;p&gt;What I don’t see, is how anybody will ever be able to convince all browser vendors and
the language standard committee to change the call time name binding semantics of
javascript as a language in such a way, as to make this clever hack uneccesary.&lt;/p&gt;

&lt;h3 id=&quot;finding-a-middle-road&quot;&gt;Finding a middle road&lt;/h3&gt;

&lt;p&gt;I don’t like writing &lt;a href=&quot;http://groups.drupal.org/node/24709&quot;&gt;this kind of thing&lt;/a&gt; unless I can back it up with some actual concrete
steps that will at least provide somewhat of a reasonable compromise between the parties.&lt;/p&gt;

&lt;p&gt;NgMin is already able to replace the magic that is in Angular itself at the moment, by
instead turning it into an opt-in build step if you want to use this format. This is closer to what is actually happening here,
as this magic is on some level similar to something like coffeescript when all said and done.&lt;/p&gt;

&lt;p&gt;If you remove the black magic from Angular entirely, probably after deprecating it first,
you will have simplified the core quite a lot. It also sets the right precedent for the future,
so you can avoid further situations like that.&lt;/p&gt;

&lt;p&gt;Stop telling people about this first, or possibly even at all. Mention it in the handbook
as a “oh, this is another way to do it, but it is not recommended”. You need to do this
before it gets too deeply ingrained in the community.&lt;/p&gt;

</description>
        <guid>http://daemon.co.za//2014/03/complexity-creeps-concerned-for-future-of-angular</guid>
				<link>http://daemon.co.za/2014/03/complexity-creeps-concerned-for-future-of-angular</link>
			</item>
		
			<item>
				<title>Post-Mortem: Real-Time Fridge Poetry in Just 48 Hours</title>
        <pubDate>Sun, 16 Mar 2014 00:00:00 +0000</pubDate>
				<description>
&lt;p&gt;&lt;a href=&quot;http://cardigan.daemon.co.za/&quot;&gt;Helvetica Cardigan&lt;/a&gt; is an implementation of the popular ‘fridge poetry’ curio.&lt;/p&gt;

&lt;p&gt;It was completed in 48 hours during the Node Knockout 2012 coding contest by &lt;a href=&quot;http://daemon.co.za&quot;&gt;myself&lt;/a&gt; and &lt;a href=&quot;http://twitter.com/lerouxb&quot;&gt;Le Roux Bodenstein&lt;/a&gt;. The name comes from one of the combinations we made with the default ‘hipster ipsum’ wordset. You can add your own fridges with your own words too.&lt;/p&gt;

&lt;p&gt;Although it was finished back then, I spent some time cleaning it up last night to make it a bit more interesting to blog about. Primarily I added the ability to embed it into other pages, and improved tablet support.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;There is a bug which causes node to crash at the moment. I have set up a cronjob to reset it every few minutes until I have a moment to debug it properly&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;It has been released under a MIT license and the &lt;a href=&quot;https://github.com/Vertice/helvetica-cardigan&quot;&gt;source is available on GitHub&lt;/a&gt;.&lt;/p&gt;

&lt;!--more--&gt;

&lt;div class=&quot;iframe-wrapper col-lg-12 col-md-12 col-sm-12 col-xs-12&quot;&gt;
  &lt;iframe height=&quot;315&quot; src=&quot;http://cardigan.daemon.co.za/e&quot; frameborder=&quot;0&quot;&gt;
  &lt;/iframe&gt;
&lt;/div&gt;

&lt;p&gt;You know… for some &lt;a href=&quot;http://en.wikipedia.org/wiki/WebSocket&quot;&gt;very narrow definitions&lt;/a&gt; of &lt;a href=&quot;http://en.wikipedia.org/wiki/Real-time_computing&quot;&gt;“real-time”&lt;/a&gt;. Doesn’t it feel
like there needs to be an &lt;a href=&quot;http://en.wikipedia.org/wiki/Emoji&quot;&gt;Emoji&lt;/a&gt; for air-quotes?&lt;/p&gt;

&lt;p&gt;The last startup I was involved in declared bankruptcy last week, so I’ve
just kind of been taking the time to delve through the projects I’ve built in
the last few years to flesh out my &lt;a href=&quot;http://daemon.co.za/portfolio&quot;&gt;online portfolio&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;My exploration around the &lt;a href=&quot;http://daemon.co.za/2014/03/why-wrong-to-be-afraid-angular&quot;&gt;motivation for using angular&lt;/a&gt; in a &lt;a href=&quot;http://daemon.co.za/2014/03/mirror-tumblr-picture-blogs-browsr&quot;&gt;recent experiment of mine&lt;/a&gt; has gotten &lt;a href=&quot;http://daemon.co.za/2014/03/wrong-to-be-afraid-of-angular&quot;&gt;a little bit … deep&lt;/a&gt;, so I’ve decided to change the pace and revisit something fun and frivolous today.&lt;/p&gt;

&lt;h3 id=&quot;fisher-prices-my-first-hackathon&quot;&gt;Fisher Price’s My First Hackathon&lt;/h3&gt;

&lt;p&gt;If I were being completely honest, I think my &lt;a href=&quot;http://daemon.co.za/2012/05/why-start-a-nodejs-user-group&quot;&gt;decision to start a Node.js user group&lt;/a&gt;
was largely influenced by my desire to take part in a node knockout. It just looked like so much fun,
and the idea of being able to &lt;strong&gt;crush&lt;/strong&gt; a challenge like that looked like it would be very rewarding (and it is).&lt;/p&gt;

&lt;p&gt;NKO is definitely what made me finally realize to what degree I was living in a vacuum, and that
I was going to stagnate both professionally and most likely emotionally if I didn’t find people
I could discuss my interests with.&lt;/p&gt;

&lt;p&gt;Thankfully me and the Le Roux (my co-founder) hit it off, and have been fast friends since. Sometimes it’s just nice to actually have peers, you know?&lt;/p&gt;

&lt;h3 id=&quot;maybe-we-should-try-something-a-little-bit-less--ambitious&quot;&gt;Maybe we should try something a little bit less … ambitious?&lt;/h3&gt;

&lt;p&gt;We decided on this project the afternoon before the contest started, when I was just blurting out
possible things we could build. That wasn’t the original plan.&lt;/p&gt;

&lt;p&gt;The original plan was building a pseudo-realtime naval combat board game,
that made me research things like &lt;a href=&quot;http://www-cs-students.stanford.edu/~amitp/gameprog.html#hex_&quot;&gt;hexagonal grids&lt;/a&gt;,
&lt;a href=&quot;http://theory.stanford.edu/~amitp/GameProgramming/&quot;&gt;path finding algorithms&lt;/a&gt;, &lt;a href=&quot;http://creativejs.com/&quot;&gt;webGL&lt;/a&gt; and so much more.&lt;/p&gt;

&lt;p&gt;That day before, we had to admit to ourselves that there was no way we would ever be able to do all that. Obviously we
made the right choice, and once I knew what we wanted to do for the next year, I spent the year planning out the project
meticulously.&lt;/p&gt;

&lt;p&gt;I think this reinforced that you should acknowledge your limitations and focus on what is possible right now.&lt;/p&gt;

&lt;h3 id=&quot;why-are-build-systems-so-hard&quot;&gt;Why are build systems so hard?&lt;/h3&gt;

&lt;p&gt;Oh god. It was so painful to get this up and running, because this was pre-grunt and pre-gulp and pre-browserify. We only started building at 8am when Le Roux came over to my house, and it took us most of the first day to get something
up and running.&lt;/p&gt;

&lt;p&gt;A few weeks before we played around with ender, and checked out whether require.js was feasible for us… It wasn’t,
but that’s an article for another time. We ended up erring towards just having duplicates of the libraries that we
served via express, because we had no idea how to make the same jquery be used on the client and the server. You know
what? That stuff is still hard, and it’s taken me a long time to &lt;a href=&quot;http://github.com/Vertice/browserify-harness&quot;&gt;wrap my head around it&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;The next year, I used the fact that we live on the GMT+2 timezone, and the fact that Le Roux is a ‘Day-Walker’, to
get the full build process ready for him in the six hours between 2am and 8am. I really don’t get a lot of sleep on these weekends.&lt;/p&gt;

&lt;p&gt;We ended up with something pretty simple, where we had the backbone models in a &lt;a href=&quot;https://github.com/Vertice/helvetica-cardigan/blob/master/lib/common.js&quot;&gt;common.js&lt;/a&gt;, the views and the like
in a &lt;a href=&quot;https://github.com/Vertice/helvetica-cardigan/blob/master/lib/client.js&quot;&gt;client.js&lt;/a&gt; and the routes in a &lt;a href=&quot;https://github.com/Vertice/helvetica-cardigan/blob/master/server.js&quot;&gt;server.js&lt;/a&gt;.&lt;/p&gt;

&lt;h3 id=&quot;what-do-you-mean-its-down&quot;&gt;What do you mean it’s down?&lt;/h3&gt;

&lt;p&gt;While we didn’t have as much of a mad dash to the finish line for this project, we did have some pretty
annoying bugs. I ended up having to restart the application several times during the next week, because it would somehow start
delivering empty fridges to the visitors.&lt;/p&gt;

&lt;p&gt;I &lt;em&gt;think&lt;/em&gt; I finally tracked it down yesterday to not removing socket.io handlers on disconnect, but I can’t really be sure
until I have lots of people connecting to the server. We’ll see if the embedded fridge above holds.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Oh yeah, totally wrong. much worse now. it seems to run out of memory. I have a script restarting it every few minutes until I can fix it.&lt;/strong&gt;&lt;/p&gt;

&lt;h3 id=&quot;yeah-no--im-not-making-a-screencast-right-now&quot;&gt;Yeah, no … i’m not making a screencast right now.&lt;/h3&gt;

&lt;p&gt;After we finally finished at 8pm on sunday night, we realized dejectedly that we needed to make a video to be eligible for judging.&lt;/p&gt;

&lt;p&gt;Video production is not really part of my skillset, and I wouldn’t even know where to start looking for the best tools for the job. Also, the very last
thing I want to do after a weekend with no sleep, and incredible stress levels, is to make a fscking video.&lt;/p&gt;

&lt;p&gt;This didn’t change for the next year either, which was an even more demanding project. I don’t think I will ever complete this requirement of the contest, but I am quite ok with that because I am not really taking part in them for
the external recognition.&lt;/p&gt;

&lt;p&gt;I learnt a lot, and I had a lot of fun. Which is what really matters, right?&lt;/p&gt;
</description>
        <guid>http://daemon.co.za//2014/03/post-mortem-real-time-fridge-poetry-48-hours</guid>
				<link>http://daemon.co.za/2014/03/post-mortem-real-time-fridge-poetry-48-hours</link>
			</item>
		
			<item>
				<title>From The Trenches: CDN-hosted JavaScript Represents an Additional Point of Failure</title>
        <pubDate>Sat, 15 Mar 2014 00:00:00 +0000</pubDate>
				<description>&lt;p&gt;This is the first in a new series of articles on painful lessons that I have learnt from real problems I have faced in the past.
This is an effort to stop future generations from running into the same mistakes, or at the very least, it will give them
something to find via google when they get stumped.&lt;/p&gt;

&lt;p&gt;Since I’m still busy collecting my thoughts on &lt;a href=&quot;http://daemon.co.za/2014/03/why-wrong-to-be-afraid-angular&quot;&gt;why I was afraid of angular&lt;/a&gt;,
specifically illustrating what about the inferred dependency feature worries me so much, I decided to take a break from the topic to start
publishing some of my war stories.&lt;/p&gt;

&lt;!--more--&gt;

&lt;h3 id=&quot;using-a-public-js-cdn-is-inappropriate-for-anything-more-complex-than-a-jsfiddle&quot;&gt;Using a public JS CDN is inappropriate for anything more complex than a JSFiddle.&lt;/h3&gt;

&lt;p&gt;This really flies in the face of currently accepted best practices, but in the last 6 months I have
had two experiences that taught me this the hard way.&lt;/p&gt;

&lt;p&gt;I should add that I don’t object to using a CDN to serve your static files, but rather to using a shared public CDN (such as cdnjs or google hosted libraries) to serve your vendor libraries (such as jquery and backbone).&lt;/p&gt;

&lt;p&gt;While not my own experience, I have included
someone else’s experience from a &lt;a href=&quot;http://www.reddit.com/r/javascript/comments/1zsu7h/my_requirejs_itches_and_how_i_scratched_them/cfx7l40&quot;&gt;reddit discussion&lt;/a&gt; to further illustrate my point.&lt;/p&gt;

&lt;h4 id=&quot;my-adsl-connection-died&quot;&gt;My ADSL connection died.&lt;/h4&gt;

&lt;p&gt;This happened quite recently, where I was left with really flakey 3G. Since I had a critical deadline the next day, I was forced to make some changes to the application. Only then did I realize that
some of my other team members had changed some resources to use public CDN files, and also google fonts.&lt;/p&gt;

&lt;p&gt;Just loading up the application became a process that took several minutes to time out all the connections, before I was able to get a syntax error in my code. It took me about 2 hours to finally get all the resources hosted locally and to be able to START working on the critical fixes I needed to have ready just a few hours later.&lt;/p&gt;

&lt;h4 id=&quot;the-botched-demo&quot;&gt;The Botched Demo.&lt;/h4&gt;

&lt;p&gt;While it wasn’t a catastrophe, our CEO was also affected by this when he was trying to demo our app for some investors. While at their offices, it turned out it was impossible
to get on their wifi, and he wasn’t getting proper reception for his phone.&lt;/p&gt;

&lt;p&gt;I gather that they hopped between conference rooms to try and get online more reliably,
and even then the youtube videos we integrated into our product weren’t working properly. We eventually integrated our own player that could play from the local files or S3.&lt;/p&gt;

&lt;h4 id=&quot;just-in-the-wrong-place&quot;&gt;Just in the wrong place…&lt;/h4&gt;

&lt;blockquote&gt;I live in china and most of the big public CDN don't go through the great firewall so i know that problem well. I personally have a &quot;fake&quot; CDN on my local that i use to server static assets when developing - &lt;a href=&quot;http://www.reddit.com/user/0mbre&quot;&gt;0mbre&lt;/a&gt;&lt;/blockquote&gt;

&lt;h3 id=&quot;why-you-should-not-use-a-public-cdn&quot;&gt;Why you should not use a public CDN.&lt;/h3&gt;

&lt;p&gt;All of the problems caused above were entirely avoidable, and this post would not have existed, had we not been using a public CDN in the first place.&lt;/p&gt;

&lt;p&gt;All of the files that your application needs for normal operation should be hosted together, instead of one library from this public CDN, one library from that public CDN, your code from wherever you serve your static files… and so forth.&lt;/p&gt;

&lt;p&gt;You are adding an unnecessary dependency that all of those servers (on completely different networks) need to be available, and also reachable.&lt;/p&gt;

&lt;p&gt;In still technical, but possibly more relatable terms:&lt;/p&gt;

&lt;blockquote&gt;Using code from a public CDN is similar to storing your most critical library (or DLL) files on an external network share (such as NFS or SMB), and then assuming it is always available when you run your application.&lt;/blockquote&gt;

&lt;p&gt;The generally accepted benefit of using a public CDN (such as cdnjs or google hosted libraries), is that your user &lt;em&gt;might&lt;/em&gt; have gone to another site that &lt;em&gt;might&lt;/em&gt; have used the same CDN to load the same version of the library before he loaded you window, and it &lt;em&gt;might&lt;/em&gt; still be cached in his browser.&lt;/p&gt;

&lt;p&gt;It is impossible to predict when these criteria will be met and what actual difference it will make to your site across your user base. Even if you could predict it, the only thing this would ever be able to do is optimize some theoreticaly best case scenario.&lt;/p&gt;

&lt;p&gt;Your worst case performance is far more important than your best case performance because you should be focusing on making your application actually work, not improving a situation that is already pretty good.&lt;/p&gt;

&lt;blockquote&gt;Optimizing for the best case in this way is like releasing the hounds on runners hoping the fastest ones will run faster, while not caring that the slower ones are being mauled to death.&lt;/blockquote&gt;

&lt;p&gt;Using an external dependency this way increases the opportunities that inevitable network errors can break your system. If you are using a build system,
and self-hosting the files, a network issue that stops you from accessing the file has exactly one chance to be triggered. When you use the file hosted on the CDN, it
has as many opportunities as unique hits you receive (give or take).&lt;/p&gt;

&lt;blockquote&gt;The difference in probable risk between code that is self-hosted and public CDN-hosted, is like playing russian roulette with a revolver exactly once, or playing russian roulette as many times as you have hits per second.
&lt;/blockquote&gt;

&lt;p&gt;While it is certainly possible to &lt;a href=&quot;http://www.paulund.co.uk/fallback-on-local-jquery-if-cdn-fails&quot;&gt;specify a fallback via some javascript&lt;/a&gt;, that is still not a good idea because
it is introducing complexity into your application’s critical path that would not be necessary if you just didn’t use the public CDN to begin with.&lt;/p&gt;

&lt;p&gt;It also doesn’t acknowledge that it
takes time for network requests to fail, so even if it does manage to fall back to your library you have just done twice as many HTTP requests and delayed your application from even starting.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;I firmly believe that you are introducing an unacceptable amount of uncertainty into your application through the use of external dependencies that can in no way
be justified by any possible benefits.&lt;/strong&gt;&lt;/p&gt;

&lt;h3 id=&quot;engineering-principles&quot;&gt;Engineering Principles&lt;/h3&gt;

&lt;p&gt;These are just the points i could handedly find wikipedia pages for, but they are actually well accepted engineering principles.&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;It represents a &lt;a href=&quot;http://en.wikipedia.org/wiki/Single_point_of_failure&quot;&gt;Single Point of Failure&lt;/a&gt;.&lt;/li&gt;
  &lt;li&gt;Adds more &lt;a href=&quot;http://en.wikipedia.org/wiki/Moving_parts#Failure&quot;&gt;Moving Parts&lt;/a&gt; than needed.&lt;/li&gt;
  &lt;li&gt;“The Network is Reliable” is the first &lt;a href=&quot;http://en.wikipedia.org/wiki/Fallacies_of_Distributed_Computing&quot;&gt;Distributed Computing Fallacy&lt;/a&gt;.&lt;/li&gt;
  &lt;li&gt;“Latency is Zero” is another, especially in relation to additional HTTP requests.&lt;/li&gt;
  &lt;li&gt;It is &lt;a href=&quot;http://en.wikipedia.org/wiki/Program_optimization#When_to_optimize&quot;&gt;Premature Optimization&lt;/a&gt;.&lt;/li&gt;
  &lt;li&gt;Optimizes the best case, but &lt;a href=&quot;http://en.wikipedia.org/wiki/Worst_case&quot;&gt;worst case performance&lt;/a&gt; of much higher importance.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;This is probably the most theoretical I will get in these articles, so hopefully i can give more concrete answers to
the problems I encounter in the future than just “I learnt not to do that”.&lt;/p&gt;

&lt;p&gt;I also feel that if more people understood that the internet is basically held together by duct tape, they would have a lot more reverence to the miracle that it
works even remotely as reliably as it does.&lt;/p&gt;
</description>
        <guid>http://daemon.co.za//2014/03/from-trenches-js-cdn-point-of-failure</guid>
				<link>http://daemon.co.za/2014/03/from-trenches-js-cdn-point-of-failure</link>
			</item>
		
	</channel>
</rss>

