This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| defmodule MyApp do | |
| use Application | |
| def start(_type, _args) do | |
| import Supervisor.Spec, warn: false | |
| children = [ | |
| Plug.Adapters.Cowboy.child_spec(:http, MyApp.Router, [], [ | |
| dispatch: dispatch | |
| ]) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| defimpl Kipatest.Can, for: Kipatest.User do | |
| use Kipatest.Web, :model | |
| def can?(%User{} = subject, :owner, %User{} = user) do | |
| user.id == subject.id | |
| end | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| # Functional Programming Paradigms In Elixir | |
| - Objectives: | |
| - Understand functional programming a bit better | |
| - Categorize and understand approaches | |
| - See which approaches fit which problems | |
| - Map concepts and approaches from Scala/Haskell to elixir | |
| --- |
OlderNewer