@jamescooke@fosstodon.org
@jamescooke@fosstodon.org avatar

jamescooke

@jamescooke@fosstodon.org

Python developer working with data and royalties at Mixcloud.

Lover of testing and linting. User of Linux.

Author of https://github.com/jamescooke/flake8-aaa

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

hamatti, to blogging
@hamatti@mastodon.world avatar

Combining hockey and development? Yes please.

I love building small projects to enhance community projects and this spring the NHL playoffs and IIHF World Championships have been keeping me busy with building two web projects between the games.

https://hamatti.org/posts/two-small-hockey-web-projects/

jamescooke,
@jamescooke@fosstodon.org avatar

@hamatti Obligatory ice hockey code project boost 👌🏻

jamescooke, to random
@jamescooke@fosstodon.org avatar

Kids sleeping - time for some catch up "work work" so that the team can run monthly reports tomorrow.

jamescooke, to random
@jamescooke@fosstodon.org avatar

Currently wiring pyproject-fmt into my hledger-adjacent bank statement loader project while child[1] naps... So nice to enforce a format on what's usually a file of TOtal Mess 👌

https://pyproject-fmt.readthedocs.io/en/latest/

jamescooke, to random
@jamescooke@fosstodon.org avatar

Definitely feeling like I'm doing a lot of "glue work" at the moment.

https://noidea.dog/glue

jamescooke,
@jamescooke@fosstodon.org avatar

And I re-found that phrase and talk using Marginalia search, which I'm loving at the moment.

https://search.marginalia.nu/search

jamescooke, to random
@jamescooke@fosstodon.org avatar

Three weeks ago I tooted complaining about Linear and saying that Shortcut's epics were better than anything Linear had.

https://fosstodon.org/@jamescooke/112252208841040074

Today, I log into Linear and find they've released a Project Overview pane which, basically, creates a space where we can create Shortcut-like epics. An entire space in Linear to contain the "why" of how the tickets in a project have been structured 🙏

https://linear.app/changelog/2024-05-02-the-next-generation-of-linear-projects

This is good 😊

jamescooke, to random
@jamescooke@fosstodon.org avatar

Note to self: probably not a good idea to try and explain a data processing race condition using an animated gdocs presentation slide 😬

faithlierheimer, to random
@faithlierheimer@data-folks.masto.host avatar

anyways if you're wondering what grief looks like about 6 months on i am swinging wildly between productivity and killing it at my job and wondering why i bother working at all when rare disease could take me any moment and destroy my mind and body like it did my mom.

so anyways at least the Avs are winning

jamescooke,
@jamescooke@fosstodon.org avatar

@faithlierheimer Avs good and Leafs turmoil is amazing. Helpful distractions are helpful 🙏🏻

jamescooke,
@jamescooke@fosstodon.org avatar

@faithlierheimer I’m going to record the game tonight and listen to it in the morning.

I’m guessing they’ll get close to winning - and then fall at the end. Then get to consume the Toronto post-failure carnage via podcasts (which is how I get most of my hockey news).

jamescooke,
@jamescooke@fosstodon.org avatar

@faithlierheimer Avs made it through too 👌🏻

Daojoan, to random
@Daojoan@mastodon.social avatar

Conservatives would celebrate shutting hospitals just to have the privilege of laughing at their neighbours for being sick.

jamescooke,
@jamescooke@fosstodon.org avatar

@Daojoan Also, prevent those sick people from being signed off work because being too sick to work is "a lifestyle choice".

https://www.bbc.co.uk/news/uk-politics-68853166

jamescooke, to random
@jamescooke@fosstodon.org avatar

Seems a shame to turn off fzf-tmux in bash, but I can't get into building a new tmux to get to some version >= 3.2 (I'm "stuck" on version 3.0a which ships with Ubuntu).

In exchange, I can fully upgrade past version 0.46.0 and get new, faster shiny stuff 🤩

Here's the related issue: https://github.com/junegunn/fzf/issues/3635

jamescooke,
@jamescooke@fosstodon.org avatar

@adamchainz Oh I'm using it for:

In bash:

  • History search (ctrl+r)
  • File search (ctrl+t)
  • Change directory (alt+c)
    (these are default key bindings I think.)

In vim I'm using fzf.vim https://github.com/junegunn/fzf.vim/ and doing stuff like:

jamescooke,
@jamescooke@fosstodon.org avatar

@adamchainz I did so little to set them up I had to redocument them for myself yesterday 😬

Given I've got fzf set up as both a package and a vim plugin: https://github.com/jamescooke/dotfiles/blob/master/store/.vimrc#L9

Then installing the fzf package from vim does ~/.fzf/install --all which "Just Works ™️ " - vim installs fzf for bash and makes the keybindings work 🙈

calpaterson, to random
@calpaterson@fosstodon.org avatar

It takes me a long time to write blogposts and certain ones in the past have (at least felt) like they have taken weeks...

Recently I totted it up and I reckon I take about 1.5 hours to produce 1 minute of reading time. So longer posts like my past one about Bank Python which are 30 minute reads...yes they felt hard because they were a lot of work!

jamescooke,
@jamescooke@fosstodon.org avatar

@calpaterson Thanks for sharing your process - it seems longer than my own and produces more polished content 🙏🏻

My sister is a sub editor and I used to get her to read my posts and would incorporate her feedback (similar to your step 2) but honestly, this is way too much time / effort for me these days.

So now I’m a "DO step 1; GOTO step 4" person and just yolo it onto the web. 😱

Cc @hl

jamescooke, to random
@jamescooke@fosstodon.org avatar

One of the benefits of writing factories to generate realistic data for your test suite: You learn more about the data your software is consuming.

If writing a realistic factory is "hard", then that's a good measure that the data your code is going to consume is complex and boggy... which it almost always is.

jamescooke, to random
@jamescooke@fosstodon.org avatar

Q: How much code can I get done before child[1].get_state() == AWAKE ?

A: Not much if I just trawl masto and don't actually concentrate! 😬

calpaterson, to random
@calpaterson@fosstodon.org avatar

Spent a lot of this week fixing several bugs in csvbase that people found.

I've always done test-first development. csvbase apparently has 89% test coverage (I just checked) and most of that 11% is non-production stuff or experiments. The test base has caught a huge number of bugs and regressions but still - a lot of mistakes get through.

I've never understood how anyone manages to write real production code without tests. Am I doing something wrong?

jamescooke,
@jamescooke@fosstodon.org avatar

@calpaterson Keep trucking 👌🏻

A test suite that helps catch regressions and creates a space for defining behaviours is a good suite IMO.

Please share any discoveries with mutmut 🙏🏻

jamescooke, to mastodon
@jamescooke@fosstodon.org avatar

My wish is for a mastodon historical search tool that can:

  • Help me find my previous toots using free text search.
  • Show a timeline of interaction (follows, mentions, favourites, etc) between my account and another account.

Should I be installing a desktop client to get this kind of functionality?

jamescooke, to random
@jamescooke@fosstodon.org avatar

Here's a smell that your Big Query query ain't that big - lots of 1 row tables getting used to load config-like values, which are then used for JOINs later.

So much cruft to clean up 😥 .

My brain says: - maybe couldda just done it in a PAndAs?! Let's definitely not learn about CTEs right?! 😬

jamescooke,
@jamescooke@fosstodon.org avatar

@adamchainz I like this phrase very much and I’m going to keep it and reuse it. ☺️

Last year we started migrating not-big things into DataFrame-driven tasks and it’s gone very well. Quicker tests and fewer test failures have been immediate wins.

However, these 1-row config-like tables aren’t going into Pandas… we’ll template their values into the BQ queries that need them, the way it should have been done in the first place.

jamescooke, (edited )
@jamescooke@fosstodon.org avatar

@adamchainz Lol no have not tried Polars. Because I'm old this has been scheduled for 2029 - this allows me to remain approx 5 years behind "THE CURVE". 🧓

jamescooke, to random
@jamescooke@fosstodon.org avatar

Registration for my personal .info domain now costs five times that of our family .uk domain.

I’ve had jamescooke.info since 2003 and mainly used it for hosting email. It seems like it would be annoying to move it to a cheaper .uk domain, but, maybe worth it in the long run 🤔

jamescooke,
@jamescooke@fosstodon.org avatar

I feel a graph coming on… with prices I’ve paid for my .info domain over the last 20 years or so, normalised against inflation. 📈

jamescooke,
@jamescooke@fosstodon.org avatar

@jonathanmatthews Thanks. I’ve recently moved from Joker to @beasts .

I don’t know much about domain pricing, but doesn’t the TLD’s registry control or set a base price?

jamescooke,
@jamescooke@fosstodon.org avatar

Struggling to find the data, which is a shame. 😔

I wish that 20-something me had been as organised (aka boring) as 40-something me is now. Although Future-Me might yet think I’m doing a terrible job now. 😳

  • All
  • Subscribed
  • Moderated
  • Favorites
  • normalnudes
  • tsrsr
  • DreamBathrooms
  • thenastyranch
  • magazineikmin
  • khanakhh
  • hgfsjryuu7
  • Youngstown
  • slotface
  • vwfavf
  • rosin
  • ngwrru68w68
  • kavyap
  • PowerRangers
  • Leos
  • ethstaker
  • cubers
  • everett
  • modclub
  • InstantRegret
  • tacticalgear
  • Durango
  • mdbf
  • cisconetworking
  • tester
  • GTA5RPClips
  • osvaldo12
  • anitta
  • All magazines