@hjwp@fosstodon.org
@hjwp@fosstodon.org avatar

hjwp

@hjwp@fosstodon.org

Python programmer, sometime opera surtitler, TDD book author, constant source of Aliens quotes

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

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/

hjwp,
@hjwp@fosstodon.org avatar

@adamchainz this is a much, much clearer explanation than the one in that stackoverflow post. You promise it's true right?

hjwp,
@hjwp@fosstodon.org avatar

@adamchainz like, how does it know you've checked it out at some point? You've rewritten those commits now right so they're gone, where's the evidence? The reflog?

wsvincent, to random
@wsvincent@fosstodon.org avatar

It's notable that almost every other Django book out there doesn't touch deployment at all. Makes me wonder if I should stop trying to cover it and just move it to a more advanced thing that is separate. Especially now that there isn't a great free option, it's a non-starter for many people apparently based on feedback I've gotten.

hjwp,
@hjwp@fosstodon.org avatar
hjwp,
@hjwp@fosstodon.org avatar

@wsvincent how do you cover deployment these days Will? I decided to take the plunge and go docker+ansible, interested to know what you chose and why and what you think! http://www.obeythetestinggoat.com/book/chapter_09_docker.html

hjwp,
@hjwp@fosstodon.org avatar

@wsvincent @sasha indeed! 12 chapters in, see http://www.obeythetestinggoat.com/pages/book.html#toc, feedback much appreciated!

hjwp,
@hjwp@fosstodon.org avatar

@wsvincent i'm pinning my hopes on docker not changing too much, and that asking people to pay $5 for a digital ocean box isn't too much to ask. it worked ok in the last edition.

hjwp,
@hjwp@fosstodon.org avatar

@wsvincent i see @miguelgrinberg gives people the option of using a virtualbox vm, if they don't want to use a vps. that's a nice free option. i'm a bit scared of people asking me to debug virtualbox and local networking issues tho so i'm shying away from it.

hjwp,
@hjwp@fosstodon.org avatar

@wsvincent @miguelgrinberg tried to get vagrant working on WSL earlier this year. no picnic.

hjwp,
@hjwp@fosstodon.org avatar

@wsvincent well i'm not sure what % of readers buy the book! It's free to read online.

ghickman, to random
@ghickman@mastodon.social avatar

I was entirely unprepared for such an emotional rollercoaster from Bluey first thing in the morning

hjwp,
@hjwp@fosstodon.org avatar

@ghickman oo which episode?

ehmatthes, to random
@ehmatthes@fosstodon.org avatar

Here's my take on the single-file Django project:

https://www.mostlypython.com/django-from-first-principles-part-2/

hjwp,
@hjwp@fosstodon.org avatar

@carlton @ehmatthes i remember coming across this via one of the authors of "lightweight django", from 2014.... I'm getting old! https://www.oreilly.com/library/view/lightweight-django/9781491946275/ch01.html

dgar, to random
@dgar@aus.social avatar

Stallone: I’m making a movie about classical composers.
I’ll be Beethoven.

Van Damme: I’ll be Mozart.

Schwarzenegger: Stop it guys. I’m not saying it.

hjwp,
@hjwp@fosstodon.org avatar

@dgar what's his answer this time? I've heard this joke a few times, it's Offenbach. But not always.

hynek, to random
@hynek@mastodon.social avatar

ICYMI, Mr Beast of Programming YouTube™ (me) published a new video after just short two months!

Come to learn about dependency injection, stay for the dedicated microphone punching! https://mastodon.social/@hynek/111953612110500593

hjwp,
@hjwp@fosstodon.org avatar

@hynek ok i missed the microphone punching bit timestamp pls

hjwp, to random
@hjwp@fosstodon.org avatar

wow i just had my first truly horrible experience with the Python match/case statement, where attempting to match by class ends up calling a side-effect causing @property.

bmispelon, to random
@bmispelon@mastodon.social avatar

I get that it makes some stuff easier, but I'm not a huge fan of the fact that we've replaced virtualenvs with docker containers.

I guess I need to adapt the way I work and learn new tools, but I really hate having so many layers between me and my files. Makes debugging such a hassle 😿

(this toot brought to you by a 2h fight with docker that I apparently lost)

hjwp,
@hjwp@fosstodon.org avatar

@oinopion @bmispelon @carlton @vossisboss @_chrismay @ghickman just wait til someone comes along and tells you nix is the solution to all your problems

hynek, to random
@hynek@mastodon.social avatar

Someone who didn’t suffer an outage due to mock-caused falsely passing tests hasn’t used mock long enough. https://fosstodon.org/@jankatins/111827209894488125

hjwp,
@hjwp@fosstodon.org avatar

@hynek @borutzki fwiw i'd say the need for repository pattern is reduced if you use fcis? What do you think hynek?

grimalkina, to random
@grimalkina@mastodon.social avatar

I have ✨ a new preprint ✨ to share!!

This is a scientific review paper which seeks to provide a map, an entry point, and a call to action for improving the lives of the people who create software:

"Psychological Affordances Can Provide a Missing Explanatory Layer for Why Interventions to Improve Developer Experience Take Hold or Fail"

You can download it free and open access here:

https://osf.io/preprints/psyarxiv/qz43x

hjwp,
@hjwp@fosstodon.org avatar

@grimalkina @windrunner just to make sure he gets the ping (i had the same thought) paging @marick

grimalkina, to random
@grimalkina@mastodon.social avatar

This morning's chats have got me thinking about an initiative at the Developer Success Lab we've been talking about we're calling Be Your Own Scientist -- publishing guidance and teaching all about helping YOU bring the power of science to answer questions about software teams (and perhaps using it to protect the good stuff you already know you're doing!) 😎

What kinds of topics would you want our team of social scientists to tackle??

hjwp,
@hjwp@fosstodon.org avatar

@grimalkina do you mean, like, "how much time should we be spending on tech debt?"

hjwp,
@hjwp@fosstodon.org avatar

@grimalkina i don't know? i guess i'm not quite clear what you're asking for? are you looking for explicit hypotheses that we could prove or disprove? are you suggesting that your team is going to do new research, or explain how we could do it ourselves?

hjwp,
@hjwp@fosstodon.org avatar

@grimalkina i guess i want to find some sort of way of measuring the amount of time spent on tech debt, and then measuring some sort of outcome, then finding some sort of correlation, finding some hints that it's causal, and then trying to plot some sort of curve to determine when diminishing returns kick in?

dabeaz, to random
@dabeaz@mastodon.social avatar

How did it actually get to this?

Looking at you enum module.

hjwp,
@hjwp@fosstodon.org avatar

@dabeaz it's ok dave you can fix it with a bit of multiple inheritance https://www.cosmicpython.com/blog/2020-10-27-i-hate-enums.html

hjwp, to random
@hjwp@fosstodon.org avatar

Here's a brief explanation of wtf is a Docker from the new edition of the book - lmk what you think?

hjwp,
@hjwp@fosstodon.org avatar

@tartley that's next level that is. Worthy of a footnote. Can you run qemu inside qemu tho?

hjwp, to random
@hjwp@fosstodon.org avatar

Just shipped new versions of the deployment chapters - goodbye hand-crafted server configs and manual deployments, hello Dockerrrrrr 🐐🐳 http://www.obeythetestinggoat.com/book/chapter_09_docker.html

sue, to random
@sue@glasgow.social avatar

The suggested withdrawal amounts in ATMs as an indicator of relative wealth / deprivation in an area

hjwp,
@hjwp@fosstodon.org avatar

@sue i put two different cards in the same atm the other day and they had different suggested withdrawals...

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