I write bugs and sometimes features! I’m also @CoderKat@kbin.social.

  • 0 Posts
  • 67 Comments
Joined 1 year ago
cake
Cake day: June 21st, 2023

help-circle

  • CoderKat@lemm.eetoMemes@lemmy.mlEvery time
    link
    fedilink
    English
    arrow-up
    4
    ·
    7 months ago

    I like the idea of having a regulated, living, backwards compatible standard. Which seems to be what USB-C is now, for phones. The EU has soon to be active regulation that will make it a requirement for many things. Yet, it’s not a single, set in stone standard, but one that’s constantly being expanded (eg, version 3.2 and PD).

    Of course, the regulation has to also be living. Eg, at some point, maybe there’ll be a strong enough reason to allow another standard (by no means do I think USB-C will always make sense). And the regulation has to very carefully choose the standard.

    That way we get the benefits of standardization (from actually everyone using the same format), but we aren’t unreasonably crippling ourselves to do it.



  • Lol, yesterday it felt like there was at least half a dozen posts about Firefox, mostly claiming that YouTube was slowing them down. Which seemed really bad at first, till I dug into it and saw it was probably an unintended bug with ad handling.

    And why were there so many posts? Who wants to see the same post more than once?


  • CoderKat@lemm.eetoMemes@lemmy.mlNWBTCW
    link
    fedilink
    English
    arrow-up
    0
    ·
    edit-2
    8 months ago

    While I think the rich are one of the most influential sources of it, I’m not convinced they’re the only or even the majority. Like, of the rich stopped using bigotry to divide people, would people stop being bigoted? I don’t think so at all. I think there’s something wrong with humanity that makes it easy for bigotry to evolve even in the absence of power and perhaps worse, for people to want to be bigoted.






  • CoderKat@lemm.eetoAutism@lemmy.worldInclude every detail
    link
    fedilink
    English
    arrow-up
    0
    ·
    edit-2
    9 months ago

    “I didn’t have time to write a short letter, so I wrote a long one instead.”

    It really is far harder to write short things than long things. I have to make conscious choices to remove things, even when it feels like “if I remove this, it’s technically wrong in [niche edge case]” or “but what if it comes across as [some negative]”.



  • Personally, I enjoy the problem solving. Debugging is fun once you’re good at it (and when there isn’t major time pressures).

    Professional software dev is also waaaaay more than just coding, too. And the more you do it, the less coding you’ll do. A junior dev might spend most of their time coding, but senior devs are spending a lot of time doing high level design, helping the juniors, and reviewing various kinds of things.


  • There’s a lot of common patterns, but you have to understand how URLs work. You have to recognize which URL parameters are tracking ones or even just might be tracking. And that means you have to know how they work and that takes a moment.

    In brief, URL parameters start after a ? in the URL and are formatted like key1=values&key2=value2. You can’t usually remove all parameters because not all are tracking. To further complicate things, URLs can also have an anchor starting with a # character which will be after the URL parameters. You often don’t want to remove that (though theoretically the anchor could in fact contain tracking details).

    It’s often trial and error to see which parameters you can remove. I do this a lot since I write a lot of technical documentation. Clean URLs make the documentation more compact and less likely to break. It’s not just tracking stuff, but sometimes you need to remove temporal data that makes a page display data from a specific time when you want it to just default to the current time (etc).



  • Bash is so bad. I literally use it every day and have written many Bash scripts, yet I’m constantly having to search for how to do things in it because syntax is so bizarre and difficult to remember. Need to do a for loop over lines in a file? You can bet I’m googling the syntax for it. I have a general idea for what it looks like and know what to search for, but no way in hell can I write it correctly in the first few tries.

    String manipulation is the absolute worst. Have fun getting to learn the unreadable syntax of most sed and awk programs (the only thing most people have memorized is find and replace). Stuff like “split a string of comma separated ints and add them up” are way harder in Bash than in Python, despite the fact I often need to do stuff like that in Bash. Well, in the terminal anyway. Sometimes I’ll just use Python, but Python’s weakness is executing programs and getting their output, which is nowhere near as convenient as it is in Bash.

    Side note, isn’t it weird that for a language where flags like --foo bar are so commonly used, there’s no built in or standard tools for accessing flags?


  • The most recent C++ thing I worked on (not that recent, like 5 years or so ago) was a fairly new project and the people working on it were really passionate about C++. But it was C++ code that ran as a Python library and was using the official Python C bindings. Not sure why we didn’t use one of the unofficial C++ libraries, but the usage of that C library (and such a fundamental one) held things back. We wrote was was modern C++ (at the time), but big chunks would be a completely different style.


  • CoderKat@lemm.eetoProgrammer Humor@lemmy.ml*Permanently Deleted*
    link
    fedilink
    English
    arrow-up
    5
    ·
    edit-2
    9 months ago

    I hate writing code in either language. But at least what C has going for it is that it’s waaaay simpler than C++. Simple can be a really good thing. Sure, all those cool features can save you time, but they can also be gotchas that will cause bugs.

    Though it is a balancing act. Too simple and you’ll make mistakes due to how much you have to repeat yourself or using unsafe equivalents (like using preprocessor directives to mimic features that C++ natively supports).


  • I remember wondering this when I was first trying to self learn. It’s because I needed a map (or list + struct or something) and was such a noob I didn’t know what maps were. Whatever material I was learning from wasn’t good enough, especially for winging things. Plus I was trying to learn C++ and maps aren’t quite so built into the language as they are with a better first language like Python.