Sekitar 20 hasil (2.27 detik)
Komunitas discuss.online

Announcement of Sublinks

I referenced the Rust code to determine what was sent and received. We’re implementing better code logic; we’re not just copying their API. We want to be compatible to attract users and support all the hard work used to create Lemmy phone apps. Java is for the core Sublinks API/core. Golang is being used for the federation service that operates independently. Once it’s done, it will be platform agnostic if someone else wants to use the federation service for their fediverse project. They communicate through a message bus. Yes, we plan to do the new API correctly. We will support Lemmy’s API for as long as it is relevant, primarily for mobile apps. Multiple domains aren’t possible yet, but that doesn’t mean we cannot add it later. I’m unhappy with the Lemmy roadmap, development speed, and quality. I wanted to contribute but found it difficult to. I did the next best thing and created a somewhat drop-in replacement with a much larger community of developers who are willing to support it. You can see the complete Sublinks roadmap here: https://github.com/orgs/sublinks/projects/1. The first release of parity (v0.10) will use the existing Lemmy front-end. All releases after that will no longer support the Lemmy UI because that’s when the enhanced features start to roll in. We don’t want to support or fork the current Lemmy UI.

Komunitas lemm.ee

In case you forgot.

Ehhh, golang’s pretty down there for me too. Sure, you have types, but the way you “implement” an interface is the sussiest thing I’ve seen in most well-known programming languages. Not to mention all the foot guns (pointers for nullables is a common one, and oh, if you forgot that a function returns an error, and you called it for its effects, you’ve just built a possibly very silent bomb) you end up building into your programs. I use in prod, and I get scared.

Komunitas hachyderm.io

*Permanently Deleted*

@CoderSupreme The founder of StackOverflow went on to work on Discourse (https://discourse.org). There’s actually an ActivityPub plugin available nowadays, so apparently people can contribute from whatever fediverse server they’re coming from. For example see Go Bridge (https://forum.golangbridge.org) @programming

Komunitas lemmy.sdf.org

Linear code is more readable

The author’s primary gripe, IMHO, has legs: the question about the oven’s relationship to baking is buried as part of bake() and is weird. But the solution here is not the left-hand code, but rather to port some good, old-fashioned OOP patterns: dependency injection. Pass a reference to an Oven in createPizza() and the problem is solved. Doing so also addresses the other concern about whether an Oven should be a singleton (yes, that’s good for a reality-oriented contrived code sample) or manufactured new for each pizza (yes, that’s good for a cloud runtime where each shard/node/core will need to factory its own Oven). The logic for cloud-oven (maybe like ghost kitchens?) or singleton-oven is settled outside of the narrative frame of createPizza(). Again, the joy of dependency injection. To their other point, shouldn’t the internals of preheating be enclosed in the oven’s logic…why yes that’s probably the case as well. And so, for a second time, this code seems to recommend OOP. In Sandi Metz style OOP in Ruby (or pretty much any other OOP language) this would be beautiful and rational. Heck, if the question of to preheat or no is sufficiently complex, then that logic can itself be made a class. As I write, I thought: “How is golang so bad at abstraction?” I’m not sure that that is the case, but as a writer of engineering education, I think the examples chosen by the Google Testing Blog don’t serve well. Real-world examples work really well with OOP languages, fast execution and “systems thinking” examples work great with golang or C. Perhaps the real problem here is that the contrived example caters to showing off the strengths of OOP, but uses a procedural/imperative-style-loving language. Perhaps the Testing Blog folks assumed that everyone was on-board with the “small factored methods approach is best” as an article of faith and could accept the modeled domain as a hand wave to whatever idea it was they were presenting.

Komunitas programming.dev

C++

Perfect description. It also describes why I now love GoLang so much. “How has GoLang improved on this unholy tome or horrors?” “Well, it fits in my pocket now.”

Komunitas sh.itjust.works

Suggestions for first C project

As someone whose first “real” programming language was C, I recommend against writing anything new in C. There are plenty of C projects you could consider contributing to as a way to learn the language (and if you want a long and prosperous career, knowing C can only help you) but language design has come a long way since the 70s and something like Golang or Zig or Rust would get you many of the advantages of C with many fewer pitfalls.

Komunitas lemmy.world

Warning: ubuntu tpm recovery key cannot unlock disk outside of boot

As you can see by my UserName, I am the person who filed that Bug as a danger to users… Specifically brought up by @ichbinsokreativ, me trying to help him… Thank you Skull giver for the golang code, I had to debug your code, to get it to run, because of the forum transposing HTML char codes for some characters… Unfortunatley, displaying the result onto console displays ‘jibberish’, as you thought might happen. Console cannot display raw hex characters. Redirecting the output as you posted doesn’t work, as the script then doesn’t get the input of the recovery key, so errors. I have a request… I know a lot of languages, but GO isn’t one of them. Please… Could you please add a few lines to write the result directly to a file called recovery.key? Then if raw or hex, it would get to a key-file… Then I can test if that is going to work to add additional keys to the LUKS containers, and to be able to help people re-enroll the TPM key. If you could, they we would have a recovery work-around. Yes. They did something similar for past ZFS encryptions i their canned installs, but used native ZFS encryption, with a locked encrytped keyfile stored within a LUKS container, that had to be unlocked and mounted before unlocking the ZFS pools. Sometimes I don’t follow the logic behind some things. It seems like they often add complication to what should be simpler.

Komunitas lemmygrad.ml

The GenZedong cause needs programmers!

I may out myself as a non zoomer but here I come Languages C, C++(12+ years), Python(10ish years), Rust (like 7 years, I had one of the first builds of rustc in my old laptop) and Golang (5 years). I did read over eloquent javascript and can hold my ground. I know enough of css, html to get around. Personally I’m more of a systems person but hey. websites Yeah, I used to maintain some bad PHP wordpress stuff. I also know obscure w3c standards because of work lol. internet ish, generally on a couple of places all the time Long being an ML I’m generally drifting around, but I am closest to ML than anything else. More than 14 years ago Marxist figure Perhaps because I’m latinx, but maybe che? I find it hard to commit to a figure as they all tend to be flawed in ways I can’t describe. I would find it easier to mention texts that marxed (haha) me Trans? yes, trans. No buts no ifs. reddit None really, I got banned and I mostly make troll throwaways nowadays