code

posted in Off Topic
View:
Threaded
Linear
Linear
← View full thread
#1
catzin
0
Frags
+
–

function flip(n) {
if (n == 1) {
return 2;
}
return 1;
}

greatest function ever written, it will save humanity and stop the AI takeover

#2
SENfns
1
Frags
+
–

game = yes
hacks = no

ts coding shit is easy

#3
W1ngFly
0
Frags
+
–

You might be ON something

#4
mondely
0
Frags
+
–

this is so useless, it hurts my eyes

#5
catzin
0
Frags
+
–
mondely [#4]

this is so useless, it hurts my eyes

i actually needed it though :sob:

#6
Foxym
0
Frags
+
–

coding is easy until you make a program with 100+ variables and no comments (how i coded my VCT data program)

#7
mondely
0
Frags
+
–
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

#8
sword2x
0
Frags
+
–

yes

#9
mondely
0
Frags
+
–
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

#10
SPR1NG
0
Frags
+
–
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

#11
Foxym
0
Frags
+
–
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

#12
competitive
0
Frags
+
–
SENfns [#2]

game = yes
hacks = no

ts coding shit is easy

local game = true
local hack = false

#13
catzin
0
Frags
+
–
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

#14
mondely
0
Frags
+
–
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

#15
mondely
0
Frags
+
–
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

#16
SPR1NG
0
Frags
+
–
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

#17
mondely
0
Frags
+
–
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

#18
Foxym
0
Frags
+
–
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

#19
mondely
0
Frags
+
–
Foxym [#18]

thats why i said for me

t try to add a few comments bro. trust, it will be helpful

#20
Foxym
0
Frags
+
–
mondely [#19]

t try to add a few comments bro. trust, it will be helpful

doing rn
https://i.ibb.co/LzSQdQrp/image-1776952581353.png

#21
mondely
0
Frags
+
–
Foxym [#20]

doing rn
https://i.ibb.co/LzSQdQrp/image-1776952581353.png

W goodluck broski

#22
SPR1NG
0
Frags
+
–
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

#23
mondely
0
Frags
+
–
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

#24
Pikachu_Gay
0
Frags
+
–

ammo = 0
if ammo == 0:
print("Reloading... ")
else:
print("Fighting ")
print("Reloads mid-fight 🤡")

#25
Targu1n
0
Frags
+
–
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?

#26
mondely
0
Frags
+
–
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

#27
zappp
0
Frags
+
–
Pikachu_Gay [#24]

ammo = 0
if ammo == 0:
print("Reloading... ")
else:
print("Fighting ")
print("Reloads mid-fight 🤡")

who's more gay greninja or pikachu

#28
Dumbfoon
0
Frags
+
–
catzin [#5]

i actually needed it though :sob:

for what?!?!?

#29
Targu1n
0
Frags
+
–
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")

#30
mondely
0
Frags
+
–
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

#31
Targu1n
0
Frags
+
–
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)

#32
mondely
0
Frags
+
–
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

#33
Targu1n
0
Frags
+
–
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.)

#34
SPR1NG
0
Frags
+
–
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

#35
mondely
0
Frags
+
–
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

#36
Pikachu_Gay
0
Frags
+
–

pikachu, you see he never goes to his pokeBall

  • Preview
  • Edit
› check that that your post follows the forum rules and guidelines or get formatting help
Sign up or log in to post a comment