• 0 Posts
  • 16 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
    ·
    21 days 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
    ·
    21 days 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.



  • 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.