• 0 Posts
  • 22 Comments
Joined 3 months ago
cake
Cake day: August 21st, 2024

help-circle
  • GooberEar@lemmy.wtftoProgrammer Humor@lemmy.mlComenting code
    link
    fedilink
    English
    arrow-up
    3
    arrow-down
    1
    ·
    edit-2
    2 months ago

    I use VS Code and GitHub Co-pilot and develop in a variety of different languages and frameworks. I’ve got lots of experience with some, but I’m less knowledgeable on others.

    So, having the AI assist with languages I am very familiar with is basically a way to save time and preserve my mental energy. For languages and frameworks I’m less experienced with, it speeds things up because I’m not having to constantly search how-tos and forums for guidance. And for languages/frameworks I have limited or no experience with, it can be a helpful learning tool that speeds up how long it takes to get ramped up.

    With this set-up, if I start writing a line of code and then pause for a moment, co-pilot kicks in and tries to autocomplete that line, sometimes even suggests the entire block of code. It’s really good at recognizing simple patterns and common boilerplate stuff. It’s less good at figuring out more complex stuff, though.

    However, I find that if I start out by writing a comment that explains what I’m trying to accomplish, and to some degree how to accomplish it before I start writing one of those more complex blocks/lines, the AI has a much higher success rate in returning helpful, functioning code. So, basically yes, I write the comment to describe code I haven’t written, and I’ll let the AI take over from there.

    This works for code, raw database queries, configuration files, and even for writing tests. I’m not an expert at building out Docker configurations for local development or configuring auto-deployment on whatever random system is being used for a project, but I can often get those things up and running just by describing in comments what I need and what I’m trying to accomplish.

    The VS Code co-pilot extension also has some context menu items that let you ask questions and/or ask for suggestions, which comes in handy for some things, but for me, typing out my intentions in comments and then letting the auto-complete kick in as I’m starting a line of code is faster, more efficient, and seems to work better.

    Granted, co-pilot also likes to try to auto-complete comments, so that’s sometimes funny just to read what it “thinks” I’m trying to do. And most of the time, I do remove my comments that were specifically to guide co-pilot on what I wanted it to do if they’re super redundant. And, at the end of the day, not everything co-pilot suggests is production-worthy, functional, nor does what I actually described. In fact, a lot of it is not, so you should expect to go back and fine tune things at a minimum. It’s just that overall, it’s good enough that even with all the supervision and revisions I have to make, it’s still a net positive, for now.



  • GooberEar@lemmy.wtftoProgrammer Humor@lemmy.mlComenting code
    link
    fedilink
    English
    arrow-up
    12
    arrow-down
    4
    ·
    2 months ago

    I know some folks are joking about and dunking on this, but in modern times, I have justification. Call me lazy, but I have found myself writing out these comments and then letting the AI take over to at least give me a sketch of an implementation. Works reasonably well and saves me a lot of time and effort. Mostly I don’t bother to remove them, though I usually edit them a bit.

    On the other hand, there are factions within my colleagues who steadfastly insist that commenting is unnecessary and to some degree even potentially harmful, and that if you feel the need to comment your code, it means your code should be improved so that it’s obvious what it is doing without the need for comments.



  • There was a movie about Lucy and Desi that came out sometime in the late 1900s.

    It was being advertised heavily on one of the over the air television stations that we would watch on our cathode ray tube television that picked up signals from a type of antenna called rabbit ears. Back in those days, they’d sometimes have voice over commercials where they’d talk over the end credits of a show or movie, and apparently sometimes they did that live (I guess)?

    Family and I are watching a show and when it ended, they did the voice over thing talking about the Lucy movie. The announcer started out strong but totally fumbled a line, something along the lines of “join Ducy, Lesi, and little Licky”. I just know we all heard it, we all busted out laughing.


  • I definitely miss the cached pages. I found that I was using the feature very frequently. Maybe it’s just the relative obscurity of some of my hobbies and interests, but a lot of the information online that shows up in search engines seems to come from old forums. Often times those old forums are no longer around or have migrated to new software (obliterating the old URLs and old posts as well).






  • Where I live, the indoor smoking bans started in the early 2000s. Before then, people that went to bars and clubs ended the night smelling like cigarette smoke whether they themselves were smokers or not. Sometimes even eating out at a restaurant would leave you smelling like a smoker. Back in those days, though, I was still so used to it that dealing with it was second nature.

    For most of my life the smell didn’t really bother me, but I’ve found that within the past 5 years or so it does.

    As a child, I guess I just grew up with it, so it didn’t bug me much. I hated being teased about it at school, which was a regular thing. I also used to hate how the tar would build up on the walls of our house to the point where it would form tear-like patterns. My parents kept an otherwise reasonably clean and tidy house, but for some reason THAT didn’t bother them, so periodically I’d spend a few hours scrubbing our walls to get rid of the stains and cut down on the smell a bit.


  • My parents ,much of my family, as well as most of their friends smoked indoors, in their cars, and even in restaurants. Despite living in near poverty for parts of my childhood, they chain smoked cartons of cigarettes a week. Must have been expensive.

    I wish I could say that they stopped smoking, but no. The worst part for them isn’t even the fact that they know that it has taken at least a decade or more off their lives. It’s the realization at how much they are missing out on near the end of their lives and how difficult it is living with debilitating health issues from smoking. They simply cannot do what other people their age take for granted.

    And to the title of the post: Yes, I was the kid in the car while my parents chain smoked cigarettes. Sometimes they rolled the windows down, though I’m not sure if that was better since it meant the ashes and red hot “cherry” would inevitably come flying back in and smack me in the face.


  • No. And he’s not just mad at cat ladies.

    This whole idea that people with biological children are more invested in the future of the country than those without kids is just a thinly disguised dog whistle that’s firmly rooted in misogyny and homophobia.

    This is a line that theoretically doesn’t precisely and specifically just target homosexuals, there’s also “collateral damage” to infertile couples and those who choose to go child-free. And there’s a sufficient number of those people that it serves as the basis for plausible deniability. That they specifically call out “cat ladies” fully reflects the misogynistic aspects of it. But make no mistake, this is undeniably a basis they might use to deny rights to the LGBT+ community.



  • 5 layer burritos got me through some tough times eons ago when I was a young adult. I could get a drink and a couple of those burritos for just over $3 - $5 USD (prices rose over the years and different locations charged different prices). And it would be enough to stave off hunger for the rest of the day.

    Back in 2022, I was traveling and decided to stop at a Taco Bell for the first time in close to a decade for old times’ sake. That same drink and 2 burrito order now costs over $12. Three of those five layers were spread microscopically thin. The tortilla wrap wasn’t even warmed or steamed, so it was dry and crumbly. They couldn’t even roll it properly. Yuck. It’s not an exaggeration to say that I could have gone to a sit down Mexican place and gotten more, better food plus table service for the same price. So, lesson learned.

    Needless to say, I haven’t been back since. With the descent into madness of Taco Bell and Subway, I’m afraid to try my other young adult fast food savior, Wendy’s, in case that’s totally been ruined, too.



  • Earlier this year one of my relatives came for an extended visit. We were discussing what we might have for dinner that week and both of us were on board for the same ingredients, such as asparagus. My relative was also happy with the video services I’m currently subscribed to because I have a couple options they don’t have at home, so they were telling me about how they were rewatching some older Harrison Ford movies. And then there’s the age-old (or old age) conversations about our current health issues.

    In the following days, my relative kept bringing up the fact that their phone and tablet are listening to our conversations. Proof? After we had the food conversation, their news feed was suddenly filled with asparagus recipes. They were also getting ads for more Harrison Ford content on the service that they don’t subscribe to. And to top it off, they were seeing ads for a prescription my dog takes but that they had never even heard of before our conversation the day or two before. Isn’t it obvious? They’re listening to our conversations.

    To me this was easily explainable by Occam’s Razor. All our devices are on the same IP address. After we discussed the asparagus I went online that night and did a search for asparagus recipes. And when we were talking about my dog’s health condition, I used my phone to look up the active ingredient because I couldn’t recall off the top of my head. Plus, when Hulu or whatever random service sees you’re watching a lot of Harrison Ford movies, it makes sense they’d advertise others you might like.

    That makes a lot more sense and is a lot less complicated of an explanation than “our devices are always recording our conversations and uploading them to the internet as a basis to send us advertisements”.

    Sure it’s technically feasible, but if it were happening, surely they would be a lot more incontrovertible proof than a questionable and likely misinterpreted news source that seems to be more of a “sly” advertisement for a tech solution that the big players aren’t actually using.


  • I recently joined WTF and based on the list of the instances this place is federated with, my assumption is that’s the basis for the WTF name. So, maybe something like this could be useful for choosing an instance that’s not 1/2 filled with bat shit insane posts by default rather than requiring significant and immediate curation (i.e. blocking stupid shit like hexbear and ml).