Teach Me

DrakeCahill13
Member
 
Posts: 16
Joined: Thu Jan 11, 2018 17:55
In-game: DrakeCahill13

Teach Me

by DrakeCahill13 » Wed May 16, 2018 18:44

I would like to be a programmer. Please, can anyone direct me to any resources that could help me code and design and the like? A Youtube series, maybe?
 

User avatar
Phoenixflo44
Member
 
Posts: 226
Joined: Fri Jul 28, 2017 15:01
Location: Behind my PC, in Germany
GitHub: Phoenixflo44
In-game: Phoenixflo44
 

DrakeCahill13
Member
 
Posts: 16
Joined: Thu Jan 11, 2018 17:55
In-game: DrakeCahill13
 

User avatar
Phoenixflo44
Member
 
Posts: 226
Joined: Fri Jul 28, 2017 15:01
Location: Behind my PC, in Germany
GitHub: Phoenixflo44
In-game: Phoenixflo44
 

User avatar
Phoenixflo44
Member
 
Posts: 226
Joined: Fri Jul 28, 2017 15:01
Location: Behind my PC, in Germany
GitHub: Phoenixflo44
In-game: Phoenixflo44
 

DrakeCahill13
Member
 
Posts: 16
Joined: Thu Jan 11, 2018 17:55
In-game: DrakeCahill13

Re: Teach Me

by DrakeCahill13 » Wed May 16, 2018 19:00

Call me a noob, but I'm looking to start from scratch
 

DrakeCahill13
Member
 
Posts: 16
Joined: Thu Jan 11, 2018 17:55
In-game: DrakeCahill13
 

User avatar
Phoenixflo44
Member
 
Posts: 226
Joined: Fri Jul 28, 2017 15:01
Location: Behind my PC, in Germany
GitHub: Phoenixflo44
In-game: Phoenixflo44
 

DrakeCahill13
Member
 
Posts: 16
Joined: Thu Jan 11, 2018 17:55
In-game: DrakeCahill13

Re: Teach Me

by DrakeCahill13 » Wed May 16, 2018 19:02

I mean everything, Mods, the game, Gamepacks, Textures, etc. etc.
 

DrakeCahill13
Member
 
Posts: 16
Joined: Thu Jan 11, 2018 17:55
In-game: DrakeCahill13
 

DrakeCahill13
Member
 
Posts: 16
Joined: Thu Jan 11, 2018 17:55
In-game: DrakeCahill13

Re: Teach Me

by DrakeCahill13 » Wed May 16, 2018 19:35

Alright, anyway, can anyone suggest anything?
 

R-One
Member
 
Posts: 15
Joined: Wed Dec 20, 2017 23:06
 

User avatar
GamingAssociation39
Member
 
Posts: 625
Joined: Mon Apr 25, 2016 16:09
Location: Maryland, USA
GitHub: Gerold55
IRC: Gerold55
In-game: Gerold55

Re: Teach Me

by GamingAssociation39 » Wed May 16, 2018 21:02

I've just looked at the code and got the jist of it so I had made some mods with even more help from other devs.
Jesus Is Lord and Savior!!!
 

User avatar
MineYoshi
Member
 
Posts: 5339
Joined: Wed Jul 08, 2015 13:20

Re: Teach Me

by MineYoshi » Wed May 16, 2018 21:10

To properly code you have to learn about algorithms firsts since that's like «the heart of coding». After understanding what's an algorithm try learning a simple language like BASIC, or go to Lua if you want to; after you are fluent with it try to learn more complex ones. Try learning with books.

If you want to code Minetest mods, after knowing how to code, try learning with Rubenwardy's Modding Book the basics of the Minetest modding API and then if you have questions look up on the dev wiki or ask in the forum.
Oi.
 

User avatar
Andrey01
Member
 
Posts: 1849
Joined: Wed Oct 19, 2016 15:18
Location: Russia, Moscow
GitHub: Andrey2470T
In-game: Andrey01

Re: Teach Me

by Andrey01 » Thu May 17, 2018 06:33

At first read this official manual in order to understand how to code in Lua at all: https://www.lua.org/manual/5.3/

Then learn Minetest API:
https://dev.minetest.net/Main_Page

Preferably also read rubenwardy`s manual: http://rubenwardy.com/minetest_modding_book/
Here it spoons-feed all concepts in Minetest API.
I like and i am learning to build nice and great houses, palaces, infrastructures and etc... in Minetest!
My Mods:
Unfinished:Medicine,Cube Nodes.

Old:Sweet Machine,Drink Machine

My Favourite Servers:
just test, Switchboard PvP made by yngwie123, VanessaE`s creative-building server, Parkour Owned by LoweGaming, Fractal Island and some other servers!
 

User avatar
Vapalus
Member
 
Posts: 75
Joined: Wed Nov 15, 2017 17:16

Re: Teach Me

by Vapalus » Thu May 17, 2018 07:13

Dis gon b gud.
The important part about programming is understanding.
Take a small mod, read it, and try to figure out - just by reading it - what each part does.
Than change that little part (make backups! Backups are the essence of programming) and look what it does.

