frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

Developer's block

https://underlap.org/developers-block/
84•todsacerdoti•4h ago

Comments

dgan•4h ago
Rolled my eyes on "For experts only: don't do it yet". Shut-up already. I will do it right now because it will nag me forever and then surface will grow, and every time the new code interacts whith what-could-ve-been-optimized I will spend 5min thinking if I should already optimize it
glynnormington•33m ago
If there's a definite performance problem and a simple solution, then sure, go ahead. But applying every optimisation that comes to mind can produce a dog's breakfast of unmaintainable code and then when a real performance problem comes along, it can be really hard to fix.
siva7•4h ago
I love how we developers see ourselves like creative writers instead of plumbers
RealityVoid•4h ago
Some jobs are more like plumbing, some more like creative writing, some more like planning and architecture. It really depends on the project.
frou_dh•3h ago
Well it is quite literally writing, and fairly often starting with a blank page (file) and then doing a lot of editing.

---

Talking of pages, I quite often write down on a physical notebook what I'm trying to accomplish. Because if I just dive straight into hacking code I sometimes get a frenzied feeling, as if I'm just bouncing around like a pinball in an undisciplined way.

raincole•3h ago
Haven't heard plumbers launching side plumbing projects. But who knows, perhaps they do and just don't post on HN.
adithyassekhar•3h ago
Depends on whether you are working for someone or building for yourself.

If you work for someone, you are essentially plumbing, you will still find faults with their ideas and inform them. But you don't make the call to change that idea, nor do you have the burden of living with the finished product. It doesn't have your name attached to it. No one will call it, siva7's crm, you will move on to the next project.

Now, if you are building something for yourself, you are the creative writer. It's your call, it's your want, it'll have your name attached to it. You can move on, but in everyone's mind and your own, it's your creation.

woadwarrior01•3h ago
It's a spectrum. Most projects span the entire spectrum. Lots of boring plumbing work, and a little bit of brilliant algorithmic work.
Kovah•4h ago
There's so much good advice in this article. My number one point that i learned the hard way during two decades of writing software: take breaks when your body tells you to. It's an absolute killer if you force yourself to work on your projects just because there's stuff on your to do list, new issues on Github, or whatever. Just stop working if you don't feel it.
mavamaarten•3h ago
I feel like that's great advice for people working on their own side projects.

But... I'm employed? I mean surely it translates to "go on vacation" but it's pretty useless advice for days where you simply have to work and can't just... not?

mikodin•3h ago
I don't think it needs to translate to "go on vacation". During my time being employed, this translated into getting up and stretching, taking a few minutes to look out the window, going for a short walk, taking an intentional breath, sitting and meditating for 15 minutes, actually eating lunch away from my computer, or not eating lunch and going for a quick run or doing yoga or going to the gym.

This can come forth in so many ways.

Moment by moment we can have an eye on our body and what it is asking for, I've found it to not only make me more productive, but also led to my baseline of stress to being way, way lower then everyone around me which is contagious in a positive way.

glynnormington•48m ago
I take your point as I'm retired. But I had my previous working life squarely in mind when writing the post.

"Sustainable pace" helps, which in my case came down to 37 hour working weeks, not working at weekends, and taking all my vacation (and some extra when my employer let me buy it). I know this might sound like madness to Americans, but as a Brit employed mostly by American companies, it worked fine for me.

I found that taking plenty of breaks during the working day helped. Coffee breaks with colleagues, a decent lunch break (ideally including exercise), and plenty of tea breaks. So many times I've had a good idea or solved a problem during a break, so they are actually productive.

Then there's finding other useful things to do which aren't as taxing as the thing that's blocking you (e.g. the next large feature). Fixing bugs, writing docs, and doing preparatory investigations about the upcoming work are all productive ways to give yourself a bit of a mental break. (This was hardest when working in teams with continual short sprints or doing XP and pairing, but if I allowed myself to start to burn out, my productivity started to decline - essentially my brain was forcing me to take things a little more slowly in order to recover.)

vjerancrnjak•1h ago
There’s no golden rule. For me, both work and learning out of curiosity is stress inducing activity. Nail biting, valsalva breathing, skin rashes etc.

I just grind through it and repeat the days.

I would do only aimless activities if I relied on the feels.

This kind of negative emotional investment seems to be the only thing that improves my abilities. If I’m learning through Anki or playing tunes on the piano, habit can stop after 6 months of regular daily practice.

