@Deebster@programming.dev avatar

Deebster

@Deebster@programming.dev

New account since lemmyrs.org went down, other @Deebsters are available.

This profile is from a federated server and may be incomplete. View on remote instance

[History] An editor letter by Edsger Dijkstra, titled: "go to statements considered harmful" (march 1968). ( dl.acm.org )

In this letter, Dijkstra talks about readability and maintainability in a time where those topics were rarely talked about (1968). This letter was one of the main causes why modern programmers don't have to trouble themselves with goto statements. Older languages like Java and C# still have a (discouraged) goto statement,...

Deebster , (edited )
@Deebster@programming.dev avatar

For such an influential letter, I don't find his arguement all that compelling. I agree that not using go to will often lead to better structured (and more maintainable) programs, but I don't find his metric of "indexable process progress" to satisfyingly explain why that is.

Perhaps it's because at that time people would be running the programs in their heads before submitting them for processing, so they tended to use more of a computer scientist mindset - whereas now we're more likely to use test cases to convince ourselves that code is correct.

Deebster ,
@Deebster@programming.dev avatar

I wasn't saying that unit tests replaces readability, I was saying that back in the 60s they'd reason and debug using their brains (and maybe pen and paper), with more use of things like formal proofs for correctness. Now that we write more complicated programs in more powerful environments, it's rare to do this (we'd use breakpoints, unit tests, fuzzing, etc).

Deebster ,
@Deebster@programming.dev avatar

I used to have some with e-ink displays that showed how full they were, but I always wished I could use them to show a label instead.

Deebster ,
@Deebster@programming.dev avatar
function delete-branches() {
  git branch |
    grep --invert-match '\*' |
    cut -c 3- |
    fzf --multi --preview="git log {} --" |
    xargs --no-run-if-empty git branch --delete --force
}

This is really slick.

Deebster ,
@Deebster@programming.dev avatar

A great post, interesting and to the point.

An update regarding the future of m/AskKbin (where we are headed towards) - AskKbin - kbin.social ( kbin.social )

Hello everyone, check out my announcement post linked above and if you don't know who I am, check out my past post to learn more about me and It would mean a lot of you show your support for my future iniatives inside the fediverse!...

Deebster ,
@Deebster@programming.dev avatar

Mbin seems like a healthy project, and the only sensible move from kbin.

Deebster ,
@Deebster@programming.dev avatar

I think all of the communities would rather have something more than just a bare link. I'm not sure why you're responding with such indignation, to be honest, it was a perfectly reasonable suggestion, politely made.

Deebster ,
@Deebster@programming.dev avatar

So you think it's too unreasonable for you to cope with?

Deebster ,
@Deebster@programming.dev avatar

I just now noticed it was gone. Did it just vanish one day, or did its users at least have some hint?

edit: looks like it was a surprise: https://lemmyverse.link/mander.xyz/post/12163154

Deebster ,
@Deebster@programming.dev avatar

Pretty shitty attempt on Hashicorp's part. Come to think of it, are Hashicorp themselves in the legal clear for grabbing code from an incompatible licence?

Deebster ,
@Deebster@programming.dev avatar

I'm not saying OpenTofu is doing any accusing, but I am. I was thinking an original author had the sole right to relicense code but I guess they found some legally plausible way to get it done. I wonder if the author was an OpenTofu employee.

Deebster ,
@Deebster@programming.dev avatar

Thanks for the link, I forgot about CLAs. Interesting - this kind of thing seems to be controversial but common.

Deebster ,
@Deebster@programming.dev avatar

Distro watch rankings are just which page gets the most hits. Get a bunch of different IPs to load LemmyLinux and it'll be number one (and then actual people will click on it to see what it is and why it's number one).

Deebster ,
@Deebster@programming.dev avatar

As far as I know I made it up, but I stand ready to be surprised!

Deebster ,
@Deebster@programming.dev avatar

Back in the naughties PCLinuxOS was at #1 and people suspected them of cheating. I'm sure some people do try to game it, but there's plenty of organic and bot traffic to compete with.

Besides, I think the popularity thing's kinda backwards - I'd never visit Ubuntu or Fedora because I know what they are, but I'll be clicking on something novel out of curiosity.

Deebster , (edited )
@Deebster@programming.dev avatar

