r/ComputerCraft • • Dec 24 '20

New to CC. Never coded before.

I want to learn to do things with CC but I’ve never coded anything and this seems like the best option to learn

11 Upvotes

14 comments sorted by

7

u/aplkm Dec 24 '20

I actually first learnt programming years ago with computercraft! It's a fun way to start.

A good place to have a look is probably the computercraft wiki, they have a good intro there with the hello world tutorial.

-2

u/Zaria404 Dec 24 '20

Already done that basic junk and it still doesn’t click well. I copy the same steps to infinity but doesn’t mean I really learn anything

3

u/aplkm Dec 24 '20

The main parts to really understand are variables and how to store data. Conditionals (if statements) and controlling the flow of a program and finally loops. Those are the main concepts to really get you started with programming.

1

u/Zaria404 Dec 24 '20

Yea perfect example of what cryptic language did you just speak

3

u/djfdhigkgfIaruflg Dec 24 '20

:D Thank you.I needed that laugh

2

u/aplkm Dec 24 '20

Yeah sorry its a bit difficult to say in a short comment i just meant those are the bits you need to look up (variables, if, loops) but i dunno if that helps really.

1

u/[deleted] Dec 25 '20

variables are similar to how they are in normal algebra, but more complex. lets say I have x. I set x to 5. I can then run f(x) for whatever output. then I can change x, maybe to 7, and run f(x) again.

conditionals are the basis of "true" programming. without conditionals, a program is just a fancy math equation. a conditional checks for a condition ( like does x=5?). if true, it runs some code. if not, it skips some code.

that is a massive oversimplification on both parts (variables can store lots of things, from "strings" [actual text] to Objects, which are user defined data types), but it works

5

u/Encursed1 Dec 24 '20

Look for tutorials on the basics of computer science. I'm assuming you don't have a grasp on computer logic yet, and understanding that will be your key to doing anything in any language.

1

u/MavisOfTheDead Dec 24 '20

What do you actually want to achieve with this mod?

1

u/Zaria404 Dec 25 '20

Whatever I can

3

u/bryceio Dec 24 '20

Here’s a fairly old but fairly decent from what I remember tutorial series by Direwolf20 https://youtu.be/wrUHUhfCY5A

1

u/boxesandcircles Dec 24 '20

Came here to recommend this as well. Really goes over the basics well. You can follow the tutorial with an advanced turtle to make things easier by enabling mouse use

1

u/thatNewton17 Dec 24 '20

Sethbling made a pretty simple computercraft tutorial years ago that's good for people with no coding knowledge, I'd recommend him or direwolf20 like some have said here already.

1

u/The_Lux83 Dec 24 '20

I've read this book from Al Sweigart and it helped me a lot, starting with computercraft. https://turtleappstore.com/book/ You can read it online for free and even if it is an older book, it's still viable.