mirror of
https://github.com/quasar/Quasar.git
synced 2026-04-25 15:25:59 +03:00
[PR #139] [MERGED] Separated the command handlers #998
Labels
No labels
bug
bug
cant-reproduce
discussion
duplicate
easy
enhancement
help wanted
improvement
invalid
need more info
pull-request
question
wont-add
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/Quasar#998
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/quasar/Quasar/pull/139
Author: @yankejustin
Created: 5/16/2015
Status: ✅ Merged
Merged: 5/16/2015
Merged by: @MaxXor
Base:
master← Head:SeparateCommandHandlers📝 Commits (2)
ac93887Separated the CommandHandler4bda01aSeparated the CommandHandler📊 Changes
13 files changed (+1614 additions, -1502 deletions)
View changed files
📝
Client/Client.csproj(+5 -0)📝
Client/Core/Commands/CommandHandler.cs(+3 -929)➕
Client/Core/Commands/ConnectionHandler.cs(+98 -0)➕
Client/Core/Commands/FileHandler.cs(+244 -0)➕
Client/Core/Commands/MiscHandler.cs(+224 -0)➕
Client/Core/Commands/SurveillanceHandler.cs(+135 -0)➕
Client/Core/Commands/SystemHandler.cs(+287 -0)📝
Server/Core/Commands/CommandHandler.cs(+3 -573)➕
Server/Core/Commands/ConnectionHandler.cs(+94 -0)➕
Server/Core/Commands/MiscHandler.cs(+131 -0)➕
Server/Core/Commands/SurveillanceHandler.cs(+197 -0)➕
Server/Core/Commands/SystemHandler.cs(+189 -0)📝
Server/Server.csproj(+4 -0)📄 Description
What this changes:
These changes do not modify or change the function of the code.
These changes merely improve the code so it is easier to use, read, and change.
Reason:
I realized that, eventually, I was reading and constantly having to waste time scrolling through long classes of the server and client's CommandHandler.cs
These two classes were each ~1,000 lines. I reasoned that these should be separated. Just to help us programmers out so we don't have to constantly spend time scrolling and scrolling. As a bonus, logic is separated.
Will this affect the code output?:
No. The resulting code is not affected. Because these different Command Handler files are partial classes, that means that when it is compiled, these files will be treated as if they are together.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.