Follow

someone clued me into this blog post about architecting a geometry system in C++. this is probably the most wonderful example of overengineering i have ever seen

archive.md/2014.04.28-125041/h

me: i would like to know the distance between two points

them: ok, what if we create a system that can calculate this number in any arbitrary dimension

me: i mean i'm just making a 2D game but ok fine i guess

them: alright, now what if you want to use a non-cartesian coordinate system? we'll just have to abstract the coordinate system type too

me, crying: i just want to make an arcade game dude

Show thread

@dankwraith when pythagoras becomes too specific you are on the verge of not representing anything meaningful to humans...

@dankwraith *forget it jake it's chinatown voice* forget it, dank, it's boost... town

@dankwraith boost is a meme in the C++ dev community for a reason
"stdlib but complexity meme" roughly

@dankwraith genious brain man: "should we make the number of dimensions a bignum or would a signed float be a better choice to make sure we can represent all possibilities"

@technomancy @dankwraith as is usual when talking about C++, typeclasses would replace this problem with a much better problem

@technomancy @dankwraith better in what way? it doesn't matter what way, that's the beauty of it. someone else can concretize betterness

@dankwraith cw this shit man, I'm over here having flashbacks to my graphics algos class from college...

@dankwraith ......does their version run faster? (i am assuming it does not but there could be some computer-specific thing i don't know about)

Sign in to participate in the conversation
monads.online

monads.online is a community for goth nerds, aka people who are interested in the intersections of math, art, programming, philosophy, and related topics. this does not include your techbro ass. we also enjoy a healthy amount of shitposting. if you are a techno-materialist, technocrat, or some flavor of capitalist, don't even bother applying. if you are interested in an account please fill out an application, detailing why you are interested in joining, what you have to bring to the community, and your prior, if any, accounts on the fediverse.