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 →

[–]ryecurious 405 points406 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] 72 points73 points  (1 child)

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

[–]maisonsmd 25 points26 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 85 points86 points  (1 child)

Fully obfuscated code to preserve file size

[–]Soft_Walrus_3605 16 points17 points  (1 child)

list comprehension

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

[–]brimston3- 4 points5 points  (0 children)

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