Skip to content

11 yes no question#100

Open
lonlajordan wants to merge 49 commits intomainfrom
11-yes-no-question
Open

11 yes no question#100
lonlajordan wants to merge 49 commits intomainfrom
11-yes-no-question

Conversation

@lonlajordan
Copy link
Copy Markdown
Contributor

Fixed unrelated histories with main branch

yvankamdem and others added 30 commits April 27, 2023 02:24
* Create markdown-form.md

* Update markdown-form.md

* Update markdown-form.md

* Update markdown-form.md

* Delete markdown-form.md

* Add files via upload

markdown syntax

* Create header-syntax.md

header-syntax

* Create coding-questions.md

coding questions

* Create multiple-question.md

multiple question

* Create yes-no-question.md

yes or no question

* Rename coding-questions.md to coding-question.md

* Create likert-question.md

likert question

* Create open-question.md

open question

* Create affiliate-question.md

* Update coding-question.md

* Update affiliate-question.md

affiliate question

* Update open-question.md

open question

* Create random-question.md

random question

* Delete markdown-syntax.md
likert question with 2 values
adding distinguish sign
The user guide
Copy link
Copy Markdown
Contributor

@SanAlexis SanAlexis left a comment

Choose a reason for hiding this comment

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

Good start !
Need some little improvements.

- Tout à fait d'accord /Très satisfait
- D'accord / Plutôt satisfait
- Ni d'accord, ni pas d'accord / Ni satisfait, ni insatisfait
- Pas d'accord / Plutôt insatisfai
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Résoudre les problèmes de typo (orthographe, etc.)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

dans mon IDE, j'ai pas ce soucis de fautes et je sais pas pourquoi c'est lorsque je push mon code en ligne que j'ai ce soucis de fautes là !

Comment thread src/main/java/com/nyxei/pollingus/PollingusApplication.java
import java.io.FileReader;
import java.io.IOException;

public class Digester {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

There is an opportunity to use an interface like IDigester to be able to mock it during unit tests.

line = reader.readLine();
}
reader.close();
} catch (IOException e) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Since you're writing a digester, you could face two common situations:

  1. encountering a non existing file.
  2. encountering a ill-formated file.

You dealt with the first situation, what about the second ?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

j'ai utilisé un catch ( FileNotFoundExcpetion ) pour traiter la seconde situation

public static void lectureMd(String fileReader){
try {
BufferedReader reader = new BufferedReader(new FileReader(fileReader));
String line = reader.readLine();
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

We should aim at consistency with the used language. English is the preferred one, but if you choose french, use it everywhere.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

nouveau nom de la méthode readMd

HttpClient http = HttpClient.newHttpClient();
HttpResponse<String> response = http.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
} catch (URISyntaxException | IOException | InterruptedException e) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

What happens if the response is a failure ?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

je teste le statuscode et je renvois ce Status pour aider à comprendre l'erreur


public QuestionVisitor(){
//initialser la liste
questions = new ArrayList<>();
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Architecture flag there.
The QuestionVisitor class is the only one to initialise the questions list, but it can't neither modify the list nor give write access to it. Is it done on purpose ?
QuestionVisitor is unable to operate with a already-created questions list. It is done on purpose ?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

j'ai ajouté une son contructeur qui prend une liste de questions en paramètre

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.

6 participants