But if I’m on the brink of stress rage frustration, somehow it persists .

JimDabell•4h ago
I’ve also found that LLMs are great for getting past developer’s block. “What next?” can overcome inertia quite easily.
petesergeant•2h ago
That and I find it’s usually easier to start with a shitty first attempt that kind of works that you’re then refactoring
ekidd•2h ago
Yup, I don't use models to write serious code. But if my brain is totally blocked, perhaps after half day of meetings, I do sometimes take a smaller local model, explain a simple task to it, and let it try to implement to my specs. At this point I'm usually annoyed and engaged enough to get back in the zone.

If a human is available, 30 minutes of pairing works even better. There's just something about breaking tasks down and getting even simple feedback that makes it a good jumpstart.

meander_water•3h ago
Great advice all round.

> Take time with learning

But this one in particular stands out. We are being constantly pushed to ship code at faster and faster rates. AI has only hastened the process.

If you want to learn anything new you have to slow it down, push back against all the forces urging you to do more, ship more, make more money.

If you're using AI tools, do the opposite of what everyone else is doing. For every piece of generated code you accept, scrutinize every line, ask clarifying questions, ask for alternate implementations, ask what the tradeoffs are.

Just be curious.

This will be slow, but that's the point.

duncanfwalker•3h ago
I think a lot of this is addressed by having a definition of done and more generally being explicit about quality expectations. You don't need to worry whether to polish the readme or add cross-compilation if you conscious about your quality expectations and the drivers behind them - there is no single 'best' project.
RossBencina•51m ago
I agree. I've been experimenting with writing DoDs for anything longer than an hour's work (things that often end up taking a month.) It helps. I think there's also something to setting structured goals, and sequencing mid-term sub-projects. If you can define scope and definition of done for the current sub-project then you can be clear on what is important now, and what you can defer for a later phase.

Relatedly, I've been hearing a bit about goal hierarchies lately. This seems like a more flexible approach than reducing everything to a TODO list and/or backlog. (Here's a random description of goal hierarchies that seems like a good introduction: https://www.spcperformancelab.com.au/personal-training-advic...)

ChrisMarshallNY•3h ago
> Release early, release often

I’m big on this.

I find it efficacious to have an integrated product going as soon as possible, even if it’s a field of stubs.

It’s my experience that I almost never know what the end product will look like, no matter how much upfront planning time I devote, so being able to test and iterate the whole system, as soon as possible, is pretty vital.

It’s also one reason that I like to use test harnesses a lot[0].

[0] https://littlegreenviper.com/testing-harness-vs-unit/

Martin_Silenus•3h ago
Sleep. Best side task for your brain.

How many times has this happened to me?

You struggle with a feature or a bug, you think about it, you weigh the pros and cons for hours... because you don't want to start something that will set you back. You're tired, but you don't want to go to sleep until you've at least made a decision for tomorrow.

Go to sleep. Now.

Then you wake up knowing immediately what to do. You hardly believe it, because it was so hard to find before you sleep. And you do it. And it works. And you know that sleep was the key.

esperent•3h ago
Also exercise.

Sleep restores you. Exercise is the spark.

aswanson•3h ago
Facts. I don't do the late hours on code anymore either. Rest is essential.
oldmandev•2h ago
I agree that sleep and exercise are key.

Some have pain and/or insomnia waking them up at night with the inability to get back to sleep quickly or at all, and some have pain/injuries that make exercise less fun.

Telling us to sleep and exercise is like telling homeless and starving people to get off the streets, find a job, eat a good dinner, and buy a house. It sounds nice, and we’ll do our best, but the world you live in is different, and you don’t understand.

shakna•1h ago
True, but as someone with a pain condition... Most throwaway suggestions won't help out. People always try to help, but rarely can. That's fine. Take the kindness, discard the advice.

But because I've struggled with this thing for decades, I probably do have enough tools to find my own way. And if I've run out, it means I'm about to burnout and need to find a way to restore ASAP.

