I am ecstatic to announce my new project, the Squash Elo Rating System. This project is created for the Carleton Squash Club.
Why?
When attending the club myself and talking to other players I realized there was a need for a system that could help players see their ranking and/or their progress within the game, while having a conversation with a member we concluded that Chess.com Elo rating system would kind of work for our purposes.
So I made this project to solve that very need based on these principles:
- The thing made should be readily accessible to players
- Players should be able to see their ratings, stats, and any other data easily
- The system should be simple and intuitive
What
So what exactly did I make here is the question you might be asking after reading this long.
Discord Bot (Writing)
Responsibilities/features:
- Authentication: The Carleton Squash club is private, is very well maintained and on top of that, is on Discord, which by itself provides so much fine-tuning for the admins that the authentication and thus bad data is handled by the Discord itself.
- Adding players to the system: Players can only be added through Discord.
- Adding match to the system: The match can only be added through Discord. Also, all the data is also sanitized by the bot.
- Stats: Players can see their stats.
The bot is made entirely in Golang, this is first because I love using it and also it had a very easy-to-use package, with great documentation which helped me get started in no time.
https://github.com/bwmarrin/discordgo
The original vision for this system was for it to be only a Discord bot where players can view their rankings through Discord. This vision was then disrupted by the conversation I had with the members of my club about how they would use the bot. From the conversation, I could see that there would be a hindrance in players wanting to see their stats/rankings/matchups, because every time they do, it would be public. This led me to the decision to add a website to the system.
Adding a website was essential because I want my club's players to see all data at all times without having to think about server etiquette.
Website (Reading)
Responsibilities:
- Getting the rankings
- Getting the player's current stats
- Having all player's matchups
- Having a graphic to view players' recent progression
Like I said I wanted the website to be simple, and I don't like writing auth logic so the website is made to be read not write.
The website is also written in Golang because it is the Best language to write servers in.
In conclusion
I would like to thank the president of my club, Noah, for letting me give this project to the community and for helping me improve it with his input.
I would also like to thank Adam an exec in our club who helped me realize that I should not base my DB on Discord Usernames as people can change them, he helped me change it to Discord IDs that are usually only seen at the API level.
I learned a lot with this project, and I put a lot into it, as of now I am in the process of getting this hosted while waiting on the bureaucracy of it all. In the meantime, I wanted to share this project with you. You can find it on my GitHub.
https://github.com/AaravSibbal/SquashWebsite
The above is the detailed content of Squash Elo Rating System. For more information, please follow other related articles on the PHP Chinese website!

Golang performs better in compilation time and concurrent processing, while C has more advantages in running speed and memory management. 1.Golang has fast compilation speed and is suitable for rapid development. 2.C runs fast and is suitable for performance-critical applications. 3. Golang is simple and efficient in concurrent processing, suitable for concurrent programming. 4.C Manual memory management provides higher performance, but increases development complexity.

Golang's application in web services and system programming is mainly reflected in its simplicity, efficiency and concurrency. 1) In web services, Golang supports the creation of high-performance web applications and APIs through powerful HTTP libraries and concurrent processing capabilities. 2) In system programming, Golang uses features close to hardware and compatibility with C language to be suitable for operating system development and embedded systems.

Golang and C have their own advantages and disadvantages in performance comparison: 1. Golang is suitable for high concurrency and rapid development, but garbage collection may affect performance; 2.C provides higher performance and hardware control, but has high development complexity. When making a choice, you need to consider project requirements and team skills in a comprehensive way.

Golang is suitable for high-performance and concurrent programming scenarios, while Python is suitable for rapid development and data processing. 1.Golang emphasizes simplicity and efficiency, and is suitable for back-end services and microservices. 2. Python is known for its concise syntax and rich libraries, suitable for data science and machine learning.

Golangisidealforperformance-criticalapplicationsandconcurrentprogramming,whilePythonexcelsindatascience,rapidprototyping,andversatility.1)Forhigh-performanceneeds,chooseGolangduetoitsefficiencyandconcurrencyfeatures.2)Fordata-drivenprojects,Pythonisp

Golang achieves efficient concurrency through goroutine and channel: 1.goroutine is a lightweight thread, started with the go keyword; 2.channel is used for secure communication between goroutines to avoid race conditions; 3. The usage example shows basic and advanced usage; 4. Common errors include deadlocks and data competition, which can be detected by gorun-race; 5. Performance optimization suggests reducing the use of channel, reasonably setting the number of goroutines, and using sync.Pool to manage memory.

Golang is more suitable for system programming and high concurrency applications, while Python is more suitable for data science and rapid development. 1) Golang is developed by Google, statically typing, emphasizing simplicity and efficiency, and is suitable for high concurrency scenarios. 2) Python is created by Guidovan Rossum, dynamically typed, concise syntax, wide application, suitable for beginners and data processing.

Golang is better than Python in terms of performance and scalability. 1) Golang's compilation-type characteristics and efficient concurrency model make it perform well in high concurrency scenarios. 2) Python, as an interpreted language, executes slowly, but can optimize performance through tools such as Cython.


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

MantisBT
Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.

MinGW - Minimalist GNU for Windows
This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

PhpStorm Mac version
The latest (2018.2.1) professional PHP integrated development tool

VSCode Windows 64-bit Download
A free and powerful IDE editor launched by Microsoft