How does your code look? Is it readable? Can someone else read it and understand what's happening and be able to trace every line of code? I just applied for a scripting position at some dude's small game, his scripter isn't able to work for a while. He gave me some VERY easy tasks to do like add another start menu, create team spawns, inventory. The only issue is, the code is absolutely unreadable for me. The code's style changes like every script, from capitalizing variables and using indentation, to just no capitals and no indentation at all. There's over 35 module scripts in the entire game, and I can't trace a single :FireServer() to any server sided scripts. It's like they tried to add a firewall to their code. Am I just lacking in my abilities, or is this just genuinely a lost cause? Personally, when I write code I use proper variable names and I don't use 6 module scripts just to make a menu screen. Help?
I'm considering just sending the dude his money back because I just cant work with the code. For example: there is a double nested module script that is supposedly in charge of the team change ui. The script fires and event to the server, but there is ONE server script in the whole game, and I can't find any links between that and any of the events. Everything is buried in a module with improper variable names?
#Unreadable Code From Employer
1 messages · Page 1 of 1 (latest)
Welp this is exactly what happens when you're trying to continue a game made by a scripter
Did u say 35 modules? what game is it?
It's a mostly finished prison game, pretty generic
I'm not sure why, but there's modules for stuff like "Camera", even though the game doesnt have a custom camera?
The code code style changes obv shows that the past scripter uses AI
If he pays you low, it'd not be worth it buddy 🙂
So u gotta use fastsearch
I think the keybind is Ctrl + Shift + F?
then u search :FireServer
It searches through all script
the past scripter is likely s1-s2
It's not like the code looks dumb, its that it looks way too complicated than necessary. How would you structure a UI main menu script?
well it depends, what kind of main menu you want
A very simple one, literally just select a team and then spawn in
then a single module script is enough
cause the menu for that same type of menu can be traced to like 4 different modules
ok ok, thanks
a ui menu mostly take 1-2 modules
except complexs like inventory ui or more
it'll take atleast 3 modules
alright, this one is literally just selecting your player, and choosing a team 😭
goodluck reading those scripts 
you are just lacking in abilities. also, you accepted payment without even looking at the job first? i hope you've learned your lesson.
i'd never continue to work on other people shit though
just bolt on a completely separate menuscript, the owner of the game clearly doesn't care what their codebase looks like
that comes up a lot - 14 year olds hiring 18 year old volunteer scripters to make the game for them, the scripter quits, the 14 year old can't do anything, and so they hire you to clean up
but yea, you're just lacking in ability
even a bad codebase can be worked with if you're half decent
imagine godcodes everywhere 
XD
I looked at the job, the issue isnt the actual job itself, it should be the easiest thing in the world. I wish I could send the code but I signed an NDA :/ Is it really normal for programmers to wrap a single two-frame Ui in 11 module scripts? Is that just something I have to start doing?
dont think thats normal
whats NDA? some agreement?
How should I develop that ability? Just start using modules for everything or what? I've worked for a few "companies" and the code was readable and could be traced easily.
you aint seen bad till you seen messy modulescripts being cloned for every player
so ya the ability is just tracing
ctrl+shift+f bro
it that simpel
yep