Photo by Aaron Burden on Unsplash
A few weeks back during a #DevDiscuss, I asked the question “What is the one tip you would give another programmer?" and had quite a large number of responses. Many people commented their own tips or liked/retweeted some of the other tips.
This list here are the top 10 tips tweeted as a response to that question:
#10 by Marcel Gehlen
@MrTurnerj Talking to people can save you hours of relentless, undirected and ultimately unsatisfying coding.
06:34 AM – 10 Apr 2019
Talking with others is always good advice as it is a good way to expand your knowledge. We all come from a variety of different backgrounds with different experiences and may approach problems differently.
#9 by Simon Rood
@peeke__ @MrTurnerj @ThePracticalDev Write your code pretending someone at 3am needs to debug/fix it in a highly critical state. 😄
08:29 AM – 10 Apr 2019
There were a few tweets like this one all with the general gist of "write good code so when the bad times come around, you are less screwed".
Another tweet categorised it like:
Assume the next person debugging your code is a serial killer who knows where you live.
#8 by Rowan Weismiller
@MrTurnerj @ThePracticalDev Use StackOverflow etiquette with your colleagues, too: show your work, ask questions that we all might learn from, and don’t expect anyone to do the work for you.
03:07 AM – 10 Apr 2019
It is definitely important remember that others won’t just do the work for us. If we are wanting help with something, we should provide as much help back through what we tried, what errors we get etc etc. Don’t take others for granted!
#7 by Juho Perälä
@MrTurnerj "Testing" is not a valid commit message.
05:32 AM – 10 Apr 2019
Good commit messages are always a win! You may not have needed to dive through your version control history much but when you do, you will definitely see the benefit in well written commit messages.
Tied #6 by Hayley Denbraver and Sid
@MrTurnerj Remember your coworkers and users (and yourself) are human. Extend grace and accept it too. We are all in this together. #DevDiscuss
01:49 AM – 10 Apr 2019
I feel that this tip is relates somewhat to tips #8, #9 and #10. We aren’t perfect, we can make mistakes.
@MrTurnerj Aim for progress and not perfection.
02:09 AM – 10 Apr 2019
I’ve been caught out on this a few times. It can be very easy to try and make something the "best" it can possibly be, working under every possible situation/configuration. You can end up easily over-engineering a solution. This also came up in the most recent DevDiscuss with a popular tweet by Laurie.
#5 by Molly Struve
@MrTurnerj For _most_ people, we are not saving lives, if your site goes down no one is going to die. Breathe and just focus on fixing it. #FailForward #DevDiscuss
01:56 AM – 10 Apr 2019
In a similar vein to Sid’s tip, it can be easy to get stressed over what we are building. There are totally developers working on literal life-and-death things (and I thank them for their hard work) though most of us really aren’t. If we can’t solve something in the next 5 minutes, it isn’t the end of the world.
#4 by Annie Garneau
annie garneau 🕉
@MrTurnerj @ThePracticalDev Give meaningful names to variables, methods and classes.
02:20 AM – 10 Apr 2019
A few others expressed a similar tip which I consider coming down to the phrase "self-documenting code". It isn’t meant to take away from any documentation – it is instead code that is intrinsically easy to read from things like good variable names, non-confusing structures and method calls etc.
#3 by Matt Kahl
@MrTurnerj @ThePracticalDev Never lose the courage and humility to say “I don’t know.” Your future self, your software, and your teammates will thank you for it.
02:39 AM – 10 Apr 2019
There is nothing wrong with saying "I don’t know". Even some of the most visible developers on Twitter make mistakes or don’t know something. Any time we don’t know something or make a mistake is just another opportunity to learn something new.
#2 by Laurie
@MrTurnerj Remember that everything is temporary. Technologies, tools, frameworks, and most of all frustration. #devdiscuss
01:48 AM – 10 Apr 2019
Nothing really to add to that tip – just a poetry of truth.
#1 by Brian Morrison II
Brian Morrison II
@MrTurnerj @ThePracticalDev Don’t stress perfection before you understand concepts. I have a bad habbit of freezing and worrying if I’m doing X the most optimized way instead of just getting it done!
01:58 AM – 10 Apr 2019
An expansion on the same tip that Sid (#6) gave earlier. I see that having this tip come up multiple times means that it really resonates with other developers.
Here are a few more tips that, while didn’t get the highest number of likes, are still useful to keep in mind regardless of your experience.
Remember to sleep!
Faizan Akram Dar
@MrTurnerj Always sleep well, never compromise
21:30 PM – 10 Apr 2019
Read the docs!
Matt Abreu 👨🏻💻
@MrTurnerj It’s s alright to read the docs, even if you are an experienced developer. Treat them as they’re your best friends! 📖 🤓
19:59 PM – 10 Apr 2019
3 Steps to Good Code
Thomas K Nilsson
@MrTurnerj First, make it work. Then, make it right. Finally, make it fast.
16:08 PM – 10 Apr 2019
What developer tips did you like? Do you have your own to add?