Minecraft / Blogs

So you want to learn to code

  • 60
  • 38
  • comment98
  • playlist_add
  • share
  • more_horiz
avatar Supernova666
Retired Moderator
Level 53 : Grandmaster Pyro
362
I have seen many forum posts with people asking how to learn to code and where they should learn from. I'm here with some advice on how to start to learn.


What to learn?

The thing I often see is people not sure what they want to learn, they just want to learn a language. This is great. If you are motivated you will do great. Hopefully the next few sections will help you to decide if you're unsure, or if you know what you want to learn, give you a kick start.


Making mods

If you want to make mods for Minecraft, there are two routes to take (in my view).
  1. Learn Python, or a little or it, just to give you the basic idea of how things work. I would suggest using Codecademy to learn the barebones of Python, then move onto sites such learnpython.org. Codecademy is a good tool to learn the basics, but it misses a lot of important content. Once you have a good grasp of Python, move onto Java.
  2. You throw yourself in at the deep end and learn Java. Java is the language you will need to make mods for Minecraft. learnjavaonline.org and docs.oracle.com/ are both good websites to learn from. You won't learn everything from a website, you need to practice to become better. This goes for any language though.

Web languages


Web languages are great fun, in my view. Over the past few years I have immersed myself in them, making a bit of money with it too. 

HTML and CSS are the two languages which you will see in every website you go on. HTML stands for Hyper-Text Markup Languages. CSS stands for Cascading Style Sheets. Imagine a house is a website. HTML is what makes the house, the bricks, the roof, the floors etc. CSS is what gives the house and everything inside it, it's style; what it looks like, how big it is and how it appears. I would recommend Codecademy to start off your learning with HTML and CSS, it misses a lot so when you think you are done, move onto other sites such as w3schools for HTML and w3schools for CSS. Another good place to learn about HTML is w3c. I would highly advise the use of Mozilla Develop Network, especially this page

JavaScript is widely used on websites, it allows websites to interact with the browser. There is very little JavaScript cannot do on a webpage, you can use it to control what happens to the content, especially on different events. It's a relatively easy language to learn. Once again Codecademyw3schools and LearnStreet are great places to learn it. 

jQuery is a great language which is responds to events on a webpage, it is useful for making the page come to life and interactive. jQuery is a JavaScrpt library, meaning it uses JavaScript to make stuff work. jQuery.com is probably the best place to learn jQuery, but w3schools has some great examples, but misses quite a lot. Once again, for a quick and easy start into jQuery, I would recommend Codecademy.

PHP is a server scripting language used to make dynamic websites, and to perform functions and tasks. PHP takes information from a database, does its magic and then sends the output to the user. When you clicked onto this page, PHP was used to pull all the content that is shown on this page from the database and put into it's right place. For PHP to work, it must be installed on the server you're using. You cannot write a PHP script and run it locally or on a server without PHP installed. Once again, Codecademy is a good place to start learning, but it misses a lot. w3schools and learn-php.org are good to fill in the gaps.


Programming languages


Programming languages come in many shapes and sizes. From the C, to C++, to C# to Perl, to Python and Ruby and the many, many more languages available for use. 

These langauges, and the ones I have not named, are used to make the applications and software we use every day. I do not know enough about these languages to give suggestions on how to go about learning them. Codecademy and LearnStreet both have places to begin learning Ruby and Python, a good place to start would be there. From what I am told the following links are all good places to start learning PythonJavaCC# and Shell. See the "Making mods" section for more on Java and Python.

If anyone has some spare time and would like to make this a proper section, they are more than welcome to write one and either put it in the comments, or PM me it. I will put it here and give you full credit for your work.



Great places to learn:
All the websites listed here, and throughout the blog are just what I like to use, they are not the only websites around, neither are they the best. Link your favourites in the comments and I will add them to the list.


This is just my advice, it doesn't make it correct or the way to go about things. If you have any views or advice of your own, comment and I will add it into the blog.
CreditLudicrous for proof reading the blog.
Tags

1 Update Logs

Update #1 : 04/01/2015 3:56:51 pmApr 1st, 2015

Updated the JavaScript, jQuery, PHP and user-suggested sections.

Comments : 98

star Login or register to post a comment.

Show Comments

1 - 50 of 98

  • bowbuilder
  • Level 41
  • Master Blacksmith
  • May 15, 2017, 1:51 pm
"just leaving a comment to find this back later. No clue how i got here again in the first place"
khan academys not bad, i made this in code: Click Here
  • Supernova666
  • Retired Moderator
  • Level 53
  • Grandmaster Pyro
  • May 22, 2015, 2:25 pm
