Like you, I'm someone who makes stuff for the web.
\nLike you, that means I sit in front of my monitor from 9-5 (sometimes later, especially when there's just one more bug to kill!).
\nNewsflash: this behaviour isn't the best for our postures or mental health
\nSo shortly after noticing the effects of my habits as a developer, I started searching for habits that would help counteract this practice of being in front of the screen for hours on end.
\nI have a degree in Human Physiology, Genetics, and Psychology so I sort of know how our bodies and brains work in creating a complex, highly-functional organism capable of critiquing tech tweets...
\nHa! I don't remember a damn thing from that degree so ignore my 'credentials' because I don't have any. The only way you can trust me is check this π and nod if you get me:
\n\n\nNow, what if I told you I had the cure to at least 87.5% (quick maths) of these problems?
\n
Read on because what I propose will make you a happier, healthier developer who gets your Starbucks with your name spelt right (imagine that...), an abundance of ice cream, world fame... You get the point.
\nSo if you didn't get the point, here it is:
\nBeing a happier, healthier developer will have tremendous knock-on effects for the rest of your life:
\nAlright! If you've made it this far, I applaud your patience aaaand LET'S GET TO IT!
\nBarbara Oakley, known for her course \"Learning How to Learn\", explains this quite succinctly:
\n\n\n\"Focus on the process (the way you spend your time) instead of the product (what you want to accomplish).\"
\n
Now, if you apply this to the way you approach a day of coding, you may find a significant reduction in frustration.
\nBut how?
\nWell, it can be quite simple...
\nAdjust Your Mindset
\nInstead of thinking \"My day will be successful if I fix this failing code\", approach it slightly differently.
\nMaybe something like \"My day will be successful if I spend time attempting to fix this failing code\".
\nThat slight mental adjustment is especially helpful for beginners - often they (a.k.a. we) underestimate a problem and feel that they've wasted the day when they go to bed without having solved it.
\nAs slight as the mental adjustment can be, subtle changes in automatic behaviour initially require concentrated effort. Let's practice something real quick - try to identify the 3 process-oriented approaches from the list below:
\n.
\n.
\n.
If you chose the following 3 as the process-oriented approaches, then you're on the right track:
\nNow, to make this mindset change as frictionless as possible, see if you could apply this concept to other areas of your life in a similar vein. The thing is, your feelings of frustration only hurt yourself, they don't help you to code better or faster.
\nSo try it - focus on the process because, guess what, tomorrow is another day.
\nNot to get all 'new-agey' and stuff but this is a serious contender for one of the best things I've started doing in the last year.
\nIf you're not sure what this is about, check out this explanation by Headspace.
\nIf you want to get some practical 'how-to', you'd do well to see what Sam Harris has to say.
\n\n\n\"In a nutshell, mindfulness is the quality of being present and fully engaged with whatever weβre doing at the moment\" - Headspace
\n
So now that we know what is, how can we apply it to our lives as professional debuggers?
\nImagine for a second that you are fully engaged with a block of code in front of you. \"Yeah, dude, that's called concentration. I do it every day!\", I hear you say. True! But...
\nWhat if I told you that being fully engaged also meant knowing when you're not thinking optimally? Or that being fully engaged (re: mindful) allows you to quickly realize that it's time to get up and take a break for your own good?
\nDon't Bash the Wall with Your Head
\nYou see, so often we get stuck into our work and plough on, come rain or shine in the proverbial landscape of our minds, that we don't see it's major downsides. Bashing your head against the wall is not a good way to break the wall down!
\nWhat I'm suggesting is that mindfulness at your work station will help to quickly realize when it's time to take a diffuse thinking approach as opposed to a persistent focused one. And research shows that these two approaches work in tandem to create solutions to difficult problems.
\nI've added a little treat at the end of this post for those interested in becoming mindful π¬
\nLol. Obviously. Nothing new... Right?
\nApart from the obvious advice of \"Exercise every day and eat well\", sleep is absolutely essential for a healthy developer mind. And if you're sleeping less than 8 hours a night, you might be in trouble like most of the developed world.
\n\n\nIt has been argued that the physical and mental damage from one bad night of sleep is far greater than eating terribly or not exercising.
\n
There are a HUGE number of awesome health benefits that sleep has which you can see at the end of this post but here's a little example of what happens in your brain when you sleep:
\nPractice, Sleep, Repeat
\nHow many times have you heard, \"The only way to become a better coder is to practice practice practice\"? Well if you've been on tech Twitter for even a minute then you know it's a favourite quote of the \"influencers\". And for good reason right? We need to train our minds with the ways of code and that takes time and physical typing practice.
\nBut there is a crucial thing that needs to happen after your practice for the day...
\n\n\nβPractice does not make perfect. It is practice, followed by a night of sleep, that leads to perfection.β - Matthew Walker
\n
Ok. Cool. The dude has quotes but who is this Mat guy?
\nLet me just say that you'd do well to follow his advice to the letter. He's a neuroscientist at Berkeley (formerly at Harvard) and he's one of the top people in the WORLD when it comes to sleep. He's only been studying it for like 20 years. No seriously, this guy know what he's talking about. He's worked as a sleep consultant (yip, that's a real thing!) for the NBA, NFL, and British Premier League football teams and professes his absolute academic obsession with sleep and it's superpowers in his book, \"Why We Sleep\".
\n\n\nGot 19min and 18s to spare? Do yourself a favour and watch Dr. Walker's TED Talk.
\n
In short, his talk could be renamed \"Sleep or Die\". Fun.
\nSweet. He's the real deal. So what should I do? What's his advice, yo?
\nThe TL;DR would be:
\nSleep at least 8 hours
\nper night,
\nevery night.
\nHere are some more actionable tips from his book to ensure you give your brain the rest it deserves:
\nMy fellow humans, just do yourself the biggest favour and sleep lots.
\n(There is another nugget of sleep info straight from the man himself at the end of this post and a fun fact about men and their shrinking testicles!)
\nThat's it! You now know the things I try to focus on in my quest to be a better developer (and human in general, tbh) in this long-term thing we call life.
\nIf you've enjoyed the read, learned something new, or know a friend or family member who could benefit from reading it, please share it! The things we've spoken about in this post have shaped my approach to life quite dramatically. Maybe someone needs to hear this stuff too.
\nFinally, thanks for reading!
\nDo you have some advice on how to be a better developer? I'd love to hear from you! Find me on twitter or pop me an email at [email protected].
\nOh, remember to check out the Meditation Links below for the little treat I promised!βπ
\nP.S A huge thank you and shout out to Monica Lent for giving that all important advice on writing and setting up my first blog post π
\nHere is a 'Why and How of Diffuse vs Focused' for software developers.
\nIf you're interested in becoming mindful, check this out. The first 7 meditations are free and if you use this, you'll get a FREE MONTH from me - no card, no strings attached, simply a month free. At the end of your free month, it's possible to ask the Waking Up team for a free subscription if you can't afford it. They're super understanding and will help you out no questions asked.
\nNeed more convincing that mindfulness is good and works? Check out this article from UC Berkeley about the scientifically-backed benefits of mindfulness.
\n\"How to Improve your Sleep\" - Matthew Walker
\nWhat Happens to Your Brain When You Sleep or Don't
\nApparently, men who only sleep five hours a night have markedly smaller testicles\nthan men who sleep more than seven.
\nResearch shows that the world is exhausted and it's killing our economy.
","frontmatter":{"path":"/blog/3-wellbeing-focused-ways-to-be-a-better-developer","title":"The 3 Best Wellbeing Habits You Need to be a Better Developer","author":"Rey van den Berg","date":"30 June, 2020","lastUpdated":"03 August, 2020","summary":"Easy to learn and good for your mental health.","keywords":"wellbeing, meditation, sleep, developer, coding, web development, calm, habits, solution, help, advice, mental, health, healthier, mindset, mindfulness, mindful, balance, minimalism, self-help, programmer, rest, control, posture, fix, assist, coder, webdev, engineer, acuity, wholesome","imageAlt":"A floating, crosslegged animated man in a hoodie totally at peace","featuredImage":{"childImageSharp":{"fluid":{"base64":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAKCAIAAAA7N+mxAAAACXBIWXMAAAsSAAALEgHS3X78AAAA8klEQVQoz42QQQrCMBBFPZU38BpexKVbj+AF3LhR3HSp1IWiIhSqC0GkUNyENLVt0jT6k6DYWq2fMmSSeTO/07r/p8Koctn6BZgPUkrlRhW+HkY14tU/0CDQXaS0sJSyAQapzISpt1+eT9YzsAbb6C2EKAwc57y7mPW2c9zryw+yBAMhhDDGZKE9D51Nuz/qDMauf0GKuVEUJUlSA4NM05RSioiUsWi98yau76yOhDJrCq9xHNt1lGC44pyj8c0oDEPOM/uEZQmh9wwevvALJVgpuyMt8DCP+ShKM4iDQV+kqEFE+nXb6ilr53XAtt8NWz0AculG/vXcM/wAAAAASUVORK5CYII=","aspectRatio":2,"src":"/static/6907129d51fea475b38a4985e124c1ad/cb3af/zen-man.png","srcSet":"/static/6907129d51fea475b38a4985e124c1ad/6fc38/zen-man.png 400w,\n/static/6907129d51fea475b38a4985e124c1ad/ea6a1/zen-man.png 800w,\n/static/6907129d51fea475b38a4985e124c1ad/cb3af/zen-man.png 1216w","sizes":"(max-width: 1216px) 100vw, 1216px"},"resize":{"src":"/static/6907129d51fea475b38a4985e124c1ad/f3583/zen-man.png","height":900,"width":1200}}}}}},"pageContext":{}}}