r/badcode • • Apr 30 '22

python Looks like Python List Comprehension-phobia is a thing. This is a real commit by a teammate.

Post image
1.2k Upvotes

125 comments sorted by

View all comments

Show parent comment

96

u/FordyO_o May 01 '22

Someone I used to work with (who had a pretty hot temper) tried to ban object destructuring in JS because they didn't understand it

26

u/hey--canyounot_ May 01 '22

Lmao bruh...any other good stories about them?

12

u/FordyO_o May 01 '22

Nothing that comes to mind, they were pretty nice to work with most of the time, just became enraged when they got stuck on anything 😃

6

u/raam86 May 01 '22

back in the day jetbrains syntax highlighting support for scala wasn’t perfect.

in scala object.prop == (object prop). you can replace dot with space and sometimes syntax highlighting would mark it in squiggly reds which is annoying so i would add dots where it would do that or where it would make sense.

I would use space when it made sense as a dsl like account deposit 300 usd

one week the principle engineer became more and more irritated and wouldn’t admit to it or share his reason. A weekend comes in, he is at the end of this rope and he tells he can’t understand why i put a dot here and not there. i explain the above and he refuses to accept this, I explain again that you can simply drop the dot sometimes and i do it for aesthetics. as far as i know he still doesn’t accept it because they threw away the scala code and replaced it with beam

3

u/lordheart May 07 '22

Omg, been doing Java at work and I miss de structuring so much

4

u/FordyO_o May 07 '22

At least you get strict typing to cheer you up a bit 👍

3

u/lordheart May 07 '22

I usually do typescript, and that adds enough strictness 😁

4

u/FordyO_o May 07 '22

Lucky you, I've only recently managed to migrate our project to ES6, pray for me

2

u/lordheart May 07 '22

I get to be the trail blazer at my new job for typescript projects as well