• 2 Posts
  • 68 Comments
Joined 3 years ago
cake
Cake day: July 4th, 2023

help-circle




  • LLMs are great at language. I often use them to generate syntax for a language I don’t know and probably won’t use again. While the short snippets may not do exactly what I want, I can edit a snippet fairly easily. Writing one with no knowledge of the language would take me far longer.

    Just remember that being good at language is not the same as intelligence. LLMs are good at mimicking thought, but they cannot problem solve or optimise. You still have to do that bit.


  • To set up local and external network access:

    Go to settings -> companion app (or just settings if you don’t have an admin account)

    Select your server

    And enter the external IP (or duckdns url) in the URL section, the network(s) where home assistant is locally accessible in the “Home network” section, and the local IP in the internal URL section.

    I’m still working on making external access to my home assistant secure, so I don’t have enough experience to make suggestions there.









  • I often use LLMs to give me code snippets in a language I don’t know.

    When I started programming (back in the dark days when StackOverflow was helpful), it took me months to learn a language well enough to do what I wanted, and I had several weeks where I would be frustrated that I just couldn’t find what I was doing wrong, or what was the name for what I wanted so I could search for it.

    AI has allowed me to drastically speed up my learning time for new languages, at the expense of me not really understanding much. I’ll accept that compromise if I just want one script, but it’s a hard habbit to drop when actual understanding is needed.

    Aside from telling me what language features exist, or showing me the correct syntax (exactly what a language model is designed for), I have found AI is mostly just confidently wrong.


  • One of the main problems I found was that AI would sometimes write code that looked good, was well documented and even worked flawlessly. But it would take 15-20 complicated lines to perform a task that happened to be a language feature and could have been done with a single function call.

    Other times it would write code that appeared to work at first glance, and after a reasonable inspection also seemed good. Only after trying to re-write that task myself did I realize the AI had missed a critical but subtle edge case. I wouldn’t have even thought to test for that edge case if I hadn’t tried to design the function myself.

    I’ve also heard someone else mention that AI will often rewrite code (often with subtle differences) instead of writing a function once and calling it several times. The AI code may look clean, but it’s not nearly as maintainable as well written code by humans.
    I do have to admit that it is significantly better than poorly written code by overworked and underpaid humans.

    All of this is ignoring the many times the code just didn’t compile, or had basic logic errors that were easy to find, but very difficult to get the AI to fix. It was often quicker to write everything myself than try to fix AI code.



  • 18107@aussie.zonetoOpen Source@lemmy.mlFrom YouTube to PeerTube
    link
    fedilink
    English
    arrow-up
    9
    ·
    edit-2
    2 months ago

    I still haven’t managed to get in, mostly because I don’t know how to find an instance, or what I should be looking for to choose an instance.

    I think I would like an Australia based instance, but I can’t find any way to filter or search for that.

    I’ve had one person recommend peertube.wtf to me, but I still don’t know what would make it better than any other instance.



  • I have used AI to give me the syntax and function names I need, then researched those functions and found better ones instead.

    I once asked AI to show me how to do something and it gave me a 20 line script. After 2 hours working with it, I finally got it to work. Another 30 minutes of optimizing and got it down to 3 lines. A bit more research and I discovered that what I wanted was actually a language feature, and I just needed to call a single function with a single argument.

    AI occasionally saves me time, and usually causes a significant time waste.


  • I didn’t know that. I’ve been using HACS for years and never needed an account.

    If it is needed for new installs, then I’m very disappointed. An open source add-on for an open source, self-hosted project should not require users to make an account with a large corporation who routinely adds spyware to their products.