How to use your full brain when writing code
chrismm.com
chrismm.com
aerobic exercise.
If you just take a brisk walk, a quick sprint, or a jog, before you code or intermittently, you'll notice a world of difference.
Installing a pull-up bar in my apartment has noticeably improved the quality of my work, as well my own enjoyment of working.
Any time I feel a bust of frustration in my gut, or any time my code is compiling, I get up and crank a few (like 5) out.
Makes a world of difference.
There's a silly old factoid about how "you only use 10 percent of your brain," which psychics and other woo-peddlers use to sell their personal solutions for opening up the potential of the unused 90%. Of course the idea that you can think better if you use 100% of your brain at once is as silly as the idea that you can communicate better if you use 100% of the alphabet at once, which was Visarga's point.
That's not what the article is talking about specifically, but the bit about "using your full brain" does raise unfortunate associations.
The routine is easily done in an office / park / parking lot, though you'll probably want a shower afterwards.
I've found that there is some sub-conscious mental block that makes it hard for me to start walking, but once I'm going I barely even notice that I'm walking - I can get lost in the work I'm doing just as deeply (possibly more deeply?) as when I'm sitting or standing.
I've tried to come up with some objective ways to measure my productivity walking vs standing vs sitting but haven't come up with anything concrete. If I had to guess I'd rank my focus level high to low in this order: 1) First 3-5 miles of walking 2) sitting 3) 5th - 10th mile walking 4) standing. Standing is much more strenuous than walking to me.
-Eliminate distractions. Any external stimuli subtract from concentration and "processing power" for your task. Even the possibility of distraction can put your brain on alert for them when they're not present, so best if you can create an environment which is free of distraction generally. This relates not only to your office/work environment, but things like going into DND on your phone and IMs.
-Work in large, contiguous time chunks (and then take breaks; see next). For complex tasks, it takes a while to "spin up". To load all the context, to explore possibility branches of solutions, to implement possible solutions and test them. As with distractions, very short work windows break this problem solving time up and require a re-spin-up period.
-Take breaks between longer work sessions. Taking breaks-- and in particular moving around while on break-- helps prevent fatigue, sustaining efficacy and productivity for longer windows of the day. Taking a break, especially wherein you change your environment (eg walking outside), can also help invigorate problem-solving. Finally, moving around is healthy for both your body and your mind.
I don't think you can make full use of your brain without following all of these as well.
Right now still using heyfocus.com for Mac + ClearLock for Android.
Whichever provider can have a scheduled blacklist/whitelist across Android + Mac first gets my dollars.
Also, to add some neuron info that the article didn't mention:
- place / grid cells would allow you to use your brain more, easily - see the book Moonwalking with Einstein a book recommended by a friend
- neural codes are convex- could we use this knowledge somehow?
- using your full brain is known as an epileptic seizure, iirc..
- tonic/phasic firing matters a lot as to the effect of neural firing, although I forget as to whether that's a dopamine-only trait..
i.e "lets do the integratation"
becomes
"integration do".
That's only 1 example, but in my personal estimation he's one of the two most effective management theorists I know. Though I wish he were a better explainer. (The other of course is Shanley Kane.)
(But it's not worthwhile for me to trawl through the managerial lit, so no doubt there's more examples.)
It's definitely a pretty dry read in parts, but battle through it.
exactly, as programmers we should be able to understand and apply basic concurrency management techniques.
Also, your manager is shit.
That sounds like Agile done right! /s
Let me be a little more specific, though, because it's trickier than I let on. I prefer working on XP style teams, so I'll use XP style vocabulary here, but in my experience what I'm about to say is pretty universal, so feel free to extrapolate.
One of the most important things for running a successful project is understanding the attention span of your stake holders (which includes customers, managers, etc). You must deliver "user visible functionality" (i.e. things that your stake holders value) at a regular rate. There is a threshold after which if you fail to deliver something valued by the "customer" the project's chance of failure increases. If you regularly cross that threshold, the chances of success can be almost zero.
The actual threshold depends on many factors, but my rule of thumb is 2 weeks. If you don't deliver something of value to the stake holders in 2 weeks, they will get uncomfortable and start thinking about other options. If it happens regularly, then they will constantly be thinking about other options and eventually will chose one of them.
(The corollary of my rule of thumb is that the biggest danger to a project is senior management since they are the ones with the power and responsibility to cancel projects that they think are not going to be successful).
The more you deliver in that window, the happier stake holders will be, but... if you get into a situation where something you deliver turns out not to be complete/satisfactory/whatever it works against you. So if your stake holder ever utters the words, "But I thought we already did that", then it's like missing 2 windows (well, in my experience, more like 1.5, but I'm splitting hairs).
You might be wondering what this has to do with the topic. :-) The problem is that you can't just wander away and study stuff, even if it is going to have a good effect on the project. Similarly, wandering away for a month to gather requirements, or write design, or refactor crappy code, or write a decent build system, or pay back technical debt, or... anyway, it all moves you toward cancellation. This is the real reason waterfall doesn't work IMHO -- stake holders don't have the attention span to deal with the time it takes for things to shake out and so the projects get cancelled.
What this means is that every thing you do must be linked to customer-visible value. Furthermore, it limits the amount of time you can spend on every part. You can't wander away for 2 weeks to learn Rails. But you can easily wander away for 1 or 2 days to learn an aspect of Rails that will help you with the story/task that you are currently working on -- so long as that doesn't push you over the threshold.
If you start delivering stories with customer-visible value every 2 days, for instance, nobody will care if you are spending half of that time doing tutorials, katas, memorising stuff -- whatever you think is productive. You actions are invisible to the customer and they just don't care.
With that in mind, where I always find problems when I see people complaining about this issue is in the work backlog. Usually the stories are organised by technical rather than customer issues. So you'll have a bunch of stories that provide absolutely nothing to the customer and then you will have a story that links it all up gives them a lot -- usually a month or two down the road.
The root cause of this is usually because programmers/PMs try to be efficient and not duplicate work. Instead, identify all of the customer-visible value and try to create a story for each one. Make vertical stripes of functionality that you can deliver at a more measured pace. This will require you to do refactoring between each story because your infrastructure will always be incomplete. However, it allows you to deliver value more regularly and causes the "big red eye of management" to focus its attention elsewhere.
I've already written more than you are likely to read, so I'll stop here. Just let me encourage you a bit more in saying that you have the ability to change things. It's not easy and it takes time, but you can do it if you work patiently toward your goal. Don't get discouraged!
I guess what I want to know is this - can you apply these principles to learn other stuff to get you ahead in life while getting hit on the head with kids responsibilities etc? Pardon - for the ramble and incoherence :)
If you are interested in project management, for instance, there are literally hundreds of things you can do: write acceptance criteria for stories, collect data, write daily or weekly reports, etc. Most of these things you can just start doing tomorrow if you feel like it and people will be pleased. For example, if you say, "I'm having difficulty understanding what's going on in the group, so I'm going to write a daily summary of every thing checked into the source repository", everyone will be happy. If it is useful, it will become part of your every day job.
Of course the trade off is time. I spend about 1 hour a day on average collating information for my job. I do it because I've found it effective on other projects. People seem to like it. Nobody asked me to do it, though. The downside is that I have 1 hour less per day for coding. I'm not as effective as a programmer as some people on the team.
You can't escape that math. Don't expect to find a solution that is all upside with no downside. Same for family responsibilities. Do those things because you value them. There will be other people who will not have families and will devote themselves to work. It might seem unfair that they may progress faster/farther in their job than you do, but that's just the way it is. We all make choices.
Hope that helps!
That being said, comparing the brain, any animal's brain, to a commercial Intel or AMD processor is very misleading.
And I guess it's fitting that I compared the brain to a machine we don't yet know how to build...
I'm curious how the parts of my brain responsible for walking, riding a bicycle or telling jokes could be used when writing code.
I was intrigued by the title, and disappointed by the article.
Does he honestly think the author literally believes the parts of the brain involved in locomotion can be used for programming?
It's being pedantic in an unproductive way since no charitable reading of the OP would come away with that conclusion.
Sure enough, I took a look and found this: http://orgmode.org/worg/org-contrib/org-drill.html