Friday, 8 July 2016

Habitat.sh

I am a big Chef fanboy. It's not something I hide very well or attempt to hide. Chef was a huge part of my role within a release engineering team for a few hours and I think that using it has made lots of positive impacts to the organisation I work for as we strive towards continuous delivery.

You can imagine my giddy excitement then when the current Release Engineering team managed to snag a few Chef employees to come into our office to talk about their new product habitat. Also I'm really struggling to get out to events this year and that's probably one of the career resolutions I've struggled with the most.

Nathen Hervey and Thom May gave us a an overview of the solution and it was great. They have a fantastic interactive demo you can walk through in your browser on their site as well so go and take a look at that.

I'll try to give a brief thought on why Habitat is so exciting. Chef has a node orientated view of the world. That's where the rubber hits the road and things like runlists and recipes get applied and attributes get levelled out and that's brilliant for a lot of applications that people run or for infrastructure servers but it does muddy the waters a little when it comes to distributed services and the clusters that offer that service. That's where Habitat comes in with it's gossip protocol to spread config updates and the supervisor to manage the processes you are getting considerable value add over Chef.

There was of course ways to try and bend Chef to work with these services. We had for example many clusters of couchbase servers that fulfill different behaviours within the same environment and so we used the Role concept in Chef to manage that. That was because for the most part the install was the same but there was some config (other cluster members) that was what differentiated one cluster from another. Using roles allowed us to dynamically discover other servers that existed in the cluster but sadly didn't alllow for us to update all of them at once like Habitat is built for.

The one question I have is how this is going to interact with Chef and other stores in terms of forming an open source toolchain that will allow for you to manage and deploy modern distributed services. Most of the demo we saw involved manually pushing messages in using the gossip protocol (which is used in Ubers RingPop) and so I'm guessing you could probably have Chef Providers or similar which would allow you to do that. I would guess you want to have your config that you've just pushed to your production cluster stored somewhere... Also the attribute precedence setting and levelling in Chef is GOLD so you would really want to be able to hook back into that.

I am feeling pretty excited about the opportunities that habitat.sh can bring to us so much so I've started learning Rust so I can attempt to contribute something to the product.

Sunday, 1 May 2016

An Evening with Kanban - GDG Dublin

Few months into the Career Resolutions I set for myself and I'm struggling with 1 in particular and that's going to events.

So it took me until April to go to my first one and I ended up travelling all the way to Dublin with some colleagues to attend an evening with kanban in the Google Dublin offices which was being put on by the Google Developers Group Dublin (god love them they have google+ account as well) and Lean Kanban Inc.

