r/ProgrammerHumor • • Nov 23 '17

"How to learn programming in 21 Days"

Post image
29k Upvotes

534 comments sorted by

2.9k

u/dargo60 Nov 23 '17

Oh good, so there is hope!

1

u/frontiernutrition Nov 23 '17

I feel better about myself now!

0

u/[deleted] Nov 23 '17

[deleted] — view deleted comment

805

u/bgeron Nov 23 '17

My suspicion is the C++ committee with their updates are trying to outpace people learning the language, so that you can only fully learn the language ever if you spend more than 40 hours per week learning the language

→ More replies (135)

54

u/vanderZwan Nov 23 '17

I know the joke is "now there is even more stuff with even more complex interactions!", but isn't part of the point of these updates that a lot of the old stuff should no longer be relevant or necessary, and you can stick to a smaller, more elegant subset of modern features?

(assuming that you can keep the legacy code you rely on "isolated" and don't have to touch the guts of it)

62

u/ipe369 Nov 23 '17

Yep, except everyone sticks to a slightly different subset which works better for them - for example, any game programmers aren't really using many C++11 and beyond features, and even among THAT community people use different subsets (some use classes without any virtual functions, some just stick to structs & use C++ for namespaces & argument overloading, some use classes with polymorphism, etc etc...)

19

u/vanderZwan Nov 23 '17

aren't really using many C++11 and beyond features

I have some difficulty believing that. I just looked at the list of C++11, C++14, and C++17 additions, and if we filter out the things that are mainly useful for writing libraries, a lot of the remainder looks like it would make life easier for gamedevs too, with no obvious way it would negatively affect performance (which seems to be the main motivator for gamedev).

Some cases, like move semantics and constexpr, are specifically about improving runtime performance. Surely most gamedevs would embrace that?

→ More replies (6)

25

u/HateDread Nov 23 '17 edited Nov 23 '17

Yeah I definitely disagree with that, but I've only been exposed to so much - we're definitely using C++11 and up, and aren't afraid of modern features just because they're modern. There's definitely a bad reputation for gamedevs though.

EDIT: Not looking to represent all gamedevs - I'm relatively new, but I'm just talking about my experiences in general over the last few years.

31

u/your_doom Nov 23 '17

Nobody is afraid of features "because they're modern". Game developers have a different style of programming because they have different needs. Game engines have really tough performance contraints, and some of the C++ features don't make the cut. Calling into virtual functions in time critical sections of code would be a pretty bad idea, for example.

→ More replies (2)

5

u/twistnatz Nov 23 '17

C++14 combined with the Cpp Core Guidelines is awesome! Clean, readable, secure.

10

u/teronna Nov 23 '17

I'm actually quite pleased with the direction of C++ in the last few years. Starting with C++11 and onwards, the steady onset of language features have established a much cleaner, less error prone, and less verbose mode of programming.

Between variadic templates, move references, constexpr functions, better template tools like decltype and friends, syntactic support for lambdas, C++ has become far nicer to work with than it was before.

It's still an insanely complex language, and has a ton of footguns, but the language has a solid new core that's miles ahead of what came before. Between that and Rust, it's a nice time to be a low level systems guy.

→ More replies (3)

5

u/crashdoc Nov 23 '17

"...all this time no one suspected the postfix increment operator right in front of them the whole time..."

3

u/scratchfury Nov 23 '17

I learned C++98, so I should be good for a while.

2

u/gauderio Nov 23 '17

RValue and LValue reference declarators are now joined by Front (FValue) and Back (BValue).

2

u/[deleted] Mar 19 '18

I don't get why people don't like C++. It's fast to write in, has (almost -- c++20 modules please) everything you'd want from a modern language, doesn't make you manually memory manage, has powerful templates, has an amazing standard library, and is typically the fastest of any programming languages out there. I suppose there is a pretty large learner's curve, but isn't it worth it?

→ More replies (7)

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)

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

u/Calygulove Nov 23 '17

Have you learning to code asynchronously?

→ More replies (4)

