ra’s avatarra’s Twitter Archive—№ 26,611

    1. fav part of coding: once the problem and solution are better understood, you can start simplifying (before/after)
      oh my god twitter doesn’t include alt text from images in their APIoh my god twitter doesn’t include alt text from images in their API
  1. …in reply to @ra
    specifically here, my original implementation maintained a bidirectional mapping between objects and IDs because i was generating my own IDs
    1. …in reply to @ra
      new implementation is based on Unity’s instance IDs which you can get from any object, but can’t look up objects from them
      1. …in reply to @ra
        so a unidirectional mapping (clojure map) is simpler and solves the problem