Hi Reader,
After a long summer break, Tuesday Tips is back! 🎉
If you’re new around here, you can find all of my past Data Science tips at tuesday.tips. (Yes, that’s a real URL!)
Next week, I’m going to start including a “link of the week” at the top of each issue. But for today, let’s just get right to the tip!
By the way, did you travel anywhere this summer? I spent some wonderful time in Iceland! 🧊🌋🥾
If you have a coding question in 2023, you have two main options for getting help:
Either way, you have a much better chance of getting a helpful answer if you know how to write a great question!
My guiding principle when writing a coding question is to tell the reader everything they need to know and nothing else. This makes it easier for the reader to be helpful, and (at least in the case of humans) increases the likelihood that you will get an answer!
(1) Write a brief introduction: Give a quick summary of what you’re trying to accomplish and the problem you’re having.
(2) Provide a self-contained code example: Write code that can be copied, pasted, and run by the reader so that they can try it out on their own machine.
(3) Detail the expected results: Explain your expected output to the reader so that they can validate whether they have actually solved your problem.
(4) Add any important notes: Tell the reader anything they need to know about the problem that wouldn’t be obvious from the code example. This helps to steer readers away from solutions that may appear to work but don’t actually solve your problem.
(5) Write a title that summarizes the question: Whether you’re emailing a discussion group or posting on Stack Overflow, you’ll have a better chance of the right person reading your question if you write a concise and accurate title. (I suggest doing this last rather than first!)
Finally, here are some things you can optionally include:
Want to see how I applied this process to an actual coding question? Check out my in-depth post:
🔗 How to write a great Stack Overflow question.
If you enjoyed this week’s tip, please forward it to a friend! Takes only a few seconds, and it really helps me out! 🙌
See you next Tuesday!
- Kevin
P.S. Never have I felt so close to another soul…
Did someone awesome forward you this email? Sign up here to receive Data Science tips every week!
Join 25,000+ intelligent readers and receive AI tips every Tuesday!
Hi Reader, I'm thrilled to announce that my new book, Master Machine Learning with scikit-learn, is now on sale! Buy from Amazon I poured my heart and soul into making this the highest quality and most practical Machine Learning book available. Publishing this book is a dream come true, and I'd be grateful if you'd consider picking up a copy! 🙏 Option 1: Get the paperback from Amazon ($19) Although most technical books of this size (300+ pages) tend to sell for at least $39, I've priced the...
Hi Reader, A few months ago, I announced that my new book, Master Machine Learning with scikit-learn, would be published in December. Since then, my personal life has undergone some dramatic changes 🥴 During the transition, it has been challenging to focus on anything other than bare life essentials 🍽️ 🛌 🚿 Thankfully, my life has begun to steady (yay!), and so in the past few weeks I've been able to wrap up some key pieces of the project! ✅ I'm thrilled to hold in my hands the FINAL proof...
Hi Reader, happy new year! 🎉 I wanted to share with you the three most important articles I found that look back at AI progress in 2025 and look forward at what is coming in 2026 and beyond. I’ve extracted the key points from each article, but if you have the time and interest, I’d encourage you to read the full articles! 💠 The Shape of AI: Jaggedness, Bottlenecks and Salients By Ethan Mollick “Jaggedness” describes the uneven abilities of AI: It’s superhuman in some areas and far below human...