hattery VS Phoenix

Compare hattery vs Phoenix and see what are their differences.

hattery

Java library for making HTTP requests with a fluent, immutable API (by stickfigure)
Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
hattery Phoenix
3 111
17 20,579
- 0.9%
6.8 9.3
4 months ago 3 days ago
Java Elixir
MIT License MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

hattery

Posts with mentions or reviews of hattery. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-06-17.
  • Ask HN: What are some of the most elegant codebases in your favorite language?
    37 projects | news.ycombinator.com | 17 Jun 2023
    While I think there's a lot to love about Java, I think the standard library itself is not an especially great role model. Most of it was written a long time ago and has a fairly antiquated style - lots of mutable state, nullability, and checked exceptions. Not that the library isn't an incredible asset - it's luxuriously rich compared to working in Node.js - but if it were written from scratch today, I suspect it would look fairly different. Eg, the collection classes would use Optional and have separate read/write interfaces.

    For an example of "modern Java" I would point at something like this (which I wrote, sorry about the hubris):

    https://github.com/stickfigure/hattery

  • Ask HN: What is a modern Java environment?
    22 projects | news.ycombinator.com | 29 Mar 2022
    I have been thinking of writing up a series of articles on this. Without going into too much detail:

    * IDEA

    * Deploy on Google App Engine, Digital Ocean App Platform, Heroku, Elastic Beanstalk, etc - get out of the ops business entirely.

    * Guice as the backbone, no Spring/Boot. I wrote a tiny dropwiard-like "framework" to make this easier: https://github.com/gwizard/gwizard but there's a laughable amount of code here, you could build it all from scratch with minimal effort. This is about as lightweight as "frameworks" get because Guice does the heavy lifting.

    * JAX-RS (Resteasy) for the web API. IMO this is the best part of Java web development. HTTP endpoints are simple synchronous Java methods (with a few annotations) and you can test them like simple Java methods.

    * Lombok. Use @Value heavily. Cuts most of the boilerplate out of Java.

    * Junit5 + AssertJ. (Or Google Truth, which is almost identical to AssertJ).

    * Use functional patterns. Try to make all variables and fields final. Use collections streams heavily. Consider vavr.io (I'll admit I haven't it in anger yet, but I would in a new codebase).

    * StreamEx. Adds a ton of useful stream behavior; I don't even use basic streams anymore.

    * Guava. There's just a lot of useful stuff here.

    * For the database, it really depends on what you're building. Most generic business apps, postgres/hibernate/guice-persist/flyway. Yeah, folks complain about hibernate a lot but it's a decent way to map to objects. Use SQL/native queries, don't bother with JPQL, criteria queries, etc.

    * Hattery for making http requests (https://github.com/stickfigure/hattery). This is another one of mine. I make zillions of http requests, functional/immutable ergonomics really matter to me.

    * Github actions for CI.

    * Maven for the build. Yes, it's terrible, except for every other build system is worse. Gradle seems like it should be better but isn't. I'd really love some innovation here. Sigh.

  • Ask HN: What is your “I don't care if this succeeds” project?
    56 projects | news.ycombinator.com | 10 Feb 2022
    I can't stand most http libraries (full of mutable state!) and I spend a lot of time making http calls. So I built a functional/immutable http request library which has been dramatically improving my personal quality of life for about 7 years now. No idea if anyone else uses it, but it doesn't really matter.

    Java version: https://github.com/stickfigure/hattery

    Typescript version: https://github.com/stickfigure/hatteryjs

Phoenix

Posts with mentions or reviews of Phoenix. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-03-14.
  • Idempotent seeds in Elixir
    2 projects | dev.to | 14 Mar 2024
    A standard Phoenix app contains a priv/repo/seeds.exs script file, which populates a database when it is run, so that developers can work with a conveniently prepared environment.
  • Ask HN: Did you encounter any Leap Year bugs today? How bad was it?
    4 projects | news.ycombinator.com | 29 Feb 2024
    There was one in the Phoenix Framework (Elixir) about issuing certificates with an invalid end date: https://github.com/phoenixframework/phoenix/issues/5737

    Interestingly, Azure had this bug some years ago too leading to an outage. https://azure.microsoft.com/en-us/blog/summary-of-windows-az...

  • Aplicando MVVM en Phoenix LiveView
    4 projects | dev.to | 1 Feb 2024
    Official website: https://www.phoenixframework.org/
  • Things I like about Gleam's Syntax
    4 projects | news.ycombinator.com | 26 Oct 2023
    Since you mention Rails, have you seen https://www.phoenixframework.org/
  • Building Apps with Tauri and Elixir
    14 projects | dev.to | 19 Oct 2023
    Thus, we set out to build a desktop application using a LiveView from the Phoenix Framework in Elixir. For the uninitiated, a LiveView is a process that receives events, updates its state, and renders updates to a page as diffs. The LiveView programming model is declarative: instead of saying “once event X happens, change Y on the page”, events in LiveView are regular messages which may cause changes to its state.
  • Has anybody compared Phoenix Framwork vs. Blazor?
    1 project | /r/Blazor | 11 Oct 2023
    It seems though like Phoenix is similar like Blazor Server (using web socket), but Phoenix is: SEO friendly (first render is plain html) Light weight, scales well and concurrency is first class Easy to develop (runs a local server so you see live updates) Compiled With auth out of the box https://www.phoenixframework.org/
  • Ask HN: Why isn't Phoenix/Elixir more mainstream?
    4 projects | news.ycombinator.com | 29 Sep 2023
    Sorry to hear this. Phoenix v1.7 changed how it structures files in disk and that broke quite some of the getting started material. However, the guides are always kept up to date, so you can give it a try: https://hexdocs.pm/phoenix/overview.html

    You can also see the resources on this page listed by year: https://github.com/phoenixframework/phoenix/blob/main/guides... - the recent launched ones are most likely up to date.

  • Emoji Generator with AI
    2 projects | news.ycombinator.com | 8 Sep 2023
    Yes! I love Elixir :) [Phoenix LiveView](https://www.phoenixframework.org/) is really amazing. I feel so fast working in it. I got hooked after watching Chris McCord's ['Build a real-time Twitter clone in 15 minutes'](https://www.youtube.com/watch?v=MZvmYaFkNJI&embeds_referring...), and things have improved a lot since then.
  • Ask HN: What's the best modern back end?
    1 project | news.ycombinator.com | 28 Aug 2023
    I still work on a lot of Java projects. As of JDK 17 Java has most of "ML the good parts" and has the same scalable, reliable and high-performance threading Java is famous for. JAX-RS provides a Sinatra style framework that makes it easy to write JSON API back ends. JDK 21 is just about to come out as a long term supported version and it will be even better.

    I do my side projects in Python with aiohttp and think it is a lot of fun even though people tell me it is suicide (I guess if you block the thread you are in trouble)

    I think "Next.js" really wants a node.js backend which has the big advantage that you can share code with the front end and back end. It's basically single-threaded but I know people who are happy with it.

    The system I'd most like to try is

    https://www.phoenixframework.org/

    which is just great if you want to do stuff with websockets that is more interactive than what most people are doing.

  • Ask HN: Leetcode for Back End and Server Development
    4 projects | news.ycombinator.com | 11 Jul 2023

What are some alternatives?

When comparing hattery and Phoenix you can also consider the following projects:

prime-mvc - Prime MVC is a high performance Model View Controller framework built in Java.

Django - The Web framework for perfectionists with deadlines.

ripgrep - ripgrep recursively searches directories for a regex pattern while respecting your gitignore

sugar - Modular web framework for Elixir

Arthur - How to build your own AI art installation from scratch [Moved to: https://github.com/maxvfischer/DIY-ai-art]

hotwire-rails - Use Hotwire in your Ruby on Rails app

reactor-core - Non-Blocking Reactive Foundation for the JVM

kitto - Kitto is a framework for interactive dashboards written in Elixir

gwizard - A modular toolkit for building web services with Guice, inspired by DropWizard

trot - An Elixir web micro-framework.

Async Http Client - Asynchronous Http and WebSocket Client library for Java

RIG - Create low-latency, interactive user experiences for stateless microservices.