notes /
I haven't written code at work in at least 2 weeks
3 min · 618 words
No, I didnât quit being an engineer! Quite the opposite, in fact. Iâm currently doing a stretch assignment, an exploratory task that will form the groundwork of how weâre going to revamp a certain area of our product.
Whatâs a spike? đŠ
I hadnât heard of the term âspikeâ (or âfunctional spikeâ) until now. I suspect one reason for this was because in my other job, there were a number of people whoâd been working on the project for years and it was very well-documented, and so there was more general knowledge being passed around. While legacy code is a given on big projects, this codebase Iâm working on has seen a lot of different engineers, and as a result, the code is inconsistent in several respects.
According to Wikipedia, a spike is a product development method originating from extreme programming that uses the simplest possible program to explore potential solutions. It is used to determine how much work will be required to solve or work around a software issue. Typically, a âspike testâ involves gathering additional information or testing for easily reproduced edge cases.
Itâs called a spike because you have to drill deep into the problem (ouch!). While I canât tell you exactly what topic I am doing this for, I can say that Iâm applying this approach of a time-boxed investigation to a certain module of our project that needs improvement. The business logic is stale, it just needs a revamp, but new functionality is needed, too.
Why should I do a spike? đĄ
Did anyone ever tell you that coding is actually a very small part of software engineering? Because thatâs absolutely correct. As part of my professional development plan, one skill I am particularly trying to build is evaluating, estimating, all that stuff.
Now, this kind of comes organically the more you work on a project and interact with different parts of its codebase, so you know what to expect. But the technique I am trying out is consciously making assumptions about the system and its individual components that are already available, then figuring out how we can leverage these to achieve the output we need. The idea of this is to make better informed decisions â ones that wonât mean weâre putting a sticking plaster on a problem, but truly solving it â thereby reducing waste.
And, of course, doing a spike has quite a lot in common with planning a novel (or any other lengthy written work, really)! It wonât probably wonât work so well with the initial planning, as a spike is more for investigation of an entity that already exists so that you can expand upon it.
But: weâve all heard of writerâs block, and this can occur not just when youâre in the beginning stages of a project, but also when youâre in the thick of it. Itâs definitely not uncommon to find that youâve painted yourself into a corner. For example, realising one of your major plot points has more holes than one of those netted bags you put bras in before they go in the washing machine.
Reminding yourself what the âgoalâ of your book is â what set of problems is it trying to solve? â is a great way to start estimating what will be needed in order to meet that goal. Intensive work interrogating the questions, asking why they are even questions at all (in software this will usually be in terms of user stories), will get you down to the essence of the problem.
Anne-Marie Pritchard has cited some examples of spikes that made it to implementation, as well as some questions you can consider while doing your spike. So, next time youâre stuck⊠go forth and spike! đ”