• 1 Post
  • 16 Comments
Joined 2 years ago
cake
Cake day: September 11th, 2023

help-circle
  • This, I think, is the real promise of vibe coding tools—that you can learn how to code without a CS degree.

    I learned to code without a CS degree. I used a for Dummies book, W3schools, Stack Overflow and the good guidance of a senior developer. Learning to code was never the issue. And I think poking around in the code, experimenting, stumbling on unrelated but helpful answers, before finding your problem, are all great ways to become experienced that are prevented by the use of a tool like Bolt. If Bolt produces code that confuses experienced developers, how is the vibe coder supposed to learn anything useful from it?





  • Yeah, I had some webpages archived and tried to use javascript to clean them up, but I ended up parsing it as xml through Powershell instead. I’ve done something with Python and BeautifulSoup too, a long time ago. Both much easier than JS, but somehow JS is designed to work with web pages? Make it make sense.


  • It’s definitely possible to store the stories in columns, but there’s also very little reason to do it. I think filepath in SQL and the stories in separate files in whatever format makes the most sense (html, txt, epub). If you ever want to search the stories for keywords, write a python script to build indexes in SQL, performs much better than doing LIKE on a maxed out varchar column.

    I was thinking maybe Elastisearch, but I don’t know how much work that is to set up. For a hobby project, writing your own indexer isn’t too hard and might be more fun and easier to maintain than an industry-grade solution.




  • There’s one valid use-case for LLMs: when you have writer’s block, it can help to have something resembling an end product instead of a blank page. Sadly, this doesn’t really work for programming, because incorrect code is simply worse than no code at all. Every line of code is a potential bug and every line of incorrect code is a guaranteed bug.

    I use an LLM with great success to write bad fanfiction though.



  • You can do either, but you usually do neither. The best way is to throw a new exception for your situation and add the caught exception as an inner exception. Because rethrowing resets the stack trace, removing the context from an exception message that is often pretty vague, and “bouncing” with throw; doesn’t tell the next exception handler that you already handled (part of) the exception.





  • Hoimo@ani.socialtoMalicious Compliance@lemmy.worldOh Google!
    link
    fedilink
    English
    arrow-up
    1
    ·
    7 months ago

    Nova also adds that quick menu with most used apps and recently used apps. And that also includes a search bar that will search installed apps by default but can be configured to search the web with your browser and search engine of choice. I used those features a lot, but these days I use Niagara.


  • I have seen this, but with “Y”, “N” instead. That was the way the database stored it and the way the UI displayed it, but everything inbetween converted to boolean instead, because there was logic depending on those choices. It wasn’t that bad, all things considered, just a weird quirk in the system. I think there was another system that did just use those strings plain (like WHERE foo = 'Y' in stored procedures), but nothing I had to work with. We just mapped “Y” to true when reading the query results and were done with it.

    (And before anyone asks, yes, we considered any other value false. If anyone complained that their “Yes”, “y” or empty was seen as false, we told them they used it wrong. They always accepted that, though they didn’t necessarily learn from it.)