I wanted to share example of how not to write code:
https://github.com/NoelFB/Celeste/blob/master/Source/Player.cs
(and to get more posts on this forum)
I wanted to share example of how not to write code:
https://github.com/NoelFB/Celeste/blob/master/Source/Player.cs
(and to get more posts on this forum)
Looks… code-y? I really can’t see the issue. (though I’m not good at coding, so…)
The issue is that the file is a monster at 5000 lines long and there’s so much nesting and spaghetti in it that it’s hilarious to programmers. I remember seeing something similar for terraria. So actually released games must have bad code as a requirement for release.
And we are working on improving thrive’s code, so…
Wow, that’s a lot of lines Haha
Despite the fact that I have barely done any coding and/or programming (besides Paradox mods), it still looked like bad coding to me, which… probably means something about me.
Oh wow… I did not realize that this was only a small part of the whole file…
That does look rather confusing, and the notes don’t really help (What the Belgium is a “sweat move”)
The code mentioned something about a sweat sprite, so I can only guess it’s the sweat sprite sweating.
sweat
hey dont diss my man noel fb
i take it back
is the whole game written in one script?
You know a script is gonna be good when the first 250+ lines are just variable declarations xD
Edit: also this SO thread is relevant.
Well did a novice programmer make this first off. If so I think this is pretty good for that person not everyone has godlike programmer status. I feel like I’m going to get 50 people telling me I’m an idiot
I’m deleting the double post I accidently made, sorry.
That code is from the game
Which has been hyped recently. So they managed to make a good game with terrible programming.
Oh, well does the game run without lag at least. But I’m not a programmer… yet, maybe.
They got lucky !
Until Next time, MWAHAHAHAHA!!! (couldn’t find a devil face, this will have to do)
{
if brain=off
then.execute(brain_activate)
}
ERROR 101: No brain found
YOU HAD TO REVIVE THIS THREAD
(you are the necromancer of posts so…)
just let the dead rest in peace you monster
So, I went around to making a bot for my private discord server. The first function I made for it is a random user selector.
However, my method of retrieving users is laughable - a static reference table. The reasoning being, that the rate of new user gain is less than once a month, so I can just add new users to the table and keep it simple.
The RNG in JavaScript is really bad, though. I might have a small sample size, but it’s been tagging the same three or four people (out of eight) with alarming frequency, and two of us (including me) haven’t even been tagged yet.