-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Backend Code Refactoring for Better Readability and Scalability #530
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@robbiebusinessacc is attempting to deploy a commit to the Arc53 Team on Vercel. A member of the Team first needs to authorize it. |
Codecov Report
@@ Coverage Diff @@
## main #530 +/- ##
==========================================
+ Coverage 17.50% 17.54% +0.03%
==========================================
Files 59 59
Lines 2719 2713 -6
==========================================
Hits 476 476
+ Misses 2243 2237 -6
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
@holopin-bot @robbiebusinessacc Thank you! |
Congratulations @robbiebusinessacc, you just earned a badge! Here it is: https://holopin.io/claim/clnjh82pk32890flc7y1ynl9d This badge can only be claimed by you, so make sure that your GitHub account is linked to your Holopin account. You can manage those preferences here: https://holopin.io/account. |
@robbiebusinessacc we are finalising our order for shirts, we need an address to send your shirt to, please fill this in |
Overview
This pull request introduces changes to the backend code to enhance its readability, maintainability, and scalability.
Changes:
Simplified Conditional for API Call
Reduced redundant conditions for determining when to call the OpenAI API.
Concise String Manipulation
Optimized the string manipulation method for joining parts of a title.
Scalable Code for Language Support
Introduced a dictionary-based approach for language support, making it more scalable. This ensures that new languages can be added in the future with minimal changes, as opposed to multiple conditional statements.
Conclusion:
These backend modifications aim to make the codebase more intuitive and future-proof. Feedback is appreciated.