Email or username:

Password:

Forgot your password?
Dare Obasanjo

A broken clock fixed by taping a working clock over it is a metaphor for every codebase you’ll encounter in your professional career as a software developer.

47 comments
Ari Turetzky

@carnage4life all that's missing is the post it note telling you to talk to someone who left 10 years ago about how to change the batteries in the working clock.

DELETED

@AriT93 @carnage4life And this is why we all dream of a greenfield project to implement a sundial

Ari Turetzky

@fugueish @carnage4life 6 months later there would just be a solar powered digital clock duct taped over the second clock, and we'd have pretty awards hanging on our cubes. (what me cynical!? unpossible)

C₆H₁₂O₆

@AriT93 @carnage4life Who documented it, though. However, the system was decommissioned 6 years back and the author didn’t respond to the numerous mails to „click here to migrate the content“.

Tyler Griffin

@carnage4life The working clock uses one of the gears in the broken clock to advance the hour hand, but only on odd numbered days. Also, one of the four AA batteries in the broken clock needs to be hooked up in series to the four batteries in the working clock to increase the voltage slightly, because power is being sent from the new clock's batteries through a resistor in the old clock for reasons nobody understands, but it's definitely true that if you just send the power to the new clock directly, it runs backwards.

@carnage4life The working clock uses one of the gears in the broken clock to advance the hour hand, but only on odd numbered days. Also, one of the four AA batteries in the broken clock needs to be hooked up in series to the four batteries in the working clock to increase the voltage slightly, because power is being sent from the new clock's batteries through a resistor in the old clock for reasons nobody understands, but it's definitely true that if you just send the power to the new clock directly,...

Kent Borg

@carnage4life And, taping over a feature that is mostly not even implemented in new construction. (Clocks? Who uses clocks‽‽)

Sloan Studio

@carnage4life Literally laughed out loud to this image. Brilliant.

Michael Wyman

@carnage4life the difference is that in software the broken clock ships from the factory already broken with the working clock taped to it

Eric G.

@carnage4life I have been occasionally scolded for my 'messy' PRs that muck out disfunction, realign ancillary internal methods & data structures and/or otherwise embrace my inner Fowler. The PR diffs are ugly AF but some of them are things I am most proud of.

To the topic: lately I feel sometimes our PR/user story approach encourages the employment of duck tape by encouraging change that fully satisfies stated requirements, makes for easy-to-read PRs, but loses the plot along the way.

otheorange_tag

@carnage4life YES! #HardFollow if not already. Also the bar to rebuild from scratch is VERY low. We used to do this all the time, some of us still do!

Shambolic Matter

@carnage4life Not every codebase. In some of them the taped-on clock is also broken and would've run backwards had someone managed to hook it up properly.

Large Format Projectionist

@carnage4life

Omg this is brilliant, the original clock is one of those utterly mind-boggling analog solutions. A master clock generates a power signal for all the “repeater” clocks. The wiring! The cost! And of course, the irrepeairability of either the masters or repeaters.

Dang it would be fun to resurrect one of those systems.

kkeller

@carnage4life only if the second clock breaks within a day

@990000@mstdn.social

@carnage4life someone just did this to me and my work this week. And not because the underlying clock wasn’t working. It’s because they didn’t like how the clock was powered. They just did it without consideration. People are nuts.

#WebDevelopment #Software

Tom Finnigan

@carnage4life when I was an intern, the codebase I was working on had 4 different memory management systems (not including the malloc/free implementation provided by the OS)

T. Austin Brown

@carnage4life This is also how the law works. New legislation and decisions just get taped over the old junk.

Kathleen Jones 🚲🖼️🦭

@troutgirl You might be shocked to learn that rangers are like this too. We considered it ingenuity.

MHowell

@carnage4life like many code developers. the broken clock is right twice a day, but the taped-on clock is never correct.

Kazinator

@carnage4life

You can't remove the broken one because only that clock has the mounting plate that screws into the ceiling.

If we just delete the broken clock, the working clock falls down.

Also there is a test detects that we have clock support, by detecting the presence of the screws in the ceiling. We can't change it because we have to run in an identical building in which the same clock is still working and doesn't have anything taped to it.

Tomodachi94

@carnage4life #crowdcaption: a black clock bolted to the roof of a school or office building. The clock has another smaller black clock taped to it with blue masking tape in a grid pattern.

JohnMashey

@carnage4life
Vernor Vinge got it right in "Deepness in the SKy", set 5000 years from now, with starship's layers of legacy code requiring "programming archaelogists"...
7/ in
mstdn.social/@JohnMashey/10999

Mark Pauley

@carnage4life PR feedback: “I’m not going to hold up merging this right now, but make sure to file a ticket so that we fix this after the current mikestone” (PR was merged 3 years ago)

Einfach Nein :verified:

@carnage4life

NOT true, as in the "every" part.

Just yesterday I "saw" a codebase where the other clock was screwed and hammered on to the extend that both clocks were so obviously broken...

Had no smart ass come along to draw some numbers around it, it wouldn't even be useful. But now, when sun is shining, time is right (ish) 🤡

Beto Dealmeida

@carnage4life that's amazing!

Another good metaphor would be a second mechanism rotating the numbers because the hands in the original clock are running too fast or too slow.

Jon

@carnage4life This is like being forced back to the office and still using Teams to meet with the coworker sitting beside you 🤦‍♂️

vruz

@carnage4life Some code I've seen –and worse, *read*– that makes some Fortune 500 companies their bread and butter is more like a five feet tall stack of such clocks piled up like pancakes.

Selena

@vruz
My experience is that a lot of it was caused by hiring mostly rich white idiots and steering them towards quick-fix projects. Anybody who threatened that status-quo was disposed of.

Marcel Stritzelberger

@carnage4life Those workarounds are often lasting longer than the initial solution. :D

DeManiak 🇿🇦 🐧

@carnage4life
100%

En the more "enterprise-y", the more layers,and the more brokeness.

dkloke

@carnage4life

Looks to me like the boss or manager went and bought another boat with the discretionary fund again.

Sarah Roth

@carnage4life And along comes a business administrator and orders you to take the taped clock off. Don't you know the clock underneath goes right twice a day? The taped one only once. Can't have that.

eduqate

@carnage4life The ceiling clock is very thick so looks as though it is double faced, which I have seen in very large rooms. So this could be a bodge where the original clock works from one viewpoint but requires a hack from another viewpoint.

Go Up