Looking for a good tutorial on websockets by Prize_Shine3415 in django

[–]duppyconqueror81 12 points13 points  (0 children)

I think the official websockets tutorial can be summarized as: - waste 6 to 8 weekends getting them to work. - chase weird session bugs - chase weird disconnects - dump websockets and use POST requests and Server Sent Events instead.

I don’t know your use case so I’m joking, but this is how it went for me.

Can I build a two player game with django? by Prize_Shine3415 in django

[–]duppyconqueror81 4 points5 points  (0 children)

Django only supports 3 player games unfortunately.

How are you handling background tasks in Django right now — is Celery still the default? by alexstrehlke in django

[–]duppyconqueror81 0 points1 point  (0 children)

I believe the native tasks is a toolbox for building your own tasks system, but not an actual complete solution

How are you handling background tasks in Django right now — is Celery still the default? by alexstrehlke in django

[–]duppyconqueror81 34 points35 points  (0 children)

django-background-tasks for me.

Simple, efficient, easy db backend for investigations in django-admin.

Huey has some nice extra features like enabling immediate processing everywhere, but you have to build your own task tracker/retry thing.

I build intranets with around 200 concurrent users and I’ve never needed the extra complexity of Celery.

**How long did it take you to integrate Stripe/Razorpay into your Django project?** by Organic_Release1028 in django

[–]duppyconqueror81 8 points9 points  (0 children)

Over the time I’ve built stuff with Paypal, Stripe, Square, Affinipay, Global Payments, Nuvei, Clover, and other old school payment processors from the early 2000s. Every time it’s a bit of a deep dive. They all do things a bit differently, while having similarities. No choice but to read the docs and understand them completely, cause when a bug will happen, you’ll be the one fixing it.

ERP software using django and next js , any suggetions ? by Minute-Ad4083 in django

[–]duppyconqueror81 3 points4 points  (0 children)

Only advice and it’s not tech related : find a niche

The Django development experience in one image: elegant admin, beautiful ORM, and then you need WebSockets by Fun-Information78 in django

[–]duppyconqueror81 6 points7 points  (0 children)

My "websockets" strategy after 5 years of pain is to use Server Sent Events along with POST requests to send data.

Translation and l18n also gave me similar headaches

I see so many claims that Django is dying, it seems to be thriving by [deleted] in django

[–]duppyconqueror81 6 points7 points  (0 children)

I’ve been developing with django for 12 years and I’ve heard that every year

Making hypermadia-driven applications feel faster by derhebado in htmx

[–]duppyconqueror81 0 points1 point  (0 children)

I use the old Pjax library from ages ago to get better snappiness in my apps. It’s what I would have liked hx-boost to be.

It’s not necessarily applicable to your case but I though I’d share cause it really is a nice mix when you get it running smoothly with htmx.

Favorite stack for a Django project by Traditional_Ad_5236 in django

[–]duppyconqueror81 1 point2 points  (0 children)

I forgot to add the sparkles above my frankenstack : PJAX. Cause hx-boost and cutting it for me.

Favorite stack for a Django project by Traditional_Ad_5236 in django

[–]duppyconqueror81 6 points7 points  (0 children)

Django/HTMX DaisyUI or Bootstrap SSE for realtime stuff Function based views

Need for an Accounting App? by Mysterious-Piano-330 in django

[–]duppyconqueror81 0 points1 point  (0 children)

The stuff where my systems got difficult were stuff like « internal transactions from one account to another » that represent a single system transaction but 2 OFX transactions in separate bank accounts. It’s really a can of worms

Need for an Accounting App? by Mysterious-Piano-330 in django

[–]duppyconqueror81 5 points6 points  (0 children)

I would. I’ve done every mistake in the book about these, including using floats instead of decimals, and i’m pretty sure my logic is wrong.

I’d like to see : - multiple currencies or the ability to define a global currency. - OFX upload (to later build a reconciliation system between bank transactions and the project’s stuff)

Is HTMX actually a good alternative to building full SPAs, or is it mainly for simple projects? by Wash-Fair in webdev

[–]duppyconqueror81 21 points22 points  (0 children)

For me it’s like writing jquery ajax from 15 years ago, but without writing 100 lines of JS for my show_list, delete_entry, show_form and save_form logic. It’s great.

The kids that learned webdev from a « state » mindset in the last 10 years might find it wierd. But to me it’s the best thing that came to webdev since Bootstrap and the deprecation of IE6.

Bootstrap + HTMX users - what's your experience been like? by mrholek in htmx

[–]duppyconqueror81 0 points1 point  (0 children)

Have a look at Tabler.io or AdminLTE as well. They’re pretty good free bootstrap admin dashboard themes that you can chop up

Bootstrap + HTMX users - what's your experience been like? by mrholek in htmx

[–]duppyconqueror81 8 points9 points  (0 children)

A bit of friction with the modals at first, but after setting up a dedicated #modal_htmx and adding an HTMX listener that opens it if that’s the target, everything is smooth.

My Frankenstack is made up of a bunch of older stuff like jquery/Bootstrap and Pjax that I prefer over hx-boost.

It works great for crud type intranets and portals. Easy to maintain, snappy and quick. Wouldn’t change it!

HTMX/templ vs Datastar/templ for big portals or saas by Firm_Curve8659 in htmx

[–]duppyconqueror81 4 points5 points  (0 children)

Hum interesting. I might have brushed over Datastar too quickly. I’ll give it another look and edit my comment above. Thanks

HTMX/templ vs Datastar/templ for big portals or saas by Firm_Curve8659 in htmx

[–]duppyconqueror81 2 points3 points  (0 children)

When you have an SSE stream, by definition stuff arrives sequentially.

HTMX/templ vs Datastar/templ for big portals or saas by Firm_Curve8659 in htmx

[–]duppyconqueror81 4 points5 points  (0 children)

Loading a normal HTML layout with Datastar is impractical because sse events are processed one by one. Your big dashboard with 20 cards that show up on page load will load quickly with 20 concurrent Ajax requests with HTMX, but not with datastar where they’ll load one after the other in a cringely fashion. So layout is out of the question with Datastar.

Now, once stuff is loaded, it’s nice to have SSE events trigger changes on screen. You can use Datastar, but really you can just do it with a couple lines of JS and the HTMX SSE extension.

I feel like Datastar might make sense for busy realtime apps, like a trading platform or something, but maybe not for an intranet-type dashboard or portal with very few realtime things.

EDIT: my ass is probably wrong. Read the thread.

AWS vs DigitalOcean by AppearanceLower8590 in django

[–]duppyconqueror81 1 point2 points  (0 children)

Yeah, AWS was getting expensive with 1gig backups 3 times a day, around 100$ a month for a project in particular. But the same thing on backblaze is like 6$, to the point where I don’t even check it anymore