- Feature Articles
- CodeSOD
- Error'd
-
Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
In the immortal word of too many devs in too many places:
That is all.
Addendum 2026-11-09 06:45: Gaah! Immortal words.
Curse this pitiful comment system with no real post-posting edit opportunity.
Admin
Nothing is as permanent as a temporary solution.
Admin
Eventually, someone will update this -- to add the new century before the two-digit year.
Admin
It does prevent "post something innocuous, wait a couple of hours, edit the post completely to be full of spam" problems.
Admin
could be worse... "We will implement this in phase two of the project"... Most projects never get to phase two, so i never gets implemented, nor is there a TODO in the code....
Admin
In my opinion, no, it doesn't need to be refactored. 23 years of working fine are there to corroborate my opinion.
Admin
Which can be mitigated by having a time limit after which editing is unavailable.
Admin
Agreed, and what would also be great is having a way to preview posts prior to posting along with a reference of or link to supported markup.
Once upon a time the effort involved might have been hard to justify for TDWTF staff, but in the modern age something like Claude Code can probably do the work with minimal steering and then a final proper human code review at the end.
While they have an AI looking at the codebase they should also look at the weird code formatting styling issue where it sometimes has lines through it.
Admin
There is a time limit after which editing is unavailable. It's 0 seconds.
Admin
To do - or not to do
Admin
I will admit, just last week I finally addressed the code for this comment that I wrote almost 4.5 years ago. It wasn't tagged with TODO, though.
#this may be stored somewhere else eventually, but since it's a short-term, band-aid solution, this is fine for now
Admin
A lot of people here seem to fail to realize that TODOs that are never done, are not a technical WTF, they are a management WTF resulting from a management WTF.
So there's nothing wrong with TODOs in your code; they are a perfect indicator how incompetent management/leadership in the company making the code is.
Admin
In my +40 years experience, every project has a phase 1 which finally works. However, it is always full of bugs, shortcomings and unintended consequences which means that phase 2 is the only version that actually works as intended.
Admin
More like phase 5 or 6 or 742, but yes.
Admin
I have , on occasion, gone back and looked at one of my TODOs and said to myself OhHellNo , the code is better off without doing that.
Admin
Does tax framework still exist after 23 years?
Admin
IMO, a code-cleanliness //TODO is a "do when you're separately doing major changes here".
When my current main system went live, there was some nasty ugly code in the login system. Just the outcome of some last-minute requirements additions, not enough time to completely redo things. Did YOU know that PHP has a goto? Because I did. It was ugly as all hell, but: the ugliness was contained to a single file, disconnected from everything else, it populated data structures into the session but was never called into by other code. My intention was to do a major refactor, whenever bugs cropped up or new functionality was needed.
Somehow, for all its ugliness, the code worked, just about flawlessly. The few bug reports we got, were user error, mostly people using the wrong password autofill. I did, eventually, refactor the code to clean things up, when new features required me to go in there and work on it anyways.
Ugly, hard-to-read code that never gets read is harmless, so long as it works. Code that performs badly but isn't on the hot path isn't a problem. Code that scales badly, but is only ever run over tiny sizes, is working fine. Code that doesn't support a feature you don't need is just as good. It is worth making a little note, in a place visible to whoever needs it, that the code has these problems. "If this is getting slow, here's some low-hanging fruit I spotted and ignored", "if we ever need to support XML, we'll need to replace this", "this code is needlessly hard to read, if you're here to work on it, step one is to clean things up, here's a comment outlining how it works".
I have a standing "threat" to management: the next time they ask for a change to a specific report, I'm redoing the entire thing. Because over successive rounds of revision and expansion, it's grown into an unwieldy mess, a horrendous amount of copy-pasted code, and it predates some framework changes that would let me eliminate most of it. For now, though, it's fine.
Admin
Depending on the country, the government in 23-years-ago form may no longer exist.
Admin
You'll be about 20 Prime Ministers ahead if you're in the UK, or 427 if you live in France
Admin
TODO comments are like the Statue of Liberty at the end of "Planet of the Apes"
Admin
Thus the IBM mainframe-era PTF, Permanent Temporary Fix, see https://www.ibm.com/support/pages/types-fixes-or-ptfs
Admin
For people who haven't been memed this yet: https://www.youtube.com/watch?v=C9F8SOhStEU
The theme tune for my life.
Admin
Hey they're honest enough to label it correctly
Admin
OMG loved it... thanks for that link!
Admin
Joking aside: The code is still running after 23 years. In a world where every update of my system breaks something because backwards compatibility and API continuity are not valued anymore.
Kudos to the original devs, their code and their choice of platform.
Admin
Do the TODO
Admin
Oh my God. I'm back. I'm at the code. All the time, it was... We finally really did it. You Maniacs! You fixed it up!
Admin
The TODOs are a crude system for marking a component as a candidate for refactoring. Periodically you sort all your components by TODO density and choose one to refactor. (Ideally you'd have a formal metric based on some combination of TODO density, bug density, test coverage, and CRAP score)