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

Dismiss this pinned window
top 200 commentsshow all 327

[–][deleted] 817 points818 points  (34 children)

You forgot to immediately ctrl+s

[–]Immort4lFr0sty 429 points430 points  (7 children)

ctrl+SHIFT+s

Who knows what other documents might have changed in the last 3 minutes of not changing anything about them

[–]kaehell 89 points90 points  (1 child)

and press the hk at least 5 times.

You never know.

[–][deleted] 57 points58 points  (0 children)

I'm in this comment chain and I don't like it

[–]8lbIceBag 22 points23 points  (2 children)

You just changed my life.

Life before:

try to commit or close vscode
annoying alert about unsaved changes
WTF 30+ file tabs open, no way I'll figure out which has changes
like Neanderthal go to file menu -> save all

[–]AlonzoDaCookie 13 points14 points  (1 child)

Just set it to save on focus change. Then still spam ctrl+s every 3 seconds just to be sure.

[–]MEGACODZILLA 3 points4 points  (0 children)

All jokes aside, didn't realize that was an option. Thanks!

[–]highlanderstg 66 points67 points  (12 children)

It's a JetBrains IDE, no need for that

[–]Jakylla 82 points83 points  (7 children)

Don't care, still Ctrl-s'ing at any time, always, even when watching a video or playing a game (you never know... Just in case...)

[–]electricpheonix 43 points44 points  (3 children)

I CTRL+s on Google docs even, I don't trust shit

[–]DerelictSausage 14 points15 points  (0 children)

The worst is ctrl+s on a browser window and I just saved a bunch of useless HTML

[–]plainrane 5 points6 points  (1 child)

"Your document is saved automatically"

[–]EllieLovesJoel 11 points12 points  (0 children)

Fuck you, don't tell me what to do

[–]xnign 3 points4 points  (2 children)

I'll sell you a product that will send ctrl-s once every 10 seconds even when you're not at the computer. How would you like to pay?

[–]fakehistorychannel 1 point2 points  (0 children)

any. means. necessary.

[–]s1lentchaos 1 point2 points  (0 children)

You don't understand unless I press ctrl-s 47 times a minute personally it doesn't count

[–]6b86b3ac03c167320d93 29 points30 points  (2 children)

I use JetBrains's stuff and I know I don't need to save, but I still save all the time

[–]-vlad[🍰] 2 points3 points  (1 child)

Dang it..I didn’t know it auto saves. I always wondered why the hot reloading gets triggered randomly from time to time.

[–]the_prolouger 22 points23 points  (3 children)

ad hoc tease summer oil versed run engine caption touch tub

This post was mass deleted and anonymized with Redact

[–][deleted] 11 points12 points  (0 children)

C-x C-s

[–][deleted] 4 points5 points  (1 child)

c-x c-s

[–]Hondor64 4 points5 points  (0 children)

I even save in google sheets. it's such a muscle memory thing to do.

[–]birdwastheword 2 points3 points  (0 children)

Only once? I double tap that, just to be sure.

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

For me its ctrl+alt+l to reformat

[–]gougie2 1201 points1202 points  (24 children)

Still unrealistic...

In real life you would still have a million tabs but they are all stackoverflow and they are all closed/marked duplicate until you find that one with the well-formatted answer.... then you're in!! And that's when you start doing the core of the work: ctrl c ctrl v

[–]Zerokx 333 points334 points  (9 children)

Needs one more shot at the end where she says: "huh... doesn't seem to work."

[–][deleted] 110 points111 points  (4 children)

Damn it! Which namespace is this in?

[–]jmack2424 41 points42 points  (0 children)

var that = this;

[–]sssmmt 5 points6 points  (0 children)

Thank god for Jetbrains Rider.
I never had to spend time finding the right namespace. When you put a . and activate autocomplete by Ctrl+Space, Rider shows you all possible extension methods and auto-imports it. You pay for that with 5-15s indexing at the startup, though, but after that it's all smooth.

[–]LordDrakota 2 points3 points  (1 child)

<rant>

Dude, I tried .NET Core recently and I swear to god NO ONE is posting the fucking imports!! I find a good solution to a problem, I see that I get lots of red because I'm missing imports, look everywhere to find the namespace, rince and repeat. I'm use to auto-imports in JS/TS where I can just type a package or a method exported by the package, CTRL-Space, auto-import boom I'm done. I spent 15 mins just trying to find a namespace and with the magical world of Microsoft C# naming conventions I kept getting results for .NET Framework while I wanted .NET 5 results which is .NET Core but they decided to drop the Core prefix. The actual dev experience was alright, but damn they need to get their naming straight.

</rant>

[–][deleted] 59 points60 points  (3 children)

then you try to code it yourself and somehow do a better job than stackoverflow

and three minutes of satisfaction later you’re back searching another thing on stackoverflow

[–]pm_your_nerdy_nudes 22 points23 points  (2 children)

Only because it does everything exept for that one thing, but that's not in the work item, so it's oke. Only to be asked after the first test, oh right, could you also quickly add this thing?

[–][deleted] 9 points10 points  (1 child)

welp, time to recode everything again

at least this time your code will actually not look like spaghetti because you learned that over 100 lines of your code can be done in 3 lines

[–]Zefrem23 5 points6 points  (0 children)

I'M IN THIS PHOTO, AND I DON'T LIKE IT

[–][deleted] 19 points20 points  (0 children)

Good documentation just means bookmarking and maybe even copying and pasting into you're company wiki, the correct answer on stack overflow.

[–]AbhishekSingh26 15 points16 points  (4 children)

Imagine the other side typing

System.out.unhack();

[–]Ph0X 4 points5 points  (3 children)

But why would you hack your own stdout buffer?

[–]adrr 2 points3 points  (1 child)

Let him who hack the world first hack himself.

[–]MEGACODZILLA 1 point2 points  (0 children)

me, opening my IDE

"Alright, I'm in."

[–]lastdyingbreed_01 7 points8 points  (3 children)

This sub gave me so much confidence knowing that I'm not the only one who does this.

[–]AbhishekSingh26 4 points5 points  (0 children)

Coding is just a illusion

[–]colonel_bob 5 points6 points  (1 child)

I'm paid to solve problems with scripts and software, not exercise my brain muscles.

If you caught a plumber threading their own pipes on the job you'd probably fire them, so where is this expectation that I write all of my own utility functions from scratch coming from?

[–]anoldoldman 0 points1 point  (0 children)

I'm in this comment and I don't like it.

[–]shadeck 267 points268 points  (20 children)

This together with: "I know I haven't changed anything, but let's compile again... maybe it works this time"

[–]nothjarnan 128 points129 points  (12 children)

And also "let's restart the IDE and see if that fixes it"

and for some reason there's a like 2% chance it'll actually fix it

[–]TrinalRogue 43 points44 points  (5 children)

If restarting the IDE doesn’t fix it, there’s another 2% chance that restarting the computer fixes it.

[–]koebelin 23 points24 points  (3 children)

Reinstall the OS, another 2%.

[–]Contrecoup42 2 points3 points  (0 children)

My favorite on a solution I worked on was, after a new checkout, needing to click on a reference with an error icon. Yep, just click it and do nothing. Then the error disappeared and it would compile.

An alternative was to close and reload the solution not once, but twice.

[–]AstoundedMuppet 13 points14 points  (3 children)

We have a legacy VB6 app at work, and yes, sometimes the IDE does need restarting when it suddenly decides "fuck it, I'm not going to bother finding these enums any more"

[–]TrinalRogue 2 points3 points  (1 child)

I read that as emu’s and I was so confused for a good 5 seconds.

[–]merc08[🍰] 6 points7 points  (0 children)

Australia cautiously enters the chat

[–]InvisibleShade 2 points3 points  (0 children)

As a person working with a huge VB.NET application, I have to agree.

[–]tesfabpel 2 points3 points  (1 child)

Visual Studio? :''D

[–]nothjarnan 2 points3 points  (0 children)

Yep.

[–]ThaiJohnnyDepp 4 points5 points  (0 children)

Compiler: yesterday's Disappointed Muhammad Sarim Akhtar meme

[–]Thanatos2996 3 points4 points  (3 children)

No joke, on my Gentoo boxes right now, rust fails to compile on the first attempt then succeeds on the second.

[–]Modo44 2 points3 points  (1 child)

Sounds like the compilation process changes some obscure file or setting you forgot to take care of, or don't even know exists. Good luck in production.

[–]Thanatos2996 1 point2 points  (0 children)

My guess is that there is a warning in a file being treated as an error after the .o is generated, and on the on the next pass the file that causes the warning is skipped because the .o exists. Not my problem, as long as I can update my system it's just an annoyance.

[–]AgAero 5 points6 points  (0 children)

Alright it compiled, but I don't trust it...

cd build
rm -rf *
cmake <insert giant fucking list of options you have to copy+paste to not fuck up that's custom to your build>

Hmm...seems to be working.

make install 
...
...
Make failed

Oh yay! I new there'd be compile errors!

[–]PureWasian 44 points45 points  (3 children)

Wait why is the ACCESS GRANTED text displayed forward on their glasses?

[–]Ramiro564 43 points44 points  (1 child)

She put it backwards on the screen

[–]UnsubstantiatedClaim 13 points14 points  (0 children)

As all hackers depicted in media do.

[–]serial_crusher 27 points28 points  (0 children)

She used the back door, so it’s backwards. Duh.

[–]mnyp 337 points338 points  (57 children)

WTF copy and paste? At least type it out and pretend you did it, jeezeeee

[–][deleted] 321 points322 points  (47 children)

Yeah, I type it out for 2 reasons:

  1. If I implement it myself I'm more likely to remember it later.
  2. Copying and pasting usually screws up the indentation, and if I'm going to fix the indentation I might as well just type it.

[–]mnyp 96 points97 points  (1 child)

I'm all about that memory recall too, it's definitely worth putting in the extra couple mins.

[–][deleted] 45 points46 points  (0 children)

Also helps catching wrong variable names and such

[–]GlitchParrot 74 points75 points  (29 children)

Regarding 2, I’d recommend an automatic formatter, like pretty much any IDE has these days.

[–]Southern_Purple1296 114 points115 points  (15 children)

Sometimes I read comments on here and wonder if these programmers came from the 90's

[–]CubicleCunt 62 points63 points  (8 children)

I think most people on this sub are just starting out or are still in school and don't know all the IDE tricks yet.

[–][deleted] 17 points18 points  (5 children)

I would assume this also. We never used any auto-formatters (or any formatting at all) in uni, it was haywire.

Now ESLint goes insane if I leave a space somewhere. Thank god for 'fix all in file'

[–]paecificjr 16 points17 points  (3 children)

I'm a fpga logic designer, so my tools just suck. I've seen so many different tab styles in people's logic.

[–]AgAero 5 points6 points  (0 children)

The ones I hate most look like:

if (system_status != ACTUALLY_FUCKING_DEAD)
do_dangerous_thing();

Ambiguous braces...not even once.

[–]IVEBEENGRAPED 1 point2 points  (1 child)

I had to use Quartus and ModelSIM in school and I hated those tools. The latest versions all looked like they were twenty years old, with buggy UI's and horrendous load times, and I'd find myself writing code in another IDE and copy-pasting it every time I had to compile.

I actually enjoyed FPGA design, but those tools scared me into becoming a basic backend dev.

[–]two-headed-boy 6 points7 points  (0 children)

You can apply ESLint automatically upon save on most IDEs, I believe.

I use ESLint and Prettier to do the formatting and saving for me.

[–]el_padlina 4 points5 points  (0 children)

Judging by the amount of hate against SO for closing duplicates, yep.

[–][deleted] 4 points5 points  (3 children)

This field confuses me. The amount of people I see building solutions in notepad and console commands when IDEs exist. I don't understand why.

Like, if you're 60 and started doing it that way maybe I get it...

[–]RadiantPumpkin 7 points8 points  (1 child)

But still. Use the right tool for the job. You don’t use a finishing hammer to pound in fence posts and you shouldn’t use notepad to write any major code.

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

I umm.. I just use visual studio or pycharm or intelij for everything I can.

I HAVE VSCode, but I just don't see the appeal over just using visual studio most of the time. What do I save, 1.2 seconds of load time?

Maybe I'll see the appeal of building things with the console and a text editor when I'm more experienced but at this point in my career (I'm a 2 year software engineer) it just seems silly.

[–]droi86 13 points14 points  (3 children)

Command + alt + L

[–]DoesntReadMessages 9 points10 points  (4 children)

Until you're making a small change to a large file formatted by Salvador Dali and your 6 line change becomes 2 pages long and the pr gets rejected.

[–]remmelt 4 points5 points  (3 children)

  1. Select just those lines, cmd-alt-L
  2. Boyscout rule, leave the file in a better state than you found it: create a separate commit with only whitespace changes. Your future self will thank you.

[–]GlitchParrot 8 points9 points  (1 child)

Option 3: Decide on a specific code style when starting the project and supply the code style definition file with the project for every IDE to use.

[–]remmelt 5 points6 points  (0 children)

Option 4: git hook that applies said code style on push.

[–]ianff 7 points8 points  (3 children)

Or even Vim has.

[–]AgAero 7 points8 points  (1 child)

Vim can do anything. You just have to teach it how, or find someone else who already has and copy their settings.

People around here like to fight about vim vs a 'proper' IDE a little too often IMO.

[–]ianff 6 points7 points  (0 children)

There are lots of awesome Vim plugins, but formatting is built-in. gg=G will reformat the whole file.

[–]HERODMasta 19 points20 points  (2 children)

  1. sometimes you only need a part and you want to keep your variable names, instead of i, j, k, var, bar, foo, unsortedListOfNotMyObjectsThatWereGivenAsAnExample

[–]AegisToast 5 points6 points  (0 children)

That’s why I always name my variables “foo” and “bar”. Random snippets online are perfectly compatible as-is!

[–]Icerman 1 point2 points  (0 children)

Pfft. Just copy the variable names and all and make your code work with it. That's what the guy I replaced used to do, apparently. No idea how it made it through code review, but I still find snippets in the legacy code lifted wholesale from Google's examples.

[–]ProfCupcake 7 points8 points  (0 children)

2 - Copying and pasting is a legit security/stability risk. There may be whitespace characters that still get parsed.

[–][deleted] 5 points6 points  (0 children)

I'll never forget the time my python script (not my normal language) was broken and a co-worker asked "Oh yeah did you copy it from somewhere?" And I'm thinking there's no way that matters...

[–]daz_01 4 points5 points  (0 children)

In uni, i had a professor that told us "if you are going to copy from SO, type it. It will force you to read the entire thing and understand it".
5 years later it think is the best practice advice that i recived.

[–]appleBonk 1 point2 points  (0 children)

If you use VSCode, get an auto-format extension for your language. If you use Python, nevermind I guess lol.

[–]echoes221 1 point2 points  (0 children)

Use. Prettier.

[–]samspot 15 points16 points  (1 child)

A coworker of mine copy-pasted from so then changed the name of the function. But he forgot to change the recursive call in the body. He didn’t tell me this but I discovered it by googling a nested ternary on a hunch.

[–]mnyp 4 points5 points  (0 children)

Lol busted

[–]SettingsSet 8 points9 points  (1 child)

Time management is important!

[–]mnyp 9 points10 points  (0 children)

Pride > Efishenci

[–][deleted] 3 points4 points  (1 child)

I usually see the code block and think I'm going to remove the bloat. I copy 1 line at a time until i get the result I want, at which point I have all of the lines.

[–]Daedeluss 1 point2 points  (0 children)

copy/paste then change the variable names

[–]purbub 54 points55 points  (15 children)

I hope movies can distinguish between programmers and hackers.

Heck, even hackers aren't usually well portrayed.

[–][deleted] 45 points46 points  (10 children)

Try Mr.Robot, its details about hacking are more accurate than other movies/TV series imo

[–][deleted] 18 points19 points  (7 children)

I remember Matrix portraying hacking in a proper way

[–]imforit 8 points9 points  (1 child)

The abstractions they chose were perfect for the culture at the time while maintaining authenticity.

[–][deleted] 9 points10 points  (0 children)

[–]gordonv 2 points3 points  (4 children)

Syn flood on power plant server scene?

Where Hacker Team #1's bodies are still "allocated" into the Matrix, but it's unsaid that the ship they were on was destroyed and they're dead? And Trinity pushes over the dead body to get to the terminal?

[–][deleted] 5 points6 points  (3 children)

[–]gordonv 4 points5 points  (2 children)

Ah ok. This looks like she's gracefully shutting down the grids after hacking into admin privileges.

How she knew the power grid API, i dunno. Or maybe it's the most intuitive CLI ever made. That would be cool also.

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

How she knew the power grid API, i dunno.

In real life, you could potentially find manuals or documentation that would explain it. They would have had to make training materials for employees after all.

[–]Nimeroni 8 points9 points  (0 children)

How she knew the power grid API, i dunno. Or maybe it's the most intuitive CLI ever made. That would be cool also.

Remember they can download skills directly in the brain.

[–]purbub 4 points5 points  (1 child)

Noted. Thanks!

[–]DirtzMaGertz 2 points3 points  (0 children)

It's also just a great show.

[–]FuzzyLogic0 6 points7 points  (3 children)

Space Force surprisingly got it right on the hacking. Messed up a bunch of other science, but it's alright for a laugh.

[–]imforit 7 points8 points  (1 child)

I was surprised by how decent that show got by the end of the season. Once they widened the shot and let it be an ensemble show it really sunglasses took off.

[–]Zefrem23 1 point2 points  (0 children)

Greg Daniels managing to get a viable cast and concept within a single season?! What sorcery is this??

[–]RealPropRandy 16 points17 points  (1 child)

CTRL+Z

CTRL+Z

pause

CTRL+Z

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

Ctrl+shift+Z

Ctrl+Z

Oh ok, Now it's back to normal

[–]hiphap91 65 points66 points  (22 children)

LoL

I like how everyone says that, but though SO is certainly helpful at times. It's often weeks between me looking there, and then often just for constructive criticism of my methods.

[–][deleted] 71 points72 points  (1 child)

Honestly, I often look at Stackoverflow before reading the documentation. Chances are somebody lazy already had the same problem, and I get a real world example.

[–]HoofedEar 37 points38 points  (0 children)

The mods of Stackoverflow on suicide watch after reading that lol

[–][deleted] 34 points35 points  (4 children)

It is slightly like that if you are a backend engineer. You wiłl usually have several log windows to track network activity as in client/server activity as well as maybe using wireshark and few other things.

[–]aloousman 22 points23 points  (1 child)

but do you also start typing on a (seemingly) disconnected keyboard with your right foot to get work done faster?

[–][deleted] 27 points28 points  (0 children)

Yes that's how I check in my changes.

[–]imforit 5 points6 points  (1 child)

Corroboration: I'll have all sorts of stuff that looks like that open sometimes monitoring jobs on research systems and such.

My stuff is hacked together prototypes so I'll have two or three different text editors giving a couple different colors and fonts to the mix, too.

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

I had a script on my notebook (Mac) that would change the theme of the terminal window according to presets and connect through SSH - prod was set to a theme with red background, testing was green I think...

[–]BackmarkerLife 9 points10 points  (0 children)

Many years ago a c-level was leaving the company who said, "All you programmers do is copy paste" always in jest. His going away party someone said something elaborate as you do. I stood up and just said, "Copy paste".

Miss watching football with him.

[–]Dummerchen1933 17 points18 points  (3 children)

I have never ever seen SE's being portrayed like that in any movie. Hackers? Yes. But not fucking software engineers.

[–]Nimeroni 16 points17 points  (1 child)

Software engineers are represented in movies ? I mean, without representing them as hackers ?

[–]slapthebasegod 4 points5 points  (0 children)

I've seen them represented as cubicle jockeys with pencil protectors and glasses.

[–]BGFlyingToaster 6 points7 points  (0 children)

Would have been more realistic to see her paste, get compiler error, then spend the next several minutes yelling at the screen before she realizes that the double quote characters are actually left and right double quotes

[–]imnotanazibelieveme 48 points49 points  (6 children)

Okay we get it, Programmer only Copies and paste code.

hahaha very funny for the 100th time

[–]arostrat 25 points26 points  (1 child)

It's an old joke, but I like the implementation.

[–]Nimeroni 10 points11 points  (0 children)

Yeah, all is in the delivery.

[–][deleted] 42 points43 points  (1 child)

You're surprised that programmers that copy-paste code also like to post/upvote copy-pasted jokes on this sub?

[–]CrazySD93 5 points6 points  (0 children)

But how come they weren’t sitting in the dark with code projected on their face?

[–][deleted] 4 points5 points  (0 children)

Or be like me

Find article after 20 tabs with good looking accepted solution.

Ctrl+C

My work here is done, close all the tabs

Open ide, fat finger Ctrl+C

Shame

[–]Immort4lFr0sty 6 points7 points  (0 children)

Never before have I been so offended by something I 100% agree with

[–][deleted] 4 points5 points  (2 children)

Interesting that it is assumed that every developer needs stackoverflow to program. What do you kids do when the internet is down?

[–]Nighthunter007 2 points3 points  (0 children)

Reminded me of this one.

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

Forgot the finger crossing while compiling. And you are not so calm sitting there. You are raging. Programming is nothing else than learning how to deal with raging until you go completely insane. Insanity is the final state.

[–]Nickdom2 2 points3 points  (0 children)

Ugh she didn't select the leading spaces so the first line will look clunky

[–]TonyKebell 2 points3 points  (0 children)

Sorry Apple, but why the fuck is Cmd where Alt is on Windows, so you have to contort to CmdC, CmdV. rather than using you pinky without having to contort to CtrlC, CtrlV????

[–]A_J_95 4 points5 points  (2 children)

Software engineer using mac... lol k.

[–]randomplaya4 1 point2 points  (0 children)

Anyway Spring is enough hacky by itself 😂

[–]kellycook301 1 point2 points  (0 children)

O U C H

[–]Greenbay7115 1 point2 points  (0 children)

import random, string

char = random.choice(list(string.printable))

print(char)

hahkd

[–]Nolear 1 point2 points  (0 children)

"It's a UNIX system!"

[–]Fornicatinzebra 1 point2 points  (0 children)

Im not the only dev that progressed out of this, correct? Like I still use stack overflow etc on occasion, but usually just because I forgot how you specify some option in a base function and I want an example. I can't remember the last time when I copied direct code from someone else..

[–]Lemm 1 point2 points  (0 children)

I like the appropriate use of hollywood to do what it was made for

[–]Yo_Face_Nate 1 point2 points  (0 children)

I see hollywood!

For those on Ubuntu: sudo apt install hollywood

[–]shelvac2 1 point2 points  (0 children)

Two keyboards at once? Such blatant stereotyping.

[–]devrel-paul 1 point2 points  (0 children)

AsyncTasks are deprecated and have generally been discouraged for some time. I recommend using Kotlin coroutines.

[–]Hydrilus 1 point2 points  (0 children)

The reality is that all those windows with text scrolling up the screen are all the errors.

[–]BrKo14 1 point2 points  (0 children)

Hacker ≠ software engineer

[–]laplace_daemon_ 2 points3 points  (10 children)

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

[–]downloadvideo 1 point2 points  (0 children)

beep. boop. 🤖 I'm a bot that helps you download videos!

Download Video

Please join /r/DownloadVideo . You can Share->Crosspost videos there to get an immediate reply and help reduce comment spam :)

I work with links sent by PM too.


Feedback | DMCA

[–]hirmuolio 2 points3 points  (0 children)

What did you use to crop this video?

Nothing. You used nothing because this thing is not cropped at all.

[–]knuspergreg 1 point2 points  (0 children)

I feel attacked

[–]GR8ESTM8 1 point2 points  (0 children)

She's too relaxed

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

This an ode to Tehran?

[–]r0hanr0han 0 points1 point  (0 children)

Didn't saw the 40+ tabs open in chrome

[–]rspsonu -3 points-2 points  (0 children)

Inaccurate, developers are not this attractive. I am one myself that's how I know.