-
44x1carbon
- 1039
- 2
- 0
- 0
![](https://tgfile.tg-static.com/static/web/img/placeholder.gif)
Modelが更新された際にViewを再描画する仕組みがMithrilにはない setIntervalなどでModelを更新してもviewが更新されない罠がある m.redraw()を呼び出すと次のフレームで再描画する。 #frontkansai
2016-08-28 15:09:20![](https://tgfile.tg-static.com/static/web/img/placeholder.gif)
TLを見てると「それAngularで出来るよ」であふれていて魔境すぎる #frontkansai
2016-08-28 15:09:38![](https://tgfile.tg-static.com/static/web/img/placeholder.gif)
あるいはm.startComputation()とm.endComputation()で描画カウンタを増減させることでも再描画をさせられる #frontkansai
2016-08-28 15:09:49![](https://tgfile.tg-static.com/static/web/img/placeholder.gif)
Mithrilの話聞いてると、Angular 2 ChangeDetectorのこと考えてあいつすごいなって思う #frontkansai
2016-08-28 15:09:54![](https://tgfile.tg-static.com/static/web/img/placeholder.gif)
Twitterだと話し終わってなくてもまさかりを投げていいみたいな風潮 #frontkansai
2016-08-28 15:10:03![](https://tgfile.tg-static.com/static/web/img/placeholder.gif)
jsxはキショイと言われがちだが個人的にはejsやjadeなどのような新手のテンプレートエンジンだと思えばそこまで気にならない #frontkansai
2016-08-28 15:11:31![](https://tgfile.tg-static.com/static/web/img/placeholder.gif)
モデルからビューへのバインディング m(“imput”, {value: ctrl.model.description()()}) 再描画によって差分を検出しvalueの中身の部分のみ更新される #frontkansai
2016-08-28 15:12:52![](https://tgfile.tg-static.com/static/web/img/placeholder.gif)
そりゃ、フロントエンドはカオスっていわれるよなーと思うなど。そう思うと、Angular2がrx/jsを採用したというか、Angular wayを避けたのはとてもすばらしいと思う。 #frontkansai
2016-08-28 15:13:22![](https://tgfile.tg-static.com/static/web/img/placeholder.gif)
Mithrilを選択するのにメリットが有るのは サーバーサイドエンジニア向き(MVC概念、1000行程度なので読み場解決する) #frontkansai
2016-08-28 15:15:50![](https://tgfile.tg-static.com/static/web/img/placeholder.gif)
最終的に捨てる選択肢を取る場合にも有効な選択肢 (あと2,3年もすれば新しいメジャーなフレームワークが登場してどうせ捨てると考えるなら、学習コストが低いフレームワークを選んでおいても良いのでは) #frontkansai
2016-08-28 15:15:56![](https://tgfile.tg-static.com/static/web/img/placeholder.gif)
AngularJSとか、初版は2009年だけど、今でも現役! とか思うと、学習コストを下げることではなく、学習パフォーマンスを予測する方が現実的な気はする。#frontkansai
2016-08-28 15:16:03![](https://tgfile.tg-static.com/static/web/img/placeholder.gif)
「Angularの学習コスト」について言及するとTwitterが活発になる法則 #frontkansai
2016-08-28 15:16:33![](https://tgfile.tg-static.com/static/web/img/placeholder.gif)
ルーティングが貧弱だった気がするが Angularだとページ遷移にフックがありますね、非同期にやる方法はMithrilにはないですね 低レベルから自分で書いていかないといけない #frontkansai
2016-08-28 15:18:19