In my experience it's the first thing you use as a CS student when you have to do group projects, because everyone already knows how to use it from highscool.
My experience is the opposite. No one fucking knew how to use file sharing. Suddenly you'd have 5 million emails asking for permission to the folder because no one fucking knew how to switch accounts from funkybunny68@gmail.com to astudent@university.edu
No damnit! It shall start with the name of the file for no damn reason followed by hundreds of lines of legal copyright disclaimers that everyone will ignore anyways.
Yes! Right after the title of each chapter, say chapter 4, the first line will be “chapter 4”. After that will be the full terms and conditions of using the chapter which will have been repeated on every chapter, the front of the book, and a tiny fine print version in the margins of each page.
"foxtrot oscar romeo space opening parenthesis india november tango space india equals space zero semicolon space india space less than space alpha romeo romeo alpha yankee decimal sierra india zulu echo opening parenthesis closing parenthesis semicolon space india affirmative affirmative closing parenthesis opening curly brace..."
You still couldn't. You would have to run the code inside your brain and if you mess things up your brain could get stuck. So always think of a sandbox running your code inside your head to be sure.
I coded a program to convert decimal to binary when I was 12, spent hours on it. Then found out there was a single line of code that could do it. That was when my programming career died.
To be fair, "reinventing the wheel" is one of the best ways to learn to code.
Many people have done it already, which gives you a ton of working examples and answered questions in forums. You get to familiarize yourself with the "primitive" aspects of a language. You gain a better understanding of projects that do this things behind curtains. It is overall a good thing when learning.
(That being said, you should use the pre-prepared stuff for actual work. It's often optimized and battle-tested. With things like cryptography, it's downright irresponsible to use your own code, if you didn't specifically trained for it.)
Remember, there's a reason students are still trained in sorting, even on the age of Python's "sorted()".
Edit: Just to add that, if you can afford the time, it's never too late to learn to code! As I said on a previous thread, even if you never use it for career purposes (and having a carrerable skill has never hurt anyone), there is a lot to be gained just for understanding your computer a little more and knowing how to do useful, practical things.
If you're like me, you've dabbled a couple times in Python and go 'hah totally' to the jokes in this sub while hoping you get enough skills one day to actually develop that idea you have but you know you won't.
Putting code on Google drive has serious issues when trying to collaborate on projects or even just using different computers to access the code. I lost a ton of work doing this
What actually is the best place to save your code? Like a library to reference to not so much collaboration. I’ve been super primitive with everynote bc haven’t put effort into fixing a better solution.
I mean... The answer you're looking for is bitbucket or github, and yes there's a small learning curve to it, however, it will be useful to learn for basically any career in software engineering, plus it's a really good way to keep track of resume builder projects.
Actually I have had some success by initializing a bare repo in a Dropbox folder, and have it act as an origin.
In fact, since I work on both my PC and my laptop, my private projects are on bare Git repos on a Dropbox folder - since I'm too poor to get myself a GitHub subscription.
checkout bitbucket or gitlab, I actually host my private stuff on gitlab because I prefer it, but I'm stuck on github for some of my more public things
As a beginning programmer putting my code on google drive is easier than uploading it to GitHub
Agreed 100%. Google drive is ten times easier. And also a lot safer. I've been banned from Github multiple times in the past for simply creating an issue in the NPM repo. I contacted Github by email, and they told me they have to side with the repo, and cannot unban. However, I don't really blame the Github stuff they were actually really cordial. But the repo admins/mods in NPM are very bad. I created an issue about how the node_modules was wiped after I ran npm install or w/e. They said it's not an issue and closed my thread. (Even though there was multiple issues already open about it).
They could have at least said closed as duplicate, but nope, they had to put that "not an issue" remark in there. They are very rude people. And quite frankly, I'm sick of them. IMO, they need to repent.
It's easier, but it's also the shittiest way to do it and you need to learn to use git, point blank. It's really not that hard, you just have to put in 10 minutes of using it and reading how it works and why it works to understand it. Tbh, the easiest way to learn how it works is get used to the easy stuff, and then learn the harder stuff as you go.
git init
Makes the .git folder in the project. From here, you find how to add your origin to the project, from github, bitbucket, etc. This is needed to fetch, pull, and push correctly from the right place and get code to/from "upstream". Remember, git fetch is always safe and can be ran even if you're going offline to have the most up to date code in git without merging your changes currently, very useful, allowing you to merge in the code you didn't have on your current branch later if need be. I'm talking going-offline situations and the like is where this helps a lot. If you add an upstream origin/master (github and bitbucket will have a "add this repo to a current project" command that gives you it) then you need to pull here.
Now, branch here, if you want. "git branch" will list all branches, "git branch [name]" will make a new branch on the current branches head, "git checkout [name]" will switch to a branch. These are useful to develop bigger features/changes outside of others, so you can rework stuff while working on other stuff still. You then merge branches together to get everything together. If there's conflicts, you can use meld for figuring out what of which to keep. I don't know if meld exists on Windows, but IDC welcome to loving Linux and not using trash OS's. Next...
git add ./*
This adds all the changes and files you want to it. Make sure your .gitignores are set up before this. If it adds too much crap, fix your gitignores and then just delete the .git folder and start over is usually how it's done with a fresh project.
git commit -m "Message title" -m "Long description of why this is needed, if needed."
This is to make the actual commit containing everything that we can then push to origin/master from our main branch.
git push
This pushes up stream to origin/master of your git repo for everyone else to then be able to pull and have the code changes. Once in a while if you're bad at git and the only person using it, you can push -f and rewrite the whole history with your current history. Combined with starting from the first steps here and deleting your .git folder, makes it so you have your current git in only one commit. In a big project, you don't ever do it and instead make new commits to fix old ones, always. If not, you can erase all the history and start from where you are with that. I do that on my person gits from time to time so when I open source some of this stuff, I don't seem like as much of an idiot as I am, heh.
You now know git better than 80% of the others using it, congrats.
Honestly, I forgot for a few years that SVN was a thing that existed. I used it once to download Garry's Mod content, but since then I've only ever heard programmers talk about git.
Or worse, having Subversion, but the few developers who work on the code never learned how to use it, and instead made all their changes directly on live for two years before you arrived on the scene.
Memorize code while under the influence of a specific drug or alcohol so the only way to recall it is to get trashed again due to state-based learning.
That's nothing. My friend takes a screenshot of his code with a few error messages on it. That's still nothing. He takes a screenshot using his phone camera when he could just take a 4k screenshot using only a few keypresses. Not to mention the quality of the screenshot. And the light ide background. Then I say I don't want to decypher that mess so send me the actual code, he copy-pastes it into messenger which results in everything messed up but at least I got the code finally.
An even higher level of sharing your code is type it into google translate, translate it to Chinese, click the say button or whatever it is, save the result, add some dog sounds in the background, some white noise, turn the volume down so much that you can barely hear anything from it even on max volume, zip it, change the extension to txt, open it with notepad, copy it and then upload it to pastebin.
Back in the nineties, they weren't allowed to export PGP to the rest of the world due to weapons export law. Instead they printed the source code in a book, which is perfectly fine to export. And to OCR.
One time I accidentally deleted all my code for a computer programming class but then I remembered I copied and pasted my code into Google search as a joke so I went into my search history and got my code.
You know, git + google drive isn't a horrible idea, if all you want is to use your code on your own and don't care about sharing. You still get branching, merging, and history.
Hashtag include less than sign stdio dot h greater than sign New line Hashtag include less than sign stdlib dot h greater than sign newline int main open perenthesies int argc comma char double astrix argv close parenthesies open curly bracket new line Foward slash times two TODO Return 0 semicolon Close curly brackets
So one of my classes my senior year of uni we had to do a group project in groups of 4. The 3 other people in my group seriously wanted to do everything on Google drive. They were SENIORS about to graduate in CS and had absolutely no clue how to use Git
They did something similar with PGP back in the day. Due to encryption export restrictions it was not possible to send the code out of the US - so the developers printed it as a book which they were permitted to export.
i had to work for a client a few years back that used SharePoint as thier source/version control. they would map the library on the machines and then just code like it was on thier desktop, when they make changes it would require checkout, it would manage versions, and then have checkins.... but fucking SharePoint.
Next higher brain: encoding character laterals of your code into an audio format, recording it on cassette tapes, and locking said tapes in a nuclear bunker. Play back into a mic on your PC that transcodes it back into text in your IDE.
826
u/Monckey100 May 16 '18
Just compile your code every time and reverse engineer it when you need to make changes ¯_(ツ)_/¯
1.8k
u/kopasz7 May 16 '18
My code is beyond saving.
896
u/poovine May 16 '18
"Chapter 1 ... public static void Main, beginning parenthesis, ending parenthesis, beginning curly brace ... "
137
u/h7x4 May 16 '18
Can someone pls send me some code for reverse engineering code that have been compiled to audio books on amazon? Need it in my life.
135
u/zushiba May 16 '18
Where is "Tweet every line, one by one"
219
u/DDCheater May 16 '18
Memorize it
54
u/keimarr May 16 '18
Why do I subscribe to this sub but know nothing about coding.
41
u/[deleted] May 16 '18
Ya'll are rookies.
Ctrl+A Ctrl+C
and just keep it in your clipboard until you need to edit it.
78
u/Coderz_ May 16 '18
I send my code by stork. I have the upper advantage here.
205
u/CoffeeInjectionPLS May 16 '18
As a beginning programmer putting my code on google drive is easier than uploading it to GitHub. I don't do it but it would be easier.
(I know that this is not the message of this meme)
15
u/cimbalino May 16 '18
svn tops all of those
15
u/yazalama May 16 '18
Uh, I feel like the guy in the meme can just store everything in his brain. I'm confused 😕
27
u/StrickerRei May 16 '18
BTW, my company is using svn, and i fucking hate it
10
u/Pinstar May 16 '18
Memorize code while under the influence of a specific drug or alcohol so the only way to recall it is to get trashed again due to state-based learning.
9
u/geddon May 16 '18
Isn't that what Udemy is for?
9
u/o11c May 16 '18
8
u/[deleted] May 16 '18
Publishing code as a book isn't unheard of. It's how Zimmerman published PGP to get around "munitions" export regulations
7
u/F1TZremo May 16 '18
Sending it to random people via facebook PMs tops all ;)
7
u/PM_ME_A_WEBSITE_IDEA May 16 '18
Please
Dropbox is best version control
2
u/Florinel787 May 16 '18
Even better: guthib.com
5
u/PolishedCheese May 16 '18
Save to Microsoft word and use volume level shadow copy as version control.
4
u/BenCollins24 May 16 '18
Notch approves of this
1
u/TheDukeOfPurple May 16 '18
Does anyone have a link to the tweet that that guy was replying to?
1
u/GDavid04 Sep 14 '18
That's nothing. My friend takes a screenshot of his code with a few error messages on it. That's still nothing. He takes a screenshot using his phone camera when he could just take a 4k screenshot using only a few keypresses. Not to mention the quality of the screenshot. And the light ide background. Then I say I don't want to decypher that mess so send me the actual code, he copy-pastes it into messenger which results in everything messed up but at least I got the code finally.
An even higher level of sharing your code is type it into google translate, translate it to Chinese, click the say button or whatever it is, save the result, add some dog sounds in the background, some white noise, turn the volume down so much that you can barely hear anything from it even on max volume, zip it, change the extension to txt, open it with notepad, copy it and then upload it to pastebin.
3
u/deuterium59 May 16 '18
AMAZONAWS
3
u/saargrin May 16 '18
Shit that reminds me I forgot to push
3
u/danielfa12345 May 16 '18
Save as txt and change the name to movie.mp4
2
u/FallingAnvils May 16 '18
Make a video of the code being read from a google drive then save that video on google drive
2
u/Saucyminator May 16 '18
Git*
2
u/PennDraken May 16 '18
Ctrl + S
2
u/ZeroBitsRBX May 16 '18
Pastebin is a couple miles further down.
2
u/Sinyuri May 16 '18
put it in notepad 🤔
2
u/oppilonus May 16 '18
Tbh: I've done the third one.
It was on a Ti calculator and I didn't have a backup battery or a back cover. A week later the batteries fall out and erase everything.
2
u/-bwei- May 16 '18
Put them on 3.5" floppies
2
u/[deleted] May 16 '18
Convert it to binary and read the zeros and ones and put it in an audiobook.
2
u/SolokOriginel May 16 '18
I relate to this so much
2
u/[deleted] May 16 '18
Write it down
2
u/Oladzsi Jun 04 '18
Next level: casually buying github
4
u/[deleted] May 16 '18
This is the least funny humor subreddit. Sucks cause it was initially pretty good, but going r/me_irl route now.
1
u/xXdimmitsarasXx May 16 '18
Just memorize it
1
u/[deleted] May 16 '18
First semester at university, didn't know anything about version control, we suggested Google Drive until prof pulled us up on it.
1
u/Pannuba May 16 '18
Or just use butterflies.
1
u/Waveseeker May 16 '18
Texting it in broken up 140 character sms
1
u/[deleted] May 16 '18 edited Apr 11 '20
deleted 0.7940 What is ^^^this?
1
u/[deleted] May 16 '18
It's just hours of Microsoft Sam babbling on and on.
1
u/aRealLivePerson May 16 '18
A professor of mine had me do version control with Evernote.
1
u/snorkleboy May 16 '18
I just have a photographic memory
1
u/TheOhNoNotAgain May 16 '18
Back in the nineties, they weren't allowed to export PGP to the rest of the world due to weapons export law. Instead they printed the source code in a book, which is perfectly fine to export. And to OCR.
1
u/Tornado9797 May 16 '18
Save the code on a 5 in floppy and take it everywhere you go. Lug around every converter necessary as well.
1
u/temisola1 May 16 '18
Memorizing it...
1
u/pdiddy618 May 16 '18
One time I accidentally deleted all my code for a computer programming class but then I remembered I copied and pasted my code into Google search as a joke so I went into my search history and got my code.
1
u/Stb-Lex May 16 '18
It misses the usb key and email to self methods
1
u/[deleted] May 16 '18
You know, git + google drive isn't a horrible idea, if all you want is to use your code on your own and don't care about sharing. You still get branching, merging, and history.
1
u/Dojo456 May 16 '18
Have you tried renaming your pc to be your code
1
u/limeyptwo May 16 '18
Notice, taking a *picture* not a *screenshot*.
shameless plug incoming /r/screenshotsarehard
1
u/Never-asked-for-this May 16 '18
Onedrive is the best!...
When it works.
1
u/DHermit May 16 '18
I once had a program backup by writing it by hand on papers. But that was for a calculator which wasn't able to connect to the PC.
1
u/limeyptwo May 16 '18
Writing down your code on lined paper.
1
u/[deleted] May 16 '18
Why would I want to go anywhere near anything even close to representational of Notch's code.
1
u/tcpukl May 16 '18
Perforce is free for 5 seats and used professionally. Oh and very powerful.
1
u/crazymatta May 16 '18
Or print your code on paper and key back if needed
1
u/Fire_______ May 16 '18
Save it in another language
1
u/cdiddy11 May 16 '18
Untitled1.txt, Untitled2.txt, Untitled3.txt
1
u/NikhilDoWhile May 16 '18
George Costanza way...
1
u/ScrewJimBean May 16 '18
Great for open sourcing.
1
u/OhhDanyboy May 16 '18
What the actual fuck, lol
1
u/naisooleobeanis May 16 '18
Hashtag include less than sign stdio dot h greater than sign New line Hashtag include less than sign stdlib dot h greater than sign newline int main open perenthesies int argc comma char double astrix argv close parenthesies open curly bracket new line Foward slash times two TODO Return 0 semicolon Close curly brackets
1
u/jgh9 May 16 '18
rcs -ci code.sh
1
u/MostlyCripple May 16 '18
Just imagine reading Java
1
u/mobilereadingthrwawy May 16 '18
I add a new contact and use the "Notes" section to save my code. (Android)
1
u/rulerdude May 16 '18
So one of my classes my senior year of uni we had to do a group project in groups of 4. The 3 other people in my group seriously wanted to do everything on Google drive. They were SENIORS about to graduate in CS and had absolutely no clue how to use Git
1
u/[deleted] May 16 '18
I have Git repositories that get backed up to Google Drive.
Ok I used to but now I just use BitBucket because it's free
1
u/mirhagk May 16 '18
var yanny;
1
u/ytrewq45 May 16 '18
Smh just trace over your screen with a knife to etch the code into the glass
1
u/jzoller0 May 16 '18
MS Word belongs somewhere in the middle on there
1
u/mad-n-fla May 16 '18
Put it on ftp and let the world rsync it?
1
u/errorg May 16 '18
My favourite part would be the corrections at the end because of how much it's changed during recording.
1
u/program_kid May 16 '18
Writing down the comments you made on Microsoft paint
1
u/keenumsbigballs May 16 '18
Converting your code to morse code and storing the audio file of yourself speaking the series of dots and dashes on an alt coin blockchain...
1
u/devBowman May 16 '18
Excuse me, but real programmers use butterflies.
1
u/alterak11296 May 16 '18
Or...reading it aloud to Siri and tell her to remind it later...
1
u/mcbergstedt May 16 '18
I print my code out, then whenever I need it I scan it into a PDF document, convert to word, then copy and paste it into notepad.
1
u/Ghazzz May 16 '18
Almost serious question.
Would this qualify as "making your changes available" in relation to open source?
1
u/pronomicalartist May 16 '18
If you're working alone drive is not really a problem
1
u/teambob May 16 '18
They did something similar with PGP back in the day. Due to encryption export restrictions it was not possible to send the code out of the US - so the developers printed it as a book which they were permitted to export.
1
u/Surraucus May 16 '18
I usually just spam ctrl+s 6 times after every 10 words
1
u/Nikerym May 16 '18
i had to work for a client a few years back that used SharePoint as thier source/version control. they would map the library on the machines and then just code like it was on thier desktop, when they make changes it would require checkout, it would manage versions, and then have checkins.... but fucking SharePoint.
1
u/Kent1021 May 16 '18
oh god. my brain hurts seeing that
1
u/ekinnee May 16 '18
I have git repos on OneDrive...
1
u/definitelynotdaniel May 16 '18
So that's who stole my Twitter account
1
u/SolsKing May 17 '18
"import java dot util dot ... import java dot i o ... dot import java dot ..."
Falls asleep
1
u/[deleted] May 17 '18
Print it, stick it an envelope, and light it on fire
1
u/werelaxe May 17 '18
Remember SHA-256 of your code. And recover with brute force, when it necessary.
1
u/a_n_d_r_e_w May 17 '18
Imagine writing the audiobook. That's like the rubber duck method but worse cause you'll probably find an error every minute or so
"...then THAT value runs through the.. wait shit"
types for 15 minutes
Repeat process 500 times
1
u/superjisan May 17 '18
what kind of sociopath puts it on Google Drive?
1
u/tloch14 May 17 '18
Next higher brain: encoding character laterals of your code into an audio format, recording it on cassette tapes, and locking said tapes in a nuclear bunker. Play back into a mic on your PC that transcodes it back into text in your IDE.
1
u/Tomeryp May 18 '18
you can probably automate your version control flow to use text-to-speech and and voice recognition.
1
u/nopokejoke May 18 '18
"space, space, space, space"
1
u/Piblo May 18 '18
Worked with a guy that would print it...and then use them somehow when he made changes...never understood it..he didnt last long.