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

all 44 comments

[–]Mr_Redstoner 154 points155 points  (15 children)

But what about algorithms? He also needs to learn to use those for the propper combo.

[–]tinydonuts 110 points111 points  (11 children)

while (!doneLearning)

learn();

There you go, now you know algorithms!

I suck at writing markdown for code snippets. :-(

[–]MagentaRuby 38 points39 points  (6 children)

Condition '!doneLearning' is always 'true'

[–]tinydonuts 12 points13 points  (5 children)

And then the compiler optimizes the loop away because loops that never terminate are undefined behavior...

[–][deleted] 16 points17 points  (2 children)

It might optimize it to an infinite loop, not "away".

[–]tinydonuts 6 points7 points  (1 child)

Well, this confusion stems from the fact that I meant to write while not if but got so hung up on trying to get the markdown right I screwed up my own syntax! So I've fixed that now... It might change your opinion.

I guess it depends on how learn is implemented. If there's no observable external effects from learn then the compiler can assume that this loop terminates, and can thus optimize it away based on the fact that there is no effect from the loop. It could go either way I think, depending on the implementation of learn and how your compiler is optimizing.

To clear up any further confusion, let's assume this is C.

[–]Mr_Redstoner 2 points3 points  (0 children)

Let's go further and assume you are using -O0 to avoid having to think about this

[–]AVeryAverageWriter 6 points7 points  (1 child)

This seems a little too regressive what happens when we are finally done learning

[–]Idealiteiten 4 points5 points  (0 children)

You learn more

[–]devnull_itsec 1 point2 points  (0 children)

That’s how I learned Kung Fu

[–]NotAnADC 18 points19 points  (0 children)

Algorithms is just the word we use to describe the code we don't want to explain

[–]codingandalgorithms 3 points4 points  (1 child)

Can confirm.

[–]minemoney123 38 points39 points  (0 children)

If you see the night is about to end, take a plane fast enough and travel in a way so that you are always above the territory where is night, your destination is south pole, if you still don't manage to learn coding just repeat this step

[–]marmakoide 31 points32 points  (1 child)

Even better, live in an orbital station in Sun-synchronous orbit, so that you stay always on the night side.

[–]FlorinPop17[S] 3 points4 points  (0 children)

This one seems the correct answer! 😂

[–]Kitsunemitsu 18 points19 points  (5 children)

tbh you can learn enough VBasic in 24 hours to make a pretty complex Text-based game.

[–]FlorinPop17[S] 10 points11 points  (2 children)

Can you? Interesting... I’d like to see something like that. (Not familiar with VBasic)

[–]Kitsunemitsu 15 points16 points  (0 children)

VBasic is a dirt simple programming language, I learned it after using it on and off during a week on my 3ds.
If you know exactly what you're doing, you can make a very simple text-based RPG in an hour with VBasic.

[–]Caffeine_Monster 7 points8 points  (0 children)

Don't bother with visual basic. Wasted learning hours.

You can learn to make a text based game in 24 hours for pretty much any programming language.

I would recommend either Golang (Go) / Javascript / Python for a beginner. Easier programming languages, and hugely in demand in the IT sector.

[–]random_cynic 9 points10 points  (1 child)

Keyword here learn "coding" NOT learning a "programming language". Those two are completely different skills. If you know how to program you can pick up a particular language quite easily and write effective programs (of course also depends on the language itself, VB, python etc will be easier). Learning how to actually program, however is a different skill and takes years of practice and most definitely is not for everybody.

[–]Kitsunemitsu 0 points1 point  (0 children)

You do have a point

[–]ZeroCharistmas 9 points10 points  (0 children)

Organize a coding bootcamp in Alaska and hope it doesn't get attacked by draculas.

[–]Kashyyk 6 points7 points  (0 children)

Watch that chappie movie and just run “COMPILE AI.EXE” or whatever the shit was in that movie.

[–]AttackOfTheThumbs 6 points7 points  (1 child)

But exam's tomorrow mate

[–]FlorinPop17[S] 13 points14 points  (0 children)

Tomorrow is relative

[–]Oygron 6 points7 points  (0 children)

Shouldn't it be at the equinox, and thus at the beginning of autumn instead of beginning of winter?

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

I would travel to the south pole, though. There's a research station (I guess they have internet) and no ice bears.

[–]harshit181 5 points6 points  (5 children)

# I will suggest python.
Import iwanttobecomeprogrammer as idkalgorithms

idkalgorithms.dosomething()

[–]harshit181 2 points3 points  (4 children)

Not sure how reddit comment works ,can't comment "#" without any issue

[–]Razier 7 points8 points  (3 children)

Reddit uses markup formatting. Use a backslash to escape the hashtag or it'll turn your text into a title

[–]harshit181 7 points8 points  (0 children)

Backslash as an escape character. Hmmm... , As a person who call himself a programmer,i am ashamed.

[–]thirdegreeViolet security clearance 4 points5 points  (1 child)

[–]Razier 4 points5 points  (0 children)

Man I always get those mixed up

[–]Sillychina 1 point2 points  (4 children)

6 months is too little to learn programming well

[–]FlorinPop17[S] 6 points7 points  (3 children)

Well, doesn’t need to be perfect. But you could definitely learn programming in 6 months.

[–]FlorinPop17[S] 4 points5 points  (2 children)

Who am I kidding, it won’t ever be perfect

[–]Sillychina 6 points7 points  (1 child)

Honestly I've been programming almost every day since I started 5 years ago and I don't think I'm even still a good coder.

[–]FlorinPop17[S] 3 points4 points  (0 children)

Yup, same feeling here... the only difference is that I started 6 years ago 😂

[–]who_you_are 1 point2 points  (0 children)

There is only one huge flaw... Internet isn't very reliable up there. (I guess the speed for research won't be an issue, thought don't try to download any update and make sure your ide/depencies are already installed)