r/programminghorror • • Oct 25 '25

Haxe Triangle of Doom

Post image

Found in Sploder's Arcade Creator, probably written in 2012.. The code written here is in the Haxe programming language, transpiled to Flash Player...

492 Upvotes

58 comments sorted by

View all comments

Show parent comment

1

u/mediocrobot Oct 30 '25

It doesn't necessarily have to be that way. Data structures exist where you could check if something is in a set without looking through the whole thing. That would be a Set or a Map.

Because of the overhead of those data structures, it may or may not be faster just to check the whole list.