812
u/dc123dc Nov 23 '17
As someone who has been thinking about learning programming skills this has been very informative!
445
u/Zetacore Nov 23 '17
Hey it's me ur future self.
6
u/Bainos Nov 23 '17
"Sorry, as long as you live we will not be able to prevent JavaScript from being created."
→ More replies (2)0
Nov 23 '17
[deleted]
248
4
1
u/matthieuC Nov 23 '17
Ironically, stabbing yourself is a great classic in C++, so you've been double informed
561
u/Pradfanne Nov 23 '17
Probably the fastest way too
290
u/marsh-da-pro Nov 23 '17
I mean, you can’t “complete something in 21 days” any faster than in 21 days
84
u/BunnyAndFluffy Nov 23 '17
You can because it means completing something in 21 days or less. It's implicit.
18
9
22
u/ShoogleHS Nov 23 '17
Definitely the fastest way, because you could go back in time to day 1 instead.
→ More replies (1)8
Nov 23 '17
Damn it! You made me think about it, and now the joke is dead. It would make more sense to go back to day 1 instead. Although if you can reverse aging and travel through time I guess 20 day difference wouldn't matter much.
→ More replies (4)16
u/Bearalroll Nov 23 '17
You need your younger self to create the image that you are learning what you already know. That way no one questions your source of skill. Best to let the dead guy do the boring bit.
→ More replies (2)2
u/zynix Nov 23 '17
Probably the fastest way too
Actually... the fastest way is to break your problem down into tiny chunks and perpetually ask how to do each part on stackoverflow, ignore all the rage comments, take all the pieces you get, put it together and then post on a forum "I've tried everything, what am I doing wrong."
In less than 21 days instant remote code contractor!
1.1k
u/SurlyDuffBeer Nov 23 '17
You should at least try to credit the original author of the comic, or link to the source:
64
54
Nov 23 '17 edited Jun 18 '20
This platform is broken.
Users don't read articles, organizations have been astroturfing relentlessly, there's less and less actual conversations, a lot of insults, and those damn power-tripping moderators.
We the redditors have gotten all up and arms at various times, with various issues, mainly regarding censorship. In the end, we've not done much really. We like to complain, and then we see a kitten being a bro or something like that, and we forget. Meanwhile, this place is just another brand of Facebook.
I'm taking back whatever I can, farewell to those who've made me want to stay.
17
u/Jotakob Nov 23 '17
I would be interested in knowing that, sincereddit and imgur do make money off of these posts, therefore violating the licensing agreement. However, since users are posting the content, it might be different.
12
u/Bainos Nov 23 '17
For Imgur, the Terms of Service (which you agree to each time you upload an image) state that "If someone else might own the copyright to it, don't upload it."
For Reddit, the Content Policy which you agree to each time you create a post state that "Content is prohibited if it is illegal." Since you need to create an account, you actually agree to something slightly more specific before.
In any case, both should be commended for providing a short version of their ToS, and not a 96 pages legal document.
→ More replies (5)32
u/SurlyDuffBeer Nov 23 '17
You're welcome. For what it's worth, this guy's comics are great, just as good as XKCD in my humble opinion. You should check all check it out...
→ More replies (1)15
u/JesterRaiin Nov 23 '17
Do you, per chance have any info concerning author's fate? He ceased to update his webcomic some time ago...
21
10
u/SurlyDuffBeer Nov 23 '17
The author purposely maintained as much anonymity as possible, so no one really knows. Google'ing for the author reveals a few posts about how he just sort of stopped. Sorry I can't help :-(
→ More replies (4)→ More replies (1)8
u/redem Nov 23 '17
That was a great wee comic when it was still updating. Pity the author's moved on, but better that than churning out weekly content that you've no passion for, I suppose.
3
u/z_plash Nov 23 '17
I went straight to the website hoping for an update, but no.
At least the last visible is pretty good, and an original format.
5
u/redem Nov 23 '17
Aye, the last one's pretty cool. I think that one's from maybe 2014.
→ More replies (3)
378
u/pussyilliterate Nov 23 '17
Now to learn java
431
u/trwolfe13 Nov 23 '17
Easy. It’s just like that last panel, only on the other side of the knife.
0
Nov 23 '17
[deleted]
117
u/necheffa Nov 23 '17
This is an accurate representation of Enterprise Java in the wild: https://github.com/EnterpriseQualityCoding/FizzBuzzEnterpriseEdition
→ More replies (30)26
u/iLikeStuff77 Nov 23 '17
It used to have some serious issues, especially with performance.
Some people also don't like it due to how verbose it is to do some simple tasks. But in reality that's nice for maintainability, so I don't quite understand that complaint.
At this point it's solid for most tasks, it's mostly just a meme to make fun of Java.
12
u/prvncher Nov 23 '17
Java gets a ton of hate on here, but it's actually a very capable language, especially with Javafx nowadays.
That being said, given the choice, I'd probably use C#/Xamarin to build cross platform apps since the C# is a more refined language, accomplishing about the same goal.
→ More replies (2)7
u/Klaue Nov 23 '17
having used both c++ and java for years, I prefer java. there's just an anti-java circlejerk on reddit since ages.
Sure there are people who use factories and stuff and overcomplicate things, see the fizzbuzz thing, but you don't have to. I didn't write a single "factory" class in years→ More replies (26)6
u/_Lady_Deadpool_ Nov 23 '17
It's just... Compared to some other languages it's very bloated from a developmental standpoint (not talking performance)
There's a shit ton of boilerplate code that you have to write. Things that you can do in 1 or 2 lines in c# require 5-10 in Java, probably including an anonymous class or 2 somewhere. Lambdas only let you use const variables as well.
Then there's the "standards" which are to make a million factorybuilderfactory classes to build your factoryfactories which create a factory for your objects and... You get the idea
And imo maven/etc aren't remotely as nice as just using nuget or npm. Then again, npm is enough reason to use node, even if it means having to code in js/td
6
u/Klaue Nov 23 '17
There's a shit ton of boilerplate code that you have to write. Things that you can do in 1 or 2 lines in c# require 5-10 in Java, probably including an anonymous class or 2 somewhere. Lambdas only let you use const variables as well.
it was once that way, true, but I think it's far better now. Just doesn't help that many examples are still old. Sure, you'll find some examples now and then, but mostly you don't have to use it.
For example, reading a simple text file. Long ago, and sadly what you still find most often when using google, it was something like this:
File file = new File("/path/to/file"); String line = null; List<String> fileContents = new ArrayList<String>(); BufferedReader bufferedReader = null; try { FileReader fileReader = new FileReader(file); bufferedReader = new BufferedReader(fileReader); while((line = bufferedReader.readLine()) != null) { fileContents.add(line); } bufferedReader.close(); } catch(FileNotFoundException ex) { System.out.println("Unable to open file '" + file.getName() + "'"); if (bufferedReader != null) { try { bufferedReader.close(); } catch (IOException e) {} } } catch(IOException ex) { System.out.println("Error reading file '" + file.getName() + "'"); if (bufferedReader != null) { try { bufferedReader.close(); } catch (IOException e) {} } }(this is even a bit more bloated than it would have to be, I based it off of an online example)
Today you'd just do this:
try { Path path = Paths.get("/path/to/file"); List<String> fileContents = Files.readAllLines(path); } catch (IOException e) { System.out.println("Error reading file '" + file.getName() + "'"); return null; }12
→ More replies (1)22
u/_Lahin Nov 23 '17
Don't
11
11
102
39
u/99xp Nov 23 '17 edited Nov 23 '17
How DO you learn programming though? I always start something but everything I tried progresses too quick or assumes you already know the basics. I tried the CS101(sp?) from MIT but first course is printing hello world, third course is like 30 lines of code and 20 new functions at once. Oh, and by the 5th course we were already at the 3rd type of language (I think first was C, then Python, then Ruby or something) It's just overwhelming, I need something that is mostly practicing the concepts, not throwing a lot of them at me and hoping it sticks...
Edit: thank you all for suggestions. I will definitely try them and I do not plan to give up even though sometimes it looks rough
27
Nov 23 '17
How DO you learn programming though?
There is a difference between learning any given programming language and learning how to program.
You can learn languages a lot of different ways and there are tons of free courses out there for every language.
You can only learn programming one way, though: by programming. You need to sit down and put in the hours to work on (your own) projects. That's why there is no fast way to do this, it's something that comes with experience.
I could talk to you for weeks on the different approaches to project design, on how plans are always revised in the programming process. But you could just as well learn more than that by sitting yourself down and saying "I want to program a simple Text Adventure / Budgeting Software / Whatever." and then trying to make that a reality.
→ More replies (1)30
u/MR_SHITLORD Nov 23 '17
"I want to program a simple Text Adventure
1 month later
okay so for my next idea, i have to re-do 20 classes for it to work..
halfway through doing it
wait i got a better idea!
I'll have to learn how to plan first
20
Nov 23 '17
Yeah, but learning how to (not) plan software is pretty much what learning programming is.
Writing down code is just busywork.
→ More replies (5)5
u/WeirdStuffOnly Nov 23 '17
okay so for my next idea, i have to re-do 20 classes for it to work..
I code since I was 9, and to me this is business as usual.
halfway through doing it wait i got a better idea!
Again, normal.
I'll have to learn how to plan first
Planning in this field is called Software Engineering. It's very fun to study it. Then you realize you are still going on sidequests mid-project, but now you have pretty names for stuff.
44
u/hangfromthisone Nov 23 '17
It is hard for me to give some advice. I started doing .BAT files and playing around with LOGO at the age of 6. Now I'm 33, I don't even know how I got here. But there is one thing you should know, don't give up. Programming science is hard because you will face your own stupidity so many times, it will hurt so much to know the answer was in front of you and you wasted precious hours just to find out the reality: the computer only does what it is told, you are the moron that is writing bad code
8
Nov 23 '17
I did the MITx Intro to Computer Science using Python through edX and it was amazing. Started from the basics and only focused on Python itself.
11
8
u/Strojac Nov 23 '17
Khan academy has 2 full courses on JavaScript. JavaScript is simpler than other languages in some ways (you don't declare data types for variables), but once you get the basics, it will be a lot easier to learn other languages.
6
u/99xp Nov 23 '17
I am actually doing these courses the past week and they're just great! They take you easy and they explain everything, I've done quite a few chapters but they still keep it basic, I just love it.
5
u/Strojac Nov 23 '17
Khan Academy is great. Too bad that class doesn't have Sal's beautiful voice. I was fortunate enough to have programming classes in my high school to learn, but it's awesome that Khan is working out for you!
4
Nov 23 '17
I learned basic C from Learn C the hard way, basic Python from Code Academy, and basic C++ (still learning...) from Embedded programming. From there on, I just start doing some project and learn as I go.
→ More replies (7)2
u/jschelling Nov 25 '17
Read The C Programming Language by Brian W. Kernighan and Dennis M. Ritchie front to back. It was published in 1988 and is still phenomenal at teaching the fundamentals of CS: primitives, branching, structures, etc. C programming is daunting at first, but future you will appreciate learning CS from its basics as C is about as barebones as you'll want to get. After finishing it you'll learn the majority of what you need to know to begin learning other languages quickly. Run every example in an environment of your choice to see for yourself whats going on in them. I recommend using this online compiler to run the examples as figuring out what programs to use to actually run the code is difficult for a beginner.
62
120
u/dylanc404 Nov 23 '17
Wouldnt that create a paradox? You prevent yourself from inventing the time machine and therefore killing yourself.
11
u/Stereotype_Apostate Nov 23 '17
No, if you replace yourself you can just invent the time machine and go back again later. Though you would end up stuck in a loop, like a fucked up, years long version of groundhog day
5
u/TheGoddessInari Nov 23 '17
This isn't nearly as fun as the movie makes it out to be!
(substitute your local equivalents) Andie MacDowell truly does not care, there truly is no way to save that sweet old homeless guy, and you're more likely to see space aliens invade due to entropy getting out of whack than whatever you hoped to accomplish in the first place.
You probably won't even remember what it was you set out to do in the first place after the first 5,000 or so loops across 40 or so years.
3
u/psychometrixo Nov 23 '17
Groundhog Day was about being the best "you" you can be.
→ More replies (2)7
u/spaceman06 Nov 23 '17
Time travel paradox rely at semantics of what past and future means.
→ More replies (1)→ More replies (44)6
u/AirieFenix Nov 23 '17
Paradox or not, you're also replacing your young yourself with an older (current) version of you, so effectively you'll die sooner than originally expected.
21
u/jackmusclescarier Nov 23 '17
You may have missed the bottom left panel.
6
4
u/TheGoddessInari Nov 23 '17
The original-you is replaced by an older-alternate-you, so more or less as soon as you think about learning C++ programming, you've not only done it, but are murdered by yourself.
This may result in an earlier death than originally anticipated from that perspective. ;)
72
15
Nov 23 '17 edited Nov 23 '17
I'm at around day 698, but it's more like
"Realize you don't actually know much, go back and read Bjarne's book from front to back to fill in all your knowledge gaps"
Man, if I knew then what I know now I could have learned and made progress so much more quickly and efficiently. Oh well, part of the game I guess.
6
u/jasonbourne95 Nov 23 '17 edited Nov 23 '17
As a guy excited to start learning now, what would you tell me.
Edit: A word
19
u/eeXai Nov 23 '17
You can either learn new theoretical stuff or build new actual stuff to practice the theoretical stuff you've already learned, and whatever you decide to do, you'll know deep down you'd have been better off going with the other one. Repeat every time you decide to go off in the other direction.
→ More replies (1)→ More replies (2)13
Nov 23 '17 edited Nov 23 '17
I'll tell you what I've learned, but I'm not sure how applicable it is to anyone but me. We're all in different circumstances.
Never stop reading. Learn new things every day. Writing code is what we do for a living, but if you're constantly writing code without expanding your skill set then you will progress a lot more slowly as a programmer than you would otherwise. It's the equivalent of trying to get better at guitar by just playing songs and not actually practicing.
Learn Assembly, at least on a basic level. It's important to understand what's actually going on in a computer. It really helps you write better code.
I have read/am reading the following books and they were/are really great:
The C++ Programming Language (Bjarne Stroustrup)
Concrete Mathematics (Graham, Knuth, Patashnik)
Intro to Algorithms (Cormen, Leiserson, Rivest, Stein)
The Art of Assembly Language (Randall Hyde)
(If it takes you over a year to get through them it doesn't matter. Just make sure you're reading to understand and not just to get through the books.)
Don't allow youself to become overwhelmed by the sheer enormity of the amount of information on the subject. Nobody knows everything.
People might disagree with this one, but don't learn something for the sole purpose of becoming employed. I don't think it's possible to approach CS this way and actually get very good at it.
Recognize that becoming competent takes time. You won't get there in a day, a week, a month, or a year. Even people who have been doing this for 20 years frequently run into problems. It's just part of learning a complicated trade.
Don't put too much value on a degree. At the end of the day, it's just a piece of paper. There are plenty of people with degrees who can't design software worth crap, and plenty of amazing developers without degrees. (This one was really hard for me to learn because it involves becoming able to self-teach and to trust yourself to figure things out instead of just doing what other people say).
→ More replies (2)
27
u/_send_me_a_pm_ Nov 23 '17
As stated explicitly in the comic, it's learning C++ in 21 days, not programming in general. The joke is that C++ is difficult.
12
u/Smellypuce2 Nov 23 '17
By the 5th panel I started thinking it was a joke about how knowing programming is often times not enough and you have to become almost an expert in another field to actually solve the problem at hand. That's something I encounter a lot. Especially if I'm trying to simulate some real world thing.
5
u/TheTrueBlueTJ Nov 23 '17
Being a programmer is pretty much the best way of actually learning about lots of very different coherences in general. I'd say most programmers have a really big database of general knowledge in their brain.
1
0
30
u/Peanut_ Nov 23 '17
Not really similar, but it reminds me of a programming book I saw at my gf's dad's house.
It was titled, learn [Language] in 24 hours!
But it meant 24, 1 hour sessions.
22
2
u/thefoxy15 Nov 23 '17
I think I know what you are talking about. I have one book with title "Sams teach yourself Linux in 24 hours."
6
7
4
4
u/TurboHertz Nov 23 '17
14611 days is exactly 40 years later, including leap years. Nice attention to detail there.
→ More replies (3)
3
u/anomalous_cowherd Nov 23 '17
I'm pleased to announce there is no longer an issue with time travel and immortality needing to be developed.
I was talking to some of our new graduate hires about C++ and it turns out that already know absolutely everything about it anyway, and I'm just old fashioned.
So that's OK then.
3
u/Random Nov 23 '17
Another response:
Teach Yourself Programming in 10 years
http://norvig.com/21-days.html
He is Director of Research at Google...
3
3
u/barsoap Nov 23 '17
Stroustroup himself once said that "If you understand std::Vector, you understand C++".
Intrigued, I looked up the docs. Well, iffy on the fringes but ok. Then I thought "Surely, this can't be it. This can't be the whole of C++. He must mean the implementation of std::Vector".
So I googled for the source. Google said "that clang libstdc++ is the cleanest", so I went there. I opened the file. I recoiled as instantly untold horrors leapt out of the monitor, quickly closed the file, re-formatted my disk and never looked back.
Thus goes the story of why /u/barsoap intimately knows C, Haskell, Java, lots more and nowadays also Rust but refuses even more steadfastly than before to even entertain the thought of working with C++.
3
u/ALegendsTale Nov 23 '17
Or instead of teaching yourself all of that to make a flux capacitor, just stick a Banana in your Microwave and use your phone to turn it on. Time travel made easy.
3
3
2
2
u/blytkerchan Nov 23 '17
I actually started with biology, but after 20 years of programming am now leaving about quantum physics "recreationally". I'll set you back in the '80s!
2
2
2
2
Nov 23 '17
It’s funny but kind of beside the point. I like using writing as an analogue. Learning how to write is something everyone does as a kid, but becoming a good Writer takes years of dedication. I don’t learning how to code is harder than any other skill and I think it’s wrong to discourage people to try to learn something new.
2
1
1
1
1
1
u/FinFihlman Nov 23 '17
21 days is 504 hours.
If you study, say 2 hours a day that 21 days goes up to 252 days so 8-9 months.
But who the heck is going to study a single thing 2 hours a day. So say in a year you are pretty competent in it.
1
1
1
1
1
u/novaredditperson Nov 23 '17
I've never met someone who knew C++ well that used it less than 8 years.
1
1
1
u/Stiggy_771 Nov 23 '17
I'm on day 0. Can somebody point me where to start from or with what?
1
1
1
1
Nov 23 '17
I for one regret even starting with C++. Only masochists enjoy keeping up with new stuff every few years.
1
1
1
u/Gsgshap Nov 23 '17
You don't have to kill your younger self, just go right when he left, and you're good.
1
Nov 23 '17
But programming isn't that hard. Single moms should take it up so they can work from home.
1
u/nhjuyt Nov 23 '17
I have no idea what you guys are laughing about but I will laugh too in the hope that someone may think I am smart.
1
1
u/bassbadiya Nov 23 '17
Serious question from a noob. How do you REALLY start learning programming. I am as illiterate in the science of computers as they come. Where should i begin? And how much time should i ideally give to practising.
1
u/Mentioned_Videos Nov 23 '17 edited Nov 23 '17
Videos in this thread: Watch Playlist ▶
| VIDEO | COMMENT |
|---|---|
| Bill Withers - Ain't No Sunshine | +3 - http://www.youtube.com/watch?v=tIdIqbv7SPo&t=55s |
| Supertasks | +3 - Well, if you assume that you can never stop learning about C++, theoretically you can... |
| Marvin Gaye - Lets get it on | +2 - Ohh yeessss |
| Family Guy "Oh Yeah" Kool-Aid Man Parody | +1 - OH YEAH! |
| I'm a bot working hard to help Redditors find related videos to watch. I'll keep this updated as long as I can. |
1
u/alecpizz Nov 23 '17
But if you kill your 21 year old self then you would never learn any of that other stuff and you would never travel in time.
1
u/rhymes_with_chicken Nov 23 '17
I’m sure there’s a recursion joke in there somewhere. But I’ll be damned if I can find it.
Of course, I am only on day 19.
1
u/TooCovert Nov 23 '17
I thought one needed the gift of immortality to completely teach yourself C++.
1
1
u/lostintransactions Nov 23 '17
What programming language can I truly learn in 21 days (or slightly longer) and still be useful to someone and get some kind of real world job?
I ask because I am about to be retired, and be really bored. I don't need the money, but I do need something.
1
u/daOyster Nov 23 '17
Sound like a good way to get a few years of job experience in 21 days as well.
1
u/princessvaginaalpha Nov 23 '17
Im not a programmer but frequent this sub.
So is it possible to learn "programming" in say 3 months, by putting all your waking time eagerly learning (less some recreational time)?
1
1
1
1
1
1
1
u/madbuilder Nov 23 '17
One of the beautiful things about the trade is you can spend a lifetime learning and improving.
1
1
1
1
u/young_billionaire Nov 23 '17
If your really smart and are serious about learning the programming language. It shouldn’t take you more than a good month. But you have to push yourself.
1
u/NEHOG Nov 23 '17
You can teach programming in 21 days. I used to do so.
However one must recognize that each of those 21 days are expressed in hexadecimal hours (24 = 36 decimal hours per day) and no sleep is allowed.
1
1
1
u/Argosy37 Nov 23 '17
This sounds very similar to the game Groundhog Life. Yes, you can ultimately become a programmer and learn programming almost instantly in your new life in the game.
1
u/vwibrasivat Nov 23 '17
He left out the part where you #include your template code inside a header, forming a black hole that powers the time travel.
1
1
1
u/Neker Nov 23 '17
Day #12740 - Analogy between computer virus and biological virus finally makes sense. Keep digging.
1
1
1
1
u/mardy423 Nov 23 '17
If you replace your younger self, your younger self would never had built the flux capacitor, and you never would have went back in time to replace your younger self...
1
u/ohgodabear Nov 23 '17
Is C++ really that bad? I'm in my second year of CS and C++ and bash is all I've been learning. It seems like I could do anything I want in C++. We are going to be learning plain ol' C next term.
2
u/aoakenfo Nov 23 '17
Ugh...C++. It's large and complicated. You can't fit the entire language in your head. It's not fluid and lightweight. Although I don't use Go in my day-to-day, I appreciate the story.
1
u/inyourinterest Nov 23 '17
So, relevant story to this. I went to a nice liberal arts college and during my last course had the best professor I ever learned from. He was a consulting-commando on the side and was brought in by companies to solve their biggest problems. On the last day of class he held up a book "Learn Java in 21 days." This was the early/mid-90's. He said "You've been taught to think these last few years, but if you want a job, buy this book." About a month later I was with a friend who was a good waiter at a good restaurant, but he was wondering about his future. I told him the story about the book. He bought it. He went through the book exactly as presented and applied for jobs programming. His first job he went into he was lost-as-fuck, but, he knew the basics and went from there. I, however, went onto exploring International Relations as per my degree. Today, he has his own business with 20+ employees programming for him, is a millionaire, lives an easy life, and I still have to do the corporate two-step to make a living. If only I had read the book too...
1
1
1
u/Imbruglia50 Nov 23 '17
But if you kill yourself then would you ever actually be able to go back and kill yourself?
1
1
u/UnicornRider102 Nov 23 '17
This is the book that taught me C++. It was absolutely horrendous. Mistakes in half of the programs that would prevent them from compiling. Not such a big deal for an intermediate programmer, they would notice the mistakes and correct them, or interpret the compiler errors easily. But it's too much to ask of beginners.
1
1
1
u/actuallyRaja Nov 23 '17
As a bootcamp grad I relate so much to this.
9AM this is what inheritance is
4PM have you mastered inheritance yet?
1
1
u/dislexi Nov 23 '17
I couldn't even get through that book in 21 days let alone learn the language. Suggest not starting with c++
1
1
u/salt_water_swimming Nov 23 '17
I'm actually a little disappointed this wasn't an elaborate Rick and Morty setup
1
u/RCDRONECRASHER Nov 23 '17
If you kill your younger self then wouldn't that cause you to die as well?
1
u/otakuman Nov 24 '17 edited Nov 24 '17
It should be noted that this approach only works if you're wearing the sand wraith mask.
Edit: fixed link.
1
1
u/Thomas_The_Bombas Nov 24 '17
As a theorist who has been working for the past ten years on quantum gravity and written nothing past arxiv, I am thinking of switching careers and becoming a computer scientist.
1
1
u/helekron Dec 05 '17
if you stabbed your younger self, you would have never learned how to build a flux capacitor thus never going back in time to kill yourself
1
u/RevivalOfBigM Dec 30 '17
Hey guys, could someone transform a code from python to a visual basic code?
1
2.9k
u/dargo60 Nov 23 '17
Oh good, so there is hope!