CalRobert•1h ago
If only my kids would let me..
binaryturtle•58m ago
I just take a hot bath… best ideas happen in the bathtub for me.
spongeb00b•48m ago
Douglas Adams was a big proponent of baths to help his writing
snarf21•42m ago
I design board games and almost all of my ideas come while walking or driving. Sometimes we just need to give our brain a minimal task to occupy it and then we can more easily get into flow. This is also the same result of the Ballmer Peak / 1 Beer Buzz method. [https://xkcd.com/323/]
drebz•16m ago
I once solved a customers problem, and understood the problem of my broken washing machine during one short shower before going to bed. Best shower ever.
lordnacho•3h ago
I hate to turn everything into a conversation about AI, but this essay maybe explains best what LLMs have done for me recently.

Particularly the first part. I want to add a new feature, but I want to keep things clean. It needs tests, CI, documentation.

It makes exploring new ideas a bit cumbersome, because code tends to create minor distractions that eat up time. You miss a semicolon, or you forget the order of the arguments to a function you just wrote, do you have to flip to another file. Or the test framework needs an update, but the update breaks something so you have to do some changes. It's not just the time either, it's the context switch from the big picture to the very small details, and then back again.

LLM lets me do "one whole step" at a time. Or that's the positive spin on it. Seen another way, I'm further out from the details, and in most things, you have to hit a bit of a wall to really learn it. For senior devs, I lean towards the first, you've already learned what you're going to learn from fixing imports, you are operating on a higher level.

ktallett•3h ago
Are you giving the LLM your code and letting it add a new feature to see how it works? Or what?

How successful do you find your method?

Would you recode what you introduced using the LLM?

lordnacho•3h ago
Yeah I let the LLM look at the code and ask it to implement some change.

It works pretty well with Claude Code. Much better than cursor, which is a step up from copilot. Even with the same models, and I'm not sure why. I haven't really tweaked much around the AI tools, since I don't really know much about how they work.

I've just found that Claude Code somehow... just works. Out of the box, no MCPs, no fancy configs. I just straight up tell it what I want, and most of the time it gets it right or close enough to right that a second instruction is all I need.

Would I recode what I wrote? Maybe not from the ground up, since I already had a pretty good framework. But LLM has managed to make some pretty fiddly changes to my codebase recently. It would have taken me a long time, mostly in tedious edits.

skydhash•3h ago
For me I prefer to keep things granular. Like: add the endpoint; validate the input; return sample data; connect to the db and return something from it;…. It’s easier to go with small wins. I have the plan/design/architecture to keep me pointed in the right direction.
atemerev•3h ago
Well, this is exactly what I use AI for.

I start to experiment with coding agents to try some things to make me unstuck. These are cheap to try.

Then, the outcome is either "wow, this can actually work" or "but this is bullshit, and will never work, let me do it myself the right way!"

Win/win.

kryptiskt•2h ago
When faced with a big task and not knowing where and how to start, a trick I like is writing something crappy that is roughly a step in the right direction. For example, if you're building a web browser (huge monumental task), just load a page with your favorite http lib and display it, html tags and all. You know that none of that code will survive, but it's something that you can build on, and in due time you'll come around and replace it with the right design.
EdwardCoffin•2h ago
The Oxide and Friends podcast [1] did a whole episode on this: Coder's Block (25 Oct 2021) [2].

It had some good stuff in it, the best of which (for me) was: when stuck, write debugging infrastructure.

[1] https://oxide-and-friends.transistor.fm

[2] https://oxide-and-friends.transistor.fm/episodes/coders-bloc...

Edit: punctuation

glynnormington•46m ago
Nice - thanks.
hoistbypetard•1h ago
I can feel this block, especially when I'm starting a new project.

Two things that help me:

* have a good boilerplate

* ship things that do nothing

i.e. I find it helps to start a project using my good boilerplate then set up builds and releases (so for web projects, put them online) so that the page doesn't look so blank anymore, and I can see my progress in "releases" even if they're just for me/others contributing.

skydhash•1h ago
I kinda started programming on IDEs (Visual Studio, Eclipse, then Android Studio) and the templates they is kinda a nice way to get quickly started on some projects and not have to worry about configurations. These days, I prefer CLI tooling, so I copy things over from projects on GitHub.
ruslan_sure•1h ago
Great words! I would add that the developer block specifically appears when you delve too deeply. You may get stuck in limbo.

Simplify the mental model of the code, product, etc. Discuss it with someone.

tomrod•1h ago
Of all the uses of LLMs, this is the most useful to me. Being able to force a minor draft that I can begin tweaking to overcome dev or writers block.
KronisLV•1h ago
> A new project and it’s going to be your best ever

A good defense against this is borrowing stuff from your prior projects, alongside eventually creating templates for the most common stuff.

For example, in new side projects I start, I can borrow the web server (ingress) configuration from the prior ones, same for CI pipelines and a large part of the previous Dockerfiles, sometimes even entire services with all of the annoying setup and configuration stuff already done.

Plus, this way, you have a more or less working baseline and further iteration is entirely up to you - and if you do want to improve things a bunch, then the next time your template will be even better and you'll be able to backport whatever you think everything should have to your other projects as well.

Going with the simplest solutions along the way helps: Bash scripts for triggering builds, CI configuration just calling those, using Docker or similar containers for the environments and builds, your ingress just being Nginx/Caddy/Apache2/..., using PostgreSQL or SQLite and specialized stuff like Redis/Valkey, RabbitMQ, MinIO and so on instead of reinventing the wheel.

Sometimes it's also useful to write utility scripts and even small tools to help with the projects, I bet developers that have been around for decades and are way better than I am have a lot of that stuff, alongside a healthy helping of dotfiles for existing tools to get in the zone while doing the dev work. Although it can also be helpful to go the YAGNI route and customize things as little as possible, like a stock IDE install, not even bothering with the color themes or keybinds or a plethora of plugins - just install and go.

glynnormington•24m ago
Fair point. I often copy stuff across from one project to the next. But this point is most relevant when I'm using another language etc. for the first time and I'm tempted to try to retrofit all my previous best practices.

For example, I used to work on a mainframe product that dumped the address space to disk on a crash. Then it was possible to build all sorts of fancy tooling to analyse the dump. When I moved to a different platform, without those kinds of dumps, it was tempting to try to reinvent all this stuff, but it would have been a massive time sink (and would have failed too).

mattmanser•16m ago
I tried this for a bit 5/10 years ago, but I've never found this to work very well. I guess I relarely start significant greenfield, non-trivial, projects. Maybe every 3 years or so.

By which time beat practice has completely changed and everything you setup is out of date.

And that's backend, it's much worse for frontend where even 6 months later your 'perfect' template is out of date.

willmadden•36m ago
Exercise and/or take a nap.
supersparrow•34m ago
If I’ve had a break, gone for a walk, left it overnight, worked on something else simple for a bit and tried the other usual ‘fixes’ and am still stuck then I find ‘just do it’ really helps me. I find if I just write some code even slightly related to the goal, even if it’s complete garbage that gets deleted later, then I get unstuck. Although unfortunately even getting to that point takes a couple of days sometimes. We can’t always perform immediately on demand.
wilkystyle•31m ago
I definitely resonate with this. Getting to the point where you can just write and try things can be a little tough sometimes, but some of my best work has been done the second time around (i.e. the first pass was just doing whatever hacky, exploratory code I needed to do in order to get the feel and shape of the thing, and then the second pass was doing it for real once I had figured it out)
zabzonk•17m ago
Perhaps switch languages/paradigms for a few days. If you are used to using "text-based" languages such as golang, python, c++ or java, try something like Smalltalk to freshen you up. Pharo https://pharo.org/ is a nice implementation.
BinaryIgor•12m ago
Besides mentioned by others walks and sleep I found meditation to be really helpful; you often can get the benefits, ideas-generation-wise, of a full-night sleep doing solid 30-minute session. There are other benefits of meditating too :)

