ClaireRoush / ReactGirlySocialNetwork

A smol social network for cuties!!
https://rgsn.live
4 stars 1 forks source link

Create code of conduct #92

Open OlegSuperBro opened 1 week ago

OlegSuperBro commented 1 week ago

We need some sort of instruction, how to write code to make repository code more consistent. What are the rules we need to define?

IMPORTANT if no responses are written in a week, i'll write it by myself :)

froggy-jpg commented 1 week ago

do we really need this at the moment? i fear this might scare away potential contributors although i think we would need it at some point of course, just not right now

OlegSuperBro commented 1 week ago

that's actually a reason why i think we should create it now. Soon we will work on code refactoring (as @ClaireRoush planning), which means a lot of rewritten code. If we don't define rules for code before this refactoring, we will have to make another refactoring. I don't mean to scare new contributors (or existing ones). I think in theory it can attract new contributors, because code will be more consistent and simple to understand. Also i don't want to make code of conduct too strict, so i think it should just define how code should function. For example:

froggy-jpg commented 1 week ago

okay, sounds good to me then :) i have no objections, you can start writing it :frog:

OlegSuperBro commented 1 week ago

well, i still have no idea what are right and what is wrong to do in code, so i hope to get your suggestions My current suggestions are:

For both:

For backend:

For frontend:

For now it's everything i think will make development easier. I'm not sure how comfortable is this and what should be for styles (i made 0 changes in css files lol), but still, i think at least those rules will make further development and scaling easier

froggy-jpg commented 1 week ago

i have no clue what any of this means to be honest xD so it isnt really my place to dictate the rules

ClaireRoush commented 4 days ago

Yeah, i fully agree with all above, this example of cude of conduct i amazin. How appropriate would it be to add here rules for folder structures from #90 too?

OlegSuperBro commented 3 days ago

Yeah, i fully agree with all above, this example of cude of conduct i amazin. How appropriate would it be to add here rules for folder structures from #90 too?

maybe then just say in coc that you shouldn't put type in pages folder? I'll write a folder structure and where to put things

OlegSuperBro commented 2 days ago

i think we also need to add eslint for most rules