Show newer

@vaporeon_ since everything is in a class method even the simplest code is already in 2 levels of indentation, which drives me crazy

@vaporeon_ if I were serious I would write it like
const max = (a, b, c) => a < b
? b < c
? c
: b
: a < c
? c
: a;

or I would use an if else for the "outer" condition so there is no nested ternary

@vaporeon_ We used 8-line indentation for some reason and then imagine writing ObjectFactoryFactory objectFactoryFactory = new ObjectFactoryFactory(); in three or four levels of indentation

@vaporeon_ I would write it more clearly if it were something serious

re: Don't do this 

@vaporeon_ at my old job we had a 100-character limit for Java and it sometimes wasn't enough LOL

@vaporeon_ I would never actually use this for a serious project I was just amusing myself by writing it in a single indecipherable line

This specific thing I was doing needed it. Except then I realized later actually I didn't need it lol so I got rid of it

re: Don't do this 

@vaporeon_ I guess the secret to high pay is to write Java with a 80-line limit. You will print so much code elon musk will give you a raise on the spot

re: Don't do this 

@vaporeon_ but then elon musk will see less work when I print my code :(

@vaporeon_ const max = (a, b, c) => a < b ? b < c ? c : b : a < c ? c : a;

If can write it in a single line of code I'm gonna do it

@packetcat Back when I played I specialized in Cassidy and Zenyatta, although I could play Ashe and Widowmaker if I had to. I really liked pointing and clicking

I am normal and can be trusted with nested ternary operators

@packetcat man I haven't played Overwatch in a minute. What characters do you play?

I thought Primm Slim was the greatest thing ever but then I met Yes Man

re: food, rec request 

@alyssa the texture is... something, but kiwis can be eaten with their skin

Show older
📟🐱 GlitchCat

A small, community‐oriented Mastodon‐compatible Fediverse (GlitchSoc) instance managed as a joint venture between the cat and KIBI families.