• 0 Posts
  • 16 Comments
Joined 1 year ago
cake
Cake day: June 22nd, 2023

help-circle








  • I also got a purple pillow on a friend’s recommendation. I’m a really hot sleeper, and a side sleeper, so I need a lot of pillow and it was hard finding both of those things in one pillow for me. It’s been great, I like it a lot. The main downsides are it’s heavy as shit (the pillow probably weighs like 8kg, it’s wild), the weird rubbery texture takes some getting used to, and the little mats they give you that go under the pillow to make it taller get bunched up if you move the pillow too much.

    Other than those minor complaints, I’ve really loved it. It stays very cool, while still being springy and contouring.

    I haven’t really experimented with other pillowcases, but I have been meaning to, if anyone knows of something nice.





  • Yeah, the annoying thing is the people who I generally have found to be the worst about stuff like this are old school Senior C developers, who still program like it’s 1987 and we have to fit everything into 4K of RAM.

    Fortunately there’s nothing like that in my code base, I just run into stuff like that periodically when I’m digging around in other team’s server code looking for something.


  • My personal code readability axe to grind is nested complex ternary operators.

    Every now and then I’ll see something like this

    return (checkFormatType(currentObject.type==TYPES.static||currentObject type==TYPES.dynamic?TYPES.mutable:TYPES.immutable)?create format("MUTABLE"):getFormat(currentObject));

    And I have a fucking conniption because just move that shit into a variable before the return. I get it when sometimes you just need to resolve something inline, but a huge amount of the time that ternary can be extracted to a variable before the ternary, or just rewrite the function to take multiple types and resolve it in the function.