Optimizing Swift code for separation of concerns and simplicity #tryswiftconf
- akatsuki174
- 1223
- 0
- 0
- 0
コーヒを補充しました。Hall Bの右奥で入手できます。We have additional coffee now. You can get it in Hall B! #tryswiftconf
2018-03-01 12:09:09Constraining a subview within a view is a common task so having a helper for it is a good idea #tryswiftconf
2018-03-01 12:09:44(変数命名すらえいごできなくて迷うのに演算子の命名とかできる気がしない) #tryswiftconf
2018-03-01 12:09:49github.com/lionheart/Supe… これに似てるんだ #tryswiftconf
2018-03-01 12:10:36Example3 で演算子を定義するのは逆に分かりにくくなる気がするなあ。最終的にはいい感じになったけど #tryswiftconf
2018-03-01 12:10:47そういえば、try! Swiftはカメラマン少なくないですか……?もっとスピーカーさんの写真を撮ってあげてもいい気持ちがします。 #tryswiftconf
2018-03-01 12:10:47@Javi Example: @Javi clears up syntactic noise of auto-layout through helper functions and abstracting common operations. #tryswiftconf pic.twitter.com/Tr2mrUHUen
2018-03-01 12:10:50I usually write thin NSLayoutConstraint/UIView extension method for layouting problem. #tryswiftconf
2018-03-01 12:10:54Making an array for NSLayoutConstrains make it easier to add constrains later #tryswiftconf
2018-03-01 12:10:58addSubviewWithFillConstraintsメソッドをUIViewのextensionとして作るのよくやる。 #tryswiftconf
2018-03-01 12:11:11Rowsをenumで定義して、cellのindexPath.rowに対応させる形でtitleをenumに保持させる #tryswiftconf
2018-03-01 12:11:32Enjoying the try!Swift conference #tryswiftconf #swiftlang pic.twitter.com/f3Acsifjcb
2018-03-01 12:11:46