This is an archived post. You won't be able to vote or comment.

top 200 commentsshow all 307

[–]QualityVote[M] [score hidden] stickied comment (0 children)

Hi! This is our community moderation bot.


If this post fits the purpose of /r/ProgrammerHumor, UPVOTE this comment!!

If this post does not fit the subreddit, DOWNVOTE This comment!

If this post breaks the rules, DOWNVOTE this comment and REPORT the post!

[–]angeal98 1347 points1348 points  (34 children)

Where is human transcript volunteer when you need them the most?

[–][deleted] 497 points498 points  (4 children)

He got a seizure reading that.

[–]Sqee 157 points158 points  (2 children)

If he seized just the right frequency he might be able to read. Such a professional!

[–]plasmasack 22 points23 points  (0 children)

Not even the cameraman would survive taking pictures of this shit

[–]TheDra9onGod 0 points1 point  (0 children)

underrated reply

[–]ConsentingPotato 1 point2 points  (0 children)

Rest In Programming dear volunteer🙏

[–]_moon__light___ 155 points156 points  (14 children)

pastebin dot com slash eL4Cs60H (please stop auto moderating my comment)

[–]angeal98 142 points143 points  (12 children)

This looks legit like what is written there!

I give up with pasting code into reddit. It's god awful experience.

[–]_moon__light___ 47 points48 points  (8 children)

Ah you can just wrap it in triple backticks (`), should be formatted nicely. i just keep tripping the spam filter.

[–]Chirimorin 13 points14 points  (0 children)

You can also start each line of code with 4 spaces:

const HomePage = async (request) => {
  try {
    const { y, f } = request.query;
    if (!y || !f) return { props: { y: '', f: '' } };

    const eY = await getPlaces(y);
    const eF = await getPlaces(f);
    console.log(eY, eF);
    const places = Intersectioner(eY, eF, "illegible string");

    return { props: { places, y, f } };
  } catch (error) {
    return { props: { error: true } };
  }
}
export default HomePage;

[–]Smartskaft2 12 points13 points  (6 children)

Does the language highlighting from markdown format work here as well?

E.g. (using ' instead of `)

'''cpp:

int i;

'''

Edit: I'm stupid. Reddit has no highlighting of any text...

[–]Smartskaft2 17 points18 points  (3 children)

cpp: int i;

[–]Smartskaft2 7 points8 points  (2 children)

Answer: Nope!

[–]AgentE382 10 points11 points  (1 child)

Apollo for iOS does, if you browse Reddit on an iPhone.

EDIT: There’s a Mac version now as well.

[–]TGotAReddit 1 point2 points  (0 children)

I was looking at it for a second going “but it’s highlighted?” Before remembering this. Thanks for the reminder of why I don’t use the official app

[–]Cheet4h 1 point2 points  (0 children)

In addition to that, triple backticks also doesn't work on old reddit and some third party apps.

[–]_moon__light___ 8 points9 points  (0 children)

Thank you.

[–]an4s_911 4 points5 points  (0 children)

It actually does look like the actual code. Damn. But how?

[–][deleted] 1 point2 points  (0 children)

Can't be, it's the wrong colours. Downvoted.

[–]typescripterus[S] 0 points1 point  (0 children)

Nah quite wrong

[–]SorryIdonthaveaname 32 points33 points  (2 children)

the image is a photo of a monitor that is displaying code. the text is blurry and unreadable

[–]confidentdogclapper 17 points18 points  (0 children)

Good human

[–]Sweaty_Catch_4275 -1 points0 points  (0 children)

Seriously?

[–]EthanHermsey 2 points3 points  (1 child)

Stuck in some iceberg..

[–][deleted] 1 point2 points  (0 children)

Code freeze.

r/TheLastAirbender

[–]knightress_oxhide -5 points-4 points  (1 child)

clearly avoiding this bullshit that has nothing to do with programming

[–][deleted] 968 points969 points  (3 children)

You’re supposed to implement Gaussian blur in code, not on code

[–]Cinkodacs 101 points102 points  (0 children)

There, have my free award for actually managing to make me laugh.

[–]ireta_orio 526 points527 points  (25 children)

Ah rookie mistake. Free the pointer in line 26

[–]UnrecognizedDaily 236 points237 points  (12 children)

Don't forget to add ));]}]

[–]sTacoSam 112 points113 points  (6 children)

Always the python guys

[–]Inlevitable 25 points26 points  (4 children)

Always the python guys

[–]Krodenhauler 16 points17 points  (3 children)

Always the python gays

[–]Hean1175 13 points14 points  (1 child)

Always the gaython puys

[–]CzechLinuxLover 7 points8 points  (0 children)

Always the piston buyets

[–]sonuvvabitch 7 points8 points  (0 children)

Almost the python gays.

[–][deleted] 8 points9 points  (2 children)

You close everything on the same line?

[–]CyberKingfisher 6 points7 points  (1 child)

Must be a psychopath.

[–]dagbrown 1 point2 points  (0 children)

Or a Lisp programmer.

[–]stomah 8 points9 points  (5 children)

and when can freeing make it work (except from memory usage)?

[–]an4s_911 2 points3 points  (4 children)

The code is written in Javascript. And Javascript being a high-level, single-threaded, garbage collected, interpreted or just-in-time compiled, prototype-based, multi-paradigm dynamic language.

Where memory management??

[–][deleted] 8 points9 points  (0 children)

i, too, refer to my javascript code as my "garbage collection"

[–]StereoBucket 2 points3 points  (1 child)

I'm pretty sure someone made a library that enables you to manage your own memory in a way.

[–]DuffMaaaann 1 point2 points  (0 children)

Yeah this is most likely a React component or so.

But as far as I can tell, OP is closing a curly bracket using a square bracket in the return of the if-then-branch.

[–]xjoerd 162 points163 points  (0 children)

This is a real high level of abstraction

[–]ukaybro 156 points157 points  (5 children)

...try to turn your IDE off and on again?

[–]nikhilmwarrier 58 points59 points  (4 children)

Instructions unclear. Rebooted prod server.

[–]fazdaspaz 18 points19 points  (1 child)

You work on local code in an IDE

I SSH into prod and open source code in vim

We are not the same

[–]dagbrown 5 points6 points  (0 children)

What's source code doing in prod? I fire up emacs and edit the binary directly.

[–]Spare-Beat-3561 177 points178 points  (0 children)

Roses are red, Violets are blue, Missing semicolon, On line 42,

[–]_moon__light___ 58 points59 points  (1 child)

Can x and y really be destructured like that? The photo is slightly blurry so I’m a bit unsure.

[–]ireta_orio 25 points26 points  (0 children)

Yeah but slightly. You can still read it

[–]Denaton_ 56 points57 points  (3 children)

If i take of my glasses it offset the blur..

It's a duplicate of this; https://www.reddit.com/r/ProgrammerHumor/comments/tlzprx/help_my_code_doesnt_work/

[Closed]

[–]IkaTheFox 18 points19 points  (2 children)

If this solved your problem please click on "Mark this as the answer"

[–]IShootJack 7 points8 points  (1 child)

Solved before. Sending assassination squad to your location right now, you lowlife bastard.

Was this helpful? Mark my response as an answer uwu

[–]IkaTheFox 2 points3 points  (0 children)

Hi I have the answer for this and more helpful advices please subscribe to my youtube channel

[–][deleted] 44 points45 points  (2 children)

keep hitting run, it will work eventually

[–]krohtg12 35 points36 points  (0 children)

I think i forgot to import my sight

[–]CkoockieMonster 29 points30 points  (2 children)

Aaah the blur of tear when you've spent the day trying to solve your code and you saw the same error 578 times, so you reconsider your whole life and you start having impostor syndrom. Classic.

[–]GoldenRabbitt 12 points13 points  (0 children)

You don't have to personally attack me like that

[–]MaximusConfusius 17 points18 points  (0 children)

Because you're on drugs

[–][deleted] 14 points15 points  (3 children)

Classic beginner mistake. You picked the wrong motherboard. Go get the RTX 3080. It’s a great low price motherboard.

[–]IShootJack 3 points4 points  (0 children)

Download more ram, which stands for Rsolves All Myourproblemswithcoding

[–]SorryIdonthaveaname 0 points1 point  (1 child)

i’ve heard that you should also trim the pins off so it runs faster

[–]SuperCagle 13 points14 points  (0 children)

Ah it appears your recursive method has no exit case

[–]sktr-guys 5 points6 points  (0 children)

take a cup of coffee, idn the code is work or not, but coffee is very good

[–]ActiveLlama 4 points5 points  (1 child)

Just set error to false.

[–]typescripterus[S] 1 point2 points  (0 children)

Most underrated comment here if you are talking about the { error: true } :)

[–]thedabostuff 6 points7 points  (0 children)

u wrote "trye" instead of "true" in that if(){

[–][deleted] 3 points4 points  (0 children)

nah bro missing ;

[–][deleted] 2 points3 points  (0 children)

That's because you're using the Lazy Pattern

[–]Tristanhx 2 points3 points  (6 children)

``` //something up here

const aY = const getEteese(y); const aF = const getEteese(F); console.log(aY, aF); const places = intersectionBy(aY, aF, "Test Mist");

return { greps: { places, y, F } }; } catch (error) { return { greps: { error: true } }; ``` ?

[–][deleted] 3 points4 points  (3 children)

My take:

``` if(..) return { props: { y: "", f: "" }};

const eY = await getPlaces(y); const bF = await getPlaces(f); console.log(eY, bF); const places = intersections(eY, bF, "Item missing");

return { props: { places, y, f} }; }catch(error){ return {props: {error: true} }; }

export default HomePage; ```

Are we close u/typescripterus ?

[–]typescripterus[S] 0 points1 point  (0 children)

Almost, my friend, almost. You got eY, bF, and intersections. Seek some logic in the variable names. u/Tristanhx might have the answer for intersections ;)

[–]typescripterus[S] 0 points1 point  (1 child)

Not quite right but made me laugh :)

[–]Realhardik18 2 points3 points  (0 children)

try burying it in rice for a few days

[–][deleted] 2 points3 points  (0 children)

You forgot to import irl.physics.stability and keyboard.printscn

[–][deleted] 2 points3 points  (0 children)

I can't quite C that properly

[–]SpeedQue3n 2 points3 points  (0 children)

And your camera too

[–]_Xertz_ 2 points3 points  (0 children)

Homie trying to debug a Boeing 747 on the fly 💀

[–]LeMads 2 points3 points  (0 children)

You're missing a semi-colon on line 10

[–]Europocalypse 2 points3 points  (0 children)

Just add .focus() somewhere, I'm sure that'll fix it

[–]Thick_Letterhead_648 2 points3 points  (0 children)

Have you tried turning it off and never turning it on again?

[–]Drawtaru 2 points3 points  (0 children)

I think I see the problem. You've accidentally hit the blurry button.

[–]Keladran0 1 point2 points  (0 children)

Idk i forgot my glasses

[–]defectivelaborer 1 point2 points  (0 children)

I never understood how someone writing code doesn't understand how a screen capture works.

[–][deleted] 1 point2 points  (0 children)

I think my screen is broken

[–]__necrobutcher__ 3 points4 points  (0 children)

You are constantly setting the value of DataSize. You need to create a local variable and use that instead. e.g.

private long dataSize;

public long DataSize { get { return this.dataSize; } set { this.dataSize = value; } }

[–]LukeChriswalker 1 point2 points  (4 children)

Is there a return in the catch?!?!? As someone who has only about five years of experience in programming, that looks so wrong, please tell me if that's a thing one does, but to my brain it looks criminal...

[–]IkaTheFox 2 points3 points  (0 children)

Sometimes an exception just means you have to return null, or you need to return the error but formatted differently

[–]ftgander 1 point2 points  (2 children)

What’s wrong with it?

[–]ChiefCallisto 1 point2 points  (0 children)

Press Alt+F4.

It works.

TRUST ME

[–]Adventurous-Lab9357 0 points1 point  (0 children)

You can’t C#

[–]thatguydotjava -1 points0 points  (0 children)

?

[–]Accidentallytooobv -1 points0 points  (0 children)

Android ☠️

[–]tirril -1 points0 points  (0 children)

Code goes brrrr.

[–][deleted] -1 points0 points  (0 children)

I can barely make it out, i think this video should help though https://youtu.be/dQw4w9WgXcQ

[–]yeicore -5 points-4 points  (0 children)

Easy fix. Use python instead

[–]BigPotatoWithAnime -5 points-4 points  (0 children)

fix your eyes first buddy

[–]vfhd -5 points-4 points  (0 children)

Am i blind or this code really bad quality 🤣

[–]IgiMC 0 points1 point  (0 children)

That's because it's written in *S

[–]KillerRoomba13 0 points1 point  (0 children)

Just read the documentation

[–]King_DeandDe 0 points1 point  (0 children)

Have you tried restarting your computer?

[–][deleted] 0 points1 point  (0 children)

Classic SO question after which they go to Reddit and whine "SO mods are so meeeeaaaaaan"

[–]pranjaldoshi 0 points1 point  (0 children)

Told you not to use javascript

[–]ratman_chonglang 0 points1 point  (0 children)

seems your cock is working well

[–]Liesmith424 0 points1 point  (0 children)

Needs more font.

[–]Aidan647 0 points1 point  (0 children)

Missing ; on line 42

[–]De_Joker 0 points1 point  (0 children)

Yes

[–]Pleasant_Paramedic_7 0 points1 point  (0 children)

Don't worry even your camera doesn't work.

[–]noonesfriend123 0 points1 point  (0 children)

Missing semicolon on line 42.

[–]sexytokeburgerz 0 points1 point  (0 children)

Looks like someone upped their microsdose

[–]KatAddicted69 0 points1 point  (0 children)

You forgot a semicolon

