Joined August 2011
34 Photos and videos
Pinned Tweet
17 Jul 2024
I just open-sourced my first Django package: Cotton. Inspired by Vue, Svelte and Laravel Blade components, it brings component-based design to Django templates. Check it out! 🙏 github.com/wrabit/django-cot…
6
8
62
5,790
Will retweeted
A few things I've noticed as all devs write code with AI. When you write foundational / architectural code of a new project by hand, you "feel" the code pushing back if your abstraction isn't right. You feel when something is harder than it should be. The code is telling you it's not in the right shape. Good engineers are sensitive to this. When you're using an LLM, you keep pushing right through this in a way that feels like you're making progress, and it may even be directionally correct in a sense, but the underlying foundation of it all is actually bad in a way that either kills progress of the LLM later as it buckles under the complexity it has created or destroys your ability to maintain the code long term. Related to this, I see a general restlessness with just sitting and thinking about a problem for a while. As I've been working on a new library here at Laravel, there have been days where it feels like I mainly just stare at my screen thinking about something. When Claude Code is at your fingertips, it's tempting to just start yapping into the terminal and watching code come out the other end. Again, directionally correct in some ways, but often doesn't land on the elegant solution that is waiting to be discovered.
269
473
3,933
489,822
Will retweeted
I wrote up a blog post demonstrating my reason for starting to use django-cotton. In short: when I want an include that can accept one or more blocks of HTML, I'll use a component instead. treyhunner.com/2025/03/djang… #Python #Django

1
3
12
990
Will retweeted
Currently trying Django Cotton in pair with @htmx_org and django-template-partials and.. it's a banger ! Trying to see if I really need template partials though if you go full component mode with django cottons. Once everything is its own component and with the flexibility django cotton adds, I don't really see a good use case. I am building a small library of components based on Daisy UI and with HTMX doing it's magic django's ORM and features in the backend, really is the best DX.
5
2
7
1,082
Will retweeted
12 Dec 2024
Because of @eshatjubayer I’m transitioning my auction front end from streamlit to Django cotton. django-cotton.com/docs/quick…

1
1
2
167
Will retweeted
19 Dec 2024
Writing reusable and composable UI components can be achieved using the good 'ol django templates, with the help of some libraries to fill in the gaps (like django-components, django-cotton and TailwindCSS) Check out my talk at Djangocon US
1
4
5
409
Will retweeted
To the dads with young, young kids, here's my one piece of advice. Become a morning person, and fit all of your hobbies into the hour or so before everyone else in your house wakes up. Read, hike, play a video game, whatever you like. But at 6am. :/ You'll get used to it haha.
37
12
213
13,281
Will retweeted
#django cotton seems like the missing piece when you are building large applications. If you are a serious django developer you owe it to yourself to give it a try.
2
1
1
317
Will retweeted
24 Nov 2024
Now you can create amazing reusable React-like component in Django with django-cotton. I've been waiting this for a long time.
1
11
4,056
Will retweeted
11 Nov 2024
New video: Django Cotton in Five Minutes—the component system you've been looking for. youtube.com/watch?v=9-ZFz-xw…
2
2
12
944
Will retweeted
7 Nov 2024
A reusable component system was the last missing piece to building serious front ends in the Django / HTMX low-JavaScript world. I've only been using it for a couple weeks but so far cotton feels like the answer.
17 Jul 2024
I just open-sourced my first Django package: Cotton. Inspired by Vue, Svelte and Laravel Blade components, it brings component-based design to Django templates. Check it out! 🙏 github.com/wrabit/django-cot…
3
9
66
3,394
Will retweeted
Wow, django-cotton is incredible. Define, use with `<c-button>` (or whatever the template name is) and see the results. I've been wanting a shadcn-like template for Django. I think django-cotton is the key to making that happen. Just needs to learn a few more bits about it.
10
8
44
2,615
Will retweeted
24 Oct 2024
I just published a Django Cotton component library of Heroicons. It's super simple to use and has all the latest icons. Here's a quick taste: <c-heroicon.check-circle /> pypi.org/project/cotton-hero…
1
1
10
280
Will retweeted
django-cotton、いいよねえ
1
2
125
Will retweeted
If you're a Django developer that uses HTMX or otherwise relies heavily on SSR and Django templates, you need to check out django-cotton. django-cotton.com/

1
3
307
Will retweeted
31 Aug 2024
I love django-cotton by @willrabbott! It's allowing me to create components without endless configurations. It's a young project, but it's improving quickly. Give it a try, and leave a star ⭐ github.com/wrabit/django-cot…
1
3
8
306