Team Spartan Cookies & Milk Forums
  • Issue Tracker
  • Donations
  • Search
  • Member List
  • Help

Register

Team Spartan Cookies & Milk Forums Garry's Mod Starfall v
1 2 3 4 5 … 18 Next »
How to get into Starfall
Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode
How to get into Starfall
20-09-2022, 12:29 PM, (This post was last modified: 20-09-2022, 06:25 PM by The17thDoctor. Edited 1 time in total. Edit Reason: Debugging the english syntax )
#1
The17thDoctor Offline
TSCM Average Enjoyer
****
Posts: 1,100
Threads: 249
Joined: Oct 2015
Information  How to get into Starfall
During my time on TSCM, I've seen a lot of people wanting to get into starfall with more or less success. Getting into starfall can be quite complicated when you have no knowledge in code whatsoever and I've seen alot of people just give up trying.
I've been here too, I went from being someone who had little to no knowledge about coding to becoming someone who helps people with coding endeavours on a regular basis and releasing scripts to make people's life easier, going from the most basics to mainframes (without learning anything at school).

So here I'd like to share some of my tips on how to learn Starfall starting from scratch aswell as giving some tips to people who want to help people learn.

Disclaimer: This guide aims to give my learning & teaching experiences and is in no way a universal guide on how to get good. I cannot ensure you that this method will work with you. Moreover, learning starfall as a whole is not easy, this guide just aims at giving you guidance on how to make it easier and not give up early, however you will have to invest some of your time and braincells into the matter.

I. Coding is reading
Most like any other complex topics, reading is a crucial step in the process of learning how to code. You will find yourself always having a documentation tab opened in your editor aswell as other kinds of documentation sources like guides and wiki pages. Every time you're getting stuck on something, there will be some source of knowledge that can help you getting unstuck with your problems. From other players' advices to internet answers.
Here's a few good sources of information in order to learn and solve your problems:
  • Lua's Official Guide
  • Person8880's Official Starfall Tutorial
  • My Starfall Shared Area Tutorial
  • Stack Overflow (General help with lua problems)

Note: Stack Overflow is very good at giving you answers directly in the form of code. However I greatly recommend reading people's explanation to how that code might work. Simply copy-pasting will lead you into using code you don't understand and thus not learning how it works.


II. Familiarise yourself with the environment
Most like any complex tools like Hammer Editor ; Photoshop ; Illustrator etc.. Starfall (and programming languages in general) have its share of tabs, technical terms and specific syntax codes one needs to learn in order to use it properly. Getting to know how to use the editor correctly, learning the meaning of errors and learning how to use the shared area correctly are key steps in making your learning experience much smoother and overall better. When the tools you use are not an obstacle to face but a platform to base yourself on, solving problems is becoming all the more trivial and satisfying.

I highly recommend reading Garry's Mod Wiki ; Lua Error Explanations in order to understand why your code is erroring and how to fix it. Errors are probably the most important thing to understand when debugging code. Knowing why something errors paves the way to solving it.


III. Start simple
When you see some people making stunning starfall stunts and complex codes, it might inspire you to start doing the same. However it takes time to get here and the easiest way to demotivate yourself and stop starfall altogether is to start with complex stuff. I would recommend starting with making simple scripts like chat bots, warp chips or simple screens in order to get familiar with some of the inner workings of Starfall.
Do not be ashamed if you can't do stuff that's as great as other people. Be proud of what you can do instead of looking at what you can't. The more you do, the more you will be able to do.
If when trying to do something, you face a problem that looks too complicated for you to handle, also consider using libraries from other people. The shared area has plenty of those.


IV. Persevere to succeed
When facing a stubborn problem in your code, you might end up getting frustrated and not understand "Why in hell isn't it working!". My biggest advice here would be to keep on trying. And if you really can't figure it out, take a break. If it's getting late, go sleep and when waking up tomorrow and getting back to it, you'll most probably discover a new approach to the problem and solving it might seem trivial.


V. Do not hesitate asking for help
When you face a problem you really can't figure out on your own, there's always the option to ask people for help. Every experienced coder will be glad to help you in solving your problem.
You can ask for help in the server chat. If coders are around, they'll generally come and help. If nobody is on, consider checking the coding channel in the community's discord server.
There's always someone to come and help.


VI. Practice regularly
Like sports, coding takes regular practice in order to progress and keep your knowledge up to date. If you can, try and code on a daily basis or a few days a week. The more you code, the more you will learn.


VII. Decompose the problem
Tackling a complex problem head on is a good way to confuse you and not know where to even start.
Try and decompose the problem into smaller, problems. If those problems are still too complicated, decompose even further until you know how to solve them.
This problem decomposition method is one of the key factor in getting to create more complex code alongside general experience with the language.

VIII. Do not be afraid to have badly written code
It is by nature that your first codes will never be great. Indentation might be bad, some functions will be less than optimised and what could be done in 3 lines will be done in 30. But that's ok. The more you learn the more you will learn how to do code that is efficient, time saving and easy to read / understand.


All those tips should help you make learning Starfall an enjoyable experience with way less problems than without. It worked for me so I hope it will for you.
Feel free to also share your struggles and the way you faced them in this thread as a way to help enriching and help people learn better.
We need more coders out there and anyone who wants to start is always welcome with open hands.


On to Teaching

I. Be comprehensive & supportive
When trying to help someone, it is more than useless and even bad to laugh at someone for their dumb mistakes. Coding can be hard to understand and people who do not have a coding mindset yet are likely to not understand things. Instead of that, try to understand their problem with calm and respect and suggesting a solution that solves their problem. When someone asks for something and gets the answer they wanted, it makes it satisfying and gives them a nice opinion of you.


II. Do not take anything for granted
While it may seem easy for you to know what a nil value is or what does Attempting to index global myVar (a nil value) mean, remember that people starting with code do not know anything about those technical terms. Try to explain using metaphores and comparisons. Instead of explaining that a table is an ordered data structure stored in memory, just say that its a box, with objects inside.
Instead of saying a function takes in an argument and outputs a result, say its a closed box that takes in a piece of paper with information and gives you back another piece of paper with something else written on it, etc..
Making comparisons with everyday objects help people understanding how code works at a base level with everyday life objects.


III. Don't just give someone fish
It might seem like the easy way to just throw code at someone and telling them "it does what you asked" and while indeed its easy to do that, it gives no insight as to what that code does to the person learning.
Instead you might want to explain to them step by step how they can solve their problem aswell as giving them key functions in order to accomplish what they want.
That way they can learn how to solve that problem themselves while learning how to solve it.

These advices should help you teaching people better. Remember that teaching is never easy, it takes in a lot of patience when you are helping someone to code a starfall from start to finish.
But the reward of seeing him enjoying his new piece of code and being grateful towards you is just great and is what motivates me in doing everything I do for people.

As always, feel free to also share some of your teaching experiences in this thread.

The17thDoctor: Server take me to the most handsome person
srcds_linux: I cant send people to themselves...
Website Find
Reply
20-09-2022, 06:01 PM,
#2
Avorius Offline
Valued donator and member
****
Posts: 128
Threads: 47
Joined: Dec 2015
RE: How to get into Starfall
Extremely well written, I'm 100% sure this will help a bunch of people (Just skimming through now its certainly helped clear some things up for me). Smile


Find
Reply
« Next Oldest | Next Newest »


  • View a Printable Version
Forum Jump:


Users browsing this thread: 1 Guest(s)
Contact UsTeam Spartan Cookies & MilkReturn to TopLite (Archive) ModeMark all forums readRSS Syndication

Powered By MyBB, © 2002-2026 MyBB Group.