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.

akash_rawal , in Need a rust version too.

You have rust.

You get a horse and arrive at the castle within seconds but the horse is too old and doesn’t work with the castle.

You remove the horse, destructure the castle and rescue the princess within seconds, but now you have no horse.

While you’re finding a compatible horse and thinking whether you should write your own horse, Bowser recaptures the princess and moves her to another castle.

ilinamorato , in Need a rust version too.

You have Rust. (the knight in this panel looks very cool, wears sunglasses, and probably has a ponytail)

You’ve been told how easy it is to rescue the princess. Absolutely nothing will get in your way, they say; nobody can possibly get access to your plan, and you can even rescue multiple princesses simultaneously! (in this panel, the knight is imagining rescuing three princesses from three different castles at the same time)

You start working on your plan. It’s elegant and beautiful. You write articles on Medium to tell other knights how to rescue their princess. You tell everyone who will listen about your plan. You become a Rust zealot. You never rescue the princess. (In this panel, the knight is nowhere to be seen, and the princess looks bored in her tower. The knight is across the field, at a festival with the banner “RUSTCONF” flying overhead)

lseif ,

yeah but memory safety tho

WaterWaiver ,

Yeah not one mention of “I’ll never forget you Princess”

ilinamorato ,

Great punch-up. I wish I’d thought of it.

wolo ,

I’ll never std::mem::forget you…

PhlubbaDubba , in Need a rust version too.

Rust:

You crushed the princess under the weight of all the crates you imported

fallingcats ,

Nothing against the singularity that is a node_modules directory

HiddenLayer5 , in Need a rust version too.

You have Rust.

Forget rescuing the princess, that’s unsafe. Lock her down even more!

uid0gid0 , in Need a rust version too.

The Patsy from Monty Python in the PHP section got me

AnUnusualRelic ,
@AnUnusualRelic@lemmy.world avatar

“Message for you sir!”

argh

troyunrau ,
@troyunrau@lemmy.ca avatar

I have that as my cell phone notification. It’s amazing.

Here’s a download link if anyone else wants it: drive.google.com/file/d/…/view?usp=sharing

Hazzia ,

Thank you for your contribution to the betterment of society.

AnUnusualRelic ,
@AnUnusualRelic@lemmy.world avatar

Duh. I can’t believe I never thought of it, just because it was a model.

remotedev , in Need a rust version too.

Ruby: there is a built in method called free_the_princess()

karmiclychee ,

On Castle, no less.

CmdrKeen ,
@CmdrKeen@lemmy.today avatar

<span style="color:#323232;">require 'castle'
</span><span style="color:#323232;">
</span><span style="color:#323232;">begin
</span><span style="color:#323232;">  Castle.attack
</span><span style="color:#323232;">rescue Princess
</span><span style="color:#323232;">  puts "Done"
</span><span style="color:#323232;">end
</span>
nailbar , in Need a rust version too.

PHP 8 makes it finally possible to rescue the princess, but you accidentally princess the rescue instead.

ISMETA ,

PHP 8 makes it possible to rescue the princess but your 83 legacy princesses are all still PHP 5.

nailbar ,

I did not want to be reminded of that today 😡

agent_flounder , in Need a rust version too.
@agent_flounder@lemmy.world avatar

Omg Lisp. I’m dying. Our object oriented programming class in college involved programming in Scheme. This was… a while ago.

Saving this forever.

lastunusedusername2 ,

I did the same thing in Scheme. It was mine expanding.

Lawyerator ,

Yup, Scheme was the only programming language taught in our comp-sci department so we could “learn how to learn.” Two years and a broken parentheses button later, and I switched to being a theatre major.

Today, my legal career stands as a testament to the pointlessness of a declared major.

stebo02 , in Need a rust version too.
@stebo02@sopuli.xyz avatar

no python? how are normie programmers like me supposed to relate to this?

aniki ,

The artist is still waiting for the python cells to render.

scratchresistor ,

Rescuing is only I/O bounded; your argument is irrelevant.

troyunrau ,
@troyunrau@lemmy.ca avatar

You have python. You import antigravity. The princess flies off into space. You monkey patch the princess so she has wings.

stebo02 ,
@stebo02@sopuli.xyz avatar

And this is how I learned about the antigravity module. Pretty cool!

aniki ,

Same! I also learned about


<span style="font-weight:bold;color:#a71d5d;">import </span><span style="color:#323232;">this
</span>
HerbalGamer ,
@HerbalGamer@sh.itjust.works avatar

import this

“In the face of ambiguity, refuse the temptation to guess.
There should be one-- and preferably only one --obvious way to do it.
Although that way may not be obvious at first unless you’re Dutch.”

