There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

programmer_humor

This magazine is from a federated server and may be incomplete. Browse more on the original instance.

nothacking , in Too close to home

Same for C, & yields a pointer to a value, and * allows you to access the data. (For rust people, a pointer is like a reference with looser type checking)

aloso ,

We have pointers in Rust, too :) see documentation

nothacking ,

I doubt many people have ever use that or any of the other low level memory API. The main appeal of rust is not having to do that.

juliebean , in Where did the name Bison come from anyway?

my favorite name origin for a bit of software relates to the text editor nano. nano was written as a standalone clone of Pico, as a play on metric prefixes, but Pico is actually Pine compositor, part of Pine, an email client. Pine itself was based on an earlier email client called Elm, and has been attributed as various recursive acronyms such as ‘Pine Is Nearly Elm’

mertssmnoglu , in Trust me on this one John
@mertssmnoglu@programming.dev avatar

Data good

More data more good

Wats0ns OP ,

This comment is sponsored by AWS S3

danwardvs , in Too close to home

This was me in courses that used C. Keep adding and removing * and & until the IDE was happy and it usually worked.

philm ,

Ah the good old times with C, when things were much more simple (but unsafe…)

rikudou ,

(void*) flashbacks intensify.

philm ,

The “best” way to program dynamically typed…

nautilus , in Too close to home

Replace that with golang and now we’re talking

BravoVictor ,
@BravoVictor@programming.dev avatar

Yeah, popped in the comments to say the same.

I dont know what my damage is with pointers…

nautilus ,

honestly with Go in general I’m in a perpetual cycle of being annoyed with it and then immediately being amazed when I find some little trick for efficiency - with stringer interfaces and the like

DiamondDemon , in lolcalhost

For me, they both bad servers

Blackthorn , in Too close to home

Follow up of: “Mmm… should I put lifecycle annotation in these 10 structs or just use and Rc and call it a day?”. Rc and Box FTW.

roofuskit , in Job interview be like
@roofuskit@kbin.social avatar

My biggest weakness is bad interview questions.

pulaskiwasright , in Too close to home

I thought it was randomly adding Send and Sync traits to function signatures until rustc is happy.

theory OP ,
@theory@feddit.uk avatar

That too

charolastra ,

Randomly wrapping things in Arc::new()

raubarno , in Too close to home

So… now the rustc borrow checker is the new video game boss that is nearly impossible to beat for newcomers, right?

Von_Broheim , in Ask Lemmy

I find ChatGPT more coherent than stackoverflow in many cases. Sure it hallucinates and sometimes acts like it has dementia but at the very least it won’t write 5 paragraphs about how the framework behind my issue works without giving any examples.

Stackoverflow is good for finding alternative approaches, getting explanations for how stuff works in the framework, and error investigations. Useless for getting information on stuff you don’t already know.

skomposzczet , in Too close to home

I think that’s the only thing I dislike about rust. Not having to use * to dereference but later having to use is tad confusing. I know it’s still clever solution but in this case I prefer c++'s straightforward consistency.

Using ampersand never was problematic for me.

Pfosten ,

C++ does have the problem that references are not objects, which introduces many subtle issues. For example, you cannot use a type like std::vector<int&>, so that templated code will often have to invoke std::remove_reference<T> and so on. Rust opts for a more consistent data model, but then introduces auto-deref (and the Deref trait) to get about the same usability C++ has with references and operator->. Note that C++ will implicitly chain operator-> calls until a plain pointer is reached, whereas Rust will stop dereferencing once a type with a matching method/field is found. Having deep knowledge of both languages, I’m not convinced that C++ features “straightforward consistency” here…

ImpossibleRubiksCube , in Only 14.99$

This. This is what we get for crossing the 3% mark.

Screw it! I’m switching to BSD.

gravitas_deficiency , in Firmware

To extend on the theme, can we start calling the codebases of platforms that have undergone enshitification “chodeware”?

jflorez , in Ask Lemmy

I’m sorry but stackoverflow will give you a tardigrade and swear to you that it was a frog when they tried it on their PC

  • All
  • Subscribed
  • Moderated
  • Favorites
  • [email protected]
  • random
  • lifeLocal
  • goranko
  • All magazines