Who said that Elixir is not an OOP language?I think that the distinction between OOP and functional paradigms is murky. For example we can write in Ruby in functional style (check…Mar 12, 2019Mar 12, 2019
Streaming CSV report in PhoenixExporting some query result as CSV file is a very common task in web apps. Here I’m going to show to implement it considering latency…Nov 29, 2018Nov 29, 2018
ExOperation: organizing business logic with operations in ElixirApproaching business-logic organization problem with composable operations and presenting a new library ExOperation for implementing them.Nov 24, 2018Nov 24, 2018
Dynamic filters in EctoHere I’m going to show how to utilize dynamic/2 function from Ecto.Query together with pattern matching to build a query with dynamic…May 5, 2017May 5, 2017
Broadcasting & SoC in PhoenixUpcoming Phoenix 1.3 offers new folder structure which pushes us to separate our domain logic and web interface.Apr 5, 2017Apr 5, 2017
An example of using Ecto.MultiEcto.Multi is tool for grouping multiple operations into a single DB transaction. It’s pretty well documented and there are already some…Jan 15, 20171Jan 15, 20171
Validating controller params with Ecto and Plug in PhoenixIn this short note I’ll show how to utilize Ecto.Changeset and Plug in Phoenix to validate controller params.Oct 23, 2016Oct 23, 2016