@adamchainz@fosstodon.org
@adamchainz@fosstodon.org avatar

adamchainz

@adamchainz@fosstodon.org

:django: #Django technical board member
🍕 London Django Meetup Organizer with https://fosstodon.org/@cgl
✍️ Author of three books on Django and Git
🇬🇧 London / 🇵🇹 Lisbon

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

adamchainz, to random
@adamchainz@fosstodon.org avatar

Be sure to check your kid's candy this year! I found an unreviewable gigantic PR.

adamchainz, to random
@adamchainz@fosstodon.org avatar

🥳 Boost Your Git DX is out! 🥳

📕 353 pages across 18 chapters on improving your command line development experience.

💁 It covers the best tools, techniques, tips, tricks, and tactical tidbits that I’ve encountered in 11 years of using Git.

adamchainz, (edited ) to python
@adamchainz@fosstodon.org avatar

🕺 From 3.13, virtual environments created by venv will come with a ignore file, thanks to @brettcannon ’s PR merged yesterday. There’ll be no need to add .venv (or whatever) to your .gitignore file then..

FYI the virtualenv package already does this 😁

https://github.com/python/cpython/commit/e218e5022eef369573808a4f8dda9aeeab663750

adamchainz, to random
@adamchainz@fosstodon.org avatar

🤩 Come get yer Django-related deals for Black Friday week!

My books have a 50% discount, including the new Boost Your DX. And there are deals from 5+ other creators.

https://adamj.eu/tech/2023/11/20/django-black-friday-deals-2023/

adamchainz, to django
@adamchainz@fosstodon.org avatar

I just wrote this proposal that ’s third-party package tutorial recommend using a django_ module prefix to prevent name collisions, such as the historical one between django-ratelimit and ratelimit.

What do you think?

https://forum.djangoproject.com/t/change-reusable-apps-naming-recommendation/25233

adamchainz, to django
@adamchainz@fosstodon.org avatar

🆙 I’ve just put the Black Friday discounts live for my and books.

💸 All three are 50% discounted until the end of Cyber Monday, the 27th of November. This includes the team licenses and stacks with the regional discount.

👉 Check them out on my Gumroad page:

https://adamchainz.gumroad.com/

adamchainz, to python
@adamchainz@fosstodon.org avatar

🏎️ Last night, I fixed a segmentation fault bug in my testing library time-machine.

🤷 There were several outstanding issues about segmentation faults with unclear causes, and I didn’t have time to dive into them.

🐛 Then I received a new bug report from Marcin Sulikowski with a minimal reproduction. This research pointed directly at the problem and revealed the other reports as duplicates.

👏 Clear and reproducible bug reports are very valuable contributions!

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

adamchainz, to random
@adamchainz@fosstodon.org avatar

✍️ New post with a tip for making GitHub Actions a little faster for Pip-based Python projects

https://adamj.eu/tech/2023/11/02/github-actions-faster-python-virtual-environments/

adamchainz, to django
@adamchainz@fosstodon.org avatar

📦 My two “Boost Your DX” books are available in a bundle deal, saving $10 compared to buying them separately.

Great for improving your and skills at the same time.

https://adamchainz.gumroad.com/l/bydx

adamchainz, to random
@adamchainz@fosstodon.org avatar

✍️ New post on two techniques for “tracking“ a directory in .

https://adamj.eu/tech/2023/09/18/git-dont-create-gitkeep/

adamchainz, to random
@adamchainz@fosstodon.org avatar

✍️ New post on push safety options

https://adamj.eu/tech/2023/10/31/git-force-push-safely/

adamchainz, to PostgreSQL
@adamchainz@fosstodon.org avatar

✍️ New post covering a situation where I disabled the JIT to speed up some queries in a project.

pgMustard (by @michristofides) was very useful for discovering the problem and giving advice!

https://adamj.eu/tech/2023/11/09/django-disable-postgresql-jit/

adamchainz, to django
@adamchainz@fosstodon.org avatar

