• (nodebb)

    In the immortal word of too many devs in too many places:

    TODO is forever.

    That is all.

    Addendum 2026-11-09 06:45: Gaah! Immortal words.

    Curse this pitiful comment system with no real post-posting edit opportunity.

  • asdf (unregistered)

    Nothing is as permanent as a temporary solution.

  • JJ (unregistered)

    Eventually, someone will update this -- to add the new century before the two-digit year.

  • (nodebb) in reply to WTFGuy

    Curse this pitiful comment system with no real post-posting edit opportunity.

    It does prevent "post something innocuous, wait a couple of hours, edit the post completely to be full of spam" problems.

  • klinsten1 (github) in reply to WTFGuy

    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....

  • Bruno Lustosa (unregistered)

    In my opinion, no, it doesn't need to be refactored. 23 years of working fine are there to corroborate my opinion.

  • (nodebb) in reply to Steve_The_Cynic

    It does prevent "post something innocuous, wait a couple of hours, edit the post completely to be full of spam" problems.

    Which can be mitigated by having a time limit after which editing is unavailable.

  • Jonathan (unregistered) in reply to gordonfish

    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.

  • (nodebb) in reply to gordonfish

    There is a time limit after which editing is unavailable. It's 0 seconds.

  • (nodebb)

    To do - or not to do

  • Joe (unregistered)

    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

  • (nodebb)

    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.

  • OldCoder (unregistered) in reply to klinsten1

    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.

  • (nodebb) in reply to OldCoder

    More like phase 5 or 6 or 742, but yes.

  • (nodebb)

    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.

  • Eddie (unregistered)

    Does tax framework still exist after 23 years?

  • gman003 (unregistered)

    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.

  • (nodebb) in reply to Eddie

    Depending on the country, the government in 23-years-ago form may no longer exist.

  • COBOL Dilettante (unregistered) in reply to PotatoEngineer

    You'll be about 20 Prime Ministers ahead if you're in the UK, or 427 if you live in France

  • Hmmmm 🤨 (unregistered)

    TODO comments are like the Statue of Liberty at the end of "Planet of the Apes"

  • (nodebb) in reply to asdf

    Nothing is as permanent as a temporary solution.

    Thus the IBM mainframe-era PTF, Permanent Temporary Fix, see https://www.ibm.com/support/pages/types-fixes-or-ptfs

  • (nodebb) in reply to Steve_The_Cynic

    More like phase 5 or 6 or 742, but yes.

    For people who haven't been memed this yet: https://www.youtube.com/watch?v=C9F8SOhStEU

    The theme tune for my life.

  • (nodebb) in reply to zomgwtf

    Hey they're honest enough to label it correctly

  • Quango (unregistered) in reply to zomgwtf

    OMG loved it... thanks for that link!

  • Kotarak (unregistered)

    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.

  • El (unregistered)

    Do the TODO

  • (nodebb) in reply to Hmmmm 🤨

    TODO comments are like the Statue of Liberty at the end of "Planet of the Apes"

    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!

  • (author)

    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)

Leave a comment on “Eventually”

Log In or post as a guest

Replying to comment #706047:

« Return to Article