Artwork

Nội dung được cung cấp bởi ElixirTalk and Elixir Talk. Tất cả nội dung podcast bao gồm các tập, đồ họa và mô tả podcast đều được ElixirTalk and Elixir Talk hoặc đối tác nền tảng podcast của họ tải lên và cung cấp trực tiếp. Nếu bạn cho rằng ai đó đang sử dụng tác phẩm có bản quyền của bạn mà không có sự cho phép của bạn, bạn có thể làm theo quy trình được nêu ở đây https://vi.player.fm/legal.
Player FM - Ứng dụng Podcast
Chuyển sang chế độ ngoại tuyến với ứng dụng Player FM !

Episode 164 - Quarantine Special: Module Organization in Elixir

38:24
 
Chia sẻ
 

Manage episode 259474948 series 1676006
Nội dung được cung cấp bởi ElixirTalk and Elixir Talk. Tất cả nội dung podcast bao gồm các tập, đồ họa và mô tả podcast đều được ElixirTalk and Elixir Talk hoặc đối tác nền tảng podcast của họ tải lên và cung cấp trực tiếp. Nếu bạn cho rằng ai đó đang sử dụng tác phẩm có bản quyền của bạn mà không có sự cho phép của bạn, bạn có thể làm theo quy trình được nêu ở đây https://vi.player.fm/legal.
We’re back with another episode of ElixirTalk. In this episode Chris & Desmond do a deep dive on organizing code in Elixir and talk about some best practices. We recorded this a couple weeks ago so it may sound a little stale :) We touch on: * Module and context naming * How we like to organize code in our projects * Big long modules vs many small modules * How to split up contexts * Injecting code via macros ## Links * On the Criteria to be used in decomposing systems into modules - D.L Parnas: https://www.win.tue.nl/~wstomv/edu/2ip30/references/criteria_for_modularization.pdf * Proposal for some ew rules for Phoenix contexts: https://devonestes.herokuapp.com/a-proposal-for-context-rules * Write code that is easy to delete, not easy to extend: https://programmingisterrible.com/post/139222674273/write-code-that-is-easy-to-delete-not-easy-to * How to use `use` well: https://dockyard.com/blog/2017/12/07/macro-madness-how-to-use-use-well * Protocols in Elixir: https://hexdocs.pm/elixir/Protocol.html
  continue reading

65 tập

Artwork
iconChia sẻ
 
Manage episode 259474948 series 1676006
Nội dung được cung cấp bởi ElixirTalk and Elixir Talk. Tất cả nội dung podcast bao gồm các tập, đồ họa và mô tả podcast đều được ElixirTalk and Elixir Talk hoặc đối tác nền tảng podcast của họ tải lên và cung cấp trực tiếp. Nếu bạn cho rằng ai đó đang sử dụng tác phẩm có bản quyền của bạn mà không có sự cho phép của bạn, bạn có thể làm theo quy trình được nêu ở đây https://vi.player.fm/legal.
We’re back with another episode of ElixirTalk. In this episode Chris & Desmond do a deep dive on organizing code in Elixir and talk about some best practices. We recorded this a couple weeks ago so it may sound a little stale :) We touch on: * Module and context naming * How we like to organize code in our projects * Big long modules vs many small modules * How to split up contexts * Injecting code via macros ## Links * On the Criteria to be used in decomposing systems into modules - D.L Parnas: https://www.win.tue.nl/~wstomv/edu/2ip30/references/criteria_for_modularization.pdf * Proposal for some ew rules for Phoenix contexts: https://devonestes.herokuapp.com/a-proposal-for-context-rules * Write code that is easy to delete, not easy to extend: https://programmingisterrible.com/post/139222674273/write-code-that-is-easy-to-delete-not-easy-to * How to use `use` well: https://dockyard.com/blog/2017/12/07/macro-madness-how-to-use-use-well * Protocols in Elixir: https://hexdocs.pm/elixir/Protocol.html
  continue reading

65 tập

Tất cả các tập

×
 
Loading …

Chào mừng bạn đến với Player FM!

Player FM đang quét trang web để tìm các podcast chất lượng cao cho bạn thưởng thức ngay bây giờ. Đây là ứng dụng podcast tốt nhất và hoạt động trên Android, iPhone và web. Đăng ký để đồng bộ các theo dõi trên tất cả thiết bị.

 

Hướng dẫn sử dụng nhanh