@dunsap@fosstodon.org
@dunsap@fosstodon.org avatar

dunsap

@dunsap@fosstodon.org

Passionate Web developer since 1999. Currently senior Django developer at Torchbox.

On my free time I enjoy climbing, running, playing cards at the pub and improving ZakuChess - a “daily chess challenge with heroic fantasy characters” web game built with Django, htmx and Tailwind CSS

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

anze3db, to random
@anze3db@fosstodon.org avatar

One thing that I'm missing with HTMX and Django is proper error handling.

By default HTMX swallows any response that is not a 2xx, which might leave your users hanging on an endless loading state.

Does anyone have a good solution for this that can be reused between projects?

video/mp4

dunsap,
@dunsap@fosstodon.org avatar

@anze3db If I'm not wrong the response-targets extension can be used for that? 🙂
https://htmx.org/extensions/response-targets/

rauschma, to random
@rauschma@fosstodon.org avatar

Simple(!) Node.js frameworks that support TypeScript (think small hobby project where performance doesn’t matter): Which ones do you like?

dunsap,
@dunsap@fosstodon.org avatar

@rauschma I really like Hono: quite a modern “à la Express” framework that manages to have the essential features built-in, while staying minimalist 🙂
https://hono.dev/

adamchainz, to django
@adamchainz@fosstodon.org avatar

✍️ New post on some work I’ve done optimizing Django’s system check framework.

💡 This is a bit of a long post, about 3k words. I hope you learn something from it.

https://adamj.eu/tech/2024/03/23/django-optimizing-system-checks/

dunsap,
@dunsap@fosstodon.org avatar

@adamchainz Thanks a million for all your contributions to Django, and the constant knowledge sharing! ✨💙

adamchainz, to python
@adamchainz@fosstodon.org avatar

⏱️ After 6.5 years, pywatchman released a new version at the beginning of the month, including 3.10+ support. Yay!

🦄 Django’s runserver can use pywatchman to drastically reduce the CPU cost of autoreloading. gets pywatchman to send it file change notifications from the OS rather than polling every file every second.

✍️ In January, I removed the watchman section from Boost Your Django DX due to the incompatibility. But now I can restore it. 😊

https://pypi.org/project/pywatchman/#history

dunsap,
@dunsap@fosstodon.org avatar

@adamchainz Thanks for sharing!
I just tried it by installing pywatchman to my venv, and it worked like a charm 🎈
It feels good to see that good old "Watching for file changes with WatchmanReloader" again after all this time ahah

dunglas, to random
@dunglas@mastodon.social avatar

FrankenPHP 1.0 is out 🎉

For the occasion, we've created a brand new website. https://frankenphp.dev

dunsap,
@dunsap@fosstodon.org avatar

@dunglas Congratulations! 🎈
Any plans to expose the wrapped PHP for an usage in a CLI context, so that one doesn't have to use another PHP environment when they want to run management commands? 🙂
(but I reckon it might not be feasible, given that it's wrapped in a HTTP server? )

dunsap,
@dunsap@fosstodon.org avatar

@dunglas Awesome! Thanks 🙂
I couldn’t find it in the documentation but now that you mention it I remember having actually seen it in a few examples in your slides.
FrankenPHP is quite an achievement, I hope it will be get the success it deserves!

tintvrtkovic, to random
@tintvrtkovic@mastodon.social avatar

depends on the immutables package for a subset of its tests. immutables 0.19 doesn't support 3.12, immutables 0.20 doesn't support 3.7, cattrs supports both. How boned am I?

dunsap,
@dunsap@fosstodon.org avatar

@carlton Six years living in the UK, and I still wasn't understanding why I was apparently misunderstood every time I was using "quite" as a synonym for "very"...
Thanks to you Carlton I just got the fact that the word has a different meaning between US and British English - which finally explains so many things 😄

davidsmith, to random
@davidsmith@fosstodon.org avatar
dunsap,
@dunsap@fosstodon.org avatar

@davidsmith Material For MkDocs just released their “blog” plugin as an open source (and free) one, which can also be a good option, rather quick to set up (and with built-in support for automatic publication to GitHub pages) 🙂
https://squidfunk.github.io/mkdocs-material/setup/setting-up-a-blog/

einenlum, to random French
@einenlum@fosstodon.org avatar

It seems like working with a new language/framework is easier when signing a permanent contract. At least it's my experience.
Are there freelancers here who switched to a new language as a short term contractor?
How did you find the short assignment and how did you prepare for it?

dunsap,
@dunsap@fosstodon.org avatar

@einenlum Yeah, problem of contracting is that for the high daily rate the client obviously expects you to be productive more or less from day 1
In my case, when I jumped to a new tech stack (which I did twice) the deal was to lower my salary, like by 1/2
When I contracted on a RoR stack for example, the deal was that I would not invoice days where my lack of xp in Rails was dragging my productivity down.
In the end I invoiced something like 60% of my days.
Can't work for every client of course

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