@monorail when i do things like this aesc calls them "caleb solutions"
@monorail oh my fucking god Math.max can take a third argument in JavaScript fuck me
@vaporeon_ that is a username i've used a lot
@aescling @vaporeon_ @Lady no do it for real
@vaporeon_ hey @aescling @Lady make this work you cowards
@vaporeon_ oh that reads nicely. cool style.
@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 likeconst 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
@onfy I guess everything I write is in Java then
@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;
@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 go by Clodsire, Clodboy and Catwin.
videogame enjoyer. mathematics hobbyist and recovering physicist. software engineer. professional wonk. prophet of The Truth. the walking embodiment of "not diagnosed, but somethings wrong". i like animals that wear cowboy hats.
number of fat cock awards received: 56
pfp is by @The_T
header is by @vaporeon_
"i regret ever allowing him here" ~aescling
"oh you're one of those weird movie likers" ~Ti
28+
he/him