@radiac@mastodon.cloud
@radiac@mastodon.cloud avatar

radiac

@radiac@mastodon.cloud

Python and Django contractor, open source developer, kitten wrangler.

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

adamchainz, to python
@adamchainz@fosstodon.org avatar

✍️ New post covering a “diffing” unit test in #Python, which checks copy-paste-tweaked code is in sync with the upstream library.

I used this technique recently on a #Django upgrade and I’m curious if anyone else has done similar.

https://adamj.eu/tech/2024/04/26/python-diffing-unit-test/

radiac,
@radiac@mastodon.cloud avatar

@adamchainz I've done similar with class/fn copies, but take a snapshot hash of the function I've copied and save it to a json file next to the test.

radiac, to django
@radiac@mastodon.cloud avatar

I released nanodjango 0.4.0 yesterday - the tool to run a Django app with models and admin from a single file, then automatically convert to a full Django project.

https://github.com/radiac/nanodjango

It now supports CBVs, and you can run it as a standalone script with pipx run, making it easier to share small apps and proof of concepts etc.

radiac,
@radiac@mastodon.cloud avatar

@ehmatthes I have! I originally released this as django-flasky in ~2022 as bit of a joke and challenge, but found that with the models it was actually quite useful for prototyping and experimenting with things.

I renamed it when I added the "convert" command to turn a script into a full project, as it seems more of a serious tool now. Also I'm hoping the name will help discovery, so people will contribute to this rather than doing their own (fun as they are!)

radiac,
@radiac@mastodon.cloud avatar

@ehmatthes Ah brilliant - I had seen it, hadn't connected the name! That's a really interesting project, look forward to reading more.

This was actually part of my motivation for doing this. I had a string of clients struggling to scale their Flask projects - they could have done with the features and structure of a full Django project, but were put off by the initial complexity.

That's why I wanted to do the convert command - it gives you somewhere to go when it gets too big for one file.

simon, to random
@simon@simonwillison.net avatar

It’s OK to call it Artificial Intelligence: I wrote about how people really love objecting to the term "AI" to describe LLMs and suchlike because those things aren't actually "intelligent" - but the term AI has been used to describe exactly this kind of research since 1955, and arguing otherwise at this point isn't a helpful contribution to the discussion.

https://simonwillison.net/2024/Jan/7/call-it-ai/

radiac,
@radiac@mastodon.cloud avatar

@simon Your readers are probably fine, but the problem is this is the first time this has escaped into the real world. It is being put in front of muggles who have been trained on sci-fi and have wildly unrealistic expectations. We know LLMs are glorified photocopiers, but normal people who I've spoken with genuinely expect the "intelligence" bit to mean that answers come from human-like knowledge and thought. The danger is the AI label means they trust what LLMs generate without question.

simon, to random
@simon@simonwillison.net avatar
radiac,
@radiac@mastodon.cloud avatar

@simon I always say please and thank you so that when they rise up they remember I was one of the nice ones.

paulox, (edited ) to django
@paulox@fosstodon.org avatar

This morning during the DjangoCon US 2023 sprints, with Will Vincent we showed his Django Microframework repository based on Carlton Gibson 2018 talk, and then I showed my optimized version. 🤯

CC @djangocon @carlton @wsvincent

radiac,
@radiac@mastodon.cloud avatar

@paulox @djangocon @carlton @wsvincent You might enjoy my version with model support: https://github.com/radiac/django-flasky

adamchainz, to django
@adamchainz@fosstodon.org avatar

The best URL structure

radiac,
@radiac@mastodon.cloud avatar

@adamchainz comments at cgi-bin/guestbook.pl

simon, to random
@simon@simonwillison.net avatar

Just had one of those horrifying I'm-old-now thoughts... I sometimes use Data from Star Trek as an analogy when talking about AI (like emphasizing that LLMs really aren't Data, even if they occasionally do a good impression of him)

... except I just realized Star Trek: The Next Generation aired before a lot of the people I talk to about this stuff were even born!

radiac,
@radiac@mastodon.cloud avatar

@simon It's available on both VHS and DVD, they have no excuse for not watching it regardless their age.

simon, to random
@simon@simonwillison.net avatar

Question for Dependabot users: have you found a good pattern for landing multiple dependency bumps at once?

I have continuous deployment configured but I don't want to ship the whole repo every time I land a Dependabot PR

radiac,
@radiac@mastodon.cloud avatar

@simon Merge into a branch individually, merge that into "main" in one go, and only do cd on "main"?

Most of my projects have a "develop" default branch and dependabot PRs to that. Although I also only release on tags.

carlton, to random
@carlton@fosstodon.org avatar

First proper wontfix on Neapolitan. https://github.com/carltongibson/neapolitan/issues/16

radiac,
@radiac@mastodon.cloud avatar

@LucidDan @carlton fwiw django-fastview supports namespaces. Like Carlton said before, I'm aiming for a more complex API with possibly more features, so a slightly different audience? Really need to release my WIP branch.

simon, to random
@simon@simonwillison.net avatar

A slightly silly thought experiment: if you think AI shouldn't be trained on unlicensed copyrighted material, and an android similar to Data from Star Trek existed... should it be banned from reading books, or walking through a modern art gallery and looking at the pictures?

(I don't think science fiction has prepared us for our weird new AI era - or maybe Star Trek's post-capitalism society is the thing that makes that work)

radiac,
@radiac@mastodon.cloud avatar

@simon I'm not sure there's a difference to humans in that scenario; we and AI can learn from copyright data, but neither of us can just slice it up and regurgitate it without using our sentience and personal thoughts to produce something new. We can't pass someone else's work off as our own - that's plagiarism and copyright infringement.

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