trav

@techsavvytravvy.com

sr software engineer @ crunchyroll 🦀🔪 @ crablang winning the fight against Big Outside™

this weekend i'll be joining some friends to stream episode 1 of a brand new d&d campaign called Glow in the Dark - it's an original story created by my best friend and dm with fantasy, scifi, and anime/manga influences. come hang out sunday @ 4pm ET! twitch.tv/ptmhshow

Digital painting of a massive ship named 'SS Friendship' engulfed in flames, stranded in a glowing cave. The ship dominates the center of the image, its burning masts illuminating the cave with orange light. The foreground shows a lineup of seven adventurers and a giant boar standing knee-deep in water, facing the burning ship. Each figure has a distinct silhouette: a small figure with a scythe, a red-haired sword wielder, a cloaked mage with long white hair, and others in fantasy attire. The title 'Glow in the Dark: Survivors of Friendship' appears at the top in a stylized font.

my oldest wants a windows laptop to play games and i need some reccs plz. she's insisting on paying for it herself so want something < $1k

so one of things you can do in typescript is create type predicates that allow you to check if an input value is a specific type with return type `x is Foo`. unfortunately there is nothing that helps you make sure the predicate is accurate - as long as it returns a boolean it will pass

TypeScript code defining two type guard functions: isString and isNumber. The isString function correctly checks if x is a string using typeof x === 'string'. However, the isNumber function mistakenly also checks typeof x === 'string', despite its type guard claiming x is a number. A comment next to the mistake reads '// whoops'.