[-] codeinabox@programming.dev 2 points 4 days ago

Thank you everyone for your input. I have created a separate community, !aicoding@programming.dev, for AI coding related discussions.

10
2
-5
44
6
11
36
32
22
29
39
6
[-] codeinabox@programming.dev 2 points 1 month ago

I'm open to a conversation discussing the pros and cons of large language models. Whilst I use AI coding tools myself, I also consider myself quite a sceptic, and often share articles critical of these tools.

[-] codeinabox@programming.dev 2 points 1 month ago

Even when I share these articles in the AI community, they get voted down. 🫤 I know these articles aren't popular, because there is quite a lot of prejudice against AI coding tools. However, I do find them interesting, which is why I share them.

[-] codeinabox@programming.dev 2 points 2 months ago

I'm curious what this means for business insurance across the board as generative AI is so pervasive, and lots of businesses of all sizes are using it, but will their insurance policies cover any incidents that happen as a result?

On a related note, if I subcontracted someone to perform a task, and there were defects, they would be contractually liable for that. However, if someone used ChatGPT to help with a task, they would have a tough time trying to take OpenAPI to court.

[-] codeinabox@programming.dev 2 points 2 months ago

I stumbled upon this article as I was having issues with my LSP setup for TypeScript projects. However, in my case, it appears the bug is in the plug-in nvim-lspconfig.

[-] codeinabox@programming.dev 2 points 3 months ago

I know what you mean. Quite often when I've worked in a project where there is a pull request template, a lot of the time people don't bother to fill it out. However, in an ideal world, people would be proud of the work that they've delivered, and take the time to describe the changes when raising a pull request.

[-] codeinabox@programming.dev 2 points 3 months ago

I'm confused why people are voting down an article about AI in an AI community, discussing small language models, which are much better in terms of energy consumption and the environment.

[-] codeinabox@programming.dev 1 points 3 months ago

I stumbled upon this article after reviewing a pull request, where someone was unit testing the abstract base class. I'm of the opinion that base classes should not be tested. We don't want to be testing the architecture of an application, we want to be testing the behaviour. The author sums this up nicely with this point:

For tests, though, it shouldn’t matter whether the classes under test share the domain logic or duplicate it. Tests should view all production code as a black box, and approach verifying it with a blank slate. Otherwise, such tests will start couple to the code’s implementation details.

[-] codeinabox@programming.dev 2 points 3 months ago

Oh, it's not my own blog, I just stumbled upon it, and wanted to share the post.

[-] codeinabox@programming.dev 2 points 3 months ago

Ollama uses the Metal API on Apple Silicon Macs for GPU acceleration.

[-] codeinabox@programming.dev 2 points 4 months ago

After a bit of experimentation, I've managed to find a cleaner solution to enforcing the ticket number in the subject:

module.exports = {
  extends: ['@commitlint/config-conventional'],
  rules: {
    // Enforce scope to match JIRA ticket format like PER-123
    'jira-ticket-rule': [2, 'always'],
    'subject-case': [0],
  },
  plugins: [
    {
      rules: {
        'jira-ticket-rule': ({ subject }) => {
          return [
             subject && subject.match(/[A-Z]+-\d+/),
            'Your subject should contain a JIRA ticket eg PER-123',
          ];
        },
      },
    },
  ],
};
[-] codeinabox@programming.dev 2 points 4 months ago

It wasn't clear what was meant by "event" which was why I was asking. Could you please tell me more about these events that only exist in the Fediverse? It's the first time I've heard of them, and I am keen to learn more.

view more: ‹ prev next ›

codeinabox

0 post score
0 comment score
joined 4 months ago
MODERATOR OF