🇨🇦 tunetardis

  • 0 Posts
  • 32 Comments
Joined 2 years ago
cake
Cake day: June 11th, 2023

help-circle







  • For me, I think it’s whatever face I make when I’m in the zone. I’m not really aware of what I look like or contrive to look a certain way. But if I crack a smile, that’s a pretty good tell that I goofed up somewhere.

    One time I was playing a Robbie Burns event where we were all encouraged to wear kilts. I made the mistake of putting my phone in the sporran (a kind of purse that hangs right over your crotch) and it started vibrating incessantly. I can’t even imagine the faces I was making that night!


  • I think it was in the late 90s when a vicious ice storm took out power lines everywhere and the whole downtown core was plunged into darkness for the better part of a month. Fortunately, out where we lived in the suburbs, the power mostly ran underground and was restored pretty quick.

    But then my wife got a panicked call from a distant relative who said she couldn’t reach her daughter studying at the university and could we look in on her? So we found her and offered her the guest bedroom for as long as she needed it.

    At first, it seemed to be working out? Then it began to emerge that she was some sort of evangelical Christian who was frustrated that we were not eager to convert. I sort of thought taking in a refugee was a fairly Christian thing to do, but whatever.

    Eventually, she demanded I take her back to the dorm. I told her downtown is still dark and cold, but she said “I don’t care. You guys are so boring!” So I carefully drove her back around downed trees and power lines and dropped her off.

    I felt pretty bad about it and we prayed she’d be ok. A couple of weeks later, the relative called again and thanked us so much for taking care of her daughter and that we went way beyond the call despite how things turned out.



  • Living in Ontario Canada, I immediately think of things our premier Doug Ford has done or is trying to do. Right out of the gate, he tore down a wind farm near me that was 90% complete and had to pay millions in legal fees for breaking the contract on the taxpayer’s dime. More recently, he’s on a rampage to tear out bike lane infrastructure and build some giant tunnel under an already huge highway to expand its capacity.







  • I guess my very first exposure was my brother letting me use his university account over dialup. You really had to know your way around in those days or know someone who did. He showed me how I could go to umich (U. of Michigan) and a few other places that ran public ftp servers full of games!

    Then I landed a job at a small company which had accounts on CompuServe. Around this time at home, I was playing MUDs a lot on a free local BBS, and at some point, the people running the BBS decided to have a go at becoming the first commercial ISP in town. (They’re still around, in fact!)

    So I approached work about opening an Internet account, arguing that it was way cheaper than CompuServe. They reluctantly agreed. I was over the Moon but my superiors were not super impressed at first. They complained that they couldn’t find anything while CompuServe was much better organized. I eventually found Yahoo which, at the time, had a sort of CompuServe-ish vibe of providing this directory that categorized most of the more popular sites by topic and that placated them. You have to remember this was long before search engines and even the www itself was still in its infancy.

    I was having a blast, discovering something new every week. Usenet was so cool when I learned about that! And I found out about some sort of MIDI file format with embedded instrument samples you could play to get electronic music in a super compact format long before broadband made mp3s the way to go. What were they called again? Soundtrack files? Something like that. I played them all the time while I was coding.


  • That’s the point, when programming with immutable structures you always pass the mutability onto the enclosing structure.

    I guess the point I was trying to make here was if the data type is already mutable, there is no point in sticking it in a list just so you can replace a reference with an identifier. You’re just adding an extra level of indirection. But sure yeah, if the type is inherently immutable, you have to do something.

    A list is an antipattern here IMO. Just wrap it in some dedicated object (see e.g. Java’s StringBuilder).

    Interesting. I’m not aware of anything like StringBuilder in the standard library for either Python or JavaScript. Looks like it wraps a list of characters and tries to behave as string-like as possible? You could presumably write your own class like that or download an implementation from someplace.

    I guess in most cases in my own code, where I need a mutable string is usually as part of a larger data structure which is the thing that gets passed around by reference, so it’s easy enough to replace a field within that.

    For building up a string, I would tend to use an io.StringIO in Python with file-writing calls, but those aren’t meant for sharing. What you don’t want to do is use the += operator a lot on strings. That gets expensive unless strings are mutable (like they are in say C++'s std::string).