Thinking and Non-Thinking

Mindset·Learning

At my first Improv class, we played a game called “That’s 8 Things!”. You’re given a subject, like countries or fruits, and you have to name eight as quickly as possible. No hesitating, no stalling, say anything at all. It doesn’t matter if you repeat the same thing multiple times or say something off-topic. I was told to name pieces of furniture, and I ended up saying the word “chair” four times and even saying “shoes” at one point. Being fast was more important than being correct. Taking time to think of an answer meant stopping.

I enjoy thinking and spend a lot of my time caught up in my own thoughts. Thinking about life. Thinking about problems. Thinking about work. Taking time to think has served me well when it comes to big problems or decisions. Ensuring I was covering all my bases, exploring all the possibilities, and considering what choice would lead to the best outcome.

The downside is that too much thinking can become a blocker to getting things done. It can cause me to go over my opinions and decisions endlessly. Even thinking about whether I have thought something through enough. This manifests as procrastinating getting started on things or hesitating when contributing to conversations or meetings.

An aspect of needing to think is wanting to have the right answer. When the presence of an infinite number of variables controlling the outcome means there is no right answer. The amount of time spent thinking has diminishing returns. Going from being 50% certain about something to 60% may take double the effort it took to go from 0% to 50%. Going from 90% to 100% may take forever.

Sometimes you just have to shout “shoes”.

Learning how to Learn

Leadership, Mindset·Learning Career

The best developers I have worked with have all been incredible in self-directed learning. And yet, a typical pattern that I see more junior developers get stuck on is not knowing what to learn to progress their skills as a developer.

I spend a lot of time reading, whether blog posts or books, watching talks or listening to podcasts. I have never found myself short of topics to look into more or things to try out. So when I try to picture how someone can feel stuck, I struggle to see where that obstacle is coming from. 

There could be many reasons at play here. A more benign reason being fear and uncertainty: “There are so many things I could learn. What if I pick the wrong one?”. To that, I say start anywhere and see where it takes you. This approach then takes you on a “just in time” approach to learning, where, as you get deeper down the rabbit hole, the topics you need to learn change depending on where you end up. Whereas a more serious reason would be that the individual feels it’s not their responsibility: “My manager should tell me what to learn”. I could see how this way of thinking could be born out of schooling or bootcamps where we are told what to learn. So the responsibility for one’s development has been abdicated. 

Self-directed learning is a skill but an important one for anyone looking to get ahead. For those that struggle, my advice is to jump in. It doesn’t matter where and it doesn’t matter how. Pick up a book. Watch a video. Listen to a podcast. But no matter what, put as much of it into action as you can and link the dots. Every step you take will lead to the next, and that next step may require you to change course, but that’s okay, as now you’re learning.

The technical debt of your former self

Programming·Learning

As we mature and become better developers there’s a funny case of code we previously wrote taking on a certain amount of technical debt purely because we have more experience and knowledge on how to tackle the same problems. We’ve all been there, having gone back to look at code we thought was great at the time to only wonder what the hell we were thinking, or gone back to reduce a long method to a single line. Technical debt is inevitable if we continually seek to improve our skills.

Is thinking really doing?

Mindset·Books Learning

Does thinking really count for anything? I’m not talking about solving problems or equations. I mean, if I spend all my time reading books on business or computing, where is it really getting me? If the practical doesn’t meet the theoretical side, then I don’t believe it counts for much. I’ve grown weary of reading business books over the years. The vast majority of books have the same underlying message. When you boil away all the fluff, you’re usually left with the same thing. The same thing is true of self-help books. I used to read a tonne of them until I eventually realised I was digesting the same thing just phrased differently. There comes a point when it comes time to put the books down and to put what you’ve learnt into practice. Pondering the finer points of business or self-help won’t get me anywhere. Turning that knowledge into something tangible is where it’s at.

Want to get better at X? Do more X

Mindset·Learning Japanese-Language

Recently I’ve been spending a lot of time contemplating what I need to do to become better in certain areas of my life. Namely work, the gym, BJJ and Japanese. Do the answers lie in books? In videos? In talking about it with people? No, the only way to become better at these things is to do more of the thing itself. Nothing counts more than experience does. Whether that’s time in-front of a keyboard, time spent with a barbell, using the language, or rolling on the mats. The auxiliary actions of reading books and watching videos will propel you onwards faster, but they are in no way a substitute for actually doing.

So you want to be a developer?

Programming·Career Web Learning

