How can I start programming?

me
- in Plugins
19

I wanted to start programming small apps Minecraft servers and plugins.

What is the best programming language for it and what is the best way to learn it?

Dr

For MC you have to learn Java Script which is the most difficult language for games… The easiest way would be Python, but you can't really do games with it either. But own DC bots. I would recommend you download Unity and make your own 2D game. This then works with C # and a lot of research

ju

Since you already have the goal of MineCraft, Java would be hot.

You can also do apps with it, so that would generally be fine. Java is also a very good language to learn.

Learn? Start with tutorials. Do small tasks.

First an output on the console.
Input on the console
Then input and output? How about a small calculator, adding up two numbers that you can enter? Everything on the console.

And then you keep looking at what you would like to do. Take small steps so that you don't become demotivated.

ju

So there's JavaScript at MC too, but basically Java runs.

So why prefer JavaScript?

And he wants MineCraft and apps and you suggest Unity? It's a joke.

"You want to do A and B, but I prefer D, do that."

Dr

Yes, I didn't know that with Java and Java script, I'm sorry and I already know that you can't do MC plugins with Unity, but he could make a small app or a game. Java is just really tricky compared to other languages and it should start small at first.

ju

Ok, "Java Difficult", why? And in comparison to which languages?

Java is a pretty good language for beginners, especially if you have a good IDE that shows you any errors right away. The compiler is also very informative. Debugging works wonderfully and thanks to full IDE integration you can really look at everything in great detail.

Python, for example, is also often mentioned as a beginner's language. The biggest disadvantage I see there's that indentation is relevant for the execution, which is really bad for a beginner. A beginner often does not yet have the formatting of the code under control and then does not know at all why the program is running, but runs completely different from what he imagined.

But if the questioner absolutely wanted to learn machine learning, I would still suggest Python - also with the indentation nonsense.
In the case of MC, JAVA.

So

If you want to program minecraft plugins / mods / clients, then you need Java.

That's actually pretty good, because Java is one of the best languages for beginners. You can find many tutorials on YouTube, I can recommend the tutorials from Programming-Start and the tutorials from The Morpheus Tutorials.

Such tutorials never go really deep into the topic and are so very superficial, so as soon as you have collected a few basics with these tutorials and you are still up for it, a book is recommended. For example, a good book would be "Java is Just an Island".

So

To be honest, I don't understand why Java should be difficult, I started with C # (Java is not good but very similar on the surface) and found my way around the language very well, and never had problems understanding concepts like OOP.

me

Thank you! How do I download the program with which I can program with Java?

me

Python was a great answer too. If you are familiar with it, you can best have a look at my other question on my profile

ju

So the "big friends" would be IntelliJ and Eclipse.

Learning IDE would be very well known to BlueJ.

Personally, I would download Intellij IDEA community edition:
https://www.jetbrains.com/de-de/idea/download/#section=windows

The IDE is simply good and not especially for training and Co., basically you don't want to switch from BlueJ to another IDE later.

But if you are more interested in Eclipse, then that - is also a good IDE that I have worked with for many years.

Me

Java is one of the best languages for beginners

opinions differ…

Me

Where is JavaScript running in Minecraft?

ju

As I said, via detours: https://github.com/...criptCraft

That's why I would also use Java. Unless you are totally fit with JavaScript and have no idea about Java. There should be.

Me

Yes wow, I can also write my own client / server in PHP and in any other language.

an

I do not think that the opinions are divided. Java and Python are the most popular beginner languages when it comes to schools and courses. They are also relatively easy to understand.

It is definitely ONE of the best languages for beginners. It's not a matter of opinion, you can see that just by its great use as a beginner's language.

But is it the best? Opinions differ, yes.

Personally, I think that with Java you learn data types and a very widespread syntax (C, C ++, C #, JavaScript,. All have the same syntax) - what is not the case with Python makes you wonder what they are and that error message should mean.

ju

Did you drink paint.

a) I say take Java

b) In response to Leonieeee2005's answer, I say that JavaScript works, but don't use it if it doesn't have to be

c) You ask about JavaScript and MC

d) I answer you, saying that JavaScript works indirectly, but that it is better to use Java if possible

e) You ride on it

Is it still possible? XD

Then don't ask.

ju

So "one of the best" I would say. So we're definitely in the top 4. Best? There's no such thing as the best language anyway, so you have to decide on a case-by-case basis - of course.

But which language do you think is the better language for beginners? So if you have no idea and not as a second or third language.

Bu

I wouldn't rate the fact of having to indent properly as a negative for beginners.

On the one hand, it promotes a decent style from the start (which is ultimately also expected in other programming languages, even if it is not enforced by the devil) and on the other hand, this is not only explained in every decent tutorial from the beginning, but also clearly noted in the error messages.

If you indent incorrectly / not at all in other programming languages, you can also fall on your nose because you lose track of things. Some beginners also fail to correctly use brackets. Corresponding codes and questions have already landed here on Girlfriend.

ju

When indenting, I see the problem that the code is executable, but does something different than what you think.
In other languages this happens if you put the brackets incorrectly. You have to know yourself what you can find clearer.