Hmm that looks interesting, what language is it?
its english, in java script
  • CHorse
  • Level 36
  • Artisan Fish
  • April 11, 2015, 7:38 am
I can't say anything bad, since you are a moderator and you will kill me, so I'll say only good things. Wait a sec, that'll mean I can't say anything. Oh well.
  • Supernova666
  • Retired Moderator
  • Level 53
  • Grandmaster Pyro
  • April 11, 2015, 7:57 am
You can say things which oppose my views or opinions, just as long as what you say conforms to the site rules.
  • CHorse
  • Level 36
  • Artisan Fish
  • April 13, 2015, 1:05 pm
I'm still not taking any chances, last time I insulted someone i said
"I don't like it" 
They suspended my download rights for a month and I couldn't comment on his stuff (maybe that was cuz i was on his ignore list)  and it also glitched out so I couldn't comment on anyones.
So, I'm not really gonna take that chance.
  • fillpant
  • Level 63
  • High Grandmaster Programmer
  • April 17, 2015, 8:22 am
To be honnest i have a similar experience in this webpage D: Board administration never replied to my emails.
  • CHorse
  • Level 36
  • Artisan Fish
  • April 19, 2015, 5:19 am
And I thoguht it was only me...
  • Supernova666
  • Retired Moderator
  • Level 53
  • Grandmaster Pyro
  • April 18, 2015, 10:39 am
Sending emails via the contact page will not get you a response unless it is business related, moreover Paril and Cyprezz are very busy and will not always be able to reply to you. PM myself or a super moderator if you have something you wish to discuss.
  • fillpant
  • Level 63
  • High Grandmaster Programmer
  • April 18, 2015, 11:51 am
Err i was baned totaly (i had to recreate an account) that i was not willing to.
  • Zitzabis
  • Site Moderator
  • Level 70
  • Legendary Gent
  • April 17, 2015, 6:07 pm
The admins are receiving a lot of messages throughout the day. For example, Palaeos has over 1000 messages in his inbox. They all have lives, they aren't employd by PMC, they are here on their own free will and they don't have time to look at every single message.
  • CHorse
  • Level 36
  • Artisan Fish
  • April 19, 2015, 5:20 am
That makes sense, I know someone who spams their inboxes.
  • maximebrx
  • Level 34
  • Artisan Architect
  • April 2, 2015, 2:57 am
I remember seeing this article a while ago, and now I'm in my 2nd of Multimedia Integration at college. :)
On YouTube, thenewboston has very good beginner Java Tutorials. One or two are outdated, but most are fine.
  • GamingAleks
  • Level 20
  • Expert Pokemon
  • April 2, 2015, 1:57 am
yea , im learning python
  • marcopolo84
  • Level 31
  • Artisan Geek
  • April 4, 2015, 12:09 pm
I hardly know Python except the basics. But I am fluent in HTML, CSS, and JS. I also know a little jQuery.
  • Supernova666
  • Retired Moderator
  • Level 53
  • Grandmaster Pyro
  • April 1, 2015, 2:36 pm
Good to know, thanks.
  • TenaciousEz
  • Level 5
  • Apprentice Modder
  • April 1, 2015, 10:29 am
You've linked some great resources here, I would recomend adding these, http://see.stanford.edu/see/lecturelist.aspx?coll=824a47e1-135f-4508-a5aa-866adcae1111. There have been very helpful for me and really help new comers to understanding good programming.
  • Supernova666
  • Retired Moderator
  • Level 53
  • Grandmaster Pyro
  • April 1, 2015, 11:57 am
Thank you, and thank you for your suggestion, I've added it to the blog.
  • Pixel
  • Level 40
  • Master Mage
  • March 21, 2015, 7:51 am
http://codecrap.com/

I
'll just leave this here...
  • Pixel
  • Level 40
  • Master Mage
  • March 21, 2015, 7:50 am
You're so fat that the recruisive function used to calculate your weight causes a stack overflow.
  • Pixel
  • Level 40
  • Master Mage
  • March 21, 2015, 7:50 am
Exception up = new Exception("Something's very wrong here!!");
throw up;
#include <iostream>

using namespace std;

int main()
{
       cout << "You get a diamond <3" << endl;
       return 0;
}
  • Supernova666
  • Retired Moderator
  • Level 53
  • Grandmaster Pyro
  • September 6, 2014, 11:19 am
Java? C One of the C languages? And thanks!
That is the mess they call C++
  • 87man
  • Level 20
  • Expert Network
  • August 30, 2014, 7:52 pm
I know a bit on how to code.
  • Supernova666
  • Retired Moderator
  • Level 53
  • Grandmaster Pyro
  • August 31, 2014, 1:09 am
