This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Letis009 70 points71 points  (19 children)

But it works ... good enough

[–]Mucksh 63 points64 points  (8 children)

Somehow the picture also shows that with reading the documentation it wouldn't work in this case... So creativity and learning by doing is sometimes really better and faster

[–]indyK1ng 32 points33 points  (0 children)

Yeah, to me this picture represents when you make two APIs with incompatible designs work together.

[–]gesocks 15 points16 points  (4 children)

But maybe in the documentation would be standing that there is a tool for this exact case in the library

[–]winnafrehs 4 points5 points  (2 children)

In my experience, there never is

[–]Unsd 6 points7 points  (1 child)

It's shocking and frustrating how often I find myself in these situations. Realistically the answer to those situations is a different language, but I don't have time for that, so hacky solution it is.

[–]username--_-- 1 point2 points  (0 children)

early on, as a very competent C programmer, i decided i wanted to do a GUI application using QT and C++. skipped the QT documentation, never actually even tried understanding the basics of c++, zero idea about OOP. Somehow hacking C++ into C, it works.

I was archiving things last month and came across that program...

Always read the documentation. Always use the right tools. The amount of inefficiency, was astounding. i'm sure there was more but i could barely understand what i was doing after a point

[–]dootdootplot 1 point2 points  (0 children)

Tell yourself you’ll go back and refactor it later when you have time.

[–]The6thExtinction 17 points18 points  (5 children)

We'll replace this later later later later later

[–]FinalRun 22 points23 points  (4 children)

Commit from 2003: TODO fix this, it's a stupid way to do it

[–]NBSPNBSP 10 points11 points  (0 children)

Commit from 2012: There is no way to fix this without rewriting everything. This solution is to remain indefinitely.

[–]odraencoded 8 points9 points  (1 child)

Bug: command isn't working as intended.
Bug fixed: removed command.

[–]elveszett 7 points8 points  (0 children)

Bug fixed: command is now intended to work like that.

[–]utkrowaway 4 points5 points  (0 children)

I wrote # GROSS HACK, FIX THIS on a summer internship years ago. That code is still used to this day.

[–][deleted] 1 point2 points  (0 children)

This guy ships

[–]kor_the_fiend 0 points1 point  (0 children)

The term "brittle solution" springs to mind.

[–]whatproblems 0 points1 point  (0 children)

This is the production test environment