Live data from Hacker News

Unicorn – A full-stack web framework for Django

django-unicorn.com

81–90 of 92 posts

Re: Unicorn – A full-stack web framework for Django

#82

Earlier quoted context omitted.

Oh. I don't know. Just half of the biggest sites in the world from Google...

Tell me you know nothing about OG Angular without telling me.

It was called AngularJS--when someone says "Angular" most people will think of the framework called Angular

Re: Unicorn – A full-stack web framework for Django

#83
I'm the creator of Unicorn, so this is neat to see it on Hacker News again. I've been working on Unicorn nights and weekends since July 2020, slowly adding in new functionality and improving it. I have a conference talk explaining the origins a little bit: https://github.com/adamghill/djangocon-eu-2021-conference-ta....

I never expected Unicorn to completely replace larger SPA frameworks, but I have found it solves for most of the use cases I need for my sites.

Thanks for checking it out -- all PRs are greatly appreciated to add new features or fix bugs!

Re: Unicorn – A full-stack web framework for Django

#84
post #80

Earlier quoted context omitted.

You can use Jinja with Django https://docs.djangoproject.com/en/4.2/topics/templates/#djan...

I do use Jinja with Django, hence me being disappointed that it's not supported by Unicorn.

Ah I didn't know that and thanks for bringing it up.

Re: Unicorn – A full-stack web framework for Django

#86
post #21

Given gunicorn and uvicorn, I can't help but feel this name can and will cause some confusion. We gotta be able to pick different names lol

I was definitely instantly confused when I saw this.

Thanks for confirming. I knew it couldn't be just me!

Re: Unicorn – A full-stack web framework for Django

#87

React aside… hooks, classes redux fatigue whatever- JSX is beautiful and any other framework that builds this quasi irb+mustache+html-like-markup is taking 2 steps back. I would like to see JSX survive the framework wars of 2024-2025

I abandoned Django purely because JSX is so superior to Django templating + adhoc JS. Even if you pivot to Django Rest Framework, you will immediately feel the creaky 10 year old Java EE class based approach that doesn't make intuitive sense until you wade into the magic variables and methods.

Re: Unicorn – A full-stack web framework for Django

#88
post #19

Earlier quoted context omitted.

Batteries included means the stuff you need for most uses is already included. The fact that there are many possible add ins to solve this doesn't address the fact that Django does not include core functionality for web applications.

You mentioned running nodejs + typescript over extensive frameworks like django now. Curious if you chose to write your own framework or are you using something from nodejs space to do "batteries included" thing for you? Asking because I've had some experience with nest.js and even though it's fun it often feels hackish and a bit messy even when solving standard issues like authorization that's not a simple app wide…

Personally, Next.js with NextAuth and Prisma for ORM is a much better full stack dev experience for me. Django templates are their own DSL, adding JS is more annoying and less powerful to do than React/JSX, Django Auth is cumbersome, Django Rest Framework will immediately feel like an old Java EE OOP way of doing REST or JSON API...

Re: Unicorn – A full-stack web framework for Django

#89
post #72

Earlier quoted context omitted.

I wouldn’t consider htmx “battle tested”.

Aside: htmx is a very small and very predictable library. The underlying pattern is well established among many libraries and probably countless similar implementations. I have implemented something like htmx several times before htmx came out, and I assume many others have too. I just didn't take the time to extract a clean, generalized and comprehensive library.

I personally found a glaring performance issue in the library related to plugins and created a github issue for it back in December (I don't think it's been fixed to date). I was confused because it was pretty obvious. "Battle tested" things, by definition, have been through battles and don't have as many easy pickings on optimizations.

Re: Unicorn – A full-stack web framework for Django

#90
post #31

Earlier quoted context omitted.

Isn't htmx intercooler.js without jquery, which is (intercooler) a 10 years old library been used extensively in a lot of sites?

Essentially yes. See https://news.ycombinator.com/item?id=23331672

funny, the reason i say its not battle tested is because of an issue i discovered in the extension system that was mentioned in that post.
Post reply on HN