Skip to content

Aleinik - 3 tasks complete#35

Open
Katrin-A wants to merge 1 commit intodemologin:mainfrom
Katrin-A:aleinik
Open

Aleinik - 3 tasks complete#35
Katrin-A wants to merge 1 commit intodemologin:mainfrom
Katrin-A:aleinik

Conversation

@Katrin-A
Copy link

@Katrin-A Katrin-A commented Sep 7, 2025

No description provided.

@Katrin-A Katrin-A changed the title aleinik twistencryptor aleinik 3 tasks complete Sep 7, 2025
@Katrin-A Katrin-A changed the title aleinik 3 tasks complete Aleinik - 3 tasks complete Sep 7, 2025
Copy link

@Khmelov Khmelov left a comment

Choose a reason for hiding this comment

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

Приложение хорошо структурировано, и чувствуется некоторые опыт в разработке. Поставил максимальную оценку а

public class TwistEncryptor {
public static void main(String[] args) {
View view = new ConsoleView();
Application application = new Application(view);
Copy link

Choose a reason for hiding this comment

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

Грамотно

public abstract class Alphabet {
protected final int length;
protected final char[] symbols;
protected final Map<Character, Integer> map;
Copy link

Choose a reason for hiding this comment

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

Ну наконец-то кто-то догадался использовать карту. Лайк

" "
).toCharArray());

dictionary = new HashSet<>(List.of("the", "and", "is", "in", "to", "of", "it", "that", "was", "he"));
Copy link

Choose a reason for hiding this comment

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

Если этот словарь никогда не поменяется то лучше сделать его полем и инициализировать там однажды

).toCharArray()
);

dictionary = new HashSet<>(List.of(
Copy link

Choose a reason for hiding this comment

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

Тут то же самое

@@ -0,0 +1,25 @@
package com.javarush.aleinik.twistencryptor.entity;

public class KeyCandidate {
Copy link

Choose a reason for hiding this comment

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

Чувствуется что это не начинающий джава программист

private final Path path;
private int key;

public UserParameters(Language language, Mode mode, int key, Path path) {
Copy link

Choose a reason for hiding this comment

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

Неплохо

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.

2 participants