sandykr01 in  
Computer Science  

Best Coding Practices: How to decide where to place your code in your codebase?

Hello Everyone,

I recently worked on a pull request where I needed to create a function. This function's purpose is to determine whether a given file is associated with a specific account. It accomplishes this by utilizing certain database resources, which we'll refer to as "X."

Here's the question I'd like your input on: We have two separate database modules. One is dedicated to handling the files and all other stuff related to file processing, while the other is dedicated to all the processing related to resource X. My function's role is to assess the file's association with an account, even though it doesn't directly interact with the files themselves. Instead, it relies on resource X to make this determination.

Now, the question is: In which module should I place this function, the files related module or the resource X related module? I value your suggestions and insights on this matter.

Thank you for your input.
1
1295
Sort by:
19g614l3k6kkeuFull-Stack Software Engineer  
The project should have a place where you can discuss this (sometimes through issues / feature requests or even a discord server).

1. Make sure that it's something they want
2. Ask the owners through one of these where they'd like it and provide your input for where you think it belongs
1

About

Public

Software Engineer

Members

80,182