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.

Kolanaki , in I realised this today
@Kolanaki@yiffit.net avatar

Hmmm… I comment a lot on Lemmy… Maybe I could be more productive commenting code 🤔

Malix , in "I want to live forever in AI"
@Malix@sopuli.xyz avatar

the plot of

spoilerSOMA

in a nutshell?

pewpew , in "I want to live forever in AI"
@pewpew@feddit.it avatar

Whats the difference between void fn(Type& var) and void fn(Type* var)?

Tangent5280 ,

Sends original data vs making a copy of data and sending it.

In meme context you’d be just making a copy of your consciousness and putting it in a machine. Whatever reason you’re doing it for - escape illness, survive armageddon, nothing changes for you. A copy of you lives on though.

MaggiWuerze ,

I mean, just kill the host as soon as the upload is complete. at best you are not conscious during the process and when “you” wake up you are in the cloud. The version of you that awakes gets told that the “transfer” was complete.

remotedev ,

Upload is a fun show

MaggiWuerze ,

I was thinking more along the lines of St. Junipero :D

herescunty ,

Future man season 2?

MaggiWuerze ,

Black Mirror

herescunty ,

Oh I know San junipero, just suggesting the plot of season 2 of future man as another similar reference - minds uploaded to “the cloud” and bodies destroyed on upload complete. Haley Joel Osmand is pretty decent as the antagonist of that season.

MaggiWuerze ,

never watched the show. Is it any good?

herescunty ,

Pretty good. Offbeat as all hell. Loses its way a little in season 2 but pulls it back for season 3. Wasn’t generally considered a hit, didn’t make it past season 3.

MaggiWuerze ,

7.7 on imdb is very solid. I’ll give it a go. Thanks for the tip

germtm_ ,

that’s a weird way to spell Pantheon.

Valmond ,

It’s not like the post, secont is a pointer.

cbazero ,

I guess you ask for C++. There Type* can be null while Type& can’t be null. When it gets compiled Type& is compiled (mostly) to the same machinecode as Type*.

Valmond ,

You can pass nullptr in the second example (that is not what OP wrote though, hes second is making a copy).

pewpew ,
@pewpew@feddit.it avatar

Thanks, I was Just curious. I knew what * did but I wasn’t sure about &

RustyShackleford , in Guess what my favourite language is:
@RustyShackleford@programming.dev avatar

R is for Removed by moderator.

eran_morad , in Guess what my favourite language is:

Gotta be R.

MagosInformaticus , in Some of my iterations are delightfully recursive

Or sometimes fold them over trees of objects!

Infynis , in It's time to mentally prepare yourselves for this

Can’t believe the US is putting trains on the moon before making them viable on Earth

Conyak , in We'll refactor this next year anyways

In my experience it doesn’t matter. You have to regularly refactor your code to keep up with new features. The more often you can make time to do it the easier it is.

SolarMech ,

This, to a point.

Other things help :

  • Unit test to help catch regressions. If you are confident in your test catching a good portion of bugs from refactoring, at least you feel confident refactoring. Worst case, at least you ensured your code is testable. There is nothing worse than refactoring untestable code.
  • Self-documenting code and when it fails to self-document, comments or refer to a wiki page.
Skullgrid , in Developing a third party UI for a platform you use frequently feels like this sometimes
@Skullgrid@lemmy.world avatar

I watch too many videos on expensive guitar pedals I can’t afford.

I’m “on the bench” at the outsourcing company I work for and I am starting to seriously consider going into DSP programming just so I can work on doing this to effects controls.

I want to make knobs available for this this this and this parameter.

can , (edited )

I’ve had that feeling too but luckily bitwig makes a lot of that easily done natively.

Edit: I’d love to make a CLAP plugin someday though.

frezik , in We'll refactor this next year anyways

I feel this personally today. I just looked at some code in a module where it started out with nice, short functions with good names. I looked back at it today, and it now has a 180 line mega function full of nested conditionals and I don’t know how this happened.

nayminlwin , in My wife was unimpressed by Vim

My wife’s impressed though, may be a little…

But she’s also a programmer.

ebits21 , in My wife was unimpressed by Vim
@ebits21@lemmy.ca avatar

:q!

pivot_root , (edited )

ZZ

Edit: Has nobody actually tried doing this before downvoting? It saves and quits :/

Kolanaki , in No matter how smart you're, end user is smarter than you
@Kolanaki@yiffit.net avatar

no matter how smart you’re

I don’t know how the fuck you managed to use the right you’re yet also still used it wrong. I like it and hate it simultaneously.

jjjalljs , in New language

The python code we inherited had some performance issues. One of the guys was like “we should rewrite this in Java”.

Luckily the boss was not an insane person and shut that down. The issue was an entirely stupid “…and then we do one query per project” behavior that worked fine when the company was small but unsurprisingly started to suck as users created more projects.

Instead of a months long complete rewrite, we had a two hour “let’s add profiling… Oh wow that’s a lot of queries” session.

Socsa , in New language

This is super easy, you just fire all the Java devs and hire real engineers.

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