@treyhunner@mastodon.social
@treyhunner@mastodon.social avatar

treyhunner

@treyhunner@mastodon.social

#Python & #Django educator & team trainer

I help folks sharpen their Python skills with https://PythonMorsels.com๐Ÿ๐Ÿช

#pythonoddity

Also a #humanist #YIMBY who is attempting more ethical eating (#vegetarian, not yet #vegan) and thinks #economics is highly underrated, but I don't post about those topics very often.

he/him

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

davep, to python
@davep@fosstodon.org avatar

So after me nagging him for a year or more @mathsppblog has finally seen the light regarding Mastodon! (Unlikely because of me, but Iโ€™ll take the win).

Heโ€™s not tooted yet, but if is your thing I highly recommend you follow my fellow ex- developer and one of the 67%.

He sometimes does some maths stuff too I believe. ๐Ÿคท๐Ÿปโ€โ™€๏ธ

treyhunner,
@treyhunner@mastodon.social avatar

@mathsppblog @davep No idea how much our conversation over dinner a couple nights ago mattered but I'm claiming credit too. ๐Ÿ˜œ๐Ÿ’—

treyhunner, to random
@treyhunner@mastodon.social avatar

About to give a lightning talk on how to give your first lightning talk

crv, to random
@crv@elephantelephantelephant.com avatar

@treyhunner nice to briefly meet you today and thanks for the sticker!

treyhunner,
@treyhunner@mastodon.social avatar

@crv nice to meet you too Colin!

treyhunner, to python
@treyhunner@mastodon.social avatar

When a generator function or another iterator object wants to augment the way "for" loops work, it might be necessary to manually call iter and next.

Read more ๐Ÿ‘‰ https://trey.io/UFI8MG

treyhunner, to python
@treyhunner@mastodon.social avatar

Let's talk about different ways to grow your Python skills at 2pm tomorrow in room 316!

After that you can get a new profile picture taken at 3pm also in 316! @melaniearbor is great at taking profile pictures!

See you tomorrow afternoon in room 316! ๐Ÿ๐Ÿช

treyhunner, to python
@treyhunner@mastodon.social avatar

Key containment checks are fast, but value containment checks require looping over the whole dictionary.

Read more ๐Ÿ‘‰ https://trey.io/d8D57O

treyhunner, to random
@treyhunner@mastodon.social avatar

Out of curiosity, I searched for the hashtag on Mastodon and Twitter and scrolled back 16 hours and started counting posts. ๐Ÿค”

I counted:

87 posts on Twitter on the PyCon hashtag ๐Ÿฆ

134 posts on Mastodon on the PyCon hashtag ๐Ÿ˜

The PyCon conversations have finally moved (mostly) to Mastodon! ๐Ÿ™Œ

Not a HUGE difference, but enough that I felt like there was more activity and decided to confirm my suspicion. ๐Ÿ’—

treyhunner, to random
@treyhunner@mastodon.social avatar

Come to the Westin lobby soon and I'll teach you a card game called Cabo

treyhunner,
@treyhunner@mastodon.social avatar

@YLE_KOT It was pretty short tonight. Decided to rest so I can hopefully stay out later other nights. Definitely planning to play Cabo other nights!

treyhunner, to random
@treyhunner@mastodon.social avatar

What tips do you have for folks thinking of trying out Mastodon during this year?

3 of my tips:

  1. Follow the hashtag (yes you can follow a hashtag just like following a profile!)
  2. If you post and realize you forgot the hashtag, don't delete your post. Just edit it!
  3. Consider following the hashtag also. Many folks use it without realizing that is the official one.

What tips do you have?

brianokken, (edited ) to random
@brianokken@fosstodon.org avatar

You know that Parks and Rec episode where thereโ€™s an Easter egg hunt and the kids canโ€™t find any eggs, because there arenโ€™t any.
For this year, is the park, and Iโ€™m one of the eggs.
Enjoy PyCon and talk with lots of people, but donโ€™t look for me. :)

treyhunner,
@treyhunner@mastodon.social avatar

@brianokken or are you like that plastic egg we found hiding behind the blender a month after Easter? Maybe you're actually here but very hard to find. ๐Ÿฅš๐Ÿซฃ

Either way, we'll miss seeing you this year. ๐Ÿ’–

FunkyBob, to python
@FunkyBob@chaos.social avatar

Today in my code I used:

result = [
term
for item in sequence
if (term := item.do_something()) != None
]

I found it less ugly than the alternative:

result = list(filter(None, [item.do_something() for item in sequence]))