lol

iAvicenna ,
@iAvicenna@lemmy.world avatar

import army

CanadaPlus ,

Which is a library written in C, of course.

psud ,

No perl either. Much like python you find a relevant library (in cpan), but unlike python there will be seven different implementations, and any four perl devs will come up with at least ten solutions, nine of which will successfully rescue the princess

evranch ,

Everything will seem to be be going great, but to actually gain access to the castle you’ll have to compare your situation to successful rescues to find the undocumented drawbridge control

CodeMonkey ,

Python: You send someone else to rescue the princess on your behalf. That someone else is the C knight.

scratchresistor ,

Only if you have to rescue many princesses in a short period of time

r00ty Admin , in Need a rust version too.
r00ty avatar

C# is about right. LINQ was meant to make things easier, or at least the code easier to read. Instead, you gain this addiction to seeing how much functional logic you can fit into one line of code (or a single multi-line query) while still remaining readable.

Curdie ,

I feel personally attacked.

flumph , in Need a rust version too.
@flumph@programming.dev avatar

I’m going to have to print out the Go version for all future “it’s idiomatic” and “but the community!” debates at work

SnipingNinja ,

I’m curious about this but I’m barely a programmer now, so if anyone is up to explain

flumph ,
@flumph@programming.dev avatar

The go community is strongly opinionated in unique ways. For example, using libraries is generally frowned upon. You either use something included in the language itself (standard library) or copy/paste the code you wrote in another project. There’s also advocacy for shorter variable names which generally seems counter to the normal “write descriptive variable name” mantra.

All in all, I hope the ideas / opinions came from a good place and then some people took them as black & white rules. But they also come off as one or two people’s pet peeves who got to build a language around them.

EnderMB , in Need a rust version too.

Always good to see Jon Skeet get some love. I’d love to know in terms of quantity just how many people he’s helped over the last decade or so.

thedirtyknapkin ,

if we count the number of people who have used products with code helped by him; we’re probably around 50% of all humanity by now. at least…

Honytawk ,

I just wonder how many he would have saved if he didn’t write the language in the first place

revlayle ,

wat

Skeet did not write or create c#

magic_lobster_party ,

He has used this comic as his profile pic on Twitter and StackOverflow for quite a while.

Daxtron2 ,

Literally every time I’ve ever posted a question on SO that’s related to .NET, Skeet comes to my rescue.

Gobbel2000 , in Need a rust version too.
@Gobbel2000@feddit.de avatar

Rust:

Cannot move princess out of castle which is behind a shared reference

Octopus1348 ,
@Octopus1348@lemy.lol avatar

It will also complain that trying to break into the castle is unsafe, so you have to tell it that you know.

Rodeo ,

That just means you designed your castle unsafely.

Hazzia ,

Skip the castle and call the princess directly!

CanadaPlus , (edited )

“Alright, but you better be outside of a properly locked up and OSHA-compliant castle with the princess by the time I get back, or I’m not compiling”

And then you do that, but you miss a smoldering ember from one of the castles torches, and everything including the horse and princess catches fire. Next time, pick an escape plan that only requires unsafe for the drawbridge.

There’s a totally safe way to do it too, I guess, but it involves building a series of replacement castles, and it’s also totally ugly and sinfully slow.

magic_lobster_party ,

You can’t rescue the princess, but you can borrow her.

cactusupyourbutt ,

…good enough.

Ill get her back in 3 minutes

marcos ,

Just clone the princes and get on with your day.

felbane , in Need a rust version too.

Rust: You declare the castle type as unsafe and then search for a crate with a rescue_princess function. You discover the princess you rescued is a femboy wolfkin named Pawws. You now have pubic lice and an inexplicable smug sense of superiority.

smeg , in Need a rust version too.

Here is the original comic, it’s got the word fuck in it! Direct link to higher-quality image.

PixxlMan ,

NOOOOOOO NOT THE FUCK W*RD!

killeronthecorner ,
@killeronthecorner@lemmy.world avatar

I can’t fucking believe you’ve done this

MajorHavoc ,

Yeah. I thought we all agreed that we don’t fucking swear here. What the fuck…Shit. Darn-it. /s

Octopus1348 ,
@Octopus1348@lemy.lol avatar

You fucking moron. Oops…

squaresinger ,

Flipping H E double hockeysticks! You aren’t supposed to use such fucking swearwords here!

Klear ,

Oh no! Don’t say the fuck word!

shotgun_crab ,

Now I can’t let my cats see this comic :(

MaliciousKebab OP ,

Changed the image link, thanks.

LillyPip ,

You seem very excited so now I have to check it out.

e: holy shit, it does

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