[–] 3 points 2 weeks ago

Re: bad with large code -- that's been something I've been noticing as well. A project I've been working on for work has gotten larger now and it seems more often that it makes goofy mistakes. Like removing something somewhere but leaving something related somewhere else. My best guess is that it's all context window stuff. As humans, we can learn a lot and keep it all in our heads. But an AI model, if it's not something from its training set and it's not in its context window, then it just straight up does not know it exists. I'm guessing because context windows have gotten bigger that ai coding has gotten more impressive. But we'll see if they're able to keep scaling that. I imagine at some point it's gonna hit a soft wall (or at least a price wall lol).

  • source
  • parent
  • context
  • [–] 6 points 2 weeks ago

    I'll preface this by saying I'm not trying to sound like a tech bro. I'm really trying to give a level and measured response.

    Over the past year, AI coding has gotten very good. It can catch weird mistakes that are not obvious. But it can also just totally miss obvious things and get caught up in shit that doesn't matter. The best way to describe it is like an extremely eager and very smart junior developer. They get easily distracted. They get easily caught up in edge cases that don't matter. That can easily miss extremely critical things.

    The biggest thing is that it's fast.

    We'll see how cheap it is long term when companies need to be profitable and run out of investors to convince.

  • source
  • parent
  • context
  • [–] 9 points 2 weeks ago* (last edited 2 weeks ago) (1 child)

    Dixie is a term for the area of the south in the US that seceded from the union which led to the American Civil War. They seceded over slavery. There is a massive disinformation campaign from back then called the Lost Cause of the South (often just lost cause). People try to frame it as being about other things like states' rights, but we don't need to guess, the states that left the union said why in their letters of secession. They left over their "property" rights being violated. Property to what? People. The fugitive slave act specifically. Slave states in the south wanted to compell free states in the north to return escaped slaves.

    So that's the primer on the civil war and lost cause movement, but you can see it's effects everywhere. It's hard to really describe to an outsider. It's hard to describe to people living in the south who grew up here who don't see it as political. You'll tell them things like "Isn't it fucked that Stone Mountain has the world's largest Confederate monument?" They'll respond "hey, I went to that fireworks and laser show there all the time as a kid, it was never about politics and I loved it!" Meanwhile completely ignoring that normalizing celebrations under a monument to the fallen heroes of the south (therefore ones defending slavery) is fucked.

    Content wise, I never went to the Dixie Stampede, so I can't tell you exactly what it featured. But Stone Mountain in GA had a similar thing. I remember commercials for the Stampede when I visited Gatlinburg. They showed Union and Confederate troops on horses and mentioned how it played up the "friendly rivalry " with the north. Stone Mountain had a similar thing. It would show imagery of people fighting, but finally one of them puts their sword down and breaks it, representing peace. I think it was even a Confederate one who did. People who grew up in the south have just received a lot of stuff like this over the years and many don't see how problematic it is, even if they genuinely and truly are not racist. This is exactly what the Lost Cause movement has been about. They knew they could never outright convince people that things were good, but they just want to soften the edges. Get people to question it just a little bit.

    Stone Mountain, once again, the world's largest Confederate monument, sat partially finished for a very long time. It was only after schools desegregated in the US (Brown v. board of Education) that it was finished. The wikipedia article has a better timeline with specifics. Literal members of the KKK were involved. It's not some goofy conspiracy theory. It's all very well documented. They said they were doing it because of schools being desegregated.

    We see this a lot all over. Dixieland was another amusement park near me growing up. I think the best way to think about it is how a lot of times pioneers or cowboys can become a theme for amusement parks and similar attractions, Confederate troops became one. It likely began more racist and overt, but over time just became something that was normalized. Only around the 2010s did people really seem to wake up from their collective stupor and say "hey what the actual fuck are we doing?"


    I'll be honest. Prior to her death, this was something I always brought up about her. I'd even say it made me suspicious of her. To be truthful, it was sort of a bit, the way some celebrities just feel to squeaky clean, but it did still upset me. I can't personally speak for when or if the content of the Stampede (formerly Dixie Stampede) show changed its content. Like I said, I've never been. The only commercial I remember about the "friendly rivalry" was from the Dixie Stampede name era.

    Dolly Parton seemed to love LGBTQ people and spoke up about it often. She did a lot of charity work in her local community too. I'm not trying to ignore that or cancel her or some shit. Without really digging deep on stuff about her, it felt like she tried to be outspoken but tried hard to not get labeled as political. I'm not sure that means she fought less. She fought hard enough that many people did say she was problematic for supporting queer people. I'm just rambling by this point trying to reconcile my views of her into something succinct, but I don't think I can. I guess the best way to put it is that I grew up in the south too and I got duped by these things as a young person. Some of my most fond memories of my early relationship with my now wife are from us doing stuff at Stone Mountain. I think the Unite the Right rally in 2017 was a big turning point in America. I think it's what finally snapped a lot of people out of their collective haze. Or if not that directly, the after effects of it. And I wonder if I was Dolly Parton's age, would I have realized how messed up things were around 2018 when she did? It's very likely. As a kid I was definitely conservative. I grew out of that, thankfully. But it's really hard to explain just how subtly the Lost Cause messaging can affect people.

    My fifth grade teacher, who I have no reason to believe is a racist, very specifically told us that General Lee (the main general of the Confederacy) was a very honorable man. She spoke so poetically about him. About how he only sided with the south because it was his home. As if it were a burden of duty. Looking back, I have to wonder who her teacher taught her. The Daughters of the Confederacy (main people in the Lost Cause) would reject textbooks because they were "unfair to the south." it makes me wonder what bizarre slants she was told. Was her merely saying Lee was a "good man" a result of her deconstructing the lies she was told over decades? I don't know. It could be. And I'm not praising her, don't get me wrong, I'm just trying to help paint a picture of how successful the Lost Cause movement was. It's easy for people to say "well, it obviously wasn't successful, slavers are dumb" or something, but look at pictures of any remotely rural gathering from the 1980s or so in the south. Look at the number of Confederate flags. Today we get cagey when we see some, and they're mostly only the most remote of places (mostly), and the notable exceptions stick out like crazy. It wasn't so long ago that they were genuinely ubiquitous.

    I could ramble more about this topic but I think this is enough of a primer and enough of my personal experience as someone born in 1991 in the south to get a picture of what it's been like for the non-American readers. Happy to yap more if anyone has questions.

  • source
  • parent
  • context
  •  

    Link to a (frustratingly) deleted question on Stack Overflow. Text and image copied below incase you don't have the ability to see it. (Not sure why the image shows multiple times.)


    Is there any way to more granularly control IntelliJ IDEA's inspections' "Nullability and data flow problems" option "Treat non-annotated members and parameters as @Nullable"? Preferably for unboxing specifically?

    I am aware I can use a variety of @Nullable annotations in a variety of places in the code to make the warnings appear. That's not always an option as the place the boxed primitives are coming from may be other libraries you don't have control over. (Imagine if the Holder record below was from a different project.) I included other examples below to illustrate my point.

    public class Sample {
    
        private final Boolean value;
    
        public Sample(Boolean value) {
            this.value = value;
        }
    
        private boolean isValue() {
            return value; // I would like a warning here
        }
    
        private static Boolean boxedTrue() {
            return true;
        }
    
        private static boolean unboxedTrue() {
            return boxedTrue(); // No warning here, but that's understandable since never null
        }
    
        private static Boolean boxedNull() {
            return null;
        }
        
        private static boolean unboxedNull() {
            return boxedNull(); // Only warning in the file (by default)
            // "Unboxing of 'boxedNull()' may produce 'NullPointerException'
        }
    
        public record Holder(Boolean value) {}
    
        public boolean openHolder(Holder holder) {
            return holder.value(); // I would like a warning here
        }
    }
    

    When "Treat non-annotated members and parameters as @Nullable" is enabled, the following gives warnings. While that makes sense given the name of the option, there is code like this literally everywhere. It adds hundreds of warnings to my project. I'm trying to find more granular choices.

        public static ZonedDateTime timeStuff(LocalDateTime localDateTime, ZoneId zoneId) {
            return localDateTime.atZone(zoneId); // I do not want warnings for this
        }
    

    I see that the Java Class Library has JetBrains annotations despite not actually being annotated. Is there perhaps some way to add these automatically to libraries if there is no better way to control the inspection?

    Showing @NotNull and @Contract annotations on LocalDateTime.atZone(ZoneId)

    Barbie (programming.dev)
     

    If you'd told me five years ago that there would be a Barbie movie that somehow was not only just not a cash grab or nostalgia bait but also a genuinely amazing piece of cinema with an amazing message to boot I'd never believe you.

     

    Opening your router to the Internet is risky. Are there any guides for the basics to keep things secure? Things like setting up fail2ban? My concern is that I'll forget something obvious.

    Edit: I haven't had much of a chance to read through everything yet, but I really appreciate all these long, detailed responses. ❤️ Thanks folks!

     

    This part of this blog post has always made me happy and I come back it from time to time. This is regarding the scene in Tron Legacy when one of the characters stops another from hacking. If you'd like to see the scene for context here it is. The time code is when the particular portion is. https://youtu.be/Qeh3E67brBs&t=231

    In addition to visual effects, I was asked to record myself using a unix terminal doing technologically feasible things. I took extra care in babysitting the elements through to final composite to ensure that the content would not be artistically altered beyond that feasibility. I take representing digital culture in film very seriously in lieu of having grown up in a world of very badly researched user interface greeble. I cringed during the part in Hackers (1995) when a screen saver with extruded "equations" is used to signify that the hacker has reached some sort of neural flow or ambiguous destination. I cringed for Swordfish and Jurassic Park as well. I cheered when Trinity in The Matrix used nmap and ssh (and so did you). Then I cringed again when I saw that inevitably, Hollywood had decided that nmap was the thing to use for all its hacker scenes (see Bourne Ultimatum, Die Hard 4, Girl with Dragon Tattoo, The Listening, 13: Game of Death, Battle Royale, Broken Saints, and on and on). In Tron, the hacker was not supposed to be snooping around on a network; he was supposed to kill a process. So we went with posix kill and also had him pipe ps into grep. I also ended up using emacs eshell to make the terminal more l33t. The team was delighted to see my emacs performance -- splitting the editor into nested panes and running different modes. I was tickled that I got emacs into a block buster movie. I actually do use emacs irl, and although I do not subscribe to alt.religion.emacs, I think that's all incredibly relevant to the world of Tron.

    submitted 2 years ago* (last edited 2 years ago) by to c/programmer_humor@programming.dev
     

    Literally. I open up my terminal and try to cd Desktop only to be told that no such file exists. I thought for sure everyone this was happening to was just not reading something correctly and were foolish. Nope! It literally began deleting my files.

    Edit 2: Even once it's done and you have them locally and not "on demand", the Desktop is in ~/OneDrive/Desktop instead of ~/Desktop. See this helpful comment.

    It looks like there might be a way to sort of disable Files on Demand but it looks like it won't let me do it until it's done uploading? I'll post updates.

    Not to be dramatic, but I'm really going through it. My mouse logitech mouse is suddenly chattering really bad and double clicking everything. Also while Steam refuses to let me disable auto updates for all games in any sort of easy way. And DDG seems intent on only showing me results related to launching games without updating (as opposed to merely disabling auto updates until I launch). The chatter fixer I found for my mouse does not work and the other requires some logitech program to even try to use. (The repo doesn't mention the name.) This is awful. When it rains it pours, I guess. Literally can't even high light this text to wrap it in a spoiler. This is fucking stupid.

    Context: My parents have a family plan for Microsoft 365 they added me too and it has 1 TB of storage I can use. I wouldn't have turned it on otherwise.


    Edit: My desktop background has literally vanished and turned solid black.

    DO NOT ENABLE ONE DRIVE.

     

    I have no idea how to title this post. Oh well.

    A few years back I worked somewhere that had a large breach. Many practices changed in the wake of it. Developers actually had admin access prior to the change which was very nice. In an effort to restrict access but also let folks do their jobs they deployed some tool that would start all programs that "needed" admin access as an admin. This included cmd for the devs. So every time I opened cmd I had to be careful not to break something since there was no way to launch it without admin access after that change.

    Sun Clock (sunclock.net)
     

    (I did not make this project.)

    I love this website. It helps me visualize time with regards to the sun very well. If I could get my FitBit to display this as a clock face I definitely would. It's such a beautifully simple site.

    I'm sharing it in honor of the solstice today. It's (roughly) solar noon on the east coast. I think I found this site on Reddit prior to the Lemmy Exodus, so I'd like to share it here for everyone to enjoy. Happy solstice. Happy summer (or winter for our friends in the southern hemisphere).

    Also, based on the community info panel I believe this is on topic here, but if there is a better community for "cool site I found" let me know. ❤️☀️

    view more: ‹ prev next ›