alr

joined 1 year ago
[–] alr@programming.dev 3 points 1 year ago (1 children)

For the benefit of anyone reading this later, the function to check end-of-file should be feof, not foef.

[–] alr@programming.dev 2 points 1 year ago

I'm on Hover. They'll host and email inbox for you, but not a website.

[–] alr@programming.dev 2 points 1 year ago

Not quite sure what you're looking for, but I think Dreamhost can just hand you an Ubuntu box you can SSH or SFTP to to manage your site.

[–] alr@programming.dev 4 points 1 year ago

Check what your testing organization is using first. We're using Selenium at work, except for one small team that used Cypress because they couldn't be bothered to find out what the test of us were using, so now that team is faced with either maintaining their own version of the CI pipeline and their own tooling (and not having anyone to ask for advice) or rewriting all of their tests. Not an enjoyable choice to have to make.

[–] alr@programming.dev 2 points 1 year ago (1 children)

This 100%. Part of my job is writing test cases, which can be extremely repetitive. With multiple cursors, I can frame out a dozen or more cases simultaneously and then go through and fill in the details. It significantly reduces typing time.

Also, if you work with any sort of XML or HTML, learn Emmett abbreviations and learn them properly. It will take you an hour to learn them properly, but they save so much time over typing tedious tags longhand. Being able to type html>(head>meta[charset=utf-8]/+title{My page})+body saves so much time over

<html>
    <head>
        <meta charset="utf-8"/>
        <title>My page</title>
    </head>
    <body>

    </body>
</html>
[–] alr@programming.dev 0 points 1 year ago (1 children)

That's a harder proposition than you might think. On the one hand, UUIDs are mathematically guaranteed to be universally unique, which is great. On the other hand, there has to be some way to go from a UUID to a particular post, which suggests a lookup table, but the federated nature of Lemmy basically makes that impossible, since there's no assurance that any instance is aware of any other instance.