AbsolutOD
I was wondering if anybody has used the sugar framework for a real project? I am thinking about using it for my next api project and was hoping for some tips.
Why build this when Dynamo, Weber, and Phoenix exist with growing communities? While both projects are great in their own right, Sugar aims to be another contender, sparking more development on all three projects (and/or others that may follow) and giving developers another option when deciding what framework fits their needs best. Sugar may even strive to shake things up just as ChicagoBoss has done.
Trending in Discussions
As the title says, please share what you’ve been up to with Elixir. Whether that’s been learning it, looking into it, making stuff with i...
New
Hey there,
It’s been more than a year since we started using LiveView as our main UI library and building a whole library of UI componen...
New
I am happy to introduce the very α version of the new programming language compiled to BEAM.
Welcome Cure.
It has literally three kille...
New
Quite interesting article Google brought me. Didn’t find any mentions about it here.
What do you think in general? Would you use togethe...
New
:warning: Security advisory: Decimal DoS vulnerability
A vulnerability has been published for decimal where very large exponents can cau...
New
It would be helpful to have a list of companies worldwide that hire engineers without prior experience in Elixir. Often, it can be quite ...
New
What IDE or editor are you using for Elixir development?
Personally, I use Zed, and I really like it, but sometimes I wish there were a ...
New
Other Trending Topics
Hi there! We created Gust: A task orchestrator inspired by Airflow.
For those who have never heard about Aiflow, it’s a Python-based wor...
New
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Xamal is a deployment tool for Elixir apps that deploys native releases to bare metal servers over SSH. It’s a port of GitHub - basecamp/...
New
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New
With AI doing more of the implementation work, I’ve been wondering how much coding I should deliberately keep doing myself.
My main conc...
New
Aludel - LLM Evaluation Workbench
Aludel is an embeddable Phoenix LiveView dashboard for evaluating and comparing LLM prompts across mult...
New
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #library
- #deployment
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #elixirconf
- #channels
- #exunit
- #discussion
- #code-sync
- #podcasts
- #javascript
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #ai
- #elixirconf-us
- #blog-post
- #elixir-ls
- #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)
AstonJ
Why use it over say, Phoenix?
(I added some info to your post btw)
AbsolutOD
Phoenix looks nice. I haven’t spent to much time with it. When I worked in ruby I liked to use Sinatra and in python I prefer flask over django. Sugar seems to follow the path of sinatra and flask, so I figured I would play with it first. I wanted to see if anyone else had experience with sugar. I plan to write a test project in both, so I can get a first hand feel for them both.
benwilson512
Phoenix is actually much more like sinatra or flask than rails. It is made up of a few modules based on a pattern called Plugs. The way Plug works is that it creates a datastructure representing the connection, and then it passes that
connthrough a sequence of functions. Each of those functions are called plugs, because they abide by thePluginterface: they both receive and return aconn.Phoenix routers are a plug, phoenix controllers are plugs, phoenix endpoints are plugs. It’s all exceptionally simple.
In order to facilitate new users, phoenix.new by default generates a full stack of stuff, but you can use flags to pair it down to just the basics.
Sugar is also based on plug, so both phoenix and sugar operate at the same level of abstraction.
Sugar also strikes me as a bit out of date. It mentions Dynamo in the readme for example, and Dynamo has been dead for over 3 years…
findlaech
Hello. Sugar Framework contributor here.
I mainly used Sugar when I was creating dead simple APIs and websites and when Phoenix was too heavy to configure/use.
AbsolutOD
Thanks for the explanation. I am definitely going to spend time with both.
Crowdhailer
Did anyone spend time with the sugar framework?
I would be interested in experiences had with it.
I am curious not due to any dissatisfaction with phoenix but because I think that a vibrant ecosystem has more than one web framework.
OvermindDL1
Well phoenix is not really a web framework, it is just a set of plugs that you can optionally use or rip out as you want, in addition to an awesome pubsub and websocket interfaces, also optional.
But yes, more plugs is not bad.
benwilson512
What I would be far more interested in is alternatives to Plug honestly. Elli for example is a fantastic erlang webserver but Plug’s semantics don’t map on to it very well. There have been a few attempts to get Plug to work with Elli and I haven’t seen any of them actually pan out.
Phoenix is basically just a “roll your own framework with these handy plugs” into which people integrate one of the dozens (hundreds?) of plugs available on hex.
Crowdhailer
I am experimenting with an alternative to plug called raxx. Very much work in progress at the moment but I hope to share more about motivation and progress in the new year
deadtrickster
Looks like Elli development moved here: GitHub - elli-lib/elli: Simple, robust and performant Erlang web server · GitHub. I talked to Eric recently and we discussed plugs, Elixir/LFE integrations. So if have ideas or just something please let us know.