Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do we want to keep unused code in backscope? #45

Open
liammulh opened this issue Jun 8, 2022 · 4 comments
Open

Do we want to keep unused code in backscope? #45

liammulh opened this issue Jun 8, 2022 · 4 comments
Assignees
Labels
maintenance Functionality-orthogonal refactoring or code cleanup that needs doing question Further information is requested

Comments

@liammulh
Copy link
Member

liammulh commented Jun 8, 2022

backscope has unused code. For example, see

class User(db.Model):
.

Should we keep it?

I don't think we should keep it. If we ever need it, can get it using Git.

@liammulh liammulh added question Further information is requested maintenance Functionality-orthogonal refactoring or code cleanup that needs doing meeting To be discussed at weekly meeting labels Jun 8, 2022
@liammulh
Copy link
Member Author

liammulh commented Jun 8, 2022

Also, see:

Screenshot from 2022-06-08 09-54-26

@gwhitney
Copy link
Collaborator

gwhitney commented Jun 8, 2022

This is two different issues, I think. One is the proposal to remove a single empty file in nscope/math_lib. If the init.py file is not necessary and everything runs fine without this empty file, then I am totally fine with removing it and my tendency would be to do it on the next PR that touches math_lib or at least nscope -- hardly seems worth its own PR.

The other seems to be a proposal to remove the User class in nscope/models.py. There, I'd say which way the balance between "cleanliness" vs "minimize unnecessary code changes" would be determined by the extent to which creating accounts/user validation on the Numberscope website is in the roadmap. If it's a feature that will definitely happen, then I'd strongly suggest leaving the current stub. If it's a feature that has been decided against, or seems really unlikely to ever be motivated enough to occur, then I'd be fine with a PR dedicated to pulling out unnecessary stubs for such a feature, like this User class. And in the great unwashed middle, it becomes a real judgment call.

So we could at an upcoming meeting discuss the likelihood of wanting user accounts for Numberscope. I'll put it on the agenda.

@liammulh
Copy link
Member Author

KS and GW: "Basically, we want state to be stored either in the browser or in a URL. We don't want to have to save user data in a DB."

KS: "We might eventually want some sort of login functionality."

@liammulh liammulh removed the meeting To be discussed at weekly meeting label Jun 13, 2022
@gwhitney
Copy link
Collaborator

I believe the plan is to remove unused code/files at the next opportunity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance Functionality-orthogonal refactoring or code cleanup that needs doing question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants