2 ms·
If it renders in the browser it does. There's nothing stopping you from also building an API. The design of an elixir application pushes you to assume that you
by brightball 7y ago
If it renders in the browser it does.
There's nothing stopping you from also building an API. The design of an elixir application pushes you to assume that your code has a job to do and that job may be accessed via multiple different interfaces:
- Websocket
- API
- HTML
- Command Line
- Another node in the cluster
Any of these will be calling the same logic behind the scenes. There's nothing preventing you from breaking it into smaller pieces or still leaning on client side logic if it makes sense.
The important thing is that you have the flexibility to attack the problem in an direction that suits it without language limitations dictating the client side approach as your only feasible option.