Father, Hacker (Information Security Professional), Open Source Software Developer, Inventor, and 3D printing enthusiast

  • 5 Posts
  • 426 Comments
Joined 3 years ago
cake
Cake day: June 23rd, 2023

help-circle


  • As time goes on I feel like the concept of DRY has more applicability to compiled languages like C/C++ and Rust than interpreted ones.

    From a concise coding standpoint, it’s a great idea most of the time. However—having worked with some long-term projects—I’ve found that it can create “code smells” if it’s taken a little too seriously.

    For example, I’ll often see loads of tiny (Python) functions that do simple things like applying a regex. Then I’ll search the code and see that a single regex function gets called in just two places.

    If that was the only time it happened, it wouldn’t be a big deal. Except I’ll see dozens of tiny functions like this at the top of many modules and be scratching my head wondering why they went to such an extreme. It makes my job as a reviewer harder because now I have to scroll all the way to the top of the script and back constantly to figure out WTF it’s doing.

    Not only that, but Python doesn’t have a JIT that would optimize away those extra functions calls. Every function call in Python carries some overhead (both CPU and memory), so by dividing up your functions into dozens of little ones you’re actually slowing it down.

    Normally such slowdowns are so trivial it doesn’t matter. But when someone is following DRY like some kind of religious extremist, those extra calls really can and do add up. Especially when you find them being called inside of deeply nested loops!









  • Always assume you’re being recorded in public because you are. You’re not even talking about that: You’re talking about preventing normal citizens from being able to record in public. Yet government will still have that power. That’s exactly what’s going on with Flock cameras.

    You can regulate sales of hidden cameras in your country, but you can’t stop their manufacture or general availability because they’re literally designed to be undetectable. Anyone can buy them online and they always will be able to.

    I could design my own PCB with a tiny CCD and put together a case with whatever lens I want. In your scenario, would I require a license to order such a PCB? Like it’s a gun or something?

    How would you even know that it’s meant to be a camera for recording people? It could just be an environment monitoring sensor or a security device that sounds an alarm whenever it detects motion.

    You brought up the practicality of things… What you propose is highly impractical.


  • My stance is that there’s always going to be assholes. Trying to stop them ahead of time by banning technology won’t stop them but it will stop legitimate uses of said technology.

    Regulations that would probably be fine:

    • Require recording lights.
    • Require shutter sounds.

    …because those don’t halt the technology. They’re just mild annoyances for regular users. To me, that’s like “your car needs working headlights and tail lights.”

    When I see people asking for “glasses + camera” to be outright banned my alarm bells go off. Both of these things already exist and there’s nothing stopping someone from strapping a cell phone or GoPro to their head. Banning such technology feels like burying your head in the sand because you saw someone doing something you don’t like with a technology you haven’t seen before.


  • I understand that. The way I see it is that the European style gives the government a monopoly on recording in public. That seems dangerous to me (an American).

    I personally think it’s very important that everyone have the right to record people in public because I’ve seen people—in person—being intimidated by police to stop recording (them possibly committing a crime).

    It’s a “WTF!” hands in the air situation. The police know that everyone’s allowed to record them but they just don’t care.

    How does that work in Europe? You see someone committing a crime and you just keep your phone in your pocket? Because it’s against the law?

    “Excuse me, sir… May I have your permission to record you beating this person to death? Thanks!”







  • Ah, a true meme sommelier! As a shitpost epicurean we often don’t see eye to eye and this is one of those cases.

    I find the smoothness to be an important feature for when I retire some day and work as a professional curator of low-effort-arts, as it will allow me to date the meme. It’s much easier than compression dating, which gives a rough estimate of reposts-over-time.