@CodenameTim@fosstodon.org avatar

CodenameTim

@CodenameTim@fosstodon.org

Gardener, homebrewer, bread baker and hot sauce maker. Assister with Django Debug Toolbar.
Jazzband | DEFNA | he/him

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

nedbat, to random
@nedbat@hachyderm.io avatar

My test suite has just one dot on the last line. What would you do?

  • Delete one test
  • Change the width of the terminal
  • Keep it as a visceral reminder of the uncomfortably chaotic nature of the universe
  • Write more tests
CodenameTim,
@CodenameTim@fosstodon.org avatar

@dabeaz @nedbat That's the best idea I'll see all week 👏

joni, to random
@joni@mastodon.yupgup.com avatar

More office progress 💚

image/jpeg

CodenameTim,
@CodenameTim@fosstodon.org avatar

@joni how does that room feel when there isn't bright sunlight? I want to paint my office a bold color, but I'm afraid it'll be overly dark when it's not bright out.

ehmatthes, to random
@ehmatthes@fosstodon.org avatar

Python people, do you make short-lived intermediate variables to make your return statements readable?

For example, which of these would you tend to prefer?

def get_project_name(output_str): """Get project name from output of

CodenameTim,
@CodenameTim@fosstodon.org avatar

@ehmatthes I'd prefer the right. But in a code review I'd only comment that the doc string should contain the raw value that's being parsed as an example 😁

CodenameTim,
@CodenameTim@fosstodon.org avatar

@ehmatthes I think having a realistic raw value in the tests is a great idea. However, having a shorter example of the format that's being parsed, even if it's extremely short is beneficial. If you have tests that confirm it works, then the doc string's purpose is to inform you what it does. Having to read the code to reverse engineer or switch to the tests to get an example is extra brain cycles.

bmispelon, to django
@bmispelon@mastodon.social avatar
CodenameTim,
@CodenameTim@fosstodon.org avatar

@bmispelon nice write up! I agree that python-console is more understandable.

joshdholtz, to random
@joshdholtz@mastodon.social avatar

The worst part of a Friday night is my excitement for getting donuts on Saturday morning…

I want them right now 😩

CodenameTim,
@CodenameTim@fosstodon.org avatar

@joshdholtz Emily doesn't understand my obsession with doughnuts. Pick something good today!

CodenameTim, to random
@CodenameTim@fosstodon.org avatar

And some days you wake up and try to do something new.

If you're into unsettling fiction, hopefully this scratches that itch. If that's not your thing (or amateur writing for that matter), don't click the link.

https://www.better-simple.com/short-story/2024/04/24/a-unsettling-dream/

CodenameTim,
@CodenameTim@fosstodon.org avatar

@matthiask Thank you! I definitely went back and forth on publishing it, and then again posting about it here.

treyhunner, to python
@treyhunner@mastodon.social avatar

When I say "lightning talks" is there a particular conference lightning talk or lightning talk session that comes to mind for you?

Doesn't need to be your favorite talk/session, but just one that comes to mind.

Link me to it!

Thanks @ehmatthes for inspiring this question.

CodenameTim,
@CodenameTim@fosstodon.org avatar

@treyhunner I particularly enjoyed @adamfast's talk on the solar eclipse last year at and @lacey's talk on volunteering the year before.

https://youtu.be/M3-WlpJFcKM?si=RK2PkTsKtELi1cUR first one
https://youtu.be/6CzHxaskYEY?si=vhqyQZmhbSDVmALo ~37:42 in

CodenameTim, to random
@CodenameTim@fosstodon.org avatar

On the fix-it list for 2024: advertising for Better Simple's consulting services.

CodenameTim, to django
@CodenameTim@fosstodon.org avatar

Log into the forum, read a reply from Ken. ❤️ the reply from Ken.

Repeat in about 2 weeks.

CodenameTim, to random
@CodenameTim@fosstodon.org avatar

I submitted my final #DjangoConUS talk proposal! If you're still working on yours, you have ~53 hours left to submit.

That said, I'm on Team Submit Early simply to avoid timezone confusion.

CodenameTim,
@CodenameTim@fosstodon.org avatar

@ryanhiebert You should 100% submit them. Let me know if you'd like an extra set of eyes.

CodenameTim, to random
@CodenameTim@fosstodon.org avatar

@ehmatthes I was thinking about your tea & coffee comment this morning. What kinds of tea are you enjoying these days? Do you vary it and is there anything you swear by?

I also realized I crave coffee because my routine isn't stable right now so I'm not waking up as rested as normal.

CodenameTim,
@CodenameTim@fosstodon.org avatar

@ehmatthes Oh my. That's going to be pretty nerve-wracking. Hopefully that's the only major unknown remaining in your move?

CodenameTim,
@CodenameTim@fosstodon.org avatar

@ehmatthes oh, three days on a ferry sounds like a productive writing environment!

CodenameTim, to random
@CodenameTim@fosstodon.org avatar

I'm pretty far behind @djangochat, but wow! The episode with @baconandcoconut was fantastic. I learned so much about OSS logistics and non-profits. That was a really wonderful chat!

CodenameTim, to python
@CodenameTim@fosstodon.org avatar

Does someone have an idea how long the PyPI organization queue is? #Python #PyPI

carlton, to random
@carlton@fosstodon.org avatar

I was thinking this new Taylor Swift song sounds like Florence + The Machine. 🤦‍♀️

https://music.apple.com/es/album/florida-feat-florence-the-machine/1742057774?i=1742058094&l=en-GB

CodenameTim,
@CodenameTim@fosstodon.org avatar

@carlton how is that album 31 songs?!

CodenameTim, to random
@CodenameTim@fosstodon.org avatar

I'm not sure how many times I'm going to misspell pony as "poney". And yes, I did it again on the correct version for this toot.

CodenameTim,
@CodenameTim@fosstodon.org avatar

@adamchainz phew, I'm just an old soul

webology, to random
@webology@mastodon.social avatar

🚀 Starship is the shell prompt you have been looking for 🐚

https://micro.webology.dev/2024/04/17/starship-is-the.html

CodenameTim,
@CodenameTim@fosstodon.org avatar

@webology I switched over after reading Adam's Boost Your Git DX. I'll need to give the Dracula theme a whirl. The one I landed on has a problem in some diffs where the contrast is all off when I try to highlight something.

CodenameTim,
@CodenameTim@fosstodon.org avatar

@webology I'm using a white background theme right now because I thought I'd be screensharing way more often.

CodenameTim, to django
@CodenameTim@fosstodon.org avatar

How would you test a database migration operation that creates a shadow table with a subset of data, then swaps it in?

Edit: In an automated test

CodenameTim,
@CodenameTim@fosstodon.org avatar

@benjaoming that's not a bad idea. My current one is pulling a bunch of testing code out of Django to do what django does.

ryancheley, to random
@ryancheley@mastodon.social avatar

Since there was a bit of interest in the Lemon tree I mentioned in you 2023 Year in Review, I thought I would post a picture of it

cc: @CodenameTim @paulox

CodenameTim,
@CodenameTim@fosstodon.org avatar

@ryancheley yes, please keep sharing these photos!

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