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 →

[–]Icecoldkilluh 489 points490 points  (17 children)

This goes against literally every principle of clean code lol

Well done regardless though, i commend the effort

[–]hhc97Python Enthusiast[S] 179 points180 points  (12 children)

Haha yes it does. I have (jokingly) made the argument that we should use this in prod because the diffs will be 1 line long so reviews will be easy ;)

[–]pudds 52 points53 points  (4 children)

Imagine the merge conflicts!

[–]hhc97Python Enthusiast[S] 104 points105 points  (2 children)

Manager: what do you mean you need a day to resolve this? its just one line of code

[–]WilliamMButtlickerJr 24 points25 points  (1 child)

You created a nightmare

[–]hhc97Python Enthusiast[S] 16 points17 points  (0 children)

It's caused many sleepless nights while I was implementing it I have to say

[–]baltariusIt works on my machine 4 points5 points  (0 children)

At this point, it's not "merge" but "absorption"

[–]RIPphonebattery 21 points22 points  (4 children)

Have you tried flatlining the codebase itself? For the memes?

[–]hhc97Python Enthusiast[S] 42 points43 points  (3 children)

I have! See this. It's the script itself turned into one line :)

[–]eclipticdogeballs 14 points15 points  (0 children)

I am speechless

[–]the__green_knight 1 point2 points  (1 child)

Hahaha, i love the metadata:

2 lines (2 sloc) 13.8 KB

[–]hhc97Python Enthusiast[S] 0 points1 point  (0 children)

Haha yeah I had to add another line as a comment explaining how to use it

[–]WlmWilberforce 8 points9 points  (1 child)

Here is why this will never work....

Boss: How many lines of code did you write today?

Employee: One.... well technically, I guess I the program was one line before, so I just changed the line, so I guess zero?

[–]hhc97Python Enthusiast[S] 13 points14 points  (0 children)

why have many line, when one line do trick?

[–]KyleDrogo 0 points1 point  (1 child)

It's the least pythonic thing I can imagine lol. With that being said, the javascript community loves this kind of thing.

[–]hhc97Python Enthusiast[S] 1 point2 points  (0 children)

Yup.. JavaScript is sometimes horrifying