Now you can learn more!
  • Kahehee24
  • Level 1
  • New Network
  • August 18, 2014, 8:25 am
Cool the meh
  • Redman12PL
  • Level 7
  • Apprentice Pig
  • August 17, 2014, 8:00 am
Fuck you, im create the my texturepack, you got me in the nose and delete my TP, leave me alone
  • Supernova666
  • Retired Moderator
  • Level 53
  • Grandmaster Pyro
  • August 17, 2014, 8:50 am
You needed in game images. That's all. I don't think I got your nose at all, quite hard to get a body part over the internet.
  • funny bunny
  • Level 27
  • Expert Dragonborn
  • August 8, 2014, 3:55 pm
Much words Such long

TL;DR?
  • Supernova666
  • Retired Moderator
  • Level 53
  • Grandmaster Pyro
  • August 9, 2014, 12:44 am
Wow. Click links to learn how to code. So TL;DR.
  • funny bunny
  • Level 27
  • Expert Dragonborn
  • August 9, 2014, 6:37 am
ty
  • Supernova666
  • Retired Moderator
  • Level 53
  • Grandmaster Pyro
  • August 9, 2014, 7:16 am
np
  • wolv
  • Level 8
  • Apprentice Scribe
  • August 7, 2014, 4:14 am
Interesting blog :D

Another good site to learn python from is pythonschool because it teaches everything from the basics of python upto object oriented programming and event driven programming/GUI programming using a mix of reading and video tutorials
  • Supernova666
  • Retired Moderator
  • Level 53
  • Grandmaster Pyro
  • August 7, 2014, 9:23 am
Thanks.

I've added your suggestion to the blog.
  • HammerOSteel
  • Level 30
  • Artisan Architect
  • August 4, 2014, 3:19 am
i find that codeacademy is horrible to learn from
  • Supernova666
  • Retired Moderator
  • Level 53
  • Grandmaster Pyro
  • August 4, 2014, 8:51 am
I think everyone learns differently. I persoanlly found the website very useful, small steps that gave me the ability to move onto bigger better things and learn how to learn the language.
Agreed, it's not very practical in my opinion.
  • DARKDUELIST
  • Level 56
  • Grandmaster Baconator
  • August 3, 2014, 10:55 pm
Super,
Would it be ok if i reposted this blog on my website? Full credit would be given and links would be also given. I would like to do a weekly blog called "Blog of the week" and yours is truly amazing. If you would prefer not to have it reposted, just say so. Thank you
  • Supernova666
  • Retired Moderator
  • Level 53
  • Grandmaster Pyro
  • August 4, 2014, 8:52 am
As long as full credit is given and a link to this page is posted, sure. Thanks for asking.
  • archlordvg
  • Level 7
  • Apprentice Explorer
  • August 3, 2014, 9:10 am
I use codecademy.
  • Supernova666
  • Retired Moderator
  • Level 53
  • Grandmaster Pyro
  • August 3, 2014, 10:47 am
That's great.
  • xxJB3xx
  • Level 1
  • New Miner
  • August 3, 2014, 5:24 am
[h4]SWEET! I just got a free Minecraft card code at (Ad link removed)/[/h4]
  • GreenApple
  • Level 61
  • High Grandmaster Modder
  • August 3, 2014, 5:28 am
Oh my god, is this shit happening today still?
  • Supernova666
  • Retired Moderator
  • Level 53
  • Grandmaster Pyro
  • August 3, 2014, 6:33 am
I banned him, permanently.
  • XDdrummer
  • Level 1
  • New Crafter
  • August 2, 2014, 5:13 pm
if (you.getReasonForLearningJava() == Reason.MINECRAFT) {

    you.shouldNotLearnJava().because("Learning Forge / Bukkit before basic Java is a terrible idea");

} else if (you.getReasonForLearningJava() == Reason.MAKE_GAMES) {

   you.areAwesome().because("You want to learn Java for what it's meant for");

} else {

   you.shouldLearnAnotherLanguage().because("Games are what Java is for");

}
  • Supernova666
  • Retired Moderator
  • Level 53
  • Grandmaster Pyro
  • August 3, 2014, 12:31 am
I love these sort of comments so much.

var forever = Number.POSITIVE_INFINITY;
for (i = 0; i < forever; i++) {
  console.log("These comments");
}
  • HammerOSteel
  • Level 30
  • Artisan Architect
  • August 4, 2014, 12:22 pm
#include <stdio.h>

int main()
{
int a;
a = 1;
while(a == 1)
{
printf("These comments are cool \"what language is this?\"");
}
return 0;
)
  • Supernova666
  • Retired Moderator
  • Level 53
  • Grandmaster Pyro
  • August 4, 2014, 1:39 pm
