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.

sonymegadrive , in Is this a Nut?

C++: Nuh, uh …


<span style="font-weight:bold;color:#a71d5d;">template </span><span style="color:#323232;"><</span><span style="font-weight:bold;color:#a71d5d;">typename</span><span style="color:#323232;"> T>
</span><span style="color:#323232;">concept Crackable </span><span style="font-weight:bold;color:#a71d5d;">= </span><span style="color:#323232;">requires(T obj) {
</span><span style="color:#323232;">    { obj.crack() };
</span><span style="color:#323232;">};
</span><span style="color:#323232;">
</span><span style="font-weight:bold;color:#a71d5d;">auto </span><span style="font-weight:bold;color:#795da3;">crack</span><span style="color:#323232;">(Crackable </span><span style="font-weight:bold;color:#a71d5d;">auto& </span><span style="color:#323232;">nut) {
</span><span style="color:#323232;">    nut.crack();
</span><span style="color:#323232;">}
</span>
Aatube ,

This is dangerous. The object might not have the crack() method, and this bloats the compiled size by a lot if you use it with different types. There's also no reason I can see to use concepts here. The saner way would probably be to use inheritance and objects to mimic Java interfaces.

sonymegadrive ,

This is dangerous

Well, they say you do have to be over 18 to use Concepts

NoLifeKing , in POV: Working at Google

PoV 3 seconds before eu fucks you in the ass without lube.

Kolanaki , in And don't forget RTFM
@Kolanaki@yiffit.net avatar

Don’t forget to RTFM

Someone documented enough of a thing to call it a manual?

Godnroc ,

Manual? You mean the half-finished wiki someone put together that is the only source of information while also missing the information I need?

Schal330 , in And don't forget RTFM

If anyone genuinely feels this way and wants to get started in coding, I highly recommend doing one of the mooc.fi courses. Codecademy is fine as a taster/refresh but don’t waste money on the premium when something like mooc is available for free.

gazter , in My Git Knowledge

As someone who knows that they know very little about git, this thread makes me think I’m not alone.

laurelraven ,

I think advanced git knowledge, like RegEx, is the exception, while the norm is to know the tiny handful of day to day useful bits

lhamil64 ,

How is regex git knowledge? I guess you can use regular expressions with git grep but it’s certainly not a git-oriented concept…

MrRazamataz ,
@MrRazamataz@lemmy.razbot.xyz avatar

what. that’s not what they said. they are comparing git knowledge to regex knowledge.

Astongt615 ,

Ah, thanks for the explanation. I too misunderstood the inflection.

MrRazamataz ,
@MrRazamataz@lemmy.razbot.xyz avatar

no worries

laurelraven ,

I don’t even know how to respond to this considering it has nothing to do with what I said…

survivalmachine ,

There are at least two ways to parse your statement, and they interpreted it differently from your intention.

laurelraven ,

I guess, if you ignore the comma…

magic_lobster_party ,

Could’ve written like this to avoid the ambiguity: “I think advanced git knowledge, just like RegEx, …”

lhamil64 ,

Rereading it, I now understand what you meant. I interpreted the “like regex” as an example of advanced git knowledge. I’m not sure the comma helps make it unambiguous though.

laurelraven ,

Yeah, reading it again and I can see that interpretation…

This is why you shouldn’t rely on yourself alone for proofreading your writing, I probably could have read that a hundred times and not seen another way to read it without someone else pointing it out

Isoprenoid , (edited ) in It's kahoot time

If you want the answers that I could find, click here.- Lou Ah = Lua programming language - Ace Ink = Async - Doc. Err = Docker - Rick West = Request - Mike Ross Erveeces = Microservices - Russ T = Rust Thanks, @Skullgrid - Al Gore Ethem = Algorithm - Otto Maite = Automate - Ray Act = React - Riff Aktor = Refactor - Martin Fowler = Actual person named Martin Fowler- Ann Jen Eer = Engineer (Maybe ?) - Paul E Morfism = Polymorphism - Jay Son = Json - Sir T. Feakate = Certificate - Lynn Ter = Linter - Mai C. Quell = MySQL - Justin Time = JIT (Just In Time) - Reed Hucks = Redux. Thanks, @noli - Heather Net = Ethernet. Thanks, @prettybunnys - Ann Vars = ENV_VARS (Environment Variables). Thanks, @noli

Skullgrid ,
@Skullgrid@lemmy.world avatar

I think Russ t is just rust.

treechicken , in Positive Affirmations for Site Reliability Engineers
@treechicken@lemmy.world avatar

one box to handle all the frontend requests

why is my project’s architecture here lmao