I always find the networking part the hardest at these events. Always have and probably always will. I decided this time I would engage a stranger in conversation so after grabbing a cookie I decided to attempt my icebreaker. "I know we Can Ban, but I think the question is should we because you know censorship" (yes I know, I know it was terrible but I didn't have much time to think of a kanban pun so leave me alone) it was met with confusion and then they just sort of looked away so I scampered back beside my colleagues as a single tear strolled down my cheek. As Drake would say "No new Friends" :( I can't be the only one to struggle with this right?

Next time maybe I'll try and be a grown up and ask how people find using Kanban, I just feel like if you can't accept me at my worst you don't deserve me at my best...

The talkers were from Paddy Power and David Anderson who wrote the book on Kanban, no he actually did. Paddy power told us about their personal journey and an overview of their working process and it was all very inspiring with delivery pipelines and autonomous co-located teams hammering value out left, right and centre.

David Anderson took us on a journey of his own introduction of Kanban in a U.S telecoms company before going over some kanban design patterns that he's seen in the wild. 

The talks were great and they reaffirmed for me the reasons why at NantHealth (formerly NaviNet) we use Kanban. I think every now and again it's good to take that step back from what you do every day to see how other people are evolving their processes and increasing their value add and really trying to get back to brass tacks of why we went on that journey in the first place.

So small social embarrassment aside it was a really worthwhile journey from Belfast and a big thank you to the organizers and presenters for such a slick overview.

Book Review - The Tipping Point

I just finished reading The Tipping Point by Malcolm Gladwell.

It's a book that tries to quantify and explain what it takes for an idea or concept to go mainstream or viral. In tone and theme it feels similar to Freakanomics but not as fun. I think this is the loosest book I've read this year which I consider to be career related. I always think it's interesting how some ideas you love don't cross over and other more throw away ones somehow do. I hoped this book would give some insights into how to prepare your ideas or make them more palatable.

Gladwell has a number of concepts he feels explains how ideas move, evolve and take hold and each of those is backed by a case study from the 90's ranging from Airwalk to Hush Puppies and beyond. I'm a little disappointed the 90's examples aren't Sunny Delight and Melissa Joan Hart because to be honest I still can't explain either of those.

The book covers a number of topics like personalities involved in idea's going viral, how to make your message sticky and how context is king. Each time we get a detailed case study and numerous callbacks to earlier ones. It feels like the overall narrative is a little forced. The book offers a lot of insights but I think they are dulled by trying to tie them together into 1 strand.

All in though the book felt long and by the time I got to the part about smoking I was really done in. Even that section has some interesting thoughts and asides but I didn't feel like many of them were actionable. A sense of how these things happened is great but a lot of the time the examples felt so specific that it was hard to pull them into something that is applicable to your day to day challenges in work. The thoughts on making the idea sticky was probably the closest as the maven, salesman and connector thing feels like it's something you either are or aren't.

Would be interested in seeing some of the same analysis put to things like the Ice Bucket Challenge or some modern examples.

Monday, 28 March 2016

Because if we don’t learn from History Channel… we are doomed to repeat History Channel.

Test Automation Snake Oil


This is from 1999 and yet is still so relevant to challenges we still face with Test Automation. Go read it. It's 6 pages and doesn't need a review so instead below are some thoughts that I had from reading it. Surprisingly little of it has dated aside from probably an advance in tooling allowing for more tasks to be automated. This is still evolving today and hopefully I can get a post up about the field of cognitive or visual automated testing soon.

I have a little experience in a QA role. It was the start of my career and it was a mixture of manual and automated testing. I even ended up developing an internal automation framework when I had just graduated so I do have an interesting in Software Testing but do not in any way claim to be an expert in the field. I think Quality is the responsibility of everyone on the team especially when you have a setup, like we do in work, that places the QA Engineer/Software Engineer in Test within a small feature team. I feel that in a role in Software Management it's a massive part of the role to still be a big ambassador for Quality even if you aren't in affecting the code on a daily basis.

I think the drive to automate all the things is coming from a really good place but do worry sometimes that we charge head first into battle that it's really easy to end up in a position with a mass of tests which make it a lot more difficult to evolve our application and release features than they should. That's before you get into the challenges associated with maintaining all the LOC that you've just generated to create those tests or the terrible fear of over testing because sometimes it gets confusing between what you can test and what you should test.

So when you read that in 1999, "In fact, in my experience, they fail more often, mainly because most organizations don't apply the same care and professionalism to their testware
 as they do to their shipping products." shouldn't it hurt and surprise us that sometimes we're still making those mistakes. When you read that Boreland in the 90's (shout out to the Silk Test massive)
correlated if bugs were found by automated or manual testing it makes you wonder if we are still even doing that as an industry now. Can we point at something and state that we know
how well the automated tests are performing?

In a world of flaky tests or tests which need changed with every single code check-in (those not impacting external interfaces included) shouldn't we be looking critically again at R.O.I on each automation endeavour in the same way we should do with every user story we write? Does having a suite of tests even stop us from doing the appropriate manual runs in that area? Does a false sense of security exist?

The most important thing that test automation is meant to do is free the resources you have from doing mundane repeated work and using their brain and insight to find the unexpected. The big concern should be if we set up our test engineers to spend all their time writing automated tests are we really setting them up for success? I think it's only fitting to leave with one more quote from the article "That's why I recommend treating test automation as one part of a multifaceted pursuit of an excellent test strategy, rather than an activity that dominates  the process, or stands on it own." That's something I think is even more important today than they day it was written.

Sunday, 27 March 2016

Your Code As A Crime Scene

Just finished reading this by Adam Tornhill and wanted to share a quick review of it

Really interesting book. Part theory part hands on experience and as such it's a different style to a lot of programming books which I think keeps you engaged after the enticing introduction which tells you that the same techniques used to track serial killers can help you find problems in your software. It's a premise like that which get's you interested.

Sometimes it feels like a bit of a gimmick. I don't feel like often the forensic techniques are anything more than a touch point that helps you understand the premise of some pretty nifty statistical analysis through your code and particularly your source code history.  We see the map that indicates where jack the ripper may have  lived but then our own code map seems a bit more straightforward. It still acts as a nice narrative and vehicle for getting the concepts across but I don't feel I'm any closer to starting my private detective business unfortunately.

Section 1 starts with the theory to help you understand where the bottlenecks may be in your code and in particular how to tell from how a code evolves and grows how it may have suffered from growing pains. Essentially V1.0 if your code is normally written by a smaller group with a singular purpose but as time goes on more people come in to the project and that can very easily lead to some sprawl of the code base and differing standards and implementation styles so it's great if you can try and identify those areas because they may need a proper ground up redesign.

This is done through a couple of different mechanisms one of which is mining the richness of information in your git history. The tooling provided will allow you to find code which is complex or could be home to many errors another way of doing that which has been suggested by colleagues was just to keep an eye out for anywhere I had made commits....dickheads.

So while you may not be pounding the beat whilst looking for clues as to where the issues are, what you get instead is some great heuristics and insights. A lot of them that I have no experience of like indentation-based complexity for example which indicates you can judge complexity of code visually from how it's indented. All of these techniques are based on academic finding and Adam acts almost as a conduit bringing these to industry to say hey this could be useful to you today don't want for it to become a fancy start-up with a .io address.

We also get to have worked examples both on the code base that's used to analyse code bases (how meta ;) ) to NHibernate and others. It's brilliant to get this level of hands on work in a book which could easily disappear into theory and intellectual grandstanding. It makes the examples feel like something you can actually aspire to and all in all this made me interested in checking out Microsoft R (pretty sure there is a free EdX course on it) and checking out the world of data analysis.

Section 2 talks at length about automated testing and also some of the shortcomings you can have with the implementation when you have an 'extensive' set of tests that are too close to the code and counter-intuitively slow down progress you can make.

I found the chapter on this to be probably the most interesting and thought provoking of the book. It's not often a developer will talk about writing tests and even less want to draw attention to the tests they've written but this is a frank discussion about how the best intentions around testing can end up weighing you down because the same discipline and thought processes we bring to the application code isn't present often in the test code.

Section 3 is on social psychology and so its very different to what has come before. It's less actionable (to start but does come back around) and I guess more of intellectual value. That's not to say there isn't touch points of real world but initially it's removed from concious thoughts etc. Interesting points include discussing why Brooks law on increasing team size doesn't fit for open source projects.

This feels like a manual for sitting down and working out how to mine the information rich source that is in your source code history. As an industry which has such a steely focus on big data etc we often seem wary to turn the microscope around to look at ourselves and see what can be learned about how we work and what makes for successful software delivery. Though the techniques may not stay the same I truly believe this book could make a big difference to how software gets delivered. Actionable metrics for software development is such a bloody minefield that it's hard not to be really floored when someone can not only show you actionable and scientifically backed ones but also make it an interesting read.

I'm going to make a concious effort to use the tools listed in the book and see what information we can bring out. We are in a pretty distributed project set-up (which I guess is becoming the norm via micro-services) so sometimes I think some of our temporal dependencies will be lost because it's across multiple git repos but I still think a lot of what is discussed and reasoned about here will be useful. When you have a book like this which isn't about a technology explicitly or about a class of problem I think there's no higher praise than to say it's thought provoking and has driven me to want to implement what's talked about as soon as I can.

Well worth a read!

Wednesday, 17 February 2016

CodeSchool - Javascript Road Trip

I'm a javascript noob. I have, of course, like most developers changed javascript and written something approximately like Javascript. Like most developers I've done that really badly but with a level of confidence and bluffing that I may have gotten away with it. So when I saw the Javascript track on codeschool.com and in particular the "JavaScript Road Trip" I thought hey maybe this is point that I should sit down and try and learn it. 

Starting out on the Road Trup?


The video, and therefore the first segment of the course, starts with our intrepid teacher walking along some railroad tracks.

I think this is because we're going on a journey but it may also be because he's hunting the most deadly game of all...bindle swinging hobos. He has running shoes on which supports this and a bloodlust in his eyes that is quite hard to escape.

Ok no it was a journey metaphor. For now anyway. We get a lovely little intro with a strong javascript song. I'm fully into this now.

The first part of the road trip is a free course but when this says the basics of Javascript they really mean it. Truth be told most of it is the basics of programming as very little of it feels javascript specific. Some of it is strongly computer science 101 so if you are an experienced developer you may find this slightly hard going to sit through initially. So the free part is probably of limited value to experienced developers but don't let that put you off the overall Javascript course.


So do I need to take a U-Turn?


NO! Definitely not. Yes the first segment does start at a pretty basic level but It does however develop over the rest of the roadtrip (Not free) and it really does move it along at a good pace. These 3 module that make up the roadtrup  are the building blocks for more specialized courses (Angular/Node/Ember/Backbone) later on but they really do help as they touch on functions, closures, protoypes and a lot of the central concepts you need if you want to get into Node etc. 

I've made some further progress along the overall syllabus and can say the best practices course is well worth a look. It talks about performance, ternary operators and other bits.

Is it worth it?


Definitely worth dipping your toe into. Which I think could also be an incredibly strong Tinder bio so feel free to use that if you so desire.

It is short but peppy which is how the police normally describe me in their records.

The presenter kind of walks that line of being cheesy and earnest in a nice way.  It kind of reminds me of Head First style of books a little. It's informal and relaxed but the content is absolutely sound. I think Jason Milhouse (https://twitter.com/ItsThrillhouse) does a really good job all round but I've found it hard recently to shake the feeling that he may be a character played by Michael Ian Black. IN A GOOD WAY.

The best bit here is and I assume it's common across all courses is the ability to do stuff in an interactive console as  worked examples. This is obviously the code school mantra of learning by doing and I think it's really nice.

Btw first time using code school and the interfaces with challenges etc is really nice. I think I might just need to find another topic, I'll be continuing on the JS journey (because of the theme song mainly) as it does stop at cultural hotspots like Angular and Node on the way. Also I am sort of sure there will be some Hard Target style hobo hunting soon.

I think the overall course offered here is a great way to build or improve Javascript knowledge. You finish the roadtrip feeling a lot more comfortable with the whole paradigm and ready to get into the specialized courses that allow you to play with the cool frameworks. 

I know a lot of people have one eye on improving their Javascript knowledge and I think this course as part of the larger syllabus at codeschool is a great way to do that.

I give this course the golden bindle. 

Pluralsight Course - Yeoman Fundamentals


So as one of my New Year Resolutions I set myself the target of taking 12 online courses this year.

The first course I took is quite a short one. It's a good introduction to Yeoman. I found it through an email shot from Plurasight about new courses recently. It wasn't a technology that I was familiar with so it piqued my interest.

What is it?


Yeoman( http://yeoman.io/) is an application that allows you to build project scaffolding templates so you can take the sting out of spinning up new projects. It's installable as a npm package and getting started is quick

Where would I use it?


It is deliberately technology agnostic. Even though it is a Node based application this isn't only for starting new node applications. You can find generators for most technologies. That’s a really nice touch because if you're starting with a new technology it might be useful to leverage some tribal knowledge from the community to get started up in a common configuration.

If you find yourself spending a lot of time just ramping up a project this might be a good tool for you.

This course sets out to guide you on the path to creating your own customer generator. There are a lot of community built generators out there so if you think you would rather just be a client maybe you don't need the course as there's probably enough in the documentation


What's the barrier to entry?

JS knowledge and Node experience isn't NEEDED to follow it but definitely would help. I think though the more you know the easier it's going to be to follow. I did end up deciding to not follow along but instead just watch the screen cast.


Is the course easy to follow?

I found the course very easy to get started on.
Steve Michelotti (https://twitter.com/smichelotti) was a good guide on this. He's very clear with everything he explains. He brings you through static files to using EJS templates. I think by the end of this you feel confident enough at least embarking on creating a generator for real.

I mentioned before that if you aren't planning on building a custom generator then maybe the course is slight overkill. Whilst that's true I personally found it useful to see some of the inner workings and get a little bit deeper with how it works.

The one negative I would say, and it's my own fault, is I'm actually not that au fait with the whole Node ecosystem and I found myself pausing to go WHATS THAT or WHAT a lot. It got the the point I stopped trying to follow along with my own version and just watched what was happening as I felt I really needed to focus. For others with experience of those tools etc I think it will be

Yeoman also offer their own codelab tutorial on building an application with a generator so more using yeoman than building with it. It's expected to take an hour so would be a little shorter and may be a good free alternative

How I may use it in the future :

So initially I thought this is maybe not going to have a practical use for me because I'm not in a front end shop doing lots of new custom websites/projects. Then it dawned on me (and not surprisingly it had already occurred to everyone who ever used Yeoman before) that this fits perfectly in a Microservices environment too.

If you have a preferred structure of projects then creating a yeoman Generator just makes sense. The cost investment isn't huge as there' s a lot of very good starting points already. It's great to get everyone starting off on the right foot.


Would I recommend it?

If you have access to pluralsight then definitely. It's a small course at a good pace so well worth a visit. Failing that the free codelab tutorial looks good for learning how to use yeoman and the wealth of generators currently out there.