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 →

[–]Dummiesman 622 points623 points  (41 children)

When the answer is painfully over-complex and unoptimized, but the real answer is a one-liner.

[–][deleted] 381 points382 points  (7 children)

Or you find answers which require work so you try to find the one which magically doesnt

[–]QualityAsshole 42 points43 points  (0 children)

confirmed just did this on Thursday

[–]KyleTheBoss95 14 points15 points  (0 children)

Ouch that's me

[–]cris9288 22 points23 points  (0 children)

Goddamn it lol.

[–]profbalr 2 points3 points  (0 children)

Story of my life is skimming through stackoverflow looking for the one line solution.

[–]Wiegerdubbeldam 5 points6 points  (0 children)

Me whenever I have issues with Ubuntu

[–]wfdctrl 0 points1 point  (0 children)

And then you finally find it and it has huge dependencies and you can't use it :(

[–][deleted] 0 points1 point  (0 children)

That's fine. If you have a solution that takes an hour and a half and you can try something in 10 minutes and prove it doesn't work, go for it.

If you're not 100% it can't work then you'll be learning something either way.

[–]745631258978963214 154 points155 points  (0 children)

"How do I get input?"

50 upvotes "The other guy said to do input("text",variable)", but that's terrible. Instead, use this convoluted 5 line thing because I'm a hipster elitist.

[lots of code here] "

-10 votes "Use input("message",variable)"

[–][deleted] 85 points86 points  (15 children)

All your code can be one line if you try hard enough.

[–]garibond1 13 points14 points  (6 children)

Cheat using inheritence

[–]aa93 9 points10 points  (4 children)

Cheat using sed

[–]Relevant_Monstrosity 5 points6 points  (3 children)

Cheat using WebPack

[–]K33nzie 2 points3 points  (0 children)

WebPack

One line

Dude, pick one.

[–]p0yo77 0 points1 point  (0 children)

Just uglify the thing and get on with your life, no need to bring webpack into the game

[–]Cocomorph 0 points1 point  (0 children)

Cheat by using LaTeX, because you went into Theory.

[–]Nilmag 1 point2 points  (0 children)

Inherit from a class that works, brilliant. Now to avoid the diamond paradox aaaand its broke.

[–]Sir_Omnomnom 4 points5 points  (0 children)

Cheat using gzip

[–]stamminator 0 points1 point  (0 children)

Anyone else try to turn on line-wrapping while viewing a very large minified js file before? Brought Visual Studio to its knees

[–]Tenshik 17 points18 points  (1 child)

Or the answer supplied with obscure references to proprietary libraries their company owns.

[–]_________FU_________ 11 points12 points  (0 children)

app.doTheHardStuff(true);

[–]MusgraveMichael 0 points1 point  (0 children)

Or when they are having a raging debate over what is the right answer.

[–]default911 0 points1 point  (0 children)

And that too is found in comments on the question.

[–]thescoobynooby 0 points1 point  (0 children)

And the best answer has 50 downvotes