✍️ New post on implementing Global Privacy Control (GPC) in . GPC is a new specification for web browsers to signal website operators not to share or sell the user’s data.

https://adamj.eu/tech/2023/12/27/django-global-privacy-control/

adamchainz, to random
@adamchainz@fosstodon.org avatar

♦️ There is a safer alternative to 'git push --force'!

🫸 Use --force-with-lease and --force-if-includes to restrict force pushes so that they don’t unintentionally overwrite commits pushed by others.

Explained in my post: https://adamj.eu/tech/2023/10/31/git-force-push-safely/

adamchainz, to django
@adamchainz@fosstodon.org avatar

There’s now a bundle deal for my two “Boost Your DX” books on and . Buy both and get $10 off.

https://adamj.eu/tech/2023/10/16/boost-your-dx-bundle-deal/

adamchainz, to django
@adamchainz@fosstodon.org avatar

✍️ New post on the new URLField.assume_scheme warning in 5.0 and some ways to fix it.

https://adamj.eu/tech/2023/12/07/django-fix-urlfield-assume-scheme-warnings/

adamchainz, to django
@adamchainz@fosstodon.org avatar

In 5.1, test client methods will have a new query_params parameter to simplify adding URL query parameters.

Thanks to Tom Carrick for the PR, @carlton, David Sanders and @felixxm for reviewing, and everyone who participated in the forum discussion.

https://github.com/django/django/pull/17447

adamchainz, to random
@adamchainz@fosstodon.org avatar

✍️ New post on improving diffs with the “histogram” algorithm

💡 Did you know that generates diffs “on the fly” by comparing commit snapshots? And that there’s a superior built-in algorithm, “histogram”, that makes diffs easier to read?

👉 Learn about it in this new post, extracted from my Git book: https://adamj.eu/tech/2024/01/18/git-improve-diff-histogram/

adamchainz, to python
@adamchainz@fosstodon.org avatar

🚀 I have just released a major update to my book Boost Your Django DX.

✍️ This update contains new content, a bunch of edits, and uses the latest versions of tools, including 3.12 and 5.0.

🙏 In the two years since I published the first version, I have learned a lot from the Python and Django communities. I’ve added and edited several sections to reflect these new ideas.

adamchainz, to random
@adamchainz@fosstodon.org avatar

✍️ New post covering the basics of 'git bisect'

🔍 This command lets you search your commit history for behaviour changes.

⛵️ The covered example covers finding the cause of a visual regression on a website about boats.

📖 Read it here: https://adamj.eu/tech/2024/01/29/git-bisect-basics/

adamchainz, to django
@adamchainz@fosstodon.org avatar

🆙 Just released django-upgrade 1.15.0, with its first 5.0 fixer!

django-upgrade automatically upgrades your code for new Django versions.

Thanks to Thibaut Decombe for contributing to this release.

Package: https://pypi.org/project/django-upgrade/

Changelog: https://github.com/adamchainz/django-upgrade/blob/main/CHANGELOG.rst#1150-2023-09-24

adamchainz, to django
@adamchainz@fosstodon.org avatar

✍️ I was invited back on @djangochat to talk about 5.0 and 😁

https://adamj.eu/tech/2023/09/21/django-chat-boost-your-git-dx/

adamchainz, to random
@adamchainz@fosstodon.org avatar

🆙 I just released an update to Boost Your DX. This update adds some extra content and has a bunch of edits based on reader feedback. The PDF is now ten pages longer, for a total of 363.

🤑 Also, there’s a 10% discount for today only. Gumroad are waiving their fees for their birthday celebration, and I’m passing the savings on to you.

👉 Buy the book here: https://adamchainz.gumroad.com/l/bygdx

♦️ Or read more about the update here: https://adamj.eu/tech/2024/04/04/bygdx-update/

adamchainz, to random
@adamchainz@fosstodon.org avatar

Made a bunch of temporary files you don’t want to commit to ? Run git clean to erase them. -f is the non-prompting mode and -d removes untracked directories too.

https://git-scm.com/docs/git-clean

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