r/badcode • u/_madmanwithabox • Dec 27 '21
ruby Clearly the best way to handle automatically updating the indexes of other photos when one is updated manually. Definitely. For sure.
25
Upvotes
r/badcode • u/_madmanwithabox • Dec 27 '21
2
u/[deleted] Dec 27 '21
Is that stored in a format that has no automated indexing, but is data that needs indexing?
This just may be the best solution without reaching out to a... DBMS...
2
u/MurdoMaclachlan public boolean isInt(int i) { return true; } Dec 28 '21
Image Transcription: Code
I'm a human volunteer content transcriber and you could be too! If you'd like more information on what we do and why we do it, click here!
2
u/h0munculus_ Dec 27 '21
I believe it
2
u/welshucalegon Dec 28 '21
Photo.all.mapHuehuehuehuehue
2
u/Prom3th3an Dec 31 '21
I'd still suggest trying something like
Sorry for the C syntax; I don't speak Ruby.