4. 「Erlang In Anger」の目次
● I Writing Applications
○ 1 How to Dive into a Code Base
○ 2 Building Open Source Erlang Software
○ 3 Planning for Overload
● II Diagnosing Applications
○ 4 Connecting to Remote Nodes
○ 5 Runtime Metrics
○ 6 Reading Crash Dumps
○ 7 Memory Leaks
○ 8 CPU and Scheduler Hogs
○ 9 Tracing
10. ● 「Erlang In Anger」から引用
○ > Don’t use dynamic atoms!
○ > If you use the xmerl library that ships with Erlang, consider open
source alternatives or figuring the way to add your own SAX parser that
can be safe .
つまり、アンチパターン的には、xmerlを使ってそれにユーザーの入力などを渡してやれ
ばいいのか。
チャットにxmlを送信すると、サーバサイドでxmerlでxmlバリデーション
(:xmerl_scan.string/1で実現(!?))した結果を付加してくれる機能を追加しよう。
アンチパターン1
(ユーザー入力をAtom生成系ライブラリに渡す)