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

help-circle
  • GooberEar@lemmy.wtftoRetroGaming@lemmy.worldWe miss you
    link
    fedilink
    English
    arrow-up
    2
    ·
    5 hours ago

    I know I can emulate, but there are times when I wish I still had my old Playstation. I left mine behind when I had to make a sudden break from an ex of mine about 20ish years ago. Somehow I ended up with a controller and the mouse, but I have no idea how they got separated from the system itself and ended up in my possession.








  • GooberEar@lemmy.wtftoProgrammer Humor@lemmy.mlComenting code
    link
    fedilink
    English
    arrow-up
    3
    arrow-down
    1
    ·
    edit-2
    3 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
    ·
    3 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.


  • 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).




  • The conservative folks I talk to always, always, always bring up the price of eggs and the price of gas when they are talking about how bad the economy is these days.

    I’ve heard “Groceries have doubled in price.” many times. Obviously I can’t prove that’s not true for them, but then I ask what items that they buy regularly have doubled in price? The answer: “Eggs”.

    Okay, so what else, I know that eggs alone do not make up your entire grocery bill? “Everything”. That’s pretty much all I get.

    Even if they can tell me a few more things that have doubled in price, it’s basically going to be outliers or things I know for a fact they rarely/never buy. Like when it comes to the eggs, they’ll make claims like “eggs are $10 a dozen”, but when pressed about it, you find out they’re talking about the gourmet premium brand that’s always been way more expensive than the cheap ones and which they’ve never purchased in their entire lives.




  • Somewhat tangential question: Why do so many sites have links to an external status monitoring site, but when the site is down and you go to check the status on that external status monitoring site, it says everything’s fine? What’s the point of the status site if it doesn’t actually acknowledge that there’s any sort of outage nor provide any info on it?