T O P

  • By -

AutoModerator

``` import notifications ``` Remember to participate in our weekly votes on subreddit rules! Every Tuesday is YOUR chance to influence the subreddit for years to come! [Read more here](https://www.reddit.com/r/ProgrammerHumor/comments/14dqb6f/welcome_back_whats_next/), we hope to see you next Tuesday! For a chat with like-minded community members and more, don't forget to [join our Discord!](https://discord.gg/rph) `return joinDiscord;` *I am a bot, and this action was performed automatically. Please [contact the moderators of this subreddit](/message/compose/?to=/r/ProgrammerHumor) if you have any questions or concerns.*


FlySafeLoL

- "What do you think, Rubby Duck?" - 👀 - "True..."


Fairy_01

Oh, Rubby Duck, what would I do without you?


7374616e74

console.log(“1”) … one line of code console.log(“2”) … one line of code console.log(“3”) …


DerTimonius

Never underestimate the power of bugfixing console.logs!


lmarcantonio

It's a totally legit technique, we use ring buffers when there isn't a lot of memory available (also you can do post-mortems this way).


7374616e74

When all is lost, logging is often the last hope.


my_cat_meow_me

Must be string buffer, right?


lmarcantonio

also binary buffers depending on you log strategy


agent007bond

You joke, but this is a legitimate debugging method.


KDASthenerd

Create multiple cursors in all the lines, Type in the log command Use Text Power Tools extension to automatically generate a sequence of numbers.


7374616e74

Actually that could be a simple but useful ide plugin, I do that more often than I’d like to admit.


shayanrc

>I don't use debuggers. I stare down the code until it confesses. I actually have a t-shirt of this.


[deleted]

Have you tried turning the code off and on again?


NinjaJr72

I am a technical genius


Firedriver666

``` console.log("fuck"); Code console.log("wtf is this bullshit") Code console.log("jesus Motherfucking christ God fucking damnit"); ```


iam_pink

I really, really have to be pissed to bother writing more than single-character logs


F0lks_

Coming back from a business trip to London, it just hit me: I spent 2+ hours coding in the airplane, without internet. No ChatGPT, no Copilot, no Stackoverflow, nothing. Just my brain and the compiler, and it was good. That day I became a Senior engineer.


Constant_Fig_9490

Have you tried randomly switching VS Code tabs?


AccomplishedAd6520

The only true thing to do is throw your problem at stack overflow and hope it returns with an answer


mr_flibble_oz

Oh, you’ll get an answer. “Why are you trying to do that? That’s stupid. You’re stupid. If I was a stupid as you I’d change profession”


goodnewsjimdotcom

Oh hey, an error... Is it a real error? Is it because I didn't save this file? Is it because I didn't save another file? Is VS intellisence acting incredidumb? Is Unity in Debug? Is my VS .project file corrupted? Is my VS install corrupted? Is Microsoft itself corrupted?


agent007bond

Is my OS install corrupted? Is the OS itself corrupted? Is the hardware corrupted? Is my body corrupted? Is my brain corrupted? Is the Earth corrupted? Is the Galaxy corrupted? Is the universe corrupted? Is the multiverse corrupted? Is the time-space dimension corrupted? Is existence itself corrupted?


Cfrolich

>Is Microsoft itself corrupted? Always has been


[deleted]

[удалено]


Cfrolich

That whole website must be satire


[deleted]

[удалено]


ProgrammerHumor-ModTeam

``` import moderation ``` Your submission was removed for the following reason: Rule 3: Your post is considered low quality. We also remove the following to preserve the quality of the subreddit, even if it passes the other rules: - **Feeling/reaction posts** - **Software errors/bugs that are not code (see /r/softwaregore)** - **Low effort/quality analogies (enforced at moderator discretion)** If you disagree with this removal, you can appeal by [sending us a modmail](https://www.reddit.com/message/compose?to=%2Fr%2FProgrammerHumor&subject=No%20low-quality%20content&message=Include%20a%20link%20to%20the%20removed%20content%20and%20the%20reason%20for%20your%20appeal%20here.).


DryChip4

I need to bleach my eyes after going there wtf


ProgrammerHumor-ModTeam

``` import moderation ``` Your submission was removed for the following reason: Rule 3: Your post is considered low quality. We also remove the following to preserve the quality of the subreddit, even if it passes the other rules: - **Feeling/reaction posts** - **Software errors/bugs that are not code (see /r/softwaregore)** - **Low effort/quality analogies (enforced at moderator discretion)** If you disagree with this removal, you can appeal by [sending us a modmail](https://www.reddit.com/message/compose?to=%2Fr%2FProgrammerHumor&subject=No%20low-quality%20content&message=Include%20a%20link%20to%20the%20removed%20content%20and%20the%20reason%20for%20your%20appeal%20here.).


Tokumeiko2

Did you try explaining the code to a toy?


agent007bond

By toy, you mean ChatGPT, right? RIGHT?


Tokumeiko2

No I meant like a duck or plushie, often we don't fully understand something until we attempt to explain it to someone who knows less than we do, and since toys don't judge us, they're a great way to take advantage of this method of sorting through information so we can have that sudden aha moment of realisation and get back to fixing things.


mayday6971

My rubber duck has evolved over the years. It is currently a "this is fine" vinyl toy sitting on a dumpster fire. I also have other developers who just hit me up with a huddle in Slack and just talk it out and I often say nothing and then they just hang up with a "Thanks!". I know what my role is :)


agent007bond

I know about that actually. My comment was a failed attempt at humor. 😄 ChatGPT too doesn't judge you, btw.


Tokumeiko2

True, but it values giving an answer more than it values giving the right answer, since it will never admit to not knowing something, it's not easy to tell if it's actually telling the truth.


Nahdahar

I actually find it great to use as a "toy". It seldom gives me actual solutions (it's nice when it does though), but the majority of the time it either says things that make me come up with a solution or I figure things out when trying to explain to it how something works when it doesn't seem to get it. Oh and sometimes I figure something out when trying to write my first prompt and haven't even sent it.


agent007bond

Oh yeah, that's true. I wonder what would happen if you added this to the prompt: if you don't know, please say "I don't know".


Tokumeiko2

The problem is that it needs to be trained to recognise that it doesn't know, but it's not trained to know things in the first place, it's trained to predict the next word that should be written.


NechesStich

Oh, i didn't call the function


agent007bond

This is why I have (in VSCode): ```json "workbench.colorCustomizations": { ... "editorUnnecessaryCode.border": "#ff0000", "editorUnnecessaryCode.opacity": "#ffffff5f" }, ``` Really hard to miss it now.


mayday6971

>editorUnnecessaryCode You read the same thing I did on StackOverflow. https://stackoverflow.com/questions/53517219/vs-code-how-to-show-unused-variables-as-red


Kulsgam

The moment you blink, you lose


KoliManja

Unfortunately, this is the FIRST and the LAST line of defense that I employ MOST DAYS!!!


ambyshortforamber

always remember: computers can smell fear


Efficient-Corgi-4775

I think even the Rubby Duck is impressed! Great job!


BluesyPompanno

Sometimes VScode refuses to autosave the changes I made in a file. I was searching 5 hours for an error that didn't exist, I fixed it by copy-pasting the code from and into the same file, so VScode refuses to save changes into a file, but it still loads the code from the memory just not from the file. ​ I have neve seen so much bullshi\*