I’m so glad that I’m not just getting started as a web developer these days. Facebook is the main example I give to people when talking to about this. It has set the standard for what and how people think a web app should behave. Move forward or backwards through photos and they are dynamically loaded without refreshing the page. Send someone a message and a modal box appears with autocomplete on the textboxes. You can browse the site, chat to friends and do all sorts of stuff without ever having to experience a page refresh. I even remember when they added AJAX to their photo albums. I mentally flipped as it made the site so much more usable. I showed it to someone going “Look! Look! There’s no page refresh.” while they just shrugged and went “I don’t see what you mean.”, D’oh… exactly! The sort of stuff no one even realises is happening. But I’m sure they’ll feel the difference if they use functionality on your site that’s similar to something Facebook does, but which requires a refresh where as Facebook doesn’t. Even I feel the pain of moving forward and backwards through photos on Flickr. After the third or fourth page refresh, I just give up.

When I got started, web stuff was so new and so simple that in hindsight it was amazing what you could get away with. You could just fly by the seat of your pants. I know I did. The first piece of web development I ever did was back in the mid nineties two days before my first interview. I wrote a Java servlet that simply took a single text parameter and queried a MySQL database using JDBC. I showed it at the interview and got a job as a web developer using Perl. I didn’t even know the Perl but still got the job. All I had to do, day-in, day-out was write HTML and scripts that responded to clicked links or submitted forms. Submit, refresh and display the result, job done, I can go home now. Creating a site wasn’t hard, almost anyone could do it and almost everyone was at the time. Life was simple and it was pretty much a level playing field. Now though, it is a totally different ball game. You’ll need good knowledge of at least a couple of languages, HTML, CSS (Yes we need it to work across all the major browsers), SQL, Javascript + a framework like jQuery + how to use AJAX.

There is just so much that you need to know that if you’re not doing this in your spare time, how are you supposed to ever compete with the kids nearly half your age who can already do this stuff with their eyes closed. Even me, who does this stuff every day as a job has to learn more and more if I even want a chance of staying relevant and employable. I love learning, so it doesn’t bother me. Programming still excites me on and it has to if you ever want to make a go of doing this for a living. Sometimes you can be in the fortunate position of working for a company that really loves this stuff, so you can learn and grow, but I suspect the majority of IT related jobs are done in companies where IT is a second thought to their overall business goal. Where managers prefer to say “no” to your ideas rather then say “ZOMG we could totally awesomely AJAX th1s!!!11!”. And the learning doesn’t just stop at work related subjects. There’s a lot to be said about learning new languages and techniques totally unrelated to your work. Not only for the mental stimulus but also how they can teach you to approach a subject in a new way. I admit this is perhaps one area where I don’t spend enough time, but I’m trying. So go forth and learn. Be totally awesome.

It's an Improvement Adventure

Programming·Books Learning

It’s amazing how easy it is to be a programmer/developer/code monkey without having to do it properly. I got my first programming job when I was 17, a whole ten years ago, and now after recently reading Clean Code and Refactoring to Patterns, I can’t help but wonder what the hell I’ve been doing all this time. I’ve been writing code, but I sure as hell haven’t been programming. Looking at the code I’ve written as recently as only a few weeks ago now makes me cringe. “Why am I calling this method here?”, “What the hell is this comment?”, “Is this a joke?!?”.

I took a job as a developer for a mobile phone voicemail to email provider four years ago. I was only there for a few months but I still feel like I learnt more about programming while there then I had previously and ever have done since. I’m a firm believer in the notion that you’re only ever as good as the people around you. If you come in at a lower level you’ll soon pick up the pace, and if you come in over those around you, you’ll soon slow down to match your co-workers. As always there are exceptional circumstances. Sometimes if you’re too low, you’ll never be able to perform to the same standard, and if you’re too high, you probably won’t stick around long enough to get bogged down. I’m in a bit of a unique situation in my present role, because I work in pretty much complete isolation from other developers. Which means I have to set my own benchmark. I remember when I started, I was still so full of energy from my previous job (the one mentioned above) that I wrote some pretty cool code, which even impresses me when I look at it four years on. But as time went by I became more and more rusty and the quality of my code decreased dramatically. I stopped reading computing books altogether and took more of an interest in general business subjects. I took an interest again when Rails came on the scene, but none of the coolness or wow factor of doing Ruby could be applied to my day job doing Java, so that area of my life still continued to dwindle. The discovery of Grails changed that to a large degree, but by then I had lost the sparkle for Rails and my code became the same mess, just in a different language. I constantly think to myself that there has to be a better way. Rails and Grails felt like an answer to a certain degree, but the same underlying issues of design and brittleness remained. While features were quick to implement, changes were slow and painful to make. Simple requests became complicated hacks built upon other hacks to fill in holes left by other feature requests. Rails and Grails, while eye openers and moral boosters, didn’t solve my problems.

