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

Feedback Manual #2

Open
wants to merge 52 commits into
base: feedback
Choose a base branch
from
Open

Feedback Manual #2

wants to merge 52 commits into from

Conversation

StarostaGit
Copy link

No description provided.

github-classroom bot and others added 30 commits April 12, 2022 18:08
@StarostaGit
Copy link
Author

Całość powinna być jednym projektem z odpowiednio wydzielonymi targetami do budowania i odpalania.

@StarostaGit
Copy link
Author

StarostaGit commented Sep 28, 2022

/leave
Message sent successfully. Server code: 200 OK
Enter room name
my_room
my_room
Joined room 'my_room'
[2022-09-28 08:43:22.891307024 UTC] SERVER: piotr has left the chat
[2022-09-28 08:43:28.457892037 UTC] SERVER: piotr has joined the chat

To jest dosyć nieoczekiwane zachowanie. Trzeba dwa razy wpisać nazwę pokoju po wyjściu, żeby ponownie dołączyć (a raczej, dopiero to co się wpisze za drugim razem jest brane pod uwagę). Dodatkowo, czemu dołączenie do pokoju oznacza opuszczenie pokoju (jakiego?) i natychmiastowe dołączenie?

@StarostaGit
Copy link
Author

Dobrze byłoby poinformować również jak ktoś opuszcza pokój

client/src/main.rs Outdated Show resolved Hide resolved
Comment on lines 19 to 20
const ADDR: &str = "http://0.0.0.0:8080";
const WS_ADDR: &str = "ws://127.0.0.1:8000/ws";
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Najlepiej jakby to było argumentem podawanym z linii komend, z defaultowymi wartościami

client/src/main.rs Outdated Show resolved Hide resolved
client/src/main.rs Outdated Show resolved Hide resolved
client/src/main.rs Outdated Show resolved Hide resolved
mod utils;

const WS_ADDR: &str = "127.0.0.1:8000/ws";
const SERVER_SIGNATURE: &str = "SERVER"; //TODO: zarezerwowanie tego nicka
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Gdybyśmy chcieli potencjalnie rozwinąć ten projekt i klienci mogliby się podłączać do wielu serwerów, wtedy opcja podawania nazw serwera byłaby przydatna (i pewnie do podanej nazwy chcemy dodać jakis odpowiedni prefix, żeby wiedzieć, że to serwer). Ale to tylko hipotetyczna sytuacja.

server/src/main.rs Outdated Show resolved Hide resolved
server/src/main.rs Outdated Show resolved Hide resolved
}
});

let addr = "127.0.0.1:8080"
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Jeden adres zahardkodowany na górze, a ten tutaj. A spodziewam się, że powinno być to to samo ip

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Innymi słowy, należy to przenieść do wspólnego miejsca, a także umożliwić podanie tego jako argument przez CLI

server/src/handler.rs Outdated Show resolved Hide resolved
kfernandez31 added 2 commits October 5, 2022 08:48
Made the project work under one cargo.toml, added a readme and descri…
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants