programmer_humor

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

doctorcrimson, in Not mocking cobol devs but yall are severely underpaid for keeping fintech alive

Not how that format works, mate.

janus2,
@janus2@lemmy.zip avatar

Possibly better suited for Vanya and Five Drive By Each Other

hansl,

Misusing meme templates is a long programminghumor tradition.

ook_the_librarian,
@ook_the_librarian@lemmy.world avatar

We need strongly typed memes. This place is chaos.

CrayonRosary,

Works for me.

doctorcrimson,

I think the text should be combined into one sentence, which would be run-on but still give the impression that both images refer to one person, as it should be.

CrayonRosary,

Ah, I understand now

Daft_ish,

Another meme purist. If you guys keep this up you’re going to spawn a new variety of meme.

doctorcrimson,

If it’s constructive then it should be interpreted as good faith.

paintbucketholder,

Is saying “you’re doing it wrong” really constructive?

doctorcrimson,

I didn’t think a step by step guide was really needed to correct it, but maybe I should?

FlickOfTheBean,

The first step to correction is understanding there is a problem in the first place. This is quite constructive, it may just not feel like it is because it’s framed combatively.

You’re doing it wrong is the phrase that lets teachers teach at one of the most basic levels.

The public is essentially a self teaching teacher, so this is just the process of public correction happening. It may look/feel like public shaming, and it may be if they’re going too far, but that is the mechanism that I think is playing out here.

Does that framing make it any more palatable to you or does it still seem unnecessarily disrespectful?

paintbucketholder,

It’s probably just a definition thing.

To me, constructive criticism means that the criticism doesn’t just point out failure, but that it then also shows how to correct that failure.

By itself, “you’re doing it wrong” is just destructive: it takes something apart, it destroys it. Without a subsequent “and here’s how you would do it right,” it doesn’t become constructive, it doesn’t help in putting things back together in the correct way.

Sure, as a first step, “you’re doing it wrong” is completely justified when something is actually wrong.

But without the second step - the constructive part - it just doesn’t constitute constructive criticism. By itself, it’s just criticism.

FlickOfTheBean,

Ah I get that, like the frustration of a sociological paper pointing out a societal issue but offering no steps on how to solve it due to fixes being out of scope (utterly infuriating lol).

I still think the criticism is valid, but I do think I agree in that the criticism could be more constructive… But I still think laying the foundation of the argument, so to speak, is still constructive even though it may not go as far as one may need for it to cross the threshold back into polite…

I am still convinced this is a knee jerk feeling issue more than anything truly being amiss, but I have been wrong before. What do you think?

I agree it probably is a definitions thing, I’m very pedantic sometimes and it feels like my definition of constructive is much more optimistic/wider/encompassing than yours. That doesn’t mean that my definition is right or that your position is wrong though, that’s just what I think is going on here.

eluvatar, (edited ) in isEven API

The errors are great api.isevenapi.xyz/api/iseven/1.5

~~Sadly it’s not always accurate api.isevenapi.xyz/api/iseven/0~~ Edit: nevermind I’m an idiot

It’s also greatly lacking in number support api.isevenapi.xyz/api/iseven/one

huf,

zero is even, so i dont see how that one’s wrong

eluvatar,

Oh you’re right, I’m not sure what I was Ln thinking

xmunk,

Is even states that it only returns true for even, passing in an odd number is technically unsupported.

Valmond, in cache

O(k) time to be pedantic, where k is the number of layers.

Nugelz, in Need a rust version too.

Why’s this look so poo on my phone?

MaliciousKebab,

Might be the client. I use eternity and it looks OK on my phone.

chandz05,

Also good in Boost on my phone

EatYouWell,

Seconded

Octopus1348,
@Octopus1348@lemy.lol avatar

Also good on Voyager.

doeknius_gloek,

Also good with Boost once I opened the image and clicked “HD”.

Nugelz,

Thank you that fixed it!

Unforeseen,

Also good in Connect on my phone

30p87,

Not the best quality, but still easily enjoyable on Eternity Nightly

tja,
@tja@sh.itjust.works avatar

Also good in sync on my phone

Octopus1348,
@Octopus1348@lemy.lol avatar

Sync manages these long vertical images the best.

Honytawk,

Your app is written in LISP

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

Swift: Apple releases a new version of the castle and deprecates the princess before you finish your implementation

turing_spider574,

the author did another comic with swift and it’s pretty much what you said lol

toggl.com/blog/kill-dragon-comic

moomoomoo309,
@moomoomoo309@programming.dev avatar

I love the Lua one because it’s so true, LuaJIT is magic and Mike Pall is the only one who understands it as its creator.

fossilesque,
@fossilesque@mander.xyz avatar

The Python one should have been an environment joke.

scratchresistor, in Need a rust version too.

Python:


<span style="color:#323232;">from Rescues import Princess
</span><span style="color:#323232;">Princess.rescue()
</span>
CmdrKeen,
@CmdrKeen@lemmy.today avatar

<span style="color:#323232;">from Castle import Princess
</span>

Done

bob_lemon,

map(lambda princess: princess.rescue(), [castle.get_princess() for castle in castles])

scratchresistor,

Don’t forget to keep your return values…

rescued_princesses = [{“princess”: princess, “rescued”: princess.rescue()} for princess in [castle.get_princess() for castle in castles]]

felbane, (edited ) 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.

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

Rust:

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

marcos,

Just clone the princes and get on with your day.

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.

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.

Rodeo,

That just means you designed your castle unsafely.

Hazzia,

Skip the castle and call the princess directly!

magic_lobster_party,

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

cactusupyourbutt,

…good enough.

Ill get her back in 3 minutes

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#

Daxtron2,

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

magic_lobster_party,

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

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.

r00ty, in Need a rust version too.
@r00ty@kbin.life 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.

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

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

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

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, (edited )
@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

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

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.

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 😡

remotedev, in Need a rust version too.

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

CmdrKeen, (edited )
@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>
karmiclychee,

On Castle, no less.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • programmer_humor@programming.dev
  • localhost
  • All magazines
  • Loading…
    Loading the web debug toolbar…
    Attempt #

    Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 18878464 bytes) in /var/www/kbin/kbin/vendor/symfony/http-kernel/Profiler/FileProfilerStorage.php on line 171

    Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 10502144 bytes) in /var/www/kbin/kbin/vendor/symfony/error-handler/Resources/views/logs.html.php on line 38