No no, it's move fast and break things, silly. ☺️
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.
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.
All sounds pretty sensible. I do think it might feel annoying waiting minutes to download a model for the sake of generating a line of alt text the first time, though. It would probably be quicker to write the alt text.
‘Don’t trust any of them’: Tories face wipeout in Wales, but Labour is on shaky ground too | Wales
Residents bemoan the 20mph speed limit, polluted waters and strain of the cost of living crisis
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.
Nationalise the lot of them. They had their chance.
As soon as I heard about the £200K donation he accepted from the man convicted of environmental offenses, I knew he was dodgy.
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
Maybe I woke up more cynical this morning, but...
Hoping to save her job, much?
More or less. Either Excalidraw for your quick and dirty diagrams or I've used PlantUML + C4 Plug-in for your larger, more long lived diagrams with some success.
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
Exclusive: Concerns over effect on UK’s finances lead officials to believe utility should be renationalised before general election
Ohhh, yay 👍👍
I think if you read through this and take it at face value, there is a pretty clear picture of what happened: https://robmensching.com/blog/posts/2024/03/30/a-microcosm-of-the-interactions-in-open-source-projects/
Oh goodie. This sketchy guy. 🙄
Ngl, I honestly thought this was a bit of satire.
I've set up my regular subscription. 👍 This was an important step towards the future sustainability of the platform, so I'm glad to see it happen. Thanks very much, @[email protected] and @[email protected] for your continued dedication.
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.
I hate the Tory party. I want Labour to get in.
Apart from this 28 billion pound investment, I cannot name one thing they actually stand for going into the election. This is a problem.
I've been reading Designing Data-Intensive Applications and it really is a great book, specifically for backend engineers.
Open Collective sounds like a great choice. I would be happy to donate £1 a month. 👍
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.
As a bit of low-hanging fruit, you may be able to reduce the length of the diffs in an MR by marking generated files with -diff
in a .gitattributes
file. This is at least supported by GitLab (not sure about others): https://git-scm.com/docs/gitattributes#_marking_files_as_binary
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.
Of course Britain needs renewable energy infrastructure and more houses. But Rachel Reeves has laid out a ruinous path, says Guardian columnist 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.
Go 1.21 shipped a preview of a change in Go 1.22 to make for loops less error-prone.
Woking plans to cut funds for care, arts, sports and toilets to plug £1.2bn deficit | Austerity
Council lays out drastic package of cuts, including to playgrounds and community schemes, in measures described as ‘horrendous’
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.
‘Regressive’ licence fee could be replaced by broadband tax or levy based on property value, Richard Sharp suggests
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. 🙂
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.