│

Exploring Quality, Complexity, and Creation

Author: Jesse Daniels

  • AngularJs 1.x and the Lindy Effect

    AngularJs 1.x and the Lindy Effect

    A couple years ago I had to agonize over which version of Angular to use for my front end development of a brand new project: AngularJs with all my currently built up knowledge, or the new framework that’s the future.

    In deciding which technology to use in a project, we definitely need to be thinking of the future. However, is there a way to gage a technology’s longevity?

    The Lindy Effect

    In judging a longevity of an idea or non-parishable thing, there’s a concept called the Lindy effect that states:

    The future life expectancy of some non-perishable things like a technology or an idea is proportional to their current age, so that every additional period of survival implies a longer remaining life expectancy.

    AngularJs Probabilistic Future

    AngularJs was initially released October 20, 2010; 7 years ago.  According to the Lindy Effect, it should a valid technology for another 7 years.  That’s a long time in technology years.  If you’re taking into account how long a technology is going to survive when choosing a technology for a project, then AngularJs looks pretty promising compared to the newer Angular Framework.

    The Decision

    Full disclosure: I love AngularJs 1.x!  Another disclosure: I really love the new Angular framework as well.  This concept of longevity was taken into account when I decided which framework to pick, but the decision was pretty easy since the new Angular Framework was still in Beta.  I wasn’t going to start a new project with a beta technology.

    giphy

    Overview

    You can judge the probabilist longevity of a technology using the Lindy effect that states the life expectancy of a technology is proportional to its current age.  AngularJs has been around for a while and most likely will be around for just as long.

  • Optionality and Reusable Coding

    Optionality and Reusable Coding

    All developers have been told to write reusable code. I remember having that drilled into my head in college by my professors daily. The main reason we have to write reusable code: so we don’t have to write the same code twice. That is a perfectly valid reason and I can’t argue with that. But, what if there’s a bigger reason.

    Optionality and Reusable Code

    Optionality, a concept that Nassim Taleb has brought to us in his books Antifragile, is the ability to have many options at every layer of the system that lets us prepare for volatility, giving yourself the chance to not only withstand it but to succeed and prosper in a big way.

    Reusable coding should increase the number of options on how to use the code.

    Within software, one way of reaching optionality is to write your code, at every layer, to be reusable. Reusable coding should increase the number of options on how to use the code without breaking the Single Responsibility Principle. Let me show you with an example.

    Reusable Refactoring Example

    Couple developers on my team submitted a pull request for a rather large feature. In the code was a class who’s purpose was to convert identifiers from one value from the next using a array of old and new values.

    var ids = [
     { old: "162735", new: "8493273" },
     { old: "736482", new: "7427364" }
    ];
    
    class DeckIdConverter {
      convertDeckIds(ids, data){
        var jdata = JSON.stringify(data);
        ids.forEach( id => {
          jdata = data.replace(id.old, id.new);
        });
        return JSON.parse(jdata);
    }
    }
    

    Yes, this is reusable code. We can instantiate it and reuse it many places and not have to copy/paste code. However, within the context of Optionality, this isn’t very reusable: it doesn’t give us very many options on how to use it.

    When I saw this code, I asked the developers how we could make this more reusable. It’d be nice to use this code to swap out identifiers with other entities.

    They began to brainstorm on a more generic EntityIdConverter. However, one of them had a brilliant idea: It’s really just a simple multiple string replace, lets create a String extension called “replaceMany”.

    giphy

    Ten minutes later they changed the code to this:

    String.prototype.replaceMany = function(stringMaps) {
      var s = this;
      stringMaps.forEach((map) => {
        s = s.replace(new RegExp(map.source, 'g'), map.destination);
      });
      return s;
    }
    
    var ids = [
      { source: "162735", destination: "8493273" },
      { source: "736482", destination: "7427364" }
    ];
    
    var jdata = JSON.stringify(data);
    jdata.replaceMany(ids);
    

    This code is way more reusable and can be used with any entity or within any domain. This will allow for code that is more readable and maintainable.

    Overview

    To avoid volatility in a system, one should apply optionality at every level to give oneself as many options as possible to avoid or withstand large catastrophes. To do this in software, developers should write reusable code that will provide the highest number of options for reuse.

  • To The Cloud!  Optionality For Quick Fixes

    To The Cloud! Optionality For Quick Fixes

    Full disclosure: I love working in the Cloud!  I’ve been at a few companies that have their infrastructure in the cloud, including my current position.  The cloud makes it incredibly easy to create servers and environments, and that really helps when one is in a pinch.

    Speaking of a pinch: recently I got myself into a sorta big pinch: we converted our WebAPI environment to docker containers, but we forgot to have it run our Node server with “Node” permissions instead of “root”.  Well, images that were uploaded into our environment had “root” permissions, which needless to say our asynchronous job for optimizing the images for the web failed.  Bigger problem: they failed gracefully without alerting us. 😦

    Three weeks of customer images, over 14,000 of them, where not web optimized!  Holy CRAP!!!

    cmGndrC

    Optionality

    Optionality, the potential for many options, is important when dealing with complex systems.  This is something I practice at every level of our development systems, including at the server level.  For IT, the Cloud provides many wondrous options, including options for me to quickly optimize these images without slowing down production servers.

    With a click of a button, I was able to duplicate our asynchronous job environment and its queue (SQS).  After that was created, I spammed it with the 14,000 job requests for web optimizing the images.  Within 15 minutes, I had a new job environment crunching on the production images!

    Screen Shot 2018-06-18 at 2.13.13 PM
    Look at the new environment go!

    Production is still humming along without any knowledge that there are 4 other servers crunching away.

    Agent-Smith-Evil-Laugh

    Paying for More Servers, NOOOO!!!!

    It took a little while, but after a few hours my new environment web optimized all 14,000 images.  Well, I really don’t wanna pay for those 4 servers, so I deleted the new environment. I only had to pay for a few hours of time for those servers, so the cost was pretty minimal.

    Overview

    So, if you are thinking about switching to the cloud, include in your discussion the added optionality your team/company will have, including the ability to quickly spin up servers/environments when needed.

  • Open/Closed and Expected Outcomes

    Open/Closed and Expected Outcomes

    When I’m trying to be a good developer and apply SOLID principles to my coding practice, I usually get a little frustrated with applying something so abstract.  One issue that has frustrated me a lot is with the Open/Closed principle: when to say that a piece of code/entity is now closed to change.

    After many years of frustration and yelling “Come on!” to my monitor, my thinking about this principle has changed:

    An entity should be closed to changing already established expected outcomes.

    If some other piece of code or system is using your code that you wanna change, you cannot change anything that the calling piece of code/system is expecting.

    A very simple example is a webapi: if a webapi has a “name” property and some other client is using your webapi and is expecting there to be a “name” property in the return data, you can’t change the “name” property to “title”: you’re breaking expectations.  All hell would break loose!

    Limit expectations of the code/software entity as much as possible.

    So what helps me be a more proactive lazy developer is to try to limit expectations of the code/software entity as much as possible.  This has not only helped me with creating easier maintainable and extensible code, but it has also helped me with testing.

    Breaking Tests

    With this view of Open/Closed, I now have a different view of mocking dependencies: they add more expectations!

    I’ve been doing way more integration testing than unit testing.  Ya, I know, but hear me out.  The big reason I’ve been focused more on integration testing is to limit this issue of tests adding more expectations to my code entities.

    Webapi’s are the easiest thing to create integration tests for: create a seed database, have the test runner spin up the webapi service, and the tests make requests to the webapi’s.  Just assert expectations of the results of the request.  I have little mocking involved, only for mocking communication to other systems. This allows us to “change” webapis easily.  What I mean by “change,” is the ability to add additional functionality without worry of breaking old tests.

    If we need to change expectations of a webapi route, we simple create a new version of it.  I usually have v1,v2, etc. in the base of the route, but I digress.

    Lately we’ve been creating more asynchronous job workflows, which require a lot of processing and file I/O.  Full integration tests for these would take forever, so we need to do more unit testing for these.  This adds more expectations to the code which makes our unit tests more brittle: if I add another piece to the workflow later, all my other tests break because they didn’t know about any added dependencies.  Not I have to go back and add mock dependencies to old tests, which should never happen.

    Right now my answer for this is to create a new version of the workflow and start adding new tests to it, along with duplicating old tests for the original version.

    Extend or replace code/software entities if about to break expectations, even for mock dependencies.

    The benefit of a new version is that I’m not getting confused if the broken tests are tell me that expectations have been broken or the tests itself is broken.

    Overview

    Limiting expectations of a software entity will help you be able to easily extend it later. Mock dependencies within tests create additional expectations for your code so try to do more integration tests if possible to help eliminate unneeded expectations.

  • Why UI Automation Tests Are Always Breaking

    Why UI Automation Tests Are Always Breaking

    In my experience, UI tests are always very time consuming.  Every sprint a whole host of UI tests break after developers make changes needed for new features or bug fixes.

    Don’t get me wrong, I’m a big fan of automated testing!  But for my latest projects I’ve stayed a way from UI automated testing completely.  They are way too time consuming to maintain, let a lone extend.

    Below I want to propose why UI testing is a nightmare to maintain and a hypothetical solution.

    Stop Changing, Start Extending

    There’s a very important principle in software development that helps developers write code that isn’t brittle: the Open/Closed Principle.  It states:

    software entities (classes, modules, functions, etc.) should be open for extension, but closed for modification

    This simply means that a chuck of code, once deployed and in the world, should not be changed.  In order to change behavior of a chunk of code, one will need to either extend it (using object oriented concepts of inheritance/polymorphism) or replace it with a different chunk of code.

    Testing With Open/Closed Development

    The huge benefit of writing code in a open/closed way is that when one writes tests for a chunk of code, the tests won’t break later when the developer changes it’s behavior since the developer will never change the original code, but extended or replaced it.  The tests for the original code then won’t break because the original code didn’t change.  Pretty cool!

    UI Development and Open/Closed Principle

    With unit testing,  if the developers are violating the Open/Closed principle, then one will be getting a lot of broken tests to maintain.  This is exactly what is happening with UI development:

    Developers change the UI’s behavior, violating the Open/Closed Principle, and causing UI Tests to break.

    This is great, but how do we apply this principle to UI views?  Let me go through how we applied this to Web API development.

    Versioning Web APIs

    One practice that we have used to follow the Open/Closed principle with Web API development is to version them.  This allows me as a developer to extend or replace behavior without breaking integration tests.

    Here’s an example Web API route for retrieving news articles from a system:

    GET: /api/v1/articles

    The initial JSON response that was deployed to production was like this:

    [
      { name: "article name 1", author: "Author Name" },
      { name: "article name 2", author: "Author Name" }
    ]
    

    There were a bunch of integration tests written to make sure that the Web API returned the correct data in the correct format.  Later, the client wanted pagination.  So we needed to change the format to this:

    {
      results: [
         { name: "article name 1", author: "Author Name" },
         { name: "article name 2", author: "Author Name" }
      ],
      total: 32
    }
    

    Well, that would break all the tests.  To follow the Open/Closed principle (extend, don’t change), we’re lead to create a new version of the Web API:

    GET: /api/v2/articles

    The tests for the original Web API didn’t break and we could create new integration tests for the new version.  Awesome!!!  No broken tests and new functionality!  And no acid reflux as well!

    Now let’s try to apply this concept to UI view development.

    Versioning UI Views

    Let’s say we have a webpage that displays articles in a list view:

    /articles

    To help with following the Open/Closed principle with UI development, this path will need to be configured through the routing framework to go to the first version of the webpage:

    /v1/articles

    The tests should then be written against this webpage.  Thus the tests are written against a specific version of the webpage.

    Now let’s say that the client wants to change the view behavior from a list view to a grid view, thus breaking all the tests that were written for the list view version of the webpage. No problem, create a new version of the page!

    /v2/articles

    New UI Tests can then be written for the new version of the webpage and the old tests will continue to work.  Configure the routing framework to use the new version in the site.  Kaboom!!! No broken tests to maintain!

    The only problem to solve is when to retire old UI views and their tests.  But that one can do on their own time schedule, instead of racing to fit within a development cycle.

    Make It So.

    Maintaining broken tests adds so much stress and consumes so much time.  Hopefully this discussion helps shed a new light on UI testing and provides a step forward for you and your team in creating maintainable and extensible user interfaces.

  • Javascript, Inheritance And Polymorphism

    Javascript, Inheritance And Polymorphism

    With my object oriented background coding in C#, I’ve been looking for a good way to do inheritance and polymorphism in Javascript that is similar to object oriented languages.   Because of my object oriented background, I’m not really fond of the prototype syntax.  My big problem was trying to find a strategy that would allow my extended class and allow me to call the “super” or “parent” methods, even in override methods.  Below is a strategy that will do just that.

    Inheritance

    There are a few different ways of practicing inheritance is Javascript.  The one I prefer is similar to the Parasitic Inheritance model:

    function ClassA(){
      this.doSomething = function(){
        console.log("something done");
      }
    }
    
    function ClassB(){
      ClassA.call(this);
    }
    
    var classB = new ClassB();
    classB.doSomething(); //something done
    

    Polymorphism

    To polymorph in Javascript class is a little more complicated.  I really needed a model that would allow me to call the parent (or super) methods if needed, just like a C# or Java.

    Here’s how I did it using JQuery:

    function Rectangle(){
      var width = 0;
      var height = 0;
    
      this.setWidth = function(newValue){
        width = newValue;
      } 
    
      this.setHeight = function(newValue){
        height = newValue;
      }
    
      this.getSize = function(){
        return { width: width, height: height };
      }
    } 
    
    function Square(){
      Rectangle.call(this);
      var parent = $.extend({}, this);
    
      this.setWidth = function(newValue){
        parent.setWidth(newValue);
        parent.setHeight(newValue);
      } 
    
      this.setHeight = function(newValue){
        parent.setWidth(newValue);
        parent.setHeight(newValue);
      }
    } 
    
    var square = new Square();
    square.setWidth(10);
    console.log(square.getSize()); // { width: 10, height: 10 }
    
    

    This method allows us to polymorph a class and give us the ability to call “super” methods if needed.

    If you don’t want to use JQuery, here’s an example of keeping references to the parent methods:

    function ClassB(){
      ClassA.call(this);
    
      //create parent and set all method references
      var parent = {};
      var keys = Object.keys(this);
      for (var key in keys) {
        parent[keys[key]] = this[keys[key]];
      }
    }
    

    Its a bit more code, but it does the same thing.  It will allow you to call the parent methods and polymorph your extended class.

    Enjoy!

  • SOLID/OOPS vs YAGNI

    SOLID/OOPS vs YAGNI

    Usually when I talk to other developers about my Proactive Lazy Developer concept, a debate starts: putting extra time and effort to build a highly abstract system so that the developer can be lazy later is a violation of YAGNI!

    Here I will try to argue that YAGNI fits well with the art of being Proactively Lazy and argue that the SOLID ,Object Oriented and YAGNI principles are to be used together, but with different priorities.

    What Is SOLID, OOP AND YAGNI!?!?

    This post is assuming that you have some familiarity with SOLID Principles and YAGNI.  If so, you can skip this section.  However, I’ll do a quick overview:

    SOLID Principles (Wiki)

    SOLID is an acronym that stands for the five basic principle of object-oriented programming introduced by Michael Feathers:

    The intention is that if a developer follows these principles, then they will be able to create a highly maintainable and extensible software system.

    OOP (Object-Oriented Programming) (Wiki)

    OOP is a programming language model organized around objects rather than “actions” and data rather than logic.

    YAGNI (Wiki)

    YAGNI is an acronym that stands for “You aren’t gonna need it.”  It’s a principle that states that developers should not add anything to a system that is not deemed necessary.  This principle helps prevent the developer from putting in too

    The Conflict

    XP co-founder Ron Jeffries has been quoted about YAGNI: “Always implement things when you actually need them, never when you just foresee that you need them.”  So, if a developer is not supposed to implement things only when needed, how does a developer apply the SOLID/OOPS Principles without being in conflict with YAGNI?

    How can I be a proactive lazy developer and still follow both sets of principles?

    Proactive Lazy Solution

    What I propose is this:

    SOLID/OOPS principles should always have a higher priority than YAGNI

    SOLID and OOPS are principles to help build maintainable and extensible systems.

    YAGNI is a principle to help build maintainable systems, but doesn’t help with extensibility.

    Remember, we want to make life as easy as possible later on so we can be lazy.  If our system isn’t extensible, then we can’t be lazy in the future.

    WebAPI Example

    Let’s say that we need a WebAPI to create and get an article in a MongoDB database.  We also need it to log the behavior for audit purposes.

    YAGNI Example

    Below is an example that applies YAGNI only to a NodeJs WebAPI:

    var express = require('express');
    var app = express();
    var mongoose = require('mongoose');
    var loggly = require('loggly').createClient({settings: process.env.logglySettings});
    
    app.get('/api/articles/:id', function(req, res) {
     loggly.log("Retrieving An Article");
     var articleId = req.params.id;
     mongoose.connect('mongodb://localhost/test');
     var ArticleModel = mongoose.model('Article', { name: String });
     ArticleModel.findOne({ _id: articleId })
       .exec(function(err, article) {
         res.json(article);
       });
    });
    
    app.post('/api/articles', function(req, res) {
     loggly.log("Creating An Article");
     var articleId = req.params.id;
     mongoose.connect('mongodb://localhost/test');
     var ArticleModel = mongoose.model('Article', { name: String });
     var article = new ArticleModel(res.body);
     article.save(function(err, updatedArticle) {
       res.json(updatedArticle);
     });
    });
    
    

    YAGNI as applied to it’s structure:

    • Everything is in one file.
    • Monolithic methods: one method for each function needed.

    YAGNI as applied to it’s function:

    • It gets an article
    • It creates an article
    • It logs the two functions desired.

    This WebAPI was very quick to create.  It does only what was needed (create and get an article) and nothing else.  Copy and paste it into a NodeJs/ExpressJs project and it’ll just work.  Straight to live I say!!!

    However, this example violates most SOLID principles:

    • The code has too many responsibilities: providing an interface and updating a database.
    • It is dealing with strict implementations of logging vs an abstract.

    SOLID Before YAGNI (The Proactive Lazy Way)

    Now let us set a higher priority on the SOLID principles.

    <strong>//Logger.js</strong>
    var loggly = require('loggly').createClient({ settings: process.env.logglySettings });
    
    class Logger {
      log(message) {
        loggly.log("Retrieving An Article");
      }
    }
    
    <strong>//ArticleRepo.js</strong>
    var mongoose = require('mongoose');
    var logger = new(require('./Logger'))();
    
    class ArticleRepo {
      get(articleId) {
        logger.log("Retrieving Article From MongoDB");
        return new Promise(function(resolve, reject) {
          var ArticleModel = mongoose.model('Article', { name: String });
          return ArticleModel.findOne({ _id: articleId })
            .exec(function(err, article) {
               return resolve(article);
            });
        });
      }
    
      insert(article) {
        logger.log("Inserting Article From MongoDB");
        return new Promise(function(resolve, reject) {
          var ArticleModel = mongoose.model('Article', { name: String });
          var insert = new ArticleModel(article);
          insert.save(function(err, newArticle) {
            return resolve(newArticle);
          });
        });
      }
    }
    
    <strong>//app.js</strong>
    var express = require('express');
    var app = express();
    var repo = new(require('./ArticleRepo'))();
    var logger = new(require('./Logger'))();
    
    app.get('/api/articles/:id', function(req, res) {
      logger.log("Retrieve Article Requested");
      repo.get(req.params.id)
        .then(function(article) {
          res.json(article);
        });
      });
    
    app.post('/api/articles', function(req, res) {
      var articleId = req.params.id;
      repo.insert(res.body).then(function(addedArticle) {
        res.json(addedArticle);
      });
    });
    

    SOLID application:

    • Single responsibility applied for the interface, logging, and persisting data to database.
    • Dependency Injection principle used by classes using abstract logging, and repo classes.

    YAGNI as applied to it’s function:

    • It gets an article
    • It creates an article
    • It logs the two functions desired.

    Yes, there are YAGNI violations.  But, they are there because of the priority of satisfying the SOLID and Object oriented principles.

    How Does This Make Us Proactively Lazy?

    Now we have some code that is better suited for proactive lazy development.  Now you may ask: how does this code help with being proactively lazy?

    Reusable Code

    There are 2 pieces of code that was created: Logger and ArticleRepo.  These two classes have a distinct responsibilities: logging a message and persisting article data.  Now that we have created them for this WebAPI, we can now used them any where else in the code that will need either logging and/or article data persistence.  The best part, we won’t have to keep retesting that code since we already made it work for the articles WebAPI.  That will make use very lazy later on!

    Extensible Code

    Since we have abstracted out the Logger and ArticleRepo, we can now extend them to do more if needed.  Let’s say we need to fully qualify a logo that is stored in the article.  We can easily extend the ArticleRepo to add the logic to fully qualify the logo path.  Other parts of the system that is using the ArticleRepo will still work as expected and we can use the extended version to fully qualify the logo url were needed.  Now we can be lazy with regards to extending features in our system.

    Testable Code

    To make our code better maintainable, the abstraction of the Logger and ArticleRepo now makes our code better testable.  Having automated tests helps us lazy developers push out more code faster since we can rely on automated tests to tell us if we messed something up.

    We can unit test the WebAPI interface to make sure it will always call the correct repo methods.  We could also write integration tests with the ArticleRepo to make sure it will always persist and query data as expected.  Once we get these tests in place, we can be very lazy in the future since we know this code will always work as expected.

    Overview

    Two important principles, YAGNI and SOLID/OOP, are needed to create great maintainable and extensible systems.  However, when you get into a situation where  SOLID/OOP and YAGNI are in conflict, SOLID/OOP should aways take priority.

  • Proactive Lazy Developers

    Proactive Lazy Developers

    The best software developers are lazy developers.  Let me clarify.

    There are different types of developers out there.  In my experience though, there are two basic types: “Hard Worker” and “Proactively Lazy” developers.

    Hard Worker Developer

    One type of developer is the “hard worker” developer.  They are the type that spends 60 plus hours coding each week.  Maybe they’ll code through the weekend to get their project done.  They will be constantly heads down at their desk, hardly ever taking a break. 

    Proactively Lazy Developer

    The other type of developers are what I call the “proactively lazy” developers.  They might put in their 40 hours. They might work the weekends.  But, if they have to go above and beyond, they will be incredibly upset.

    By these definitions, one would think that the “Hard Worker” developer type would be the better of the two. 

    You would be wrong. 

    The Problem With Hard Worker Developers

    Most people would agree that common sense dictates that if a developer puts in long hours, he is therefore a good developer.  Well, as a developer I would have to ask: “Why is the developer putting in those long hours?” 

    There could be many answers to this question, but it usually boils down to these:

    1. The business/management is giving them too much work.

    2. The developer doesn’t know what they are doing.

    This article isn’t about handling the issues with number 1 other than suggesting to hire a great Scrum Master.

    Let me talk about number 2.

    Software Developer Is More Art Than Science.

    It used to be that software development was a very “left brain” activity.  It included a lot of math, and resembled putting together a puzzle. It was very logical and task oriented.  Code was very linear and procedural.  A developer could simply read the code as a paper, from top to bottom.

    Coding today is very different.  There’s very little math and developers are faced with highly complex abstractions.

    Abstraction In Coding

    Since coding is so abstract, this requires the developer to use both right and left hemispheres of their brain.  They need to be able to understand the entire system at a high level before they can write a single unit of code.

    Here is a list of patterns and principles I need to be aware of while coding a simple web app:

    • Object Oriented Principles
    • SOLID Principles
    • Repository Pattern
    • Model View Controller Pattern
    • Model View View Model Pattern
    • Client Server Pattern

    These are just patterns and principles on how to code.  On top of that, there are the frameworks.  Once a developer fits in the frameworks needed, then there’s are the third party system integrations.  And on top of that, providing a great user experience with the GUI.  Not to mention the endless list of different technologies that are used to make a single web app: HTML, CSS, JavaScript, servers (ASP.NET, Java, PHP, NodeJS, etc…), databases (SQL Server, MongoDB, MySQL, etc…).

    Putting all this together to create a product/system that is usable, efficient and highly maintainable will take more than just a left brain mentality with the developer.  It’s a wholistic endeavor that requires both logical and creative thinking to be able to compare and contrast form (how code/systems fit together) and function (what each unit of code does) to create a work of art.

    Here is where I point out why musicians/artists make better software developers than scientists.

    Hard Worker Developer And Abstraction

    The “Hard Worker” developer is usually the one that has a difficult time with abstractions.  They code in a linear/procedural way, thus writing code that is not extensible.  When they have to add more features, they have to add the features in a way that will compromise the older fully functioning features, making both brittle.  After a year or two of adding features, one will find themselves in a position where there are more bugs that feature requests.  And when a bug is fixed, more bugs appear.  With all these issues, it’s not hard to see why these types of developers have to put in the long hours.  This is the result of a lack of wholistic thinking in the development of the application. 

    Proactive Lazy Developer

    The “proactive lazy” developer is a developer who will put in the extra time up front (proactive) to build a highly abstract and efficient system so that they can be lazy in the future.  They thrive on seeing they’re productivity soar as they add features to their system.  They love seeing their bug list empty, or that they can fix bugs in minutes, not in days. 

    Laziness As A Virtue

    When I say lazy, I don’t mean that they don’t do anything.  A “proactive lazy” developer isn’t totally lazy.  They love to code and probably loose themselves while they do.  What I mean is that they don’t like to have to continually put in the hours to achieve a goal.

    One reason is doing this type of coding is exhausting.  A “proactive lazy” developer is going to do anything they can to reduce their overall energy expenditure over time.  They will even write and provide documentation to those with questions so that they won’t have to be bothered.

    The laziness will also be reflected in their work.  Software should make life easier, and a lazy developer is all about making life easier.  You will see that a “proactive lazy” developer will focus on making the system as easy as possible to use.  They might even put in some easter eggs (hidden features) just to allow them to more easily use or test the system.

    Final Thoughts

    So when you’re hiring a developer, ask them if they are lazy or hard worker.  If they say lazy, HIRE THEM!