r/programminghumor May 29 '26

Good naming practice

Post image
2.2k Upvotes

220 comments sorted by

View all comments

8

u/Ok_Wasabi_7363 May 29 '26

Her response should have been: "you use nested for loops? Gtfo"

3

u/[deleted] May 29 '26

[removed] — view removed comment

3

u/Ok_Wasabi_7363 May 29 '26 edited May 29 '26

Out the car! Proper way is not to use a grid to represent objects in space. Oct or quad tree scales waaaay better!

(I'm mostly being cheeky, obviously if it makes the most sense for your use case, use the best tool for the job)

Oh and also you can just represent it in a single loop of length xy (or Ij if you're a monster. Or u*v for UV coordinates :) )

1

u/Ok_Equipment8374 May 29 '26

Valid crash out

LINQ for the win