mudasobwa
Creator of Cure
Exvalibur is the generator for blazingly fast validators of maps based on sets of predefined rules.
Under the hood, it generates a module with many different clauses of the same valid?/1 function with explicitly hardcoded pattern matches and guards on the input.
Here is the blog post shedding a light on what goodness it provides and h)ow is it implemented β https://dev.to/mudasobwa/--smart-validation-in-elixir-4bcm
Trending in Announcing
Hey everyone!
Req is an HTTP client for Elixir that Iβve been working on for quite some time. There is already a lot of HTTP clients out...
New
Samly can be used to enable SAML 2.0 Single Sign On in a Plug/Phoenix application.
This library uses Erlang esaml to provide
plug enabl...
New
Flop is an Elixir library that applies filtering, ordering and pagination parameters to your Ecto queries.
offset-based pagination with...
New
The repo is at GitHub - cyberchitta/openai_ex: Community maintained Elixir library for OpenAI API Β· GitHub.
Docs are at OpenaiEx User Gu...
New
The Chelekom project is a library of Phoenix and LiveView components generated via Mix tasks to fit developer needs seamlessly.
One of i...
New
Hobbes is a low-level distributed database for the Elixir programming language.
Hobbes provides a simple, safe, and scalable storage lay...
New
Hi all!
I want to present a small library which provides a mix task for generating an Entity-Relationship Diagram for Ecto schemas.
You...
New
Other Trending Topics
I am seeing a lot of aplications of Argumentum ad Vericundiam in software discussions. They do link some piece of writing and point us to...
New
Hey folks,
I just published a post about Hologramβs funding and where the project goes next - the short version:
Curiosum as Main Spons...
New
Flyβs CEO posted this recently - Turn And Face The Strange Β· The Fly Blog
It says that Fly is going all-in on sprites, which is a worry ...
New
Weβre evaluating API mocking tools for OpenAPI-based projects and would love to hear what other teams are using.
Weβre particularly inte...
New
Today weβre releasing Oban for Python. Not an Oban client in Python. Not a pythonx wrapper embedded in Elixir. Nope, itβs a fully operati...
New
I was thinking since Goatmire Elixir turned out pretty good I should maybe do another one. 30th of Sep - 2nd of Oct this year./
The firs...
New
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #elixirconf
- #channels
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #blog-post
- #ai
- #elixirconf-us
- #phoenix_html
- #iex
- #graphql
- #genstage
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #hex
- #security
- #metaprogramming











Showing Posts 1 to 10- Show Best Posts
- Show All (oldest first)
- Show All (newest first)
mudasobwa
As I continue working on
Exvalibur, I have implemented custom guards and pattern matching of values.I just blogged about how I used custom sigils to allow quoted expressions in the rules.
OvermindDL1
Heh, interesting idea there!
mudasobwa
Where exactly? Do you mean a validator module generation? If yes, I can assure you it is worth it: we use it in production for several months and it shows itself
Depending on input, it runs 10β1000 times faster than standard validations.
mudasobwa
Starting with
v0.8.0Exvaliburaccepts module-based validatiors:fuelen
I tend to think that there is a convention that functions with
?should return boolean typemudasobwa
True that, but I struggled to find a better name to be short and self-explanatory. OTOH, I do not want to miss the opportunity to return what was indeed validated on success.
Maybe I should go with
validate/1to return whatvalid?/1currently returns andvalid?/1to return boolean.david_ex
For what itβs worth, hereβs the convention about trailing question marks and boolean return values: https://hexdocs.pm/elixir/master/naming-conventions.html#trailing-question-mark-foo
Qqwy
This is of course subjective, but personally I think that proposal is indeed more self-evident.
mudasobwa
It surely is. The only thing that prevents me of doing it straight away is itβs breaking change. I probably will go with deprecation warnings and
validate/1doing exactly whatvalid?/1does now and change the behaviour ofvalid?/1to return boolean as ofv1.0.0.mudasobwa
β
v0.9.0.