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

help-circle

  • sping@lemmy.sdf.orgtoProgramming@programming.devWhy is Go syntax so messy
    link
    fedilink
    English
    arrow-up
    4
    arrow-down
    4
    ·
    2 months ago

    I’m not triggered by any of this. I’m not sure why my thinking the question is inane would count as “being triggered”.

    Upvotes does not necessarily mean people agree with OP’s stance.

    It should mean they think it’s a useful/interesting question and I think it very much is not. It’s just someone whining that it doesn’t look like something they’re used to and a bunch of very patient people generously leading them through the very basics of the language that’s well covered in many introductory tutorials - as such it makes it all a waste of time and worthy of being buried.


  • sping@lemmy.sdf.orgtoProgramming@programming.devWhy is Go syntax so messy
    link
    fedilink
    English
    arrow-up
    8
    arrow-down
    14
    ·
    2 months ago

    The more time I spend on Lemmy the more depressed I am about its potential.

    Stupid, wrong-headed comments get solid upvotes if they also hint at some popular sentiment. I even see comments that are literally unreadable nonsense get solidly upvoted, either by bots or by people who just like the vibe they feel from scanning it and don’t care that it’s gobbledygook. Some content makes me wonder if half of Lemmy is just LLMs barfing back and forth at each other.

    Then this post is heavily upvoted, even though it’s nothing more than “the syntax isn’t the same as the other language(s) I have seen, waaaaa!”. Is it just people like to see Go criticized? Because there are actual real issues that could be discussed.


  • But use type annotations everywhere and make sure your code is always checker clean (with checkin or PR CI hooks). And don’t turn off any lint checks through laziness, e.g. docstring checks. Even for a solo dev it’s always worth having everything typed, checker clean, and docstrings (even if they only effectively say “this thing really is what you’d assume”). It all saves time and effort in the long and even medium term.

    I’ve worked on serious large scale Python projects and frankly it’s been very pleasant and productive, but only with the above conditions.




  • sping@lemmy.sdf.orgtoLemmy Shitpost@lemmy.worldLife is great
    link
    fedilink
    English
    arrow-up
    8
    ·
    edit-2
    9 months ago

    And for no charge.

    However, having had a voice chat for an hour this weekend with someone 200 miles away, I can tell you that 30 years ago it worked so much better it’s not even funny; it was just expensive.

    My phone provider (Fi) gave me an internet connected call rather than use the cell voice network (proudly telling me it was encrypted). It was full of dropouts and there was a serious latency that really inhibited conversation. I switched to a few other options like WhatsApp and the audio quality improved but the latency did not, and even got worse. Young people may be barely aware that a 200 mile phone call had tiny latency - you would not know there was any - because there was a literal wire connection between each end and communication was at the speed of light. Even transatlantic calls had minimal latency unless it went by satellite.

    Sure today we can do it with video, but frankly, for a chat, I don’t even see much benefit. I’d certainly choose voice-only if it meant zero latency, and sadly I seem to have chosen a mobile provider that does its best to prevent that.


  • Ubuntu Mono since it was in beta and I heard the designer from Dalton Maag — the typeface design studio commissioned to design it — give a talk about how excited he was to be able to create a comprehensive, carefully thought out, and truly free/libre font.

    I’ve never seen another one that I prefer the look of, and now it’s imprinted in my brain. People love to crap on Shuttleworth / Canonical / Ubuntu, but there are a lot of great things they’ve contributed over the years.







  • I am just regurgitating one of my favorite Perl jokes for a laugh. Though for me the joke contains some truth. Most of the Perl code I’ve ever seen is pretty impenetrable for non-Perl programmers. I quite literally have returned to my own Perl efforts after just a couple of weeks and had some trouble working out what the code is doing (in ways I do not experience with other languages).

    When Python was trying to unseat Perl, that in my view was reason alone to prefer it: I didn’t know Python but I could read Python. Though at that point Perl had the benefit of loads of libraries and ubiquity, and Python hadn’t got there yet. But it was enough to have me cheering for Python’s success at the expense of Perl. I get that Perl has many virtues, but they’re nullified by the ugliness and relative inaccessibility of its code in my eyes.

    I really hate the magic side-effect variables where you do a pattern match or something and then various obtusely named variables have meaningful values with relation to the last match. To me that’s just flat out bad coding, and it’s built into the language.

    The above was my second-favorite Perl joke. My favorite being:

    Perl is the vise-grips* of programming languages. It’s a tool that can do most jobs, and it’s the wrong tool for all of them.

    *BrEng: mole-grips


  • Yes, as long as you just type annotation and checker-clean code.

    Asyncio programming is a delight, context-based constructs can make sophisticated code safe, robust, and clear. Anything mildly popular you want to interface with probably has a library… There are major advantages to swimming in the mainstream.

    Yes it may have grubby and suboptimal corners, but in the real world, making things happen, problems are easy to avoid usually.