Show newer

re: code golf, no image desc 

_=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

Show thread

re: code golf, no image desc 

FUCK there is a much better solution in the comments

Show thread

@vaporeon_ i only just noticed that heigth is spelled that way that it is here

@Lady as long as they're not studying imaginary concepts like "category theory" i guess mathematicians are ok

@Lady as a former physicist I think I have no choice but to agree

Show thread

Starting to realize that @Lady thinks math majors are useless

@Lady @aescling Lady this was a program submitted to the International Obfuscated C Code Contest it was a shitpost program

Coworker: I like to call Groovy "half-assed Java". Is that a mean thing to say?

Senior Dev: Actually, it's a superset of Java so it's double-ass.

@vaporeon_ if the texture isn't gross to you the skin is perfectly edible

Shouts out to the c program which draws a circle in ASCII art in a comment and calculates pi by reflexively parsing its own source code

re: food 

@vaporeon_ understandable, it can be hard to operate a spoon without opposable thumbs

@monorail oh I love writing evil code I would probably like code golf

Groovy is supposed to be a superset of Java but there are situations where that isn't true. For one thing, the syntax which initializes an array in Java ({ 1, 2, 3 }) is syntactically ambiguous with something groovy made up called "closures" that I am not going to explain, but only if the array has a single element. If there are multiple elements the syntax is not ambiguous and things are fine

Because of this I passed a closure to something written in Java that expected an array of strings BUT IT DID NOT THROW AN EXCEPTION???????

Show older
📟🐱 GlitchCat

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