Databricks Acquire Tecton

https://www.databricks.com/blog/tecton-joining-databricks-power-real-time-data-personalized-ai-agents
1•jamesblonde•46s ago•0 comments

Buyusa.gov Dropped from the .gov Zone

https://github.com/cisagov/dotgov-data/commit/29491e18b4bc6889048ec841847018ee0316d2f0
1•m-hodges•1m ago•0 comments

Hanaco Weather (OS Yamato) matches weather messages to live data

https://github.com/osyamato/os-yamato
1•tsuyoshi_k•2m ago•3 comments

Show HN: Built a stock screener after getting frustrated with expensive tools

https://dashboard-finance.com/stock-screener
1•tchantchov•3m ago•0 comments

Leagues Cup has evolved, but its relevance is as questionable as

https://www.theguardian.com/football/2025/aug/06/leagues-cup-mls-liga-mx
1•PaulHoule•3m ago•0 comments

X Agrees to Settlements With Thousands of Former Employees

https://www.nytimes.com/2025/08/22/technology/elon-musk-x-settlements.html
1•belter•5m ago•1 comments

Turning Neighborhoods into Communities

https://supernuclear.substack.com/p/turning-neighborhoods-into-communities
2•surprisetalk•18m ago•0 comments

Birds are singing an average of 50 minutes longer per day

