HN user

adparadox

138 karma

Bookmarking for developers: https://devmarks.io | Full-stack component Django framework: https://django-unicorn.com | https://alldjango.com | https://fediview.com

Posts14
Comments52
View on HN

I do a check for `request.htmx` in my views and conditionally return a template partial as needed. This reduced my need for one-off view functions that were only returning partials for htmx. Works pretty well from my experience.

Stop trying to make Mastodon be Twitter. If that's what you want, go use Twitter.

I don't see how using an optional, open-source, non-chronological feed means that someone should just "go use Twitter". For one, the incentives are completely different between Twitter which generates revenue based on engaging users (and juicing subsequent algorithms), and someone who builds a separate feed interface for Mastodon.

I don't get this mentality of "I like X, but I don't want to use X, so imma go turn Y into X" some devs seem to have.

Developers like to solve problems and build things. I've re-created other projects and products lots of times. Why is it a problem what someone chooses to do with their own time for their own reasons?

Playing into people's FOMO is what got the Internet into the rat's nest

Disagree. Incentives tied to advertising-based business models is the root cause here, not FOMO.

Disclaimer: I made my own alternative timeline for Mastodon as well, so I'm pretty biased. :)

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!

I find it ironic this website is written in Python. It's a single HTML page. Make it a static site and host it for free/low-cost on S3 or something. Why do you need to host this website on a server, use Docker, etc?

Originally it _was_ just HTML + CSS, but I wanted each library's repository metadata (latest version, last commit, etc) to be dynamically retrieved and doing that client-side was brittle and way too slow. So, I used it as an excuse to see how far I could push my own personal static-site framework (https://coltrane.readthedocs.io/en/latest/).

I'm in the same camp and never want to run a build process for JavaScript ever again. I've been slowly improving https://dlitejs.com/ which is a minimal (5kB minified + gzipped) JavaScript framework which works great loaded from unpkg. It's pretty crazy to see how lean a framework can be nowadays (even with two-way binding, directives, and event binding) when leveraging newer standards like Web Components and the Shadow DOM.

I love the simplicity of this idea because for lots of sites the database works just fine as a queue backend and it reduces the amount of infrastructure needed. I currently use https://github.com/dabapps/django-db-queue for https://devmarks.io which also uses the database to store tasks instead of a dedicated queue infrastructure. `Django Q` also has an option to use the database, but I haven't tested it at all: https://django-q.readthedocs.io/en/latest/configure.html#orm. And if you are already running `redis` for your site, https://github.com/rq/django-rq is another option.

The one benefit of this package is that it is async-first which will be beneficial as Django continually adds in more async capabilities. Nice work! I'm looking forward to trying this out and seeing how it works!

A few days late, but I just saw this post in my referrals. I wanted to chime in I've been working on devmarks.io for the past few months. It is still pretty early, but hopefully it's helpful for a few people. Feel free to reach out to me if you run into any issues!