I like it too, even though it didn't notify me when the trial was up like it said it would. I was planning on buying the lifetime (or uninstalling) but it autobilled me for a year instead.

Anyway, here's mine:
https://programming.dev/pictrs/image/c870eb0e-c91b-462b-a1b8-0be680516f8d.jpeg

Deebster ,
@Deebster@programming.dev avatar

Finally, when you reference a Git hash for posterity, e.g. in another commit message, I’d recommend always using the full value.

Good advice.

Deebster ,
@Deebster@programming.dev avatar

This seems like a pretty standard solution for this kind of thing and I don't believe it would have been patentable - there's no breakthroughs here, even for 2007.

Stopping a badly behaved bot the wrong way.

I host a few small low-traffic websites for local interests. I do this for free - and some of them are for a friend who died last year but didn't want all his work to vanish. They don't get so many views, so I was surprised when I happened to glance at munin and saw my bandwidth usage had gone up a lot....

Deebster ,
@Deebster@programming.dev avatar

I was kinda hoping for another story about some clever compression bomb or similar to slow up the bot - after all, if it's hammering this little site it's surely doing the same to others, even if they haven't noticed yet. After the robots.txt was ignored I was sure, but I guess this mature, restrained response is probably the correct one *discontentedly kicks can down sepia street*

Deebster ,
@Deebster@programming.dev avatar

I feel a company that big would write a more competent bot, but I also wouldn't be too astonished.

Deebster ,
@Deebster@programming.dev avatar

Thinking there must be another way, I switched to Haproxy.

Hang on, weren't you on Haproxy already? Or do you mean you switched your attention to Haproxy? (If not, what were you in before?)

As others have said, blocking incoming stuff as high up as possible is definitely the right way, and Cloudflare is the right place for you. It's interesting that this bot wasn't caught by Cloudflare, I wonder who runs it.

what will be my next server operating system (Fedora Server, Fedora CoreOS, NixOS), your experience and opinion

I want to reset my server soon and I'm toying with the idea of using a different operating system. I am currently using Ubuntu Server LTS. However, I have been toying with the idea of using Fedora Server (I use Fedora on my laptop and made good experiences with it) or even Fedora CoreOS. I also recently installed NixOS on my...

Deebster ,
@Deebster@programming.dev avatar

I went with Fedora on my VPS because I was also planning to use rootless Podman. Quadlets and running everything through systemd with SELinux enabled is working pretty well for me.

Deebster ,
@Deebster@programming.dev avatar

I've often thought that something like git's auto-merge would make like much easier when I get asked if I want to keep my config, use upstream or decide per-line. What I should be able to do is have the system pick whichever changed recently, and give me the results to review and/or fix conflicts.

Deebster ,
@Deebster@programming.dev avatar

I'd say it's more like it demonstrates how quirky the requirements are that Haskell also failed to get it right. The error and the fix are both in Rust code.

Deebster ,
@Deebster@programming.dev avatar

Hmm, not really. It's only because it nerd-sniped someone who was trying to do something completely unrelated that this came to light. If that person has been less dedicated or less skilled we'd still probably be in the dark.

Deebster ,
@Deebster@programming.dev avatar

Maybe millions of potential eyes, but all of them are looking at other things! Heartbleed existed for two years before being noticed, and OpenSSL must have enormously more scrutiny than small projects like xz.

I am very pro open source and this investigation would've been virtually impossible on Windows or Mac, but the many-eyes argument always struck me as more theoretical/optimistic than realistic.

Deebster ,
@Deebster@programming.dev avatar

And are bugs harder to find than carefully hidden backdoors? No-one noticed the code being added and if it hadn't have had a performance penalty then it probably wouldn't have been discovered for a very long time, if ever.

The flip side to open-source is that bad actors could have reviewed the code, discovered Heartbleed and been quietly exploiting it without anyone knowing. Government agencies and criminal groups are known to horde zero-days.

Deebster ,
@Deebster@programming.dev avatar

The author has no idea how to get his audience on-side! He starts with bragging about his 6400% profit margin on domain he resold, in a market where there's no customer value for middlemen.

At least antique dealers will identify pieces as rare, clean/restore them and put them for sale in a more visible place. Whereas domain reselling is about as ethical as ticket touting.

