On new things

Sometimes I find it hard to believe I’ve managed to land myself in a job where I get to learn something new every. Single. Fucking. Day.

If I was going to describe my dream job prior to this, I would’ve said something like this, maybe if I was lucky. But I always thought that “new things” was something you had to dole out, maybe get a couple a month.

But every day? This is pretty amazing.

 

Spring things

Work has me doing a lot of stuff with REST services developed using the Spring framework. We’re using REST Assured to do the testing of the services even before we get a UI layered on top so I’ve been learning quite a bit.

I’ve heard that some of the best advice others have received for learning to code has been to find a problem and work out how to solve it with the code you’re learning. I have a specific problem I want to solve and my initial thought was to do so using Javascript (hence earlier posts on the subject). This however promised to be far more complex than needed. That’s where REST services come in.

Spring provide a handy set of guides and seems to be a nice, out of the box solution to all your RESTful needs. Granted, I don’t know if it’s the best solution to my problem., but it’s something I work with day to day and I’m familiar with it. I’ll use Gradle to build the project (because omfg it’s so much better than maven) and then layer on a front end once I can get the service playing back and storing data.

 

My git cheat sheet

I wrote this while I was getting the hang of using git in my current role. Over time I’ve added to it but to be honest, I rarely have to refer to it now.

If you’re wondering at the shorthand ‘g’ rather than ‘git’ it’s because I use oh-my-zsh with the git plugin (the dev VM I use at work runs Ubuntu and it also plays nice with OS X. Windows users can suck it). You can get a similar result by aliasing git commands.

Initial Setup

g clone
g pull

If you don’t know those two, stop reading now.

… 

 

Handy Sublime Text addons

You need to be a bit careful with these as adding lots of them can really slow Sublime Text down.

I found this list of handy addons while looking around for a way to get grunt running from within ST. It starts off with installing the excellent Package Control which makes installing and managing addon packages sooooo much easier. Trust me on this. I found it only after an annoying process of manually installing an addon. With Package Control those days are gone for good.

Now that was a weird sentence to write.

 

Bower gotcha

Found this problem while trying to get Bower to work with yeoman on Ubuntu. Turns out it’s the fun corporate proxy here but the problem isn’t insurmountable.

After installing jumping into the application directory and installing Bower with

sudo npm install bower -g

attempting to run

bower install

produces a bunch of connection related errors.

Find the port you’re proxying through by

env | grep -i proxy

Now that the port is known, edit .bowerrc in the application directory

nano .bowerrc

and add the following

{
   "directory": "bower_components",
   "proxy" : "http://localhost:<port>",
   "https-proxy" : "http://localhost:<port>",
   "strict-ssl": false
}

Save the .bowerrc file, close it and re-run the bower install.

Done.

 

The New Place

Names? Who needs names?

Three days here so far and I’m having a blast. Not honeymooning (too cynical now) but there’s a lot to like:

  • Practical use of git
  • New tools like Gradle (whatever happened to Maven?)
  • New concepts e.g. contracts testing
  • More technical testing than I’ve ever been able to do: automation, BDD, security, API’s
  • Many things being implemented and trialed
  • Angular and Protractor
  • Little “a” agility
  • Walls with cards, stories being progressed, get togethers around whiteboards to clarify things, developers, testers, designers and BA’s excited about what they’re doing and enthusiastic about overcoming challenges

In short, much more to learn in an environment I’m more comfortable in (agile) which makes me a happy tester :)

 

Waterfall is still shit

Any PM – or anyone else for that matter – telling you just how awesome waterfall is as a development methodology clearly isn’t paying attention. Experience of the last 50 or 60 years in software development aside, one only needs to look at the paper that supposedly proposed waterfall as a working model to know that the process was a pile of suck from the beginning.

See, a guy by the name of Winston Royce wrote a paper titled “Managing the Development of Large Software Systems“. Go read it. It’s worth it. In the paper he describes exactly why this process is complete balls. Even though he never actually names it as waterfall, it can be clearly seen as such from the diagram.

I find it funny that there has been industry wide adoption of a process that was demonstrably inadequate to the task of building software.

 

DSDM Atern. What is this? I don’t even

Apparently DSDM Atern is an Agile implementation.

I really have no idea how this could ever be considered aligning with the agile values and supporting principles. Seems more waterfall with smaller iterations rather than agile. Which is fine, just don’t say it’s agile, particularly when you have as a guiding principle “Demonstrate control” that includes the gem “use an appropriate level of formality for tracking and reporting” then I’m pretty sure you’re #notAgile.

Apparently it’s all the rage among big corporates, with 1% of all those surveyed saying . . . Wait, what? One percent? One. Percent. So it’s right up there with the Agile Unified Process and agile modeling. And slightly lower than the category of “Other”.

Excellent.

 

 

Passing on the lessons learned

One of the things about facing the imminent end of your current employment (contract’s not being renewed as the role I’m in is effectively redundant) is that you know you’re not going to be there to help out the people you’ve been helping out for the last year. In light of that harsh truth, I started putting together a list of useful testing resources, things to read, even things that aren’t specifically related to testing but have proved useful to me at various points of my career.

The list won’t be useful to everyone and I don’t recommend going and buying every book on it. This is just what I’ve collected over time. If you have any to add please feel free to say so in the comments section.

Stuff that’s related to Agile and Scrum that you might find useful, even though the journey there will be difficult

  • Scrum Shortcuts without Cutting Corners – Ilan Goldsteins take on how to survive an agile implementation and what works in the real world (or at least what worked for him)
  • Agile Estimating and Planning – Mike Cohn’s excellent book on how to do it right. There’s a reason why the praise section reads like a who’s who of the agile world

Technical stuff that I enjoyed reading that wasn’t specifically related to testing

  • Introduction to the Command Line
  • The Phoenix Project (fiction but a great read)
  • Practical Lock Picking
  • BackTrack 5 Wireless Penetration testing Beginner’s Guide
  • Metasploit: The Penetration Tester’s Guide
  • Nmap Cookbook

There’s a bunch of stuff that I’m yet to get around to reading from a few authors who interest me. These are mainly about techniques used to eliminate waste at a number of levels, from software development to pointless management bullshit. The following authors may be of interest to you too:

If you end up leading or managing people please, I beg of you, ensure you know the essentials of the above. It might help make the next generation of leaders management types a little less dense.

My next trick is to post up a bunch of useful links, though the blogroll is a good place to start. This will include blogs, Twitter accounts, etc. that will give you insight into the craft. Some you may know, others may be unfamiliar.

Good luck.