C? C++?
  • HammerOSteel
  • Level 30
  • Artisan Architect
  • August 4, 2014, 1:42 pm
yeah c
Private Function vb()
Dim response as String = Nothing
If response = "Visual Basic is cool"
     Console.Writeline("Very True")
Else
     Console.Writeline("Wrong Answer")
  • HammerOSteel
  • Level 30
  • Artisan Architect
  • April 19, 2015, 10:47 am
import flash.event.*

addEventListener(event.ENTER_FRAME, loop);
function loop(e:event)
{
text_object.text = "AS3 is also Good!"
}
  • NuclearBanana
  • Level 60
  • High Grandmaster Programmer
  • August 3, 2014, 2:11 am
Hehe, i love them aswell :)
  • NuclearBanana
  • Level 60
  • High Grandmaster Programmer
  • August 2, 2014, 11:28 am
if(!you.hasJavaKnowledge)
   throw new IllegalStateException("Learn Java");


Message to all modders
  • XDdrummer
  • Level 1
  • New Crafter
  • August 2, 2014, 5:14 pm
Lol that'd break sh*t so bad. 
How does one forget the curly brackets in an if/else statement?
<3
  • NuclearBanana
  • Level 60
  • High Grandmaster Programmer
  • August 3, 2014, 2:04 am
If in an if statment is only 1 line of code, there is no need for the curly brackets.

eg. if(x>y)
        //one line

      else if(y>x) {
        //one line
        //second line
      }
  • XDdrummer
  • Level 1
  • New Crafter
  • August 3, 2014, 7:08 am
Really? Didn't know that. Noted.
  • Supernova666
  • Retired Moderator
  • Level 53
  • Grandmaster Pyro
  • August 3, 2014, 2:56 pm
Someone has learnt something as a result of this blog. I consider that a success.
  • Supernova666
  • Retired Moderator
  • Level 53
  • Grandmaster Pyro
  • August 2, 2014, 12:01 pm
I am impressed withmyself that I know what that means without knowing Java.
  • NuclearBanana
  • Level 60
  • High Grandmaster Programmer
  • August 2, 2014, 2:55 pm
Because Java is simple to "read".
  • zeus127
  • Level 58
  • Grandmaster Architect
  • August 2, 2014, 8:16 am
Your mom is so fat... That when she compiled... She created a stack overflow.

Badum Cha
  • Supernova666
  • Retired Moderator
  • Level 53
  • Grandmaster Pyro
  • August 2, 2014, 11:58 am
Your mum is so far the only way JavaScript can attempt display her weight is NaN.
  • zeus127
  • Level 58
  • Grandmaster Architect
  • August 2, 2014, 6:57 pm
I love you, but you knew that already
  • Supernova666
  • Retired Moderator
  • Level 53
  • Grandmaster Pyro
  • August 3, 2014, 12:24 am
Oh you <3
  • SpongyBacon
  • Level 31
  • Artisan Princess
  • August 2, 2014, 5:37 am
I think you should link The New Boston's java tutorials playlist in here too. It really helped me. www.youtube.com/playlist?list=PLFE2CE09D83EE3E28
  • Supernova666
  • Retired Moderator
  • Level 53
  • Grandmaster Pyro
  • August 2, 2014, 11:59 am
Added to the post, thanks.
  • some1epic123
  • Level 16
  • Journeyman Modder
  • August 1, 2014, 8:53 pm
Finally some programming related advice on this site that
is detailed and researched. Definitely a good idea to start with something like Python/Codecademy
to get a basic idea of that type of programming, then move onto the official Oracle docs for learning Java, as they have a lot of information that most tutorials leave out. When I say most, that includes almost every major YouTube channel or website that teaches Java/other OOP languages.

"Codecademy is a good tool to learn the basics, but it misses a lot of important content."
Exactly what I try to explain to people, but instead of following my detailed advice, they prefer to go with
the easier one-sentence advice from people who have no clue what they're talking about. Hopefully people will now listen since a moderator has posted it.
  • Supernova666
  • Retired Moderator
  • Level 53
  • Grandmaster Pyro
  • August 2, 2014, 12:37 am
"Finally some programming related advice on this site that isn't detailed or researched." Did you mean is detailed? I hope so. 

Your posts on this thread inspired me to make the blog, so I suppose I should say thanks. The problem with the one line "Learn HTML first" responses is people want a quick answer, a nice detailed paragraph or two about which langauge to learn and the benefits make people worried because there is more than 15 words to read.

1 - 50 of 98

Show Comments

Planet Minecraft

Browse

Site

© 2010 - 2019
planetminecraft.com

Welcome