@fallenhitokiri@social.screamingatmyscreen.com avatar

fallenhitokiri

@fallenhitokiri@social.screamingatmyscreen.com

I build backends, apps and sometimes break them, practice martial arts and enjoy video games. I believe I have seen the whole Internet once, maybe twice.

Tools of choice #python #django and #golang
Sometimes musing about #gaming and #gym life

This profile is from a federated server and may be incomplete. Browse more on the original instance.

fallenhitokiri, to random
@fallenhitokiri@social.screamingatmyscreen.com avatar

You cannot spell HATEOAS without “hate”.

Dealing with yet another API that is unnecessarily complex claiming to be in the “true spirit of HATEOS” (read: the engineers understanding of it) makes me believe this was intentional by Roy.

fallenhitokiri, to random
@fallenhitokiri@social.screamingatmyscreen.com avatar

If you ever wondered if you should be using OpenCart here’s your answer. Pour one and enjoy, it’s a special kind of entertaining :) https://github.com/opencart/opencart/issues/12947

fallenhitokiri, to random
@fallenhitokiri@social.screamingatmyscreen.com avatar

Altman returns as CEO with „his own“ board. There goes the last chance for „Open“ and „non profit“.

fallenhitokiri,
@fallenhitokiri@social.screamingatmyscreen.com avatar

@LucidDan so investors and tech bro simps? :/

fallenhitokiri, to random
@fallenhitokiri@social.screamingatmyscreen.com avatar

Quick post: I would really appreciate if we could bring webrings back. https://www.screamingatmyscreen.com/webrings/

webology, to random
@webology@mastodon.social avatar

🔨 We have been building a lot of Django apps lately with HTMX and Tailwind CSS, along with what I'm calling the Carlton Stack:

It's been a joy to build web apps again after what feels like a decade of REST apps.

Kudos to @carlton for creating and maintaining some of these fine tools.

fallenhitokiri,
@fallenhitokiri@social.screamingatmyscreen.com avatar

@webology @carlton django-cookiecutter-carlton when?! scnr

danjac, to random
@danjac@masto.ai avatar

Not sure what the point of a manager "1:1" is. I'll tell you everything is totally fine, until I hand in my notice. You will do the same, until you fire me.

fallenhitokiri,
@fallenhitokiri@social.screamingatmyscreen.com avatar

@danjac sounds like a pretty bad relationship which hopefully isn’t the norm.

fallenhitokiri,
@fallenhitokiri@social.screamingatmyscreen.com avatar

@danjac guess I’m lucky in that regard :) most 1:1 are strategic planning, early m&a discussion, team and individual performance review etc.

It’s nothing we’d discuss on a daily basis and it’s nothing to immediately address.

But “we do X”, “Y blew up in prod”,… never occurred to me to be a 1:1 topic

fallenhitokiri, to ubuntu
@fallenhitokiri@social.screamingatmyscreen.com avatar

When you have to explain why a misleading message trying to scare you into paying money for system updates isn’t that bad right now you know things are bad. https://inteltechniques.com/blog/2023/11/12/ubuntu-pro-shenanigans/

webology, to random
@webology@mastodon.social avatar

🤔 HTML-First? https://html-first.com/

😍 Yes, you have my attention.

🔥 I'm happy to see a catchy name for the thing I have been advocating for aka the Contact Us form written in React debacle.

fallenhitokiri,
@fallenhitokiri@social.screamingatmyscreen.com avatar

@webology the inline JS part is a bit of a mess with current CSP implementations and would likely not pass an audit. Especially as most folks seem to prefer unsafe-inline which is a bit no-no instead of a nonce.

fallenhitokiri,
@fallenhitokiri@social.screamingatmyscreen.com avatar

@webology same here - I’m starting to become a fan of HTMX.

I’ve now shipped three products with it and beside being a pleasure to work with it „just works“, which I consider rare these days.

I had someone ask if we could do server side rendering as well for SEO purpose (one of the projects was customer facing) :)

adamchainz, to django
@adamchainz@fosstodon.org avatar

I just wrote this proposal that ’s third-party package tutorial recommend using a django_ module prefix to prevent name collisions, such as the historical one between django-ratelimit and ratelimit.

What do you think?

https://forum.djangoproject.com/t/change-reusable-apps-naming-recommendation/25233

fallenhitokiri,
@fallenhitokiri@social.screamingatmyscreen.com avatar

@adamchainz I like the idea. Not just to avoid name collisions but also for discoverability.

I think it also sets a good example to point other frameworks to.

markdown
django_markdown
django_markdown_async
fastapi_markdown
..

Prefix framework, suffix potential variation / alternative implementation.

If that would be something the community could agree on enforcing it on pypi would be amazing.

A stretch goal most certainly outside scope and likely not achievable, but one can dream, right?

CodenameTim, to random
@CodenameTim@fosstodon.org avatar

I need to find a better way to describe contributing open source software. Approximately zero people from my hometown understand what I'm talking about or why anyone would ever give their work away for free.

fallenhitokiri,
@fallenhitokiri@social.screamingatmyscreen.com avatar

@CodenameTim „did you ever play basketball? Did you get paid for it? See, it’s the same for me with code“

Depending on the project even the occasional verbal abuse by the audience (who couldn’t hit a three point shot if their life would depend on it but act like they are Kobe) is the same…

danjac, to random
@danjac@masto.ai avatar
fallenhitokiri,
@fallenhitokiri@social.screamingatmyscreen.com avatar

@danjac I know it’s always dangerous to generalize, but at this point it feels like the moment you see medium.com as part of the domain you known its most likely not worth reading

paulox, to random
@paulox@fosstodon.org avatar

Do you have any advice on how to share a draft article in order to ask for comments? A private doc on Google comes to mind. Do you have other ideas? 😅

fallenhitokiri,
@fallenhitokiri@social.screamingatmyscreen.com avatar

@paulox I usually go for a private / password protected paste on pastebin.com and discuss comments via email.
But I also prefer plain text for everything, so this advice might not be that good :)

danjac, to random
@danjac@masto.ai avatar

I had some ideas for fediverse apps but honestly the protocol is so challenging to implement I realized I would be spending 80% of the time dealing with ActivityPub integration and 20% actually working on the app itself.

"Just make it federated" is never going to be a thing with these specs, even reusable libraries and test suites are too difficult to implement.

fallenhitokiri,
@fallenhitokiri@social.screamingatmyscreen.com avatar

@danjac especially point three is IMHO the best and most important advice to give right now.

Everyone wants federated solutions, but nearly none really profit of having Mastodon compatibility.
Not adding unnecessary overhead and complexity is IMHO preferable.

carlton, to django
@carlton@fosstodon.org avatar

Grrr, the leaky battery strikes again. Yet another beginner running into trouble setting up a custom user model.

https://forum.djangoproject.com/t/error-while-creating-a-model-using-abstractuser/25000

fallenhitokiri,
@fallenhitokiri@social.screamingatmyscreen.com avatar

@carlton my question with problems like this is „why“. It feels wrong just blaming the battery.

The documentation https://docs.djangoproject.com/en/4.2/topics/auth/customizing/#substituting-a-custom-user-model lists the steps to take in a short and understandable way. And the docs are IMHO still industry leading.

So how do we actually see problems like this on a regular basis? I don’t think the docs can get better. Maybe error messages?

fallenhitokiri,
@fallenhitokiri@social.screamingatmyscreen.com avatar

@carlton when integrating external IdPs the username field is pretty handy. I think a compromise and easy transition path is letting users specify the username field they want to use. username_field = „email“

But having your IdP managed username in the model as well is actually pretty neat. Especially when having multiple services and being forced to align on a username across services. Email isn’t always present, for external contractors for example.

fallenhitokiri,
@fallenhitokiri@social.screamingatmyscreen.com avatar

@carlton @CodenameTim at some point a custom user model IMHO makes sense. Especially when you reach the point where each additional join is a problem, so having a user profile or additional attributes as part of the model can be handy.

I’m not saying a custom model should be the default 99% of projects reach to, but I think the existence of the option is justified and if there’s a systemic issue leading to the same bugs that should be addressed as well.

fallenhitokiri,
@fallenhitokiri@social.screamingatmyscreen.com avatar

@carlton @danjac @CodenameTim what if there wouldn’t be a central auth model but the abstract classes encouraging (read: forcing) you to always bring your own?

Worst case it’s two lines of code (inherit base classes) and a settings option.

It could even be auto generated next to projectName/urls.py

fallenhitokiri,
@fallenhitokiri@social.screamingatmyscreen.com avatar

@lilyf @carlton @danjac @CodenameTim hm I didn’t think through the migration process, my naive idea would be

  • Move auth.User to projectName/user.py
  • update settings to point to the auth model

It’d fall short if people import the model directly instead of using get_user_model, but that feels like something we could catch with a system check and deprecation warning?

What am I missing here?

fallenhitokiri, to random
@fallenhitokiri@social.screamingatmyscreen.com avatar

It’s fascinating how involved people get arguing with corporations that have repeatedly shown they don’t care about users, laws or ethics with any of their products.

An easy solution - and in this case I consider it an easy, viable solution - is not using their software. But no, people choose to argue and get agitated. As if there would be historical evidence that it would change anything.

https://github.com/microsoft/vscode/issues/176269

fallenhitokiri,
@fallenhitokiri@social.screamingatmyscreen.com avatar

@webology that’s a good point, especially considering how often threads like this end up with rather abusive comments

danjac, to random
@danjac@masto.ai avatar

It looks like there is an open source, non-profit alternative to , Ghost:

https://ghost.org/

Someone has done preliminary work on ActivityPub integration:

https://codeberg.org/quigs/ghostcms-activitypub

Has anyone used Ghost? What's their experience been?

fallenhitokiri,
@fallenhitokiri@social.screamingatmyscreen.com avatar

@danjac MySQL8 being the only database „supported for production“ and their installation process being based on npm are the main major ones.

When they first launched the project felt like a big scam to me. 300k Kickstarter money spend on a weekend project that didn’t even have a responsive admin interface for its two views. There was not a lot to it for the time and money spend. (I read the source and used it)
They obviously turned it into something, so my first impression was not correct.

fallenhitokiri,
@fallenhitokiri@social.screamingatmyscreen.com avatar

@danjac I don’t like Node mostly for the language and the broken dev culture around npm. But if someone else wants to deal with it I have no problem running the software if it’s properly packaged.

And with the amount of funding they got I’d expect properly packaged and not „run a supply chain attack waiting to happen“ as official install instructions.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • JUstTest
  • ngwrru68w68
  • thenastyranch
  • osvaldo12
  • cubers
  • InstantRegret
  • DreamBathrooms
  • cisconetworking
  • magazineikmin
  • Youngstown
  • Durango
  • mdbf
  • slotface
  • rosin
  • provamag3
  • kavyap
  • tacticalgear
  • modclub
  • khanakhh
  • anitta
  • ethstaker
  • tester
  • everett
  • GTA5RPClips
  • normalnudes
  • megavids
  • Leos
  • lostlight
  • All magazines