fewlinesco / kaur Goto Github PK
View Code? Open in Web Editor NEWA bunch of helper functions to ease the development of your applications.
Home Page: https://hexdocs.pm/kaur/readme.html
License: MIT License
A bunch of helper functions to ease the development of your applications.
Home Page: https://hexdocs.pm/kaur/readme.html
License: MIT License
For keep_if
, reject_if
and from_value
Although there is no real question of publishing Kaur on Hex, should not we package the library and define a license?
The ResultTuple module exposes a specific data structure, in my opinion, so it needs functions such as ok?
and error?
.
With these two functions, sequence could be rewritten using https://hexdocs.pm/elixir/Enum.html#reduce_while/3
MIT?
Kaur has grown into something that is both very generic (mainly, Result
) and that is relevent for others to use (I hope ๐ผ) and a lot of stuff that is kind of useless outside of Fewlines.
After discussing it with @fewlinesco/team we decided to split Result
from the rest of kaur
.
So, we need to decide on a name (keep kaur
for Result
) and on what to do with Circuit
.
I suggest we keep kaur
for the public project with Result
, just because I like kaur and circuit working together ๐
This is sad :'(
As discussed in fewlinesco/sparta#5
Hey Kaur's team, your lib is great and brought very nice syntax improvements to our code. I'd like to be able to reproduce the behavior of Kaur.Result
to deal with GenServer responses, which would also be great to handle Phoenix's websockets responses.
A GenServer handle_call
function must returns a tuple like:
{:reply, reply, new_state}
While the handle_cast
function must return:
{:reply, new_state}
Full documentation here : https://elixir-lang.org/getting-started/mix-otp/genserver.html
It would be nice to be able to pipe results and generate
iex> data
|> ...()
|> Kaur.GenServerResult.reply("response", %{})
{:reply, "response", %{}}
Would you be interested in such a PR ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.