Create your Combine playgroundAfter a few years of enjoying working with RxSwift, in WWDC 2019, Combine was introduced as an essential framework that empowers SwiftUI. Immediately, I decided to create a StreamView like below. With that, I’ll be able to visualize basic reactive behaviors in Combine such as Subscribe and Cancel. Moreover, if we put 2 StreamViews side by side. We can observe behavior
Update: This cheatsheet is available as a Markdown table, as well as searchable CSV tables in the following repo: https://github.com/freak4pc/rxswift-to-combine-cheatsheet. Thanks Joe Blau for the help and inspiration! Update 2: I’ve released a library called RxCombine which provides a proof-of-concept for Bi-directional type bridging between RxSwift and Apple’s combine, letting you mix and match
青が何も介入をしなかったとき、黄色が4月8日から8割の接触を減少させたときです。 4月8日から接触を8割カットすると、新規患者数は4月17日頃にピークを迎え、その後減少が予想されます。5月8日から普段通りの生活に戻ると再度感染者は増加する。 長期的に見ると 波は横にずれますが、形はほとんど変わりません。ピーク時の1日の新規感染者数が120万人となると到底医療システムが成り立ちません。 ところで、「集団免疫」という言葉がかなり聞かれるようになりましたが、免疫をもつ人が人口のある程度の割合(この割合は病原体それぞれの感染力や人々の接触パターンによりますが)に達した時に、感染拡大は収まります。 逆に集団免疫の状態に到るまでは一時的な措置を取っている間は感染拡大がおさまってもそれをやめると再燃する、というジレンマがあります。 厳しい外出制限をこのまま永遠に(ワクチンが開発されるまで)しなければいけ
🎒 this article uses following library versions: { "@types/react": "16.4.7", "@types/react-dom": "16.0.6", "typescript": "3.0.1", "react": "16.4.2", "react-dom": "16.4.2" }🎮 source code can be found on my github profile Instead of replying, I’ve decided to write down this “short post” about how to handle React DOM refs and ref forwarding with TypeScript for anyone new to React and TypeScript as I
A couple weeks ago, I had to add Bitcode support for an Objective-C library I was working on. My first thought was something along the lines of: I just have to change `Enable Bitcode` to YES on my Project Settings, awesome! Wrong. Ways to use librariesLibraries on Objective-C/Swift can generally be used in 3 different ways: BinaryCocoaPodsFrameworks / CarthageIn my case, the library could be used
Lifhackerさんの記事で『「フリーランスの現実を暴露します」幻想と実情はここまで違う』という記事があったのですが、そこでは少し偏ったフリーランス像が描かれていました。インターネット空間におけるフリーランス像のバランスを取るために、私自身の場合を書いてみたいと思います。 以下のパートはどれも元記事に由来しています。 幻想1:自宅で下着姿のまま働ける(元記事より) 現実:確かに下着姿で働けます。しかし、下着姿で働く理由は、忙しくて服を着る時間もないからなのです(すでに4日間も同じ下着で働いています。ときどき母親がふらっと様子を見に来て気がつきますが、もう4日間も食器を洗っていなかったり、お風呂にも入っていないのです)。私の場合は毎日下着を替えていますし、お風呂も入っています。こういうふうに忙しさをアピールしている人はフリーランスに向いていないです。時間管理ができていないと言っているような
Memory leaks are like that pimple you have on your nose with prom night coming. You know that they exist and they’re not going anywhere, but you just pray they don’t flare up or that no one else notices when the time for magic comes. They’re uncomfortable. They’re nasty. They feel like a beacon announcing your nose to the world from a distance. And all you ever wanted was to impress ladies and gen
A few weeks ago we started a series aimed at digging deeper into JavaScript and how it actually works: we thought that by knowing the building blocks of JavaScript and how they come to play together you’ll be able to write better code and apps. The first post of the series focused on providing an overview of the engine, the runtime, and the call stack. Thе second post examined closely the internal
Hi folks. Lately MVVM has become some sort of standard as an architecture for iOS apps. It offers a good separation of concerns, a good way to format data and great view binding mechanisms with frameworks such as RxSwift. In this post I will give few tips I use to ease the implementation of this pattern. Views made easy with ReusableWith MVVM, separation between Views and the rest of your architec
Bidirectional associations. Two way relationships between entities. E.g. a president and a country, a director and his movies, etc. It doesn’t matter if the relationship is one-to-one, one-to-many or many-to-many. It is not possible to fully represent them using value types. There will always be inconsistencies due to value type semantics. I will try to explain why, using simple examples. One-to-O
Mandarin Duck — Malcolm Carlaw (CC-BY-2.0)When I started using React, there was no Redux. There was only the Flux architecture, and about a dozen competing implementations of it. Now there are two clear winners for data management in React: Redux and MobX, and the latter isn’t even a Flux implementation. Redux has caught on so much that it’s not just being used for React anymore. You can find Redu
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く