AbsolutOD

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.

Showing Posts 1 to 10

AstonJ

AstonJ

Why use it over say, Phoenix?

(I added some info to your post btw)

AbsolutOD

AbsolutOD OP

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

benwilson512

Author of Craft GraphQL APIs in Elixir with Absinthe

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 conn through a sequence of functions. Each of those functions are called plugs, because they abide by the Plug interface: they both receive and return a conn.

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

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

AbsolutOD OP

Thanks for the explanation. I am definitely going to spend time with both.

Crowdhailer

Crowdhailer

Creator of Raxx

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

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. :slight_smile:

But yes, more plugs is not bad. :slight_smile:

benwilson512

benwilson512

Author of Craft GraphQL APIs in Elixir with Absinthe

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

Crowdhailer

Creator of Raxx

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

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.

Where Next? Top

Trending in Discussions Top

AstonJ
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...
2977 94592 917
New
cblavier
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
mudasobwa
I am happy to introduce the very α version of the new programming language compiled to BEAM. Welcome Cure. It has literally three kille...
New
heathen
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
maennchen
:warning: Security advisory: Decimal DoS vulnerability A vulnerability has been published for decimal where very large exponents can cau...
New
marciol
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
Null-logic-0
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 Top

marciok
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
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Dmk
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
netoum
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New
webofbits
With AI doing more of the implementation work, I’ve been wondering how much coding I should deliberately keep doing myself. My main conc...
#ai
New
webofbits
Aludel - LLM Evaluation Workbench Aludel is an embeddable Phoenix LiveView dashboard for evaluating and comparing LLM prompts across mult...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews