2024-04-06 23:22:10

More tinkering with "Static Scrabbleā€ this evening. Tidying up code into classes and building a little interface for testing with. Noice!

What's the best tool for JavaScript unit testing these days?

2024-04-06 14:43:33

Apologies for Instagram link.

Something to learn for work teams too?

Alt: Video of tennis player Andy Murray being asked why he gave a towel to a specific member of the crowd.

He says:

ā€œIt was just constant cheering the whole match. But more than thatā€¦ it wasnā€™t just saying ā€˜Come onā€™, he was saying to me ā€˜This is the best Iā€™ve ever seen you serve manā€™, ā€˜Youā€™re moving great considering all your problemsā€™. And I was like ā€˜Yeah, thanks, I needed a little bit of thatā€™s

https://www.instagram.com/reel/C4MXZ3NPFEG

2024-04-06 08:04:55

And as a reminderā€¦ my web dev team at WP Engine are recruiting. So if youā€™d like ā€œStorytime with Rossā€ as part
of your working week let me know!

– Only senior developers with WordPress AND React skills need apply
– Job is remote-first, needs overlap with US hours.
– We are a busy web dev team in a marketing department. Excellent communication skills required.
– No freelancers/agencies/contractors
fosstodon.org/@ross/1122208120

2024-04-05 22:48:19

Today I read a passage from a Brandon Sanderson book on a standup.

I _think_ my team appreciated it.

Felt quite weird. But sometimes a story has the right words and ideas.

2024-04-03 23:46:42

Worst case then, we encode the board square by square for simplicity.

Weā€™ll probably end up using base64 which gets 6 bits per char.

So our 5-bit representation of spaces/tiles over 225 spaces, 86 bag tiles and the 14 in racks gives us 1625 bits. Which is 271 base64 chars.

Bigger than I hoped.

Hmm.

More tomorrow.

2024-04-03 23:36:30

Stream of consciousness on efficient URL encoding of a Scrabble gameā€¦

The board is 15×15, so 225 spaces. Weā€™ll need the ā€œbagā€, so 100 tiles but only actually 86 once game starts. 2 ā€œracksā€ of 7 letters. And the score.

Each space can be empty, letter, blank tile with associated letter.

So all tiles/spaces can fit in 5 bits (up to 32 combos).

It would be good to represent plays as row/col/tile. But I THINK thatā€™s harder to decode. Though row+col fits in 8 bits. Hmmā€¦

2024-04-03 23:01:41

I had this thought about static turn-by-turn game applications that exchange game data in URL parameter strings.

So you'd take your turn, and then share the new URL with the other player.

I guess tic-tac-toe is the obvious starting point. But I was wondering how efficiently you can encode Scrabble-like game data in a URL string.

I have been thinking about this FAR too much. It's a really interesting little problem.

2024-04-03 15:47:01

Do you think Microsoft's Copilot can set up a parental-controlled Minecraft/XBox/Microsoft account? Because I blimmin well can't and I've got a computer science degree and a senior software developer job!!!

2024-04-03 11:39:01

@reckless1280

> my only ask is that you make this article go viral by sharing it in faux-outrage

These engagement numbers are pretty good for my Mastodon account. My phone is buzzing incessantly. Do I win a prize? šŸ˜‰

2024-04-03 10:48:52

@bw Was really cool hearing you on @shoptalkshow. Your home-cooked apps are great. Such a good principle. And I found out about how tech helps your SMA. Youā€™re a very inspiring person to listen to. Keep up all the great stuff you are doing, and thanks for sharing your creativity with the world.

2024-04-03 10:41:38

Wow. The Verge printer thing is blowing up.

My history of reading The Verge is that I first went there for trusted reviews. Then I went there for tech news. Their live coverage of Apple Events is excellent. And they have an RSS feed with full content. Which I actually feel mean about consuming because I want them to be paid for their content.

Sometimes itā€™s too much. Populist tech content. I get that it has to be.

But their editor in chief seems really smart. Listen: https://www.theverge.com/24087834/hank-gre

2024-04-03 10:17:15

šŸ«£ Oh no! Itā€™s the school holidays. Iā€™m on DadOps duty. And Iā€™m down to my last two coffee filters!! What do I do? Eat the beans whole and raw? Use a tea strainer or muslin cloth?!Grind them and spread it on toast?!! SEND HELP!!!!!

2024-04-03 09:57:44

The Verge article on the best printer in 2024 is just completely brilliant in so many ways.

And also kinda sad.

https://www.theverge.com/2024/4/2/24117976

2024-04-02 23:12:07

ā€¦ But now, not only do you not really know what a is, you donā€™t know what x is either.

And so you shove a ? on the type of x (or things x can become) and off you go again!

Catch errors and absences early. Donā€™t half-ass your type systemā€¦ USE IT!