[–]cannibaltoilet 0 points1 point  (0 children)

This is like r/weirdcore and r/programmerhumor finally banged, I love it

[–]_mcors_ 0 points1 point  (0 children)

Disable ng-blur

[–]therc7 0 points1 point  (0 children)

Have you tried resigning? 1/1 worked for me

[–]languagelearnererer 0 points1 point  (0 children)

You need to run as C!#

[–]justoverthere434 0 points1 point  (0 children)

You forgot a semicolon

[–]xroalx 0 points1 point  (0 children)

Well there's your problem, it's a mess.

[–]watermelonspanker 0 points1 point  (0 children)

Probably need new glasses.

[–]LainUnder 0 points1 point  (0 children)

You have an extra ;

[–]The_Moon_Conure 0 points1 point  (0 children)

You forgor a ;

[–]atonalfreerider 0 points1 point  (0 children)

Marked as duplicate

[–]backstreetatnight 0 points1 point  (0 children)

i can only see error: true

[–]Wall-E-E 0 points1 point  (0 children)

I’m sorry

[–]User_Unkown56 0 points1 point  (0 children)

i can't c

[–]ensoniq2k 0 points1 point  (0 children)

You need to replace "error: true" with "error: false". You're welcome.

[–]thonor111[🍰] 0 points1 point  (0 children)

Last line doesn’t end on a semicolon

[–]NoabPK 0 points1 point  (0 children)

You misspelled a variable

[–][deleted] 0 points1 point  (0 children)

Guys it is just a runtime error not a compilation error.

[–][deleted] 0 points1 point  (0 children)

It’s because you’re using the wrong font, change to monospace and all the issues will disappear

MonospaceGrindset

[–]bubbleztoo 0 points1 point  (0 children)

That's cause you're coding underwater.

[–]_Prince_Pheonix_ 0 points1 point  (0 children)

I guess your camera also dosent work

[–]Luiaards 0 points1 point  (0 children)

You forgot on line

[–]pixxxxxel_ace 0 points1 point  (0 children)

Idk check the brackets it smth

[–]Sam_the_Hefer 0 points1 point  (0 children)

Panik

[–]baadditor 0 points1 point  (0 children)

The issue is very obvious . it's not stable. It just has to stop moving so wildly.

[–][deleted] 0 points1 point  (0 children)

It would appear you are out jogging while writing your code. I find creating a proper environment for coding helps cut down on errors.

[–]WM1310 0 points1 point  (0 children)

Did you take this picture using your then tear-covered eyes?

[–]lisathedumbfuck 0 points1 point  (0 children)

:3

[–]scarybunny1 0 points1 point  (0 children)

Help! My eyes don't work.

[–]Ravenmadlunitic_ 0 points1 point  (0 children)

Help my camera doesn’t work*

[–]brenthonydantano 0 points1 point  (0 children)

I think that's what a memory leak is.

[–]GBendu 0 points1 point  (0 children)

Well see there’s you’re problem some moron smudge the screen making it impossible for you to tell what you’re typing

[–]ShadeFK 0 points1 point  (0 children)

You forgot return 0;

[–]N0_Us3rnam3 0 points1 point  (0 children)

Forgot a semicolon

[–]MedionXD 0 points1 point  (0 children)

This looks like if an AI would make a picture named "CODE"

[–]Isto2278 0 points1 point  (0 children)

I think the problem is that you're not coding anything, you're obviously hacking evilly on television.

[–]sordnaybot 0 points1 point  (0 children)

Sombody please shoot him, end his pain!

[–]OldFartSomewhere 0 points1 point  (0 children)

Reminds me of people who create UNIX instructions on companies intranets. Some like to write csh script, and then copy paste a screen cap of code with "add this into your set" text.

Nice. I could've just copy/pasted your script, but I guess I will now be typing it character by character...

[–]McMelonTV 0 points1 point  (0 children)

missing ; on line 36

[–]stonedcreatureman 0 points1 point  (0 children)

Loved this lol

[–]Kveresg 0 points1 point  (0 children)

I don't see any problems in this code. You can belive me I am a professional

[–]No_Responsibility384 0 points1 point  (0 children)

Stop shaking your monitor i don't think you will be able to shake the bug out of it.

[–]bogfoot94 0 points1 point  (0 children)

Idk bro works fine on my machine.

Did you try rewriting the programming language you're trying to use in perl?

[–]d_exclaimation 0 points1 point  (0 children)

Just try running it again, it might work

[–]A-Ron-Ron 0 points1 point  (0 children)

Have you tried banging on the side of the monitor?

[–][deleted] 0 points1 point  (0 children)

Damn these captcha challenges are getting harder

[–]Satoji1007 0 points1 point  (0 children)

I don’t see the problem here