I was naive and blamed the language, the framework or the previous developer for my issues. I felt that my designs were sound and the code of a high standard. It “felt” tidy and the functionality all there, neatly sectioned off into different places. But Clean Code and Refactoring to Patterns showed me how wrong I had been. Regardless of the language or the framework, without well designed, robust and agile coding practices, you eventually hit a very hard brick wall. To say they were an eye opener is an understatement. It felt more like a programming re-birth. In hindsight, all the signs of bad code were there, I had just become totally blind to it.

Not very long after reading both books, I tasked with making some changes to an old legacy Java system. In the past I had absolutely detested working on it. Everything felt like a mess and that the slightest change would bring the whole system to its knees. But I felt confident this time. I started writing tests, which I had never done before, and started using the absolutely brilliant refactoring capabilities of IntelliJ. I spent a lot of time refactoring code so that the new functionality existed, wrapped up, in a state that it should, rather then in a shoehorned/hacked state. No doubt it too me longer then if I’d just shoved it in, but the system became better as a whole for it. The long reach of the masses of refactorings I performed have left parts in a greatly improved state. Perhaps in some cases, with added complexity - a small price to pay for better testability, design and extensibility. I would rather have an added degree of complexity over a brittle design any time

Anyone can knock out code, anyone can cut-and-paste a system together if they tried hard enough, but writing code alone is a solution to a small fraction of the overall problem. Anyone can churn out new features for a v1 release, but what about v1.1 or v2 or v3. As developers we dig our own graves. Clients don’t understand why things used to happen so fast, but now it’s sometimes weeks before anything new is ever shown. Fast - Slow - Slower.

This is where good, clean code starts to come into it’s own. Code that’s light on it’s feet. Code that’s easy to move in and out. Code that isn’t a brick wall and requires you to code around. Good design and good coding practices are at the heart of delivering a robust solution. If you are a developer you need to read the books I mentioned above, or at least just Clean Code. Heck, as a developer you need to read books. FULL STOP. I know many developers who don’t read at all, which to me is just unthinkable. You maybe one of the few that shrugs their shoulders after reading something like Clean Code and says “Yeah, I know all this already.”, and if so, good for you, but even you will probably know someone who could do with reading it, probably more then once ;)

Learnnning tuo Ty4peer... ARGH!

Mindset, Tech·Learning Productivity

I can type, I just can’t type super duper fast. For years now I’ve been managing to get around 60wpm (70wpm if I really really push) without the use of my little fingers, which is fine for most things, but me being me, I want more.

Thinking about all the extra things I could get done if that went up to a comfortable and sustainable 80-90wpm gives me that warm and fuzzy feeling. So a week ago I purchased a copy of MasterKey and began the long road to proper form. I have to admit it was extremely hard and painful for the first day or two and I came very close to giving up, but six days later, I’m not that much slower then I was to begin with. At first I was down to about 25wpm but at least now I’m hovering just below 50 wpm which is fine for most day to day stuff and not slow enough that I feel the urge to revert back to my old style (sans little fingers). I still have some bad habits I’m struggling to get rid of, namely still using my ring finger for the backspace key and occasionally for the U key, but some habits die hard, real hard.

As a background, Steve Yegge wrote an interesting article on the subject of typing a couple of weeks ago, saying that programmers who type slow make up for it through a lack of commenting and refactoring. By not possessing the ability to type fast, you’re just building up technical debt. While I don’t know if I whole heartedly agree, I can certainly see where he is coming from. I don’t think it’s a critical skill to have, but I think it can, to some degree, display a programmer’s level of mastery of computers. Certainly, someone may have had a job that required them to know how to type, but for those that didn’t, typing is one indicator of time spent infront of a computer/interest in computers/willingness to learn the tools of your trade.

To expand on the last point a bit, I think learning the tools (not tricks, there is no magic here) of the trade is extremely important. Why would you not choose the path that offered a 10%, 20%, 50% or maybe even a 100% (!) increase in productivity. To not make that choice is beyond belief and deserves a shunning. Whether you wanted to take that gained time to make project improvements, read a book or even just kick back, why would you not do it. I don’t want to get into the subject too much now as it deserves another post in itself, but this is why I have chosen to improve my typing skills. To move that one step closer to mastery and not feel impeeded by the tools that I use (Not counting the ones I have to use, blegh Windows).