https://gizmodo.com/birds-across-the-world-are-singing-all-day-for-a-disturbing-reason-2000646257
2•gmays•20m ago•0 comments

AMD Discontinues B650 Chipset

https://www.tomshardware.com/pc-components/chipsets/amd-discontinues-b650-chipset-to-transition-to-the-newer-b850-chipset-affordable-am5-motherboards-just-got-a-bit-pricier
1•ahmednazir•21m ago•0 comments

Trump to tap Airbnb co-founder to improve government websites

https://www.reuters.com/world/us/trump-tap-airbnb-co-founder-gebbia-improve-government-websites-sources-say-2025-08-21/
1•geox•23m ago•0 comments

Banned The 20 books they didn't want you to read

https://www.theguardian.com/books/2025/aug/23/banned-the-20-books-they-didnt-want-you-to-read
2•andsoitis•23m ago•0 comments

How Warby Parker Has Kept the Price of Glasses at $95 for 15 Years

https://www.wsj.com/business/retail/warby-parker-95-glasses-f7a6ceed
3•bookofjoe•24m ago•1 comments

Continental vs. Maritime Power, the Fight for a New World Order by Sarah Paine

https://www.foreignaffairs.com/united-states/land-or-sea-paine
2•malloryerik•26m ago•0 comments

How language is hiding the real internet from you

https://www.bbc.com/future/article/20250812-how-language-is-hiding-the-real-internet-from-you
2•breve•32m ago•0 comments

3D-printed bunny contains DNA instructions to make a copy of itself (2019)

https://www.newscientist.com/article/2226644-3d-printed-bunny-contains-dna-instructions-to-make-a-copy-of-itself/
1•keepamovin•33m ago•0 comments

Arithmetic Functions

https://www.hedonisticlearning.com/posts/arithmetic-functions.html
2•JNRowe•35m ago•0 comments

Side Project Hub

https://sideprojecthub.substack.com/
2•Jsttan•37m ago•1 comments

Kernel Stack Watch Proposed as New Linux Debugging Tool

https://www.phoronix.com/news/Kernel-Stack-Watch
1•tanelpoder•37m ago•0 comments

Shell We Nix?

https://abdelrahman.sh/2025/03/shell-we-nix/
2•aabdelhafez•39m ago•0 comments

Show HN: Create a clone of your old self from your old iOS backup; talk to it

https://github.com/henrygabriels/clone_yourself_from_an_iphone_backup
1•gabriel666smith•44m ago•0 comments

Show HN: IconLab – AI-Powered App Icon Generator by a 13-Year-Old Dev

https://www.iconlab.site/
1•supermarios•46m ago•0 comments

Poisoned USA: Hastings, NE

https://hntrbrk.com/hastings/
3•impish9208•51m ago•0 comments

House Fire, Death, and Rebirth

https://www.adama-platform.com/2025/08/23/fire.html
1•mathgladiator•51m ago•0 comments

The Insane Production Schedule of Love Island [video]

https://www.youtube.com/watch?v=-X2ZdeqWi7s
1•gmays•52m ago•0 comments

WLFI: Why Pre-Market and Spot Access Matter More Than Just Results

1•ALIUDHHA•52m ago•0 comments

RFC 9839 and Bad Unicode

https://www.tbray.org/ongoing/When/202x/2025/08/14/RFC9839
52•Bogdanp•59m ago•0 comments

Palantir CEO Alex Karp's Letter to Shareholders

https://www.palantir.com/q2-2025-letter/en/
5•nalinidash•59m ago•1 comments

Show HN: Journey – Development focused database migration tool

https://github.com/ekmungai/journey
1•ekmungai•1h ago•1 comments

Self-Reinforcing Cascades: A Spreading Model for Beliefs

https://journals.aps.org/prl/abstract/10.1103/5mph-sws5
1•Anon84•1h ago•0 comments

Goals and Tenure in English Football

https://blog.engora.com/2025/08/goals-and-tenure-in-english-football.html
1•Vermin2000•1h ago•2 comments