• 0 Posts
  • 30 Comments
Joined 1 year ago
cake
Cake day: June 21st, 2023

help-circle
  • Speaking as someone with a MTF close friend and NB spouse, but the term used in the article is the term everyone around me used when I was growing up. That term may be obsolete now, and if so, the author simply needs to be informed. There’s no need to assume they meant harm by it.

    If they knowingly used a term that may offend, then that’s of course a separate issue.


  • In addition to 1:many, many:many, and many:1 (which is just 1:many but looking at it in the other direction), you also occasionally see 1:1, for example if you want to augment a table with additional data. This might be done by having your foreign key also be your primary key in the augmenting table, since that would also enforce a uniqueness constraint on the FK as a result.

    Also, probably unnecessary to mention, but you can also have “0 or 1” relationship (meaning one side is optional but capped at 1). These are technically separated from “1” relationships usually when you get into all the theory. An example of this might be a “0:1” relationship using the above augment table, but where the augmenting table isn’t required to have a row for every row in the augmented table. (A 1:1 constraint can be enforced, for example, by having an additional FK in the augmented table pointing to the augmenting table.)




  • If you want to use it in your start menu, there are some options. I know Start11 can use Everything, for example (but isn’t free - there may be free options out there, but I haven’t looked).

    Otherwise, most of what I’ve seen are CLI applications. Is there anything specific about Windows you’re hoping to see a replacement for? For me, search and settings (why the f are you advertising to me in the f-ing settings?) are the worst offenders, but settings is kinda locked in for the most part unfortunately.


  • We have infused AI into every layer of Windows

    I sure hope not. I don’t want Windows to just decide to delete my hard drive because it feels like it.

    We are introducing Windows Semantic Index, a new OS capability which redefines search on Windows and powers new experiences like Recall.

    You could also improve Windows search by contracting with voidtools and integrating Everything. While you’re at it, maybe ditch the bing searches, and other useless search results?

    Anyway, the rest of the article seems to go into actual dev-oriented details, and there’s some interesting bits like enabling certain AI acceleration features on the web (probably only in Edge though…), for what that’s worth.





  • I’ve used GitLab and Azure DevOps professionally, but there are a lot of services out there which host Git repositories. GitLab can also be self-hosted which is nice. They all fundamentally work the same though from my experience - code viewer, issue tracker, pull requests, some way of doing CI/CD, and various collaborative and documentation features (wikis, discussion areas, permission management, etc).

    It may be good to understand also where the separation lies between features that are part of Git vs those which are part of the service you’re using (like GitHub). For example, branches are Git, while pull requests and wikis are GitHub.



  • TehPers@beehaw.orgtoProgramming@programming.dev...
    link
    fedilink
    English
    arrow-up
    5
    ·
    2 months ago

    I’ve been writing Lua off and on for probably close to a decade, and I can’t remember the lack of a round function being an issue. I may have needed it at some point, but it’s not exactly a complicated function to write up in a minute.

    To me, the biggest appeal of Lua is actually the lack of an overbearing standard library. It has just enough to be usable as a scripting language within a larger application, and the larger application can always include its own helper library that gets loaded into the interpreter automatically on initialization. Feature-wise, there is enough to define your own OOP helpers (but no language built-in specific OOP stuff beyond metatables basically), there is enough to build your own async/await and generators using coroutines, etc.

    Not having a huge built-in standard lib comes with the benefit of not needing to distribute a huge standard lib with your larger application.



  • The hourly wage here seems below 1 dollar.

    I’m surprised this is even legal. I mean, of course it’s fine to scam a bunch of desperate people looking to pad their resumes. Why wouldn’t it be?

    Unless you have no other source of income, then I don’t see these making sense. Even then, consider if retail or food industry might be a better use of your time until you can find something better (unironically - they can be great experiences).




  • This advice mostly applies to people who are less experienced and less familiar with just how complex HTML can be. As for other languages - if you’re doing regex on markdown, you’ll probably be fine (but you should verify if you’re writing something for the general case that must not fail). But in HTML’s case:

    • You have nested languages (CSS and JS)
    • You have tag-specific rules (img and link end in />, but div must end in a separate closing tag)
    • Browsers use error correction to try to make sense of invalid HTML, like inserting missing tags. Many websites rely on this behavior.

    If you’re trying to use Regex to parse a specific website’s HTML, you’ll be able to get what you want eventually, but as a general HTML parser, there will always be some website that breaks your assumptions.


  • If you’re writing C#, you could take a look into Source Generators. They’re supported directly by Roslyn I believe, and are pure C# instead of t4’s syntax. They’re often used with attributes to augment types, but I believe they can be used to generate sources on their own, and even read from a config file if you want to (or maybe even query the DB, if that’s something you want to do at build time for some reason, though I’ve never tried this).