Skip Navigation
InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)SP
spacedogroy @feddit.uk
Posts 11
Comments 61
Started learning Perl
  • I worked with Perl for years, and I don't recommend it for a beginner. There are just too many idiosyncrasies that belong specifically to the language that you'd be better off with Python for learning the basics.

    I'm also not really sold on that book, which from the code samples looks really old. I'd recommend two books: Modern Perl and Perl Best Practices.

    Edit: I'd also recommend working in Go but potentially the way i/o intersects with interfaces makes it a bit more challenging.

  • Crosspost: Lemmy.ml tankie censorship problem
  • I think defederation should be used as a last resort - specifically, I'm talking about an influx of tankies breaking feddit.uk's code of conduct. I think actions supporting a protest of lemmy.ml should be left to the individual, as to whether they want to continue participating in those communities. Ideally, the communities move themselves to a different instance that's less politicised, but that's not the world we currently live in.

  • ‘Don’t trust any of them’: Tories face wipeout in Wales, but Labour is on shaky ground too | Wales

    www.theguardian.com ‘Don’t trust any of them’: Tories face wipeout in Wales, but Labour is on shaky ground too

    Residents bemoan the 20mph speed limit, polluted waters and strain of the cost of living crisis

    ‘Don’t trust any of them’: Tories face wipeout in Wales, but Labour is on shaky ground too

    From the people I've talked to, admittedly pension age, they feel reluctant to vote Labour but can't deny the damage done by the Tories over the last ten years.

    0
    www.theguardian.com Marc Conway risked his life to stop the London Bridge terror attack. Why did he fear being sent to prison for it?

    He tackled a murderer to the ground to protect the public. But the draconian licence conditions of his ‘99-year sentence’ meant that the first person he called was his probation officer

    Marc Conway risked his life to stop the London Bridge terror attack. Why did he fear being sent to prison for it?
    4
    How do you holistically document microservices in a multi-repo setup?
  • Diagrams. Loads and loads of diagrams. One for each use-case.

    Then I'd have one diagram to draw out dependencies between each service at the broadest level. Although depending on how messy your architecture is it can be very difficult to read, in my experience.

  • Thames Water collapse could trigger Truss-style borrowing crisis, Whitehall officials fear | Thames Water

    www.theguardian.com Thames Water collapse could trigger Truss-style borrowing crisis, Whitehall officials fear

    Exclusive: Concerns over effect on UK’s finances lead officials to believe utility should be renationalised before general election

    Thames Water collapse could trigger Truss-style borrowing crisis, Whitehall officials fear

    Ohhh, yay 👍👍

    4
    The Hacker News Top 40 books of 2023
  • A lot of it has reinforced my understanding around distributed databases and transactions. In my day-to-day, I've not really had need to use this knowledge as pretty much all our data stores are hosted in cloud platforms and we're operating on low datasets and traffic.

  • Sunak says he wants to reduce workers’ taxes this year and may cut benefits
  • Ah, I see, cut income tax just before a general election despite having literally years to do so prior, just so Labour will be forced to find extra income elsewhere or revert the tax cut in some form when they get in power. Cynical as usual.

  • Reality check: Our Go backend stack
  • To be honest, it doesn't seem that bad. With clean architecture, you are going to end up with extra types and mappers. I would argue that what you have isn't coupled, because a change in one place doesn't have unexpected side effects elsewhere.

    I haven't used Goa or Gorm. Writing SQL by hand gets old quick so I get why you'd use Gorm - just less code to write in the end. I've used sqlc as it's more a library than a framework, and it's fine, but it can't fulfill every use case. Goa looks too opinionated for me, on the face of it.

    I've used wire. It takes some understanding but it's definitely a lot to understand just to add a dependency. At work we've got our own template for doing dependency injection and although I was skeptical at first it strikes a really good balance between being understandable and abstracting away DI. If this is your pain point, I'd consider going back to basics and get rid of the framework.

    If you decide to go with a framework like Laravel, Rails or Next.js and build everything around the framework, you will deliver quickly at first, but you won't have type safety and it particular point it will stop scaling because these frameworks have no consideration for clean architecture. You won't necessarily be better off.

  • www.theguardian.com Labour’s plan for ‘the builders not the blockers’ is a capitulation to developers | Simon Jenkins

    Of course Britain needs renewable energy infrastructure and more houses. But Rachel Reeves has laid out a ruinous path, says Guardian columnist Simon Jenkins

    Labour’s plan for ‘the builders not the blockers’ is a capitulation to developers | Simon Jenkins

    I don't endorse this article but it is a thought-provoking take. Personally, I think instead of "densifying" cities we should be doing the opposite - incentivize building new homes and business investment in lower-populated areas of the country.

    5
    go.dev Fixing For Loops in Go 1.22 - The Go Programming Language

    Go 1.21 shipped a preview of a change in Go 1.22 to make for loops less error-prone.

    Fixing For Loops in Go 1.22 - The Go Programming Language
    4
    0

    Woking plans to cut funds for care, arts, sports and toilets to plug £1.2bn deficit | Austerity

    www.theguardian.com Woking plans to cut funds for care, arts, sports and toilets to plug £1.2bn deficit

    Council lays out drastic package of cuts, including to playgrounds and community schemes, in measures described as ‘horrendous’

    Woking plans to cut funds for care, arts, sports and toilets to plug £1.2bn deficit
    3

    Has anyone had any luck with the Google Pixel 7A fingerprint sensor?

    I've moved from the Google Pixel 4A, which had an excellent fingerprint sensor on the back of the phone, to the 7A.

    I won't sugarcoat it: in my experience the fingerprint sensor, now an optical sensor on the front of the phone, is near useless. It fails to read my finger/thumb print basically ~95% of the time, which means it can't be used for any account that may lock the user out following 'x' unsuccessful login attempts.

    I really don't get why they shipped the feature with the phone given how unacceptably bad it is to use.

    Is this a common opinion shared amongst 7A users? Is there something wrong with my phone, or am I missing something? I'd welcome any advice, as I would quite like to get this working reliably.

    32
    www.theguardian.com Wealthy may have to pay more for BBC services in future, says former chair

    ‘Regressive’ licence fee could be replaced by broadband tax or levy based on property value, Richard Sharp suggests

    Wealthy may have to pay more for BBC services in future, says former chair
    7

    Welcome to !greyhounds

    Hi 👋

    In absence of a community for greyhound owners/admirers across Lemmy I've opted to create one here on feddit.uk.

    By way of a introduction, here's our boy Ziggy. He's a 4 year old ex-racer living with us in sunny, sunny Wales 🏴󠁧󠁢󠁷󠁬󠁳󠁿 😉. He likes 🧀, naps and waking us up at 6am for his morning constitutional.

    I've set up an icon and banner image for the community from our own set of photos but they're more placeholders until something better comes along.

    Hope everyone is having a good weekend. 🙂

    !

    0
    joeblu.com Don't use mocks

    Writing good unit tests is made much easier by **dependency injection**. This lets you separate your code's behavior from that of your dependencies. Many people use **mocks** to add dependencies to unit tests. I think this is usually a mistake.

    Always interesting to hear different points of view on this subject. Personally I think mocks make sense to capture complex sets of interactions or otherwise difficult to reach error conditions, so I don't think it's a do or do-not kind of thing.

    9