Deebster ,
@Deebster@programming.dev avatar

Are you informed about what they're using AI for? One example is in-browser translations, which allows it to work offline and be privacy-respecting (no calls to Google, etc).

Deebster ,
@Deebster@programming.dev avatar

Are you saying you've disabled searching from the address bar and instead load up whatever.com and then type your search into there? I don't understand what you think you're gaining by enforcing this extra step.

Deebster ,
@Deebster@programming.dev avatar

Why should it be relegated to a plug-in? It is a feature everyone would find useful because no-one speaks every language. Also, since Chrome has this feature, new users would expect to have it work without having to research which plug-in to use.

You might not want to use it, but some people don't use Firefox bookmarks and you don't hear them demanding that bookmarks be moved to a plug-in. It's been a very long time since a browser was solely an HTML renderer, and while people were also against CSS and scripting at first, we've moved on.

"AI" has been used for many things for many years. The fact that the news is full of machine learning and generative AI doesn't mean that it's sensible to condemn anything using it.

Deebster ,
@Deebster@programming.dev avatar

You have other options. You can use the separate search box. You can use smart keywords to only trigger searches when you want.

Deebster ,
@Deebster@programming.dev avatar

So, they're just going to add a QR code? Of course, you could already do that, but having it built in and be the default process would probably help.

[Thread, post or comment was deleted by the author]

  • Loading...
  • Deebster ,
    @Deebster@programming.dev avatar

    Afraid I don't know, but please post the answer here if you do (particularly if you get the answer from somewhere un-indexable like Matrix).

    Deebster ,
    @Deebster@programming.dev avatar

    I assume this latest bump is due to lemmy.world updating and now counting lurkers when assessing active users.

    Deebster ,
    @Deebster@programming.dev avatar

    I think of a lurker as someone who doesn't post - I guess your definition is someone who doesn't interact at all (besides making an account and subscribing, I assume). But yes, I mean users who only vote are now counted (it's not using views afaik).

    Deebster ,
    @Deebster@programming.dev avatar

    That reminds me of Netflix's Chaos Monkey (basically in office hours this tool will randomly kill stuff).

    Deebster ,
    @Deebster@programming.dev avatar

    A general tip on buying UPSes: look for second hand ones - people often don't realise you can just replace the battery in them (or can't be bothered) so you can get fancier/larger ones very cheap.

    Deebster ,
    @Deebster@programming.dev avatar

    Longer means you're more likely to be able to ride out a power cut, and gives you more options if you want/need to complete something more involved than saving and shutting down.

    Deebster ,
    @Deebster@programming.dev avatar

    Interesting article, thanks, although I don't know what the page is doing to make Firefox offer to kill it. Maybe it's something to do with the 1455 comments.

    Deebster ,
    @Deebster@programming.dev avatar

    They might get some more uptake if they had some examples or a more concise explanation than just linking to the RFC (aside from the tutorial in French).

    Deebster ,
    @Deebster@programming.dev avatar
    Deebster ,
    @Deebster@programming.dev avatar

    unvaluable

    You've edited this post and left this in (or added it!?) so I suppose you mean it!

    Deebster , (edited )
    @Deebster@programming.dev avatar

    Sorry, I was just joking; it's clearly a typo and I don't think anyone misunderstood (or maybe even noticed).

    Deebster ,
    @Deebster@programming.dev avatar

    "is in good health"? I was looking for autocorrect typos but can't figure out anything likely, unless they're not using querty.

    Deebster ,
    @Deebster@programming.dev avatar

    The problem with stats like these are that Firefox users (and the browser's defaults) block a lot of the scripts and images used for tracking.

    Cloudflare's stats show higher Firefox usage (4.737% for 2023 Q3), although that's still less than even Edge. My own logs show more still, although my visitors are more technical than usual.

    Deebster ,
    @Deebster@programming.dev avatar

    Federation like that sounds perfect, and would definitely help out for the current situation I see where projects are officially on, say, Gitlab but still accept pull requests on GitHub. I'm sure that involves some annoying manual process (although should be less hassle than the code review!)

    Deebster ,
    @Deebster@programming.dev avatar

    btw, if you put double spaces at the end of a line, it makes a new line without a new paragraph:

    It's not DNS
    There's no way it's DNS
    It was DNS

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • All magazines