I'm in my senior year and still struggle with estimating how long coding tasks will actually take. Whenever a professor or a teammate asks for a time estimate, I end up just guessing. For example, I might say it'll take two hours, but it actually takes six. I've been doing this for four years now and feel like I have no real grasp on how to assess a task for a solid estimate. I never learned how to do this properly—should I just expect it to improve over time, or is this something I need to figure out on my own? Does anyone else deal with this, or is guessing a common scenario in the coding world?
3 Answers
Honestly, estimating coding tasks can be incredibly difficult, even after years of experience. There are various methods out there, like story point poker or critical-path scheduling, but the truth is, estimating well is part of the challenge of programming. One solid piece of advice is to underpromise and overdeliver—this way, your estimates don’t put pressure on others relying on your timelines. Also, don't make your estimate the shortest time that could barely cover the work; try to be realistic. If you haven't yet, check out "The Mythical Man Month" for some great insights.
You can only really estimate tasks that you’ve done before, and even then it's still tricky. It feels a bit like a guessing game, but you'll find that with more projects under your belt, your estimating skills will naturally improve the more experience you gain.
Estimating isn’t a skill that can be easily taught; it really depends on your personal work style and skill level. It's something that you get better at over time. Early in my career, someone advised me to avoid overpromising. It’s much better to give yourself extra time and finish early than to promise something and fall short. It sounds like you might be leaning too much toward giving the most optimistic time frames. Building in some buffer can help, and remember, overestimating doesn’t mean you're being lazy—it's about ensuring you meet deadlines!

Related Questions
How To: Running Codex CLI on Windows with Azure OpenAI
Set Wordpress Featured Image Using Javascript
How To Fix PHP Random Being The Same
Why no WebP Support with Wordpress
Replace Wordpress Cron With Linux Cron
Customize Yoast Canonical URL Programmatically