temple
mix_test_watch
temple | mix_test_watch | |
---|---|---|
2 | 3 | |
464 | 891 | |
- | - | |
5.1 | 5.0 | |
16 days ago | about 2 months ago | |
Elixir | Elixir | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
temple
-
“Writing an app is like coding for LaserDisc”
One possible solution to this problem is the Free, Open Source Software community continuing to work toward more sophisticated tech that can bridge the gap between popular server-side languages for Web Dev and native platforms. PhoneGap was a failure because it was JS running on the phone, rather than compiling to something faster and with a more “native feel”. React Native is, IMHO, not that much better (and the React ecosystem has ridiculous fragmentation and churn). Flutter seems cool, but Dart is not a popular server-side language (and from what I heard anecdotally, Flutter also has API complexity and churn).
Personally, I think Elixir is a natural choice for this kind of task (disclosure: I am incredibly biased in my love for Elixir).
Macro-based DSLs are not beloved by all, but they can take you pretty far with minimal overhead, since you can theoretically target multiple platforms without even having to ship a custom runtime to the phone. Aside from the language itself, there is a great community, less fragmentation and churn, and a tendency to build thoughtful, robust libraries and frameworks with good docs.
For inspiration, take a look at Mitch Hanberg’s Temple project[0] which compiles valid Elixir code to something that eventually gets turned into HTML.
DockYard is also doing really cool, bleeding edge stuff with LiveView Native[1], even if it’s a bit early to predict how viable it will be for large, complex apps.
[0]https://github.com/mhanberg/temple
[1] https://dockyard.com/blog/2022/09/01/dockyard-r-d-build-elix...
-
What's your favorite lesser known package?
I recently also found temple and I really like the idea. I mean, Elixir is great for DSLs, why not to use it. For example, we already kinda use it for SQL, thanks to Ecto. However, the latest issue about not supporting the latest liveview and no activity for a while scared me away from actually trying it. Maybe, I should be more brave in picking up seems-to-be-dead projects. Have you tried it?
mix_test_watch
-
Run tests automatically on save
mix_test_watch
-
What's your favorite lesser known package?
I really love mix test.watch - https://github.com/lpil/mix-test.watch
-
Execute and Watch Elixir tests from iex.
A way to do it in Elixir is just to use the fswatch as presented in Elixir Mix Test documentation, or using the excellent mix.test-watch library, but them don't work well with iex, the Elixir REPL, so why not do something else.
What are some alternatives?
bbmustache - Binary pattern match Based Mustache template engine for Erlang/OTP.
Quixir - Property-based testing for Elixir
mustache - Mustache templates for Elixir
Stubr - Stubr is a set of functions helping people to create stubs and spies in Elixir.
Phoenix Inline SVG - Inline SVG module for Phoenix Framework
efrisby - A REST API testing framework for erlang
exgen - A templating library for generating reusable Elixir projects
power_assert - Power Assert in Elixir. Shows evaluation results each expression.
expug - Pug templates for Elixir
ex_parameterized - This library support parameterized test with test_with_params macro.
eml - Library for writing and manipulating (html) markup in Elixir.
mixunit - an `eunit` task for mix based projects