Though I'm not entirely convinced it's easier to reason about.

treyhunner,
@treyhunner@mastodon.social avatar

@FunkyBob I'm always torn between using a walrus in this case or using a generator expression followed by a list comprehension. I do both, and sometimes one seems more readable than the other and sometimes the other seems more readable. ๐Ÿคท

initial_results = (
term
for item in sequence
term := item.do_something()
)
result = [
term
for item in initial_results
if term != None
]

melaniearbor, to random
@melaniearbor@hachyderm.io avatar

It's that time of year when I try to use mastodon for the sake of connecting with folx at and get utterly confused. Hold on to your hats, kids ๐Ÿ‘’

treyhunner,
@treyhunner@mastodon.social avatar

@boticelli @melaniearbor great start! You may also want to follow (to see posts from folks who use that hashtag without realizing that is the official one)

treyhunner, to random
@treyhunner@mastodon.social avatar

What are some of your favorite @pycon tips? ๐Ÿ’ก

Reply and tag . ๐Ÿ’–

treyhunner,
@treyhunner@mastodon.social avatar

Some tips from @glyph

โ€ข Attend open spaces
โ€ข Host an open space
โ€ข Drink lots of water and be mindful of your body

And a big one for long-time conference attendees especially: deliberately plan some of your meals toward meeting NEW people instead of always hanging out with old friends.

A tip from @hynek and @glyph:

Attend talks and occasionally attend the "hallway track" as a means to have a shared experience with folks who you just watched a talk with.

https://blog.glyph.im/2024/05/how-to-pycon.html

treyhunner,
@treyhunner@mastodon.social avatar

More tips from @brainwane:

โ€ข volunteering is a great way to meet new people (& be part of the event)
โ€ข submit a lightning talk (sign up ASAP)
โ€ข chat with vendors in the expo hall
โ€ข try to follow the PacMan rule in conversations (leave a space open for someone new to join in)

https://www.harihareswara.net/posts/2023/your-first-pycon-but-not-your-first-convention/

treyhunner,
@treyhunner@mastodon.social avatar

More tips from @AlSweigart on gamifying social interactions for yourself while at @pycon:

โ€ข Pick a color besides black, grey, or blue and find the closest person wearing a shirt of that color. Go up and talk to them, no matter who they are.
โ€ข Try to sit at breakfasts and lunches with people you don't know.
โ€ข Try to avoid eating alone. Meals are a great time to meet people.
โ€ข Try to follow up with folks you met after Pycon.

https://automatetheboringstuff.com/how-to-do-pycon.html

treyhunner,
@treyhunner@mastodon.social avatar

Some more PyCon tips (from me):

โ€ข At lunch and breakfast, ask "is this seat taken" and if it's not, you've just joined a conversation over a meal
โ€ข Ask folks what inspired them to attend PyCon, what they've enjoyed most so far, and what they use (or plan to use) Python for
โ€ข Take a quiet break alone when you need it and keep the quiet room in mind
โ€ข As the day starts to wrap up, ask folks if they have dinner plans

https://treyhunner.com/2018/04/how-to-make-the-most-of-your-first-pycon/

drz, to random
@drz@fosstodon.org avatar

Pretty stoked about attending this week! Any tips for Thursday? My first day

treyhunner,
@treyhunner@mastodon.social avatar

@drz Attend the newcomer's orientation and the opening reception, both in the evening. See you tomorrow night!

treyhunner, (edited ) to random
@treyhunner@mastodon.social avatar

In the Westin lobby playing Cabo for a bit if anyone wants to join us

Edit: you have not played this game but I'll teach you

slott56, to random
@slott56@fosstodon.org avatar

here early. Downtown is never F-150 friendly. Found a garage with 6โ€™10โ€ ceilings.

Hoping the hotel valet parking is equally roomy.

All badged up.

Found Nicholas coffee. Found tables in market square park.

Weather (so far) is a delight. Venue looks great.

I was on the program committee and the content looks great.

treyhunner,
@treyhunner@mastodon.social avatar

@slott56 would love to say hi during PyCon!

treyhunner,
@treyhunner@mastodon.social avatar

@slott56 let's try for opening reception ๐Ÿ™‚

treyhunner,
@treyhunner@mastodon.social avatar

@slott56 missed your message! Where are you at?

treyhunner,
@treyhunner@mastodon.social avatar

@slott56 skipping dinner and hanging out in the Westin lobby for a bit before calling it a night. Let's try again tomorrow!

treyhunner,
@treyhunner@mastodon.social avatar

@slott56 near the open spaces boards if you happen to be nearby

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