code golf, no image desc Show more
just got nerd sniped very hard by https://codegolf.stackexchange.com/questions/160438/facey-mcfaceface:
re: code golf, no image desc Show more
FUCK there is a much better solution in the comments
_=s=>(s=s[0].toUpperCase()+s.slice(1).toLowerCase(),\`${s}${s.at(-1)=='y'?'':'y'} Mc${s.replace(/(ey|y)$/,'')}face\`) is much better way to do what i did, but the javascript in the reply to the stackexchange post is 19 characters shorter
_=s=>(s=s[0].toUpperCase()+s.slice(1).toLowerCase(),\`${s}${s.at(-1)=='y'?'':'y'} Mc${s.replace(/(ey|y)$/,'')}face\`)
@wallhackio fyi if you’re doing javascript that f`string` is shorter than f("string")
A small, community‐oriented Mastodon‐compatible Fediverse (GlitchSoc) instance managed as a joint venture between the cat and KIBI families.
re: code golf, no image desc
FUCK there is a much better solution in the comments