Stats
Tweets & Toots.
“github” 1 à 10 sur 242
Suivant ou précédent avec ←/→Page suivante ou précédente avec ⇧←/⇧→
-
I merged a Django implementation of the Chapter 06 (More Htmx Patterns) of the book Hypermedia Systems https://github.com/kemar/django-contact-app/pull/2
- fast to implement
- zero new dependencies
- easy to understand 21/04/2024 à 19:08 Permalien -
I merged a Django implementation of the Chapter 05 (Htmx Patterns) of the book Hypermedia Systems https://github.com/kemar/django-contact-app/pull/1
- HTML eXtended is a lot less verbose than "normal HTML"
- no need to change a JSON API and keep clients in sync
- coding is fun again! 20/04/2024 à 18:37 Permalien -
I published a Django implementation of the Contact.app used in the Chapter 3 of the book Hypermedia Systems.
This is for people familiar with Django wishing to continue the reading while playing in familiar territory.
https://github.com/kemar/django-contact-app/ 14/04/2024 à 18:57 Permalien -
About htmx's boosting implicity:
> In general, this is the design philosophy of htmx: prefer explicit over implicit and obvious over “magic.”
> However, the `hx-boost` attribute was too useful to allow dogma to override practicality, and so it is included as a feature in the library.
https://github.com/bigskysoftware/hypermedia-systems/blob/ab7dd0a149972465015ebe9fbee91706ba93cfe4/book/CH05_htmxPatterns.adoc?plain=1#L268-L275 https://hypermedia.systems/htmx-in-action/#_adding_hx_boost_to_contact_app 12/04/2024 à 20:53 Permalien -
A Complexity Budget
> Any software project has a complexity budget, explicit or not
[…]
> The sure-fire way to keep complexity down is also the hardest: say no. Pushing back on feature requests is an art
and, if you can learn to do it well, making people feel like _they_ said no, you will go far.
https://github.com/bigskysoftware/hypermedia-systems/blob/ab7dd0a149972465015ebe9fbee91706ba93cfe4/book/CH01_HypermediaAReintroduction.adoc?plain=1#L715-L734 06/04/2024 à 15:22 Permalien -
RT @thesamesam Since the #xz incident started, I've been maintaining an FAQ/living document on what we know at https://gist.github.com/thesamesam/223949d5a074ebc3dce9ee78baad9e27
I think most people in my extended circle either already seen it but posting about it given there's likely to be a lot more questions as we go into the working week.
Thank you to everyone who has contributed tips, suggestions, and edits. Thanks especially to @cadey who has helped a lot with editing. 01/04/2024 à 06:37 Permalien -
About the #django admin :)
> The admin is a really fun application. If you've ever wanted to look at how to potentially, like, put everything you can imagine in a Django application in a single class in a single file, look at `ModelAdmin`, it's a very weird thing.
https://www.youtube.com/watch?v=tkwZ1jG3XgA&t=10192s
https://github.com/django/django/blob/b07e2d57a000d98c73492e5242fed91d502a780a/django/contrib/admin/options.py#L643 16/03/2024 à 18:18 Permalien -
In #django `SQLCompiler.get_group_by()`:
> The logic of what exactly the GROUP BY clause contains is hard to describe in other words than "if it passes the test suite, then it is correct".
https://github.com/django/django/blob/0a560eab550696dbc163d57258ef6f3cdb9511a3/django/db/models/sql/compiler.py#L98-L100
GROUP BY clauses are one of the things that is easier to write in plain SQL (IMO). 10/03/2024 à 15:18 Permalien -
Creating a sticky table header with #CSS should be as simple as:
`thead { position: sticky; top: 0; }`
But things go wrong as soon as any ancestor has a non-default value for overflow.
https://stackoverflow.com/a/44929597
https://github.com/w3c/csswg-drafts/issues/865
And I'm not even talking about border styles not working when sticky positioned…
(╯°□°)╯︵ ┻━┻ 02/03/2024 à 19:11 Permalien -
Having switched back and forth between management and engineering, I find it surprising how my behaviour is influenced by my position.
I remember doing that a lot as a manager:
> A large portion of my job is debugging social tensions and psychological insecurities of people.
I guess we view things through different lenses, depending on our position…
https://thoughtspile.github.io/2024/02/16/eng-to-em/
https://news.ycombinator.com/item?id=39406804 17/02/2024 à 11:12 Permalien