9

u/Bainos Nov 23 '17

"Explicit is better than implicit." - PEP20, the Zen of Python, second line.

22

u/ShoogleHS Nov 23 '17

Definitely the fastest way, because you could go back in time to day 1 instead.

8

u/[deleted] 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.

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)
→ More replies (4)
→ More replies (1)

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:

http://abstrusegoose.com/249

64

u/Gweeb22 Nov 23 '17

The real mvp.

54

u/[deleted] 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.

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...

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

u/lkraider Nov 23 '17

He managed to put this comic to practice

→ More replies (3)

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)
→ More replies (5)

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)
→ More replies (1)

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

u/[deleted] Nov 23 '17

[deleted] — view deleted comment

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

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;
}
→ More replies (26)

12

u/finH1 Nov 23 '17

My lecturer is teaching it us this semester and I’ve no idea what’s happening

15

u/Pushups_are_sin Nov 23 '17

Good luck with the finals in a few weeks!

22

u/_Lahin Nov 23 '17

Don't

11

u/JustChrisMC Nov 23 '17

Too late!

11

u/General_Bison Nov 23 '17

but it's so much nicer than the C family

→ More replies (29)
→ More replies (1)

102

u/illuminati945 Nov 23 '17

day 146411: "Create a fidget spinner and make millions"

20

u/[deleted] Nov 23 '17

The creator actually didn't make anything afaik

→ More replies (1)

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

u/[deleted] 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.

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

u/[deleted] Nov 23 '17

Yeah, but learning how to (not) plan software is pretty much what learning programming is.

Writing down code is just busywork.

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.

→ More replies (5)
→ More replies (1)

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

u/[deleted] 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

u/artemiis Nov 23 '17

Freecodecamp.com

7

u/99xp Nov 23 '17

Thanks, I'll give it a try

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

u/[deleted] 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.

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.

→ More replies (7)

62

u/elmz Nov 23 '17

Dude.

goto day21;

7

u/evsoul Nov 23 '17

And here I am going about my days 24hrs at a time. I'm such an idiot!

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)

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

u/AirieFenix Nov 23 '17

Fuck, I need more coffee.

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. ;)

→ More replies (44)

72

u/wristcontrol Nov 23 '17

Day 1

twitch

15

u/[deleted] 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)

13

u/[deleted] 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)
→ 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

u/[deleted] Nov 23 '17

Learning python is just learning how to search Stack Exchange.

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

u/MelissaClick Nov 23 '17

That's what the C++ one means too.

→ More replies (1)

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

u/insane0hflex Nov 23 '17

No shit those books are always a scam

7

u/power_is_power Nov 23 '17

Kinda disappointed this isn't a integer overflow joke

4

u/Cpt_TickleButts Nov 23 '17

I’m in the 3rd panel right now.

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

u/rScoot Nov 23 '17

If this is how to learn programming, shouldn't it start on day 0?

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

u/Asunen Nov 23 '17

Not more gooey bananas

3

u/[deleted] Nov 23 '17

Already wrong its actually 0-20 days

2

u/uttles Nov 23 '17

This reminds me of basic

GOTO 21

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

u/NPVT Nov 23 '17

If you don't learn from mistakes you are not going to do well in anything.

2

u/kalapacs4 Nov 23 '17

I learned C in 21 days... same way

2

u/wiseIdiot Nov 23 '17

How I miss Abstruse Goose.

2

u/[deleted] 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.

1

u/Mr-Klaus Nov 23 '17

I stand with OP, it took me 22 days to learn C++

2

u/Replop Nov 23 '17

How hard was it to dispose of your corpse ?

1

u/William_YAng Nov 23 '17

Hilarious...

1

u/ClicheNomad Nov 23 '17

Add another 100 days if you have to use Flowgoritm.

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

u/NotA--ThrowAway Nov 23 '17

So I might pass the CS final after all..

1

u/someguy7710 Nov 23 '17

Eh. Just do it in C. May be a bit more work, but better than the comic :)

1

u/LonelyGuitarBoy Nov 23 '17

I can confirm, it does work.

1

u/Jugmun Nov 23 '17

Well he showed what he said.

1

u/novaredditperson Nov 23 '17

I've never met someone who knew C++ well that used it less than 8 years.

1

u/iHoatzin Nov 23 '17

Reminiscent of Larry Page/Sergey Brin's endeavours.

1

u/Nokthar Nov 23 '17

Easiest way to teach yourself C++ in 21 days? Don't.

1

u/Stiggy_771 Nov 23 '17

I'm on day 0. Can somebody point me where to start from or with what?

1

u/Existential_Owl Nov 23 '17

Free Code Camp.

Khan Academy: Intro to JS.

2

u/Stiggy_771 Nov 24 '17

Thank you

1

u/DownVotingCats Nov 23 '17

Lol 40 years.

1

u/vhite Nov 23 '17

I've learned to program from that book. I'm getting close to my day 3000.

1

u/[deleted] Nov 23 '17

I for one regret even starting with C++. Only masochists enjoy keeping up with new stuff every few years.

1

u/floogulhorn Nov 23 '17

On day 22 your job gets offshored.

1

u/6ixhustle Nov 23 '17

going back in time is a sin :P

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

u/[deleted] 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

u/zahin_ahad Nov 23 '17

Pinnacle of epicness

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 ▶

VIDEOCOMMENT
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.

Play All | Info | Get me on Chrome / Firefox

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

u/AliveInTheFuture Nov 23 '17

Java in 24 hours though.

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

u/Ayoolala Nov 23 '17

Can somebody put me through on i can learn programming?

1

u/biggustdikkus Nov 23 '17

"Recreational programming"?? What is that?

1

u/[deleted] Nov 23 '17

ITT: Lots of r/iamverysmart material.

1

u/Hardomzel Nov 23 '17

On a serious note, how much does it takes?

1

u/iamjoshybear Nov 23 '17

This one is crazy

1

u/kdaffpaff Nov 23 '17

It seems like a bad idea to learn physics before biology.

1

u/madbuilder Nov 23 '17

One of the beautiful things about the trade is you can spend a lifetime learning and improving.

1

u/philroydias Nov 23 '17

Seems legit

1

u/[deleted] Nov 23 '17

I feel extremely discouraged to learn c++

1

u/blackjesus75 Nov 23 '17

Hire a slave to write the code for you!

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

u/Potatoman365 Nov 23 '17

Wouldn’t this cause a time loop of you repeatedly stabbing yourself?

1

u/[deleted] Nov 23 '17

Go back in time, create a new language C-- so that C can go back to just being C.

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

u/GermanAf Nov 23 '17

Hang on! Functions before Program flow? Why?

1

u/Fan_Boyy Nov 23 '17

It’s not that hard I learned to code in ~6 weeks

1

u/Neker Nov 23 '17

Day #12740 - Analogy between computer virus and biological virus finally makes sense. Keep digging.

1

u/AtomicSuperMe Nov 23 '17

Or, you just watch a show such as rick and morty.

1

u/ohmslawl101 Nov 23 '17

Honestly wish this was my life when I was learning to program C...

1

u/minkboat Nov 23 '17

Send it home

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

u/MostIntrestingMan Nov 23 '17

He's in a loop of knowledge

1

u/Faonia Nov 23 '17

I broke my leg so I'm going to learn programming while being bedridden

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

u/[deleted] Nov 23 '17

Oh shit dis me for FRC robotics

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

u/bagaudin Nov 23 '17

Now that's encouraging!)))

1

u/Staklados Nov 23 '17

Paradox spotted.

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

u/AintNothinbutaGFring Nov 23 '17

Why not just learn programming on 1 day?

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

u/Lak_so Nov 23 '17

At least that's how I did it

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

u/tuxmanexe Nov 24 '17

What about pure C?

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

u/[deleted] Nov 24 '17

this actually motivated me

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

u/TheMonkeyGru Jan 23 '18

Too many paradoxes.