TheDoctor [they/them]

  • 1 Post
  • 47 Comments
Joined 9 months ago
cake
Cake day: March 25th, 2024

help-circle


  • Technology is great to discuss because it’s just logic and facts and objective arguments. But bring in politics and it becomes a mess and that’s the problem with this divide in the privacy community.

    Good post in general, but I disagree with this in particular. All technology is political. Not in a Democrat/Republican way but in a “how do we distribute resources within society?” way. Not to mention a big selling point for privacy tools is that they can be used by political dissidents. I think a problem does arise when a community manages to fool itself into believing it’s apolitical when what it’s really done is develop an orthodoxy to shut down political discussion.







  • TheDoctor [they/them]@hexbear.nettoProgrammer Humor@lemmy.mlDebugging
    link
    fedilink
    English
    arrow-up
    10
    ·
    edit-2
    1 month ago

    I did both of these at once last week.

    Added a breakpoint. Debugger didn’t break.

    Added an echo "here";. Debugger didn’t print.

    Added a throw new Exception('fuck');. Debugger didn’t throw.

    Stepped through. Debugger wouldn’t let me step in.

    It took me almost an hour to realize it wasn’t the debugger’s fault and that a variable I thought was guaranteed to be truthy at that point was actually falsey due to upstream changes in a spreadsheet parser. I felt kind of stupid for not trusting the debugger at that point.




  • In the way that’s common in languages like Java where you’re making a property read-only, yes. But there’s a whole protocol in Python called descriptors where you can override the . on a field. The most common form of these is class methods annotated with the @property annotation, which makes it so the method can be accessed as if it were a property.



  • I helped a friend debug a script last week that was working inconsistently in really weird ways. I looked at the script and it was all event hooks littered with sleep calls. I told him he was basically fuzz testing his own script and then getting surprised when he found race conditions. Shit was wild. Also, sometimes getters in Python are a mistake.







  • Like in the early stages of burnout for me, even getting up off the couch to go to the bathroom was a struggle. And for me, this was my first big autistic burnout, which meant that I needed to reorient my relationship to work, play, and self-care to make sure I was doing all of them in a sustainable way. But in the beginning, that meant if I couldn’t do more than 5 minutes of a task, I wouldn’t beat myself up. But starting with that 5 minutes was a way for me to push myself just a little. Because the normal advice is “let yourself relax” and that advice just didn’t work for me. For one, I didn’t have the support to be unemployed for long periods of time. And for two, being depressed and laying immobile on the couch wasn’t relaxing in the first placed. I was just stressed while appearing relaxed. So getting back to doing things was my way out. And so I built up a tolerance for that and slowly built up the ability to do things sustainably while also pushing through the burnout to survive, which made it last longer. But eventually the sustainable stuff won out. I rest more than I used to and have a better relationship with breaks and self care but I’m working full time in my field again and pursuing betterment both in and outside of work. That said, I work in a job where I can flex my hours and take the breaks I need pretty much at will as long as I let my coworkers know and get my work done. I’m aware I’m very lucky to be able to do this and that it’s not a universal solution. But I’m just trying to be as honest as possible about my experience.