Codebase cleanup ideas #4447
Replies: 8 comments 17 replies
-
Lovely ideas @jtwaleson! I am super glad someone is taking ownership of the repo quality a bit more! Before diving into the details, I think it is a good idea to do this from the first principles of the code base. I know they are not documented anywhere so let's place them here for now so they are explicit:
On to the points: For 5 and 7 we have clear motivations so I'd prefer to leave these. The hashes workshop is the way it is for a few intricate reasons and we have benefitted a lot from it being like that and since it is an important guard for quality, I fear changing it. However, I have noticed thanks to this discussion that the hashes workflow commits everyday (it initially ran weekly and then was not sooo overwhelming for the commit history) I will pick that up and make it run a bit differently, such that it only commits when it needs to limiting future commits, so thanks for pointing that out. For point 6 I am not sure what you mean, but a lof of Weblate stuff could surely be improved! Note though that weblate (however much we hate it and its annoying PRs and commits) has been a core part of the success of Hedy, meaning that some things will remain the way they are. Hope this helps and looking forward to chat about this more! |
Beta Was this translation helpful? Give feedback.
-
Ow and one more thing: It is hard for me to estimate how much work each of the points is! That too could be quite relevant in prioritising. |
Beta Was this translation helpful? Give feedback.
-
10th point: use black for code autoformatting. |
Beta Was this translation helpful? Give feedback.
-
This is a great idea that I've been considering for a while! Thank you for picking this up, I think type checks is the way to go forward.
Yes, the translation stuff is certainly a place where we could be a little better.
Great! I love the idea of improving the quality of the code, and really appreciate someone taking care of it a bit for us. |
Beta Was this translation helpful? Give feedback.
-
Hi! Something that came up to me, and it's been bugging me for a while: is there a way to enforce code standards on our typescript code? Something similar to black or autopep8? Our TypeScript code is kind of a mess on some places. |
Beta Was this translation helpful? Give feedback.
-
11th point : move the /docs to the wiki and clarify in the README.md that the wiki should be used for all(?) documentation, as I believe that's the direction we want to go towards. The intro + architecture diagram on the main wiki page is really great :) |
Beta Was this translation helpful? Give feedback.
-
@Felienne for the docker compose / makefile / shipping vendor packages issues, I'd like to understand how the python devs with no front-end experience are currently working with the project. Do they work with docker / can we require them to install docker? If we can standardize on a docker compose setup for local deployment:
On the other hand, if we want the developers to work with a locally installed python (in a venv/virtualenv rather than docker) then I agree that the separate npm instructions would be too much effort to ask of novice python developers. |
Beta Was this translation helpful? Give feedback.
-
I'm closing this discussion as the priority now is to resolve issues in the project board, not to get the perfect codebase. Along the way we will make some improvements, like we are already doing (most issues in this discussion fall under the "Contributor Happiness" label). For future reference: things like big migrations are better discussed during the contributors meeting to see what the right direction and priority are. |
Beta Was this translation helpful? Give feedback.
-
Here are some ideas I have to make the codebase a bit better. This is just a brain dump.
shouldcould be built in github actions / heroku deployment.Clean up the translation tooling, the github.Improve the translation tooling. It is an inherently complicated problem but this needs some investigation and see where we can optimize it.that should not happenthis is a bit of an unusual anti-pattern in my experience, I would like to investigate why exactly we do this and either document the reason or refactor it to achieve the same goals in a "cleaner" way.Note: updated some wording marked with
strikethroughafter @Felienne 's comments below.Beta Was this translation helpful? Give feedback.
All reactions