home.social
  1. Found a good excuse to finally dive into generics in #golang.

  2. Ich glaube, Zocken hat sich erledigt. Ich muss hier verweilen. #catsofmastodon #cats

  3. I am tempted to try this. I am a bit sick of the usual stack

    Nginx/Caddy -> WSGI/ASGI Server -> Application

    This sounds like the good old times:

    Caddy -> Application

    github.com/mliezun/caddy-snake

    #django #python

  4. Burrow, my little web framework for Go received a major overhaul too. v0.20.0 is out. 🎉

    - Integrated Den 0.13.1.
    - Added TailwindCSS support.
    - Kicked out some contrib apps and fixed some real design flaws.

    github.com/oliverandrich/burro

    #golang

  5. @ryancheley Great news. Get ready for the final sprint. I can remember how satisfying it was, when I saw the goal at the end of my treatment. #fuckcancer

  6. Using Pydantic and #Python gives this ODM immediately a nicer DX than the Go version.

  7. Task for the afternoon: Think about creating a port of Den for Python. It would be fun to have an ODM based on Pydantic and backed by SQLite and Postgres for #Python too.

  8. I love how reliable the database migrations infrastructure of #django is.

  9. I really like that #languagetool desktop works so fluently inside @ivory now.

  10. Just build a file system only backend for my little #odm Den. Now I have to think about if I want to add it as a third backend to Den.

    #golang

  11. v0.11.0 of den is out 🎉

    This version has a ton of changes, fixes and so on. It basically contains every change I had in my backlog after reviewing the development process in 4 of my side projects. Sadly, also 8 breaking changes in the release, but I finally see a stable API incoming.

    github.com/oliverandrich/den/r

    #golang #odm

  12. django-tailwind-cli 4.6.0 is out 🎉

    * Configurable minification on tailwind build, thanks to @treyhunner
    * One-setting switch to a system-installed tailwindcss binary (Homebrew etc.) - no auto-download
    * tailwind watch now runs under Django's auto-reloader - no more manual restarts after editing settings.py
    * tailwind runserver is a transparent passthrough: every runserver_plus flag finally works
    * Opt-in @source injection for editable-installed external apps - fixes the fragile "../../../" workaround

    github.com/django-commons/djan

    #python #django #tailwindcss

  13. A quiet, productive day so far:

    - Released 0.4.0 of my ODM `Den` with new features and bug fixes.
    - Switched my web framework `Burrow` from Bun to Den and released 0.11.0.
    - Moved the documentation for Burrow to readthedocs.org
    burrow.readthedocs.io/en/stabl

    A Sunday, that makes me happy.

    #golang #happyhacking

  14. Released my take of an object-document mapper (ODM) named Den to the public. So far, it was a fun ride to built it. It took a lot of inspiration from Beanie, which I use in two projects I built and maintain for a close friend.

    github.com/oliverandrich/den

    Next up on the list: Documentation and replacing Bun in Burrow with Den. And I love that by this change, Burrow gets proper PostgreSQL support besides SQLite.

    #golang #odm #sqlite #postgresql

  15. I am currently developing several web applications for my personal use. From these projects, I have extracted my own small web framework—Burrow.

    It is based on some concepts from the Django framework, which I love, and combines them with some concepts that I particularly appreciate about Go. Optimized for the small web, self-hosting, and easy deployment.

    github.com/oliverandrich/burrow

    #golang #webframework

  16. Here is a commit to review the upcoming changes. I still have to do some testing, and if I want to follow this road for the project. Basically, I prefer to only rely on upstream resources and not on additional forks.

    github.com/django-commons/djan

    #django #TailwindCSS

  17. Played around with django_typer in the last few days and really love what @bckohan has built. So I took the decision to reimplement the management command for my django-tailwind-cli project using it. The code feels much cleaner now. I hope the users are okay with the extra dependency.

    github.com/oliverandrich/djang

  18. Having a good night of sleep really helped me to solve the i18n issue I had with templ. I should write an article about it, as I am now really satisfied with the solution I found. Basically, I implemented a middleware to extract the preferred language from the Accept-Language header and push it into the request context. There it is easily accessible from templ. And I created a templ component to render the translated string.

  19. If includes a wrong typing for a function, where do I have to open the ticket? Pylance or the project?

    The definition from calendar.pyi is basically wrong as the function returns actually list[list[list[date]]].

    ```python
    def yeardatescalendar(self, year: int, width: int = 3) -> list[list[int]]: ...
    ```

  20. Starting the day with Django Day Copenhagen and preparing for PyGotham now. Good times and a lot of great Django content. Thx and .