Why do it that way? Because you're going to end up on lua-homepages, minetest API websites etc. anyways, and you have a working example of what to do.

As soon as you feel comfortable enough, program your own mod. (You're going to end up stealing stuff from other mods, but as long as you write where you got the parts from, it should be alright).

And after you got the first running, bugged piece of crap mod, delete it, no backups, and try to write it again.

As soon as you've done this, you will figure out the essence of programming: Nothing you do matters, there is always a better way to do things. (But that's just a psychological issue, and its far worse than the "I don't understand anything" feeling you will have at the beginning). It will take about 1-2 months until you get there.

As soon as you are done contemplating if you want to go on, there will be the next hindrance: Writing good and readable code.
Some rules:
Always comment the "why", never the "how". If you need to write how the code works, you did something wrong. Code has to be clear, each .lua file should be about 2 pages, printed out, max.

That also means you will stop coding spaghetties and start using external funktions; It will work a bit like that: Write a function, write another function, see that both functions got something in common, make a third function which has what both functions have in common, screw up the third function, be glad that you made a BACKUP and rant about how stupid LUA is and that you're gonna do something better (no you won't).

Even though you're trying to make your code look good, it will still look like a dinosaur in a mudbath with diarrhea. Deal with it. Everybody will tell you it's ugly.

Okay, now 2-4 months have passed and you're starting to understand that programming might not be easy. (If you still think it's easy, you didn't understand shit and you should stop touching a PC, because now you're one of those "I know programming" kiddos who screw up our reputation.)

That's when the learning curve kicks in. You'll get better and better from now on.
A man much wiser than me once said: "go away, you are bothering me"
 

DrakeCahill13
Member
 
Posts: 16
Joined: Thu Jan 11, 2018 17:55
In-game: DrakeCahill13
 

DrakeCahill13
Member
 
Posts: 16
Joined: Thu Jan 11, 2018 17:55
In-game: DrakeCahill13

Re: Teach Me

by DrakeCahill13 » Thu May 17, 2018 19:21

Vapalus wrote:Dis gon b gud.
The important part about programming is understanding.
Take a small mod, read it, and try to figure out - just by reading it - what each part does.
Than change that little part (make backups! Backups are the essence of programming) and look what it does.

Why do it that way? Because you're going to end up on lua-homepages, minetest API websites etc. anyways, and you have a working example of what to do.

As soon as you feel comfortable enough, program your own mod. (You're going to end up stealing stuff from other mods, but as long as you write where you got the parts from, it should be alright).

And after you got the first running, bugged piece of crap mod, delete it, no backups, and try to write it again.

As soon as you've done this, you will figure out the essence of programming: Nothing you do matters, there is always a better way to do things. (But that's just a psychological issue, and its far worse than the "I don't understand anything" feeling you will have at the beginning). It will take about 1-2 months until you get there.

As soon as you are done contemplating if you want to go on, there will be the next hindrance: Writing good and readable code.
Some rules:
Always comment the "why", never the "how". If you need to write how the code works, you did something wrong. Code has to be clear, each .lua file should be about 2 pages, printed out, max.

That also means you will stop coding spaghetties and start using external funktions; It will work a bit like that: Write a function, write another function, see that both functions got something in common, make a third function which has what both functions have in common, screw up the third function, be glad that you made a BACKUP and rant about how stupid LUA is and that you're gonna do something better (no you won't).

Even though you're trying to make your code look good, it will still look like a dinosaur in a mudbath with diarrhea. Deal with it. Everybody will tell you it's ugly.

Okay, now 2-4 months have passed and you're starting to understand that programming might not be easy. (If you still think it's easy, you didn't understand shit and you should stop touching a PC, because now you're one of those "I know programming" kiddos who screw up our reputation.)

That's when the learning curve kicks in. You'll get better and better from now on.

Riiiight. XD Anyway, to start, do you have any suggestions for a "small mod" to look through?
 

DrakeCahill13
Member
 
Posts: 16
Joined: Thu Jan 11, 2018 17:55
In-game: DrakeCahill13

Re: Teach Me

by DrakeCahill13 » Thu May 17, 2018 19:22

Whelp, thanks everyone! I'm looking forward to learning and failing and learning and so on :P Wish me luck XD
 

Reedych
Member
 
Posts: 42
Joined: Wed Aug 03, 2016 08:09
GitHub: Reedych
In-game: SlackCoyote

Re: Teach Me

by Reedych » Mon May 21, 2018 12:14

Andrey01 wrote:At first read this official manual in order to understand how to code in Lua at all: https://www.lua.org/manual/5.3/

Then learn Minetest API:
https://dev.minetest.net/Main_Page

Preferably also read rubenwardy`s manual: http://rubenwardy.com/minetest_modding_book/
Here it spoons-feed all concepts in Minetest API.

Minetest uses lua 5.1: https://www.lua.org/manual/5.1/
 


Return to General Discussion



Who is online

Users browsing this forum: No registered users and 4 guests