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.

SubArcticTundra , in Too close to home
@SubArcticTundra@lemmy.ml avatar

Hahaha yes tfw Rust forces you to put your shit in a Rc<Cell<Option<>>>

nothacking ,

New your program deadlocks instead of crashing, peak safety.

tatterdemalion ,
@tatterdemalion@programming.dev avatar

EVERYBODY STOP. Nobody make a move or the memory dies. We have a Mexican Memory Standoff.

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()

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

My biggest weakness is bad interview questions.

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.

DiamondDemon , in lolcalhost

For me, they both bad servers

Guilvareux , in Too close to home

Oh and .clone()

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

cd_slash_rmrf , in How it feels to learn JS in ~~2016~~ 2023

Great article. there was a even a response a year later medium.com/…/how-it-feels-to-learn-javascript-in-…

snowe ,
@snowe@programming.dev avatar

That second article is hilarious. It’s trying to point out that the first article is over complicating things then doing the same thing except the author thinks it’s not complicated what they’re saying when it’s actually insane.

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…

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

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’

yacgta OP , in Experienced engineer examines comments in a legacy codebase

I have a few of these but I forget where they came from, curious if anyone here knows

Walop ,
Hector_McG , in finally there is a perfect monitor for Java programmers

Program in assembly, 40 columns is plenty. You just need an awful lot of rows.

giloronfoo ,

Same monitor, just rotate it.

dudinax ,

If you don’t use a vertical monitor I don’t consider you a real programmer.

interolivary ,
@interolivary@beehaw.org avatar

Joke’s on you: I don’t consider myself a real programmer either

Jocker ,

We need the same monitor, vertically!

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.

henfredemars , in finally there is a perfect monitor for Java programmers

I have a monitor that’s almost like this and it’s surprisingly nice. It feels like a two-monitor setup. Two actual monitors would probably have been cheaper, but I got mine from work, so it wasn’t a factor.

The real advantage of having two actual monitors is being able to flip one vertically for reading code.

EDIT: a word

VanillaGorilla ,

I bought one after some months of remote work in 2020. Then when I started my new job they gave me another one (different manufacturer but exact same panel size). I needed to rearrange my desk a lot, but holy shit so much room for error messages!

Yes, I'm a Java developer ¯_(ツ)_/¯

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