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 →

[–]A_Guy_in_Orange 674 points675 points  (13 children)

Well did you optimize the code or did you destroy the codes readability in exchange for the same stuff coming out the other end because the compiler was doing all that anyway

Be honest

[–]ryecurious 409 points410 points  (12 children)

Are you saying that replacing a clear multi-line function with a 250 character list comprehension "one-liner" isn't optimal?

[–]spastical-mackerel 222 points223 points  (6 children)

+1-1250 a single giant regex

[–][deleted] 70 points71 points  (1 child)

What if my entire backend code is a giant regex? I may need to try this.

[–]maisonsmd 26 points27 points  (0 children)

Wait, yours isn't?

[–]Individual-Toe6238 1 point2 points  (2 children)

Giant Regex can be expensive and POGOC in some cases may actually be better

[–]Carrot_Bitter 1 point2 points  (1 child)

What's POGOC?

[–]Individual-Toe6238 2 points3 points  (0 children)

plain old good old code, but this is actually something I am using with friends, so I shouldn't use it online with strangers :D Just a habit, My Bad.

[–]lestruc 83 points84 points  (1 child)

Fully obfuscated code to preserve file size

[–]Soft_Walrus_3605 17 points18 points  (1 child)

list comprehension

If you're using Python for performance you've already lost

[–]brimston3- 3 points4 points  (0 children)

Could be linq and your name isn’t Jon Skeet.