Luca

3.4K posts

Luca banner
Luca

Luca

@lc_fd

Freelance dev ~ Django, React, htmx • I made https://t.co/DTdWwepevL and NaryaVim • ❤️ climbing, ttrpg, chess

Trento, Italy Entrou em Temmuz 2014
605 Seguindo502 Seguidores
Justin Mitchel
Justin Mitchel@JustinMitchel·
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.
Justin Mitchel tweet mediaJustin Mitchel tweet mediaJustin Mitchel tweet media
English
10
8
44
2.6K
Luca
Luca@lc_fd·
Last-minute bold moves. A library instead of a full pre-packaged Django app. Integrating the change will require some extra work, but it should be worth it for the flexibility I will gain in return. Let's hope 🙏
English
0
0
1
88
Luca
Luca@lc_fd·
Python. Probably there's a module in the Standard Library to do what you are trying to do. Sometimes I just forget about it 🙈
English
0
0
3
134
Luca
Luca@lc_fd·
@ikoichi Information that should be public doesn't seem to be that public. There's always something that pops up at the last minute. *Maybe* written somewhere almost unreachable and not foundable by common people.
English
1
0
1
153
Luca Restagno 🐢 blacktwist.app
In 2023, I paid 100% in taxes + social contributions on my $150k/year income. This story is horrifying, and I want you to know how to avoid it ❌ In 2022, I received an interesting offer to work for a USA-based startup as a contractor software engineer working from home, for $150k/year. It looked like an irresistible offer. To work for a foreign company, without a legal entity in your country (Italy in this case), you need to create a company or be an autonomous worker (it's called “Partita IVA”). Other options involve even more bureaucracy and expenses, so, with the suggestion of a professional accountant, I opted for the autonomous worker setup. I started working in June 2022. Every month I sent an invoice to the company for my services. They always paid on time. All good. I did my research, and I found that the social contribution is 26% of the income. Taxes are 40% after the deduction of the social contributions (it's more complex than this, but I'm simplifying). I started in June, therefore in 2022, I earned ~€90k. Social contributions: ~€25k Taxes: ~€22k Total: ~€47k It's a huge sum, half of the total net income, but it's what I was expecting. In the meantime, the accountant kept saying to me "In June you'll pay a big sum", and I wasn't surprised: €47k is a huge sum! But after the calculations, the accountant communicated the final sum: €100k To pay in two parts, 70% in June and 30% in November. As you can imagine, I was shocked. €90k earned, €100k to pay. How's that possible? Simple: down payments. Every year, we pay social contributions and taxes twice (multiply by 2 the calculated sum). Isn't this system completely crazy? Paying taxes and social contributions on money that you haven't received yet, and you don't know if you'll earn enough? In my case, I had a stable income, but this setup is used by freelancers and professionals, who usually DON'T HAVE a stable income. I’m not writing this to complain about high taxation and social contributions in Italy, I want to highlight that the system is poorly designed, and doesn’t help autonomous workers / freelancers / indie hackers / creators to run a business (which is risky by definition). So these are the lessons I learned For complex topics like taxation and social contributions, I found partial information online. When I searched for taxation, I didn’t find the social contribution part, and vice versa, and I’ve never read of the down payments. So, try to read the official documentation if possible (it will take a long time, but it’s worth it). Don’t rely too much on accountants, they tell you what they want you to know. If I had known this, I would have searched for an alternative solution, like an Employer of Records, but the accountant would not have provided me with any services (I pay them €2k/year instead). This bad experience applies to Italy, your country might be (and I hope it is) much better in this regard. Moving to a more entrepreneur-friendly country might be an option too (quite a painful one). As always, I hope that sharing this experience helps you. Take this story with a grain of salt, it is valid in my context, but might not apply to yours. And inform yourself as much as you can. Don't rely on others for key aspects of your life, like money, taxation, investments, and so on. Cheers.
English
31
1
51
8.2K
Luca
Luca@lc_fd·
Intriguing 🤔 I want to see the talk before trying it. It's hard to tell if it's helpful or if it adds bloat and problems. It's in the early stage, just presented, it's too soon to say something. simonwillison.net/2024/Sep/25/dj…
English
0
0
2
103
Luca
Luca@lc_fd·
@juristr Same here! ⛈️ But you are on another level 😅 Maybe tomorrow I'll see some snow in Primiero.
English
0
0
1
31
Juri Strumpflohner
Juri Strumpflohner@juristr·
Summer just high-fived with winter over night 😳
English
6
0
20
2.1K
Luca
Luca@lc_fd·
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-…
English
1
3
8
305
Luca
Luca@lc_fd·
@anze3db It's time to try it!
English
1
0
1
59
Anže Pečar
Anže Pečar@anze3db·
Amazing! The uv team shipped first class support for Python projects that are not designed as packages (think Django aplications!). They even switched some defaults around to better support this use case! 💚 github.com/astral-sh/uv/r…
English
1
0
8
205
Luca
Luca@lc_fd·
@anze3db Keep us updated if you'll try to fix it!
English
1
0
0
29
Anže Pečar
Anže Pečar@anze3db·
First time that I see template rendering being a bit of a bottle neck in a Django app. This was on a Raspberry Pi 4 while all 4 cores were over 80%.
Anže Pečar tweet media
English
1
0
2
190
Luca
Luca@lc_fd·
Best 20€ spent ever 😌
Luca tweet media
English
0
0
0
80
Luca
Luca@lc_fd·
@patrick91 @nextjs If it's mounted outside the routing it can be the expected behavior, no? 🤔
English
1
0
1
28
Patrick Arminio 🍓
Patrick Arminio 🍓@patrick91·
Is it expected that `router.push` doesn't unmount a modal (which uses intercepting and parallel routes) in @nextjs?
English
1
0
0
271
Luca
Luca@lc_fd·
@arvidkahl A combination between flow and content.
English
0
0
0
10
Arvid Kahl
Arvid Kahl@arvidkahl·
What makes you listen to (or NOT listen to) a podcast? Is there a defining intangible trait the show has? Or is it the theme? Similarity? Novelty? What’s the ”it” it has to have?
English
127
0
85
30.3K
Sébastien Dubois
Sébastien Dubois@dSebastien·
I write to forget, not to remember ✍️
English
3
0
2
146
Sarah Abderemane
Sarah Abderemane@sabderemane_·
Django turned 19 years recently 🥳🥳🥳 Happy birthday Django 💚 And you, if you are a Django user or a contributor, are you older or younger than Django? #django
English
1
7
14
833
Luca
Luca@lc_fd·
@anze3db The last commit is from 2 years ago unfortunately 😔
English
1
0
0
11
Anže Pečar
Anže Pečar@anze3db·
Is there any GUI tool out there that allows you to view and edit a remote SQLite file (e.g. through SSH)? From what I know this isn't possible, but still want to double check if I missed something.
English
7
0
1
476
Luca
Luca@lc_fd·
@anze3db I really want to read it, I don't know enough about the topic
English
1
0
0
27
Anže Pečar
Anže Pečar@anze3db·
I set out to write a short blog post about common gotchas of SQLite in production, but I'm now already over 1200 words. Help!
English
4
0
8
652
Luca
Luca@lc_fd·
@juristr The freedom to open a feed and read—for real—what I want is so good. Without them, I wouldn't be able to follow certain people.
English
0
0
1
31
Luca
Luca@lc_fd·
There is so much to learn. There is so much to keep in count. There is so much to maintain. Reducing stuff into small pieces usually helps me. It's not that easy to remember.
English
0
0
3
140