function flip(n) {
if (n == 1) {
return 2;
}
return 1;
}
greatest function ever written, it will save humanity and stop the AI takeover
function flip(n) {
if (n == 1) {
return 2;
}
return 1;
}
greatest function ever written, it will save humanity and stop the AI takeover
game = yes
hacks = no
ts coding shit is easy
You might be ON something
this is so useless, it hurts my eyes
mondely [#4]this is so useless, it hurts my eyes
i actually needed it though :sob:
coding is easy until you make a program with 100+ variables and no comments (how i coded my VCT data program)
catzin [#5]i actually needed it though :sob:
ok :( it was useful ig for quickly flipping if u rlly need to use it over and over again for some reason for alot of other functions
yes
Foxym [#6]coding is easy until you make a program with 100+ variables and no comments (how i coded my VCT data program)
100+ variables isn’t that bad. no comments is cancer though, u atleast put small reminders so u don’t have to figure everything out again after being away from it for awhile
Foxym [#6]coding is easy until you make a program with 100+ variables and no comments (how i coded my VCT data program)
Bruh who need comments anyways, code hygiene is only something told in books to programers once they grow up, a fairytale
mondely [#9]100+ variables isn’t that bad. no comments is cancer though, u atleast put small reminders so u don’t have to figure everything out again after being away from it for awhile
i dont really think so
for me atleast, the variables and functions are self explanitory enough though
https://pastebin.com/qM7kyC92
SENfns [#2]game = yes
hacks = nots coding shit is easy
local game = true
local hack = false
Foxym [#11]i dont really think so
for me atleast, the variables and functions are self explanitory enough though
https://pastebin.com/qM7kyC92
KIWOOM DRX aka "KRX"... absolute terror of a rename
REALLLLLLLL THIS SHIT IS SO ASS
Foxym [#11]i dont really think so
for me atleast, the variables and functions are self explanitory enough though
https://pastebin.com/qM7kyC92
variables are not self explanatory. the whole point of comments is not just to understand what a variable does but how it all comes together to work with the other parts of a function/object/class/file
SPR1NG [#10]Bruh who need comments anyways, code hygiene is only something told in books to programers once they grow up, a fairytale
i dont do that many comments, but have some atleast bro
mondely [#15]i dont do that many comments, but have some atleast bro
I have projects with like over 30000 lines of code without comments but yea it fucking painfull af finding stuff in there. Luckely I've improved a bunch on doing comments
SPR1NG [#16]I have projects with like over 30000 lines of code without comments but yea it fucking painfull af finding stuff in there. Luckely I've improved a bunch on doing comments
wth 30k lines?
do u not have seperate files
mondely [#14]variables are not self explanatory. the whole point of comments is not just to understand what a variable does but how it all comes together to work with the other parts of a function/object/class/file
thats why i said for me
Foxym [#18]thats why i said for me
t try to add a few comments bro. trust, it will be helpful
mondely [#19]t try to add a few comments bro. trust, it will be helpful
Foxym [#20]
W goodluck broski
mondely [#17]wth 30k lines?
do u not have seperate files
In this instance no, it was a fucking stupid project however so thats the reason
SPR1NG [#22]In this instance no, it was a fucking stupid project however so thats the reason
make sense. atleast u can say u did a project with +30k lines
ammo = 0
if ammo == 0:
print("Reloading... ")
else:
print("Fighting ")
print("Reloads mid-fight 🤡")
mondely [#14]variables are not self explanatory. the whole point of comments is not just to understand what a variable does but how it all comes together to work with the other parts of a function/object/class/file
just to clarify: do you mean comments or documentation?
Targu1n [#25]just to clarify: do you mean comments or documentation?
comments. it isn't documentation because it is more brief and alot less organized
Pikachu_Gay [#24]ammo = 0
if ammo == 0:
print("Reloading... ")
else:
print("Fighting ")
print("Reloads mid-fight 🤡")
who's more gay greninja or pikachu
catzin [#5]i actually needed it though :sob:
for what?!?!?
mondely [#26]comments. it isn't documentation because it is more brief and alot less organized
then I have to disagree with your above comment
comments (as in "notes" that are to be read alongside the code) should never be necessary (they ofc are from time to time, however they should be used with purpose)
proper naming + documentation should be used to achieve the goal you described above
(the most practical reason being that your ide shows you documentation, but doesnt show you comments when accessing a function/variable from another location)
So e.g. (from https://realpython.com/documenting-python-code/#commenting-vs-documenting-code)
def say_hello(name):
"""A simple function that says hello... Richie style"""
print(f"Hello {name}, is it me you're looking for?")
vs
def hello_world():
# A simple comment preceding a simple print statement
print("Hello World")
Targu1n [#29]then I have to disagree with your above comment
comments (as in "notes" that are to be read alongside the code) should never be necessary (they ofc are from time to time, however they should be used with purpose)
proper naming + documentation should be used to achieve the goal you described above
(the most practical reason being that your ide shows you documentation, but doesnt show you comments when accessing a function/variable from another location)So e.g. (from https://realpython.com/documenting-python-code/#commenting-vs-documenting-code)
def say_hello(name):
"""A simple function that says hello... Richie style"""
print(f"Hello {name}, is it me you're looking for?")vs
def hello_world():
# A simple comment preceding a simple print statement
print("Hello World")
I never said u HAVE to use comments but that it is good to have comments
mondely [#30]I never said u HAVE to use comments but that it is good to have comments
fair
however what you described initially is something you HAVE to have (just in documentation form)
Targu1n [#31]fair
however what you described initially is something you HAVE to have (just in documentation form)
u can put anything u want in comments. if it helps u, u can put it. it isn't always strictly to only describe a simple variable or line
mondely [#32]u can put anything u want in comments. if it helps u, u can put it. it isn't always strictly to only describe a simple variable or line
ofc^^
the point wasnt to say what a comment is or isnt*
but that python (and most languages) have a special form of comment for exactly what you wanted Foxym to add
*(Like idk if you already have the "privilege" of working at a company with an old propitiatory codebase, but youll be surprised how many different forms of comments and documentation there are over the years xD We have an old internal Java 1.6 application that come with a hand written book to document/comment on its inner workings. So like I aint trying to judge cause itll always be better than that shit.)
mondely [#23]make sense. atleast u can say u did a project with +30k lines
Yea my portfolio has some golden points. Unluckely im young
Targu1n [#33]ofc^^
the point wasnt to say what a comment is or isnt*
but that python (and most languages) have a special form of comment for exactly what you wanted Foxym to add*(Like idk if you already have the "privilege" of working at a company with an old propitiatory codebase, but youll be surprised how many different forms of comments and documentation there are over the years xD We have an old internal Java 1.6 application that come with a hand written book to document/comment on its inner workings. So like I aint trying to judge cause itll always be better than that shit.)
Lol nice. have a good day bro
pikachu, you see he never goes to his pokeBall