piannaf’s avatarpiannaf’s Twitter Archive—№ 1,702

                        1. Amazing research and presentation from @RunChristinaRun. If you couldn't attend, here's an abridged version until you can watch the recording. Highly recommended #DroidconNYC
                      1. …in reply to @piannaf
                        What is a platform? Android, iOS, Web (mWeb) What is cross-platform? Taking a piece of code and sharing it across two or more platforms #DroidconNYC
                    1. …in reply to @piannaf
                      Even one platform has a lot going on. What if you add another? What if you don't have infinite resources? Will you narrow scope? Will you start on iOS? #DroidconNYC
                      oh my god twitter doesn’t include alt text from images in their API
                  1. …in reply to @piannaf
                    The common goals of cross-platform are to increase reach without increasing cost and complexity or maintain current each and decrease cost and complexity #DroidconNYC
                1. …in reply to @piannaf
                  Most talk about reducing multiple codebases to a single one. That is theoretically exciting but existentially threatening to people who's jobs are being cut down. The arguments become less about architecture and technology, and more about feelings and preferences #DroidconNYC
                  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 @piannaf
                Two buckets: sharing logic, sharing UI. (Sharing UI usually includes sharing logic) #DroidconNYC
                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 @piannaf
              Reimplement or Wrap UIs? Reimplement: - Can you get it exactly right? Android has 10 years of view history. Taking on the task of reimplementing is a hard task. - Can you keep it exactly right? None of the platforms are staying still? #DroidconNYC
          1. …in reply to @piannaf
            Wrap: - Can you translate efficiently? You used to be able to talk directly to native views now some misdirection - Can you keep wrappers up to date? #DroidconNYC
        1. …in reply to @piannaf
          These questions encompass the business arguments
          oh my god twitter doesn’t include alt text from images in their API
      1. …in reply to @piannaf
        People are going to ask you many questions when evaluating x-platform tech (these are just a few) If you understand the way things are architected, you can understand whether it will have performance issues and how well it will integrate into your build-chains #DroidconNYC
        oh my god twitter doesn’t include alt text from images in their API
    1. …in reply to @piannaf
      React Native vital stats #DroidconNYC
      oh my god twitter doesn’t include alt text from images in their API
  1. …in reply to @piannaf
    Native port of React Translators take description of UI and bind it to the platform specifics. As long as you write translation logic, you can render it anywhere. Renders native views which is great for interop. Reuse and leverage existing views. #DroidconNYC
    oh my god twitter doesn’t include alt text from images in their API
    1. …in reply to @piannaf
      Agnostic part is Javascript, platform is not javascript. They need to talk to each other via React Native bridge Spy on messageque, there is a lot of communication happening. But bus-factor of 1; if message queue gets backed up, everything falls apart #DroidconNYC
      oh my god twitter doesn’t include alt text from images in their API
      1. …in reply to @piannaf
        Just learned this morning about the new JSI architecture > directly invoke Java/ObjC methods from JavaScript (similar to an RPC call) @RunChristinaRun have you or others @PinterestEng worked with this yet? How much better (or just different) it is than the message queue?
        1. …in reply to @piannaf
      2. …in reply to @piannaf
        Flutter vital stats #DroidconNYC
        oh my god twitter doesn’t include alt text from images in their API
        1. …in reply to @piannaf
          Built specifically to optimize for UI. Shares this with the gaming industry [JM: I said this at a meetup once and got strange looks. Thanks for validating my understanding!] #DroidconNYC
          oh my god twitter doesn’t include alt text from images in their API
          1. …in reply to @piannaf
            Generates a layer tree, similar to RN virtual dom, platform agnostic. #DroidconNYC
            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 APIoh 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 @piannaf
              No OTA updates but dart can compile to JS so technically possible [JM: @JakeWharton gave a talk about using KotlinJS in a similar way] #DroidconNYC
              oh my god twitter doesn’t include alt text from images in their API
              1. …in reply to @piannaf
                Dart/native communication has similar issues as RN bridge. Message channel in dart is main thread unlike react native. #DroidconNYC
                1. …in reply to @piannaf
                  Kotlin Multiplatform vital stats Seems weak compared to other claims to fame, but don’t minimize this because it is hugely important and influential (for example dropbox C++ article about using tech you don’t know) #DroidconNYC
                  oh my god twitter doesn’t include alt text from images in their API
                  1. …in reply to @piannaf
                    Standard on Android [JM: ART replaced Dalvik in Lollipop, but does use same bytecode] Multiplatform Projects target multiple platforms Kotlin/Native targets iOS #DroidconNYC
                    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 @piannaf
                      You don’t need to usually manage the interop b/c jetbrains libraries (posix, objc) [JM: @TouchlabHQ working on this stuff too, e.g. generics] Need to export API to objective C first. But doesn’t mean you can’t use Swift, just means you need a little Objective C #DroidconNYC
                      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 @piannaf
                        There is a lot of mapping that connects natively rather than serialized through a bridge Expect/Actual is an escape hatch Use what is possible now, as more things become possible, migrate them across the boundary #DroidconNYC
                        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 APIoh 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 @piannaf
                          Not much changes on the iOS side #DroidconNYC
                          oh my god twitter doesn’t include alt text from images in their API
                          1. …in reply to @piannaf
                            React Native, Flutter, or Kotlin Multiplatform: there is no one real right answer. #DroidconNYC
                            1. …in reply to @piannaf