Coder Social home page Coder Social logo

fewlinesco / kaur Goto Github PK

View Code? Open in Web Editor NEW
20.0 4.0 2.0 55 KB

A bunch of helper functions to ease the development of your applications.

Home Page: https://hexdocs.pm/kaur/readme.html

License: MIT License

Elixir 100.00%
elixir ease tuples kaur functional-programming functional

kaur's People

Contributors

kdisneur avatar xvw avatar yordis avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

lcanix betree

kaur's Issues

Packaging

Although there is no real question of publishing Kaur on Hex, should not we package the library and define a license?

Split Result from Kaur

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 ๐Ÿ˜

Implement a Kaur.GenServerResult to generate handle_call responses

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

Proposition

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 ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.