ooterness ,
Dasnap OP ,
@Dasnap@lemmy.world avatar

Because you’re afraid to touch that one EC2 that’s been running for 3 years before you joined. You just ignore that ASCII dove the 3 times you’ve SSH’d onto it.

Lord_ToRA , in If Architects had to work like Programmers
@Lord_ToRA@lemmy.world avatar

Thanks for copying the text. That site does not support https at all.

starman OP ,
@starman@programming.dev avatar

It’s from 1995, maybe that’s why.

Anyway, no problem.

brunofin , in I had to design a simple general purpose language for university, so I tried creating "ZoomerScript" with Jetbrains MPS

Is flex X on the haters a way of logging to console?

prof OP ,
@prof@infosec.pub avatar

Yes, it pretty much just wraps the expression in a “System.out.println(<expression>);”

Aatube ,
@Aatube@kbin.social avatar

Maybe "flex X" outputs to stdout and "flex X on the haters" outputs to stderr?

prof OP ,
@prof@infosec.pub avatar

I like the way you think! 😂

mwguy ,

flex X on the fools does verbose logs only.

brunofin ,

I’m curious to know how your language throws and catches errors :)

SpaceCowboy , in remember, if your gf isn't open source and running locally, you don't own her
@SpaceCowboy@lemmy.ca avatar

Don’t worry, followed the proper traditions. I had dinner with Richard Stallman to got his approval to court my AI girlfriend.

NaoPb ,

Well, I had dinner with Bill Gates. And he told me “who are you” and “how did you get in here”.

letsgo , in What's stopping you from coding like this ?

I think it’s the fact that I can’t see the errors on my vagina.

isVeryLoud ,

Sounds like a skill issue to me

optissima ,
@optissima@lemmy.world avatar

Someone chose the wrong bottom surgery smh

GnomeKat , in Junior Dev VS Machine Learning
@GnomeKat@lemmy.blahaj.zone avatar

This comic makes no sense

const_void ,

Yet 80 people upvoted it. Strange…

Imgonnatrythis ,

I too am confused about the decaf part.

Maven ,
@Maven@lemmy.world avatar

It’s saying that instead of spending all the resources needed to gather all of the training data for the LLM, just give a junior dev some coffee as the input instead.

The direct comparison is input and output. Coffee/training data is the input and the code is the output.

MajorHavoc ,

But…Decaf?!

Maven ,
@Maven@lemmy.world avatar

I didn’t say it was a GOOD joke. I was just explaining what the joke was.

MajorHavoc ,

Sorry, yes. I’m just trying to “yes, and…”.

Maven ,
@Maven@lemmy.world avatar

Oh lol sorry. Tone is very hard to understand via text online.

WitchHazel ,

Yeah I don’t really get this, you can come to deterministic mathematic conclusions with ML, it just requires different structuring of the problem. While area of a rectangle may not need optimization, there are many such places that do, like file compression, which requires perfectly accurate results.

xor ,

that’s because you’re commenting on things you don’t understand in a sub not meant for you

GnomeKat ,
@GnomeKat@lemmy.blahaj.zone avatar

How is this sub not meant for me? lmao followed me from the other thread, cringe

xor ,

it’s for programmers, which you’re obviously not if you think this makes no sense…
and guess what, troll, that’s why you have a public comment history…
it’s a primary function… which i used, as intended, to see how much of a troll you are…

GnomeKat ,
@GnomeKat@lemmy.blahaj.zone avatar

im a rendering engineer. like GPU programming and engine programming.

xor ,

doubt

Flipper , in Bartender Qualifications

It all depends on the amount they are willing to give me.

tsonfeir ,
@tsonfeir@lemm.ee avatar

For my salary, I’d rather be a bartender.

Patches ,

Only work 3 days per week and very short shifts. Your day ends exactly when you clock out. There is no work to bring home, or ruminate about. What’s not to love?

tsonfeir ,
@tsonfeir@lemm.ee avatar

No waking up in the middle of the of the night panicked, rushing to your work laptop, getting on the vpn, greping logs, and realizing it was all a dream and that never happened.

Yeah, I’ll just mix the drinks strong.

GreenEnigma , in What if we added a social component like "Stories" to this calculator app?

This meme is the most those people have ever actually contributed to society as a whole.

WaxedWookie ,

What are you talking about? David kicked kinda good while having hair, and Victoria was in a band called the Spice Girls despite being a set square haunted by the ghost of a rice cracker.

GreenEnigma ,

Haunted by the ghost of a rice cracker

That’s just perfect imagery.

fl42v , in Whitespace

std::shared_ptr<int> p;

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