Skip to content

lim 2 task#37

Open
Crestnick wants to merge 3 commits intodemologin:mainfrom
Crestnick:main
Open

lim 2 task#37
Crestnick wants to merge 3 commits intodemologin:mainfrom
Crestnick:main

Conversation

@Crestnick
Copy link

No description provided.

@Crestnick Crestnick changed the title final lim - final Sep 8, 2025
@Crestnick Crestnick changed the title lim - final lim 2 task Sep 9, 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.

Написано интригующая и современно, но почему не разбито на пакеты загадка, насколько я понял реализованный две функции что не очень хорошо, но с учётом на качества кода поставил оценку б

import java.util.Map;

@FunctionalInterface
public interface Alphabet extends Parser, Mapper {
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,7 @@
package ru.javarush.lim.cryptoanalizer.util.alphabet;

public class AlphabetConfig {
Copy link

Choose a reason for hiding this comment

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

Интересно а почему файлы находятся в ресурсах

import java.util.LinkedHashMap;
import java.util.Map;

public record AlphabetData(Map<Character, Integer> direct, Map<Integer, Character> reverse, String symbols) {
Copy link

Choose a reason for hiding this comment

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

Даже записи есть


public class CaesarFileRunner {

private static final Logger logger = LoggerSingleton.getInstance();
Copy link

Choose a reason for hiding this comment

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

То что есть Синглтон тоже неплохо

import ru.javarush.lim.cryptoanalizer.util.logger.LoggerSingleton;

public class ConsoleView {
private final Scanner scanner = new Scanner(System.in);
Copy link

Choose a reason for hiding this comment

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

Сканер можно Injected через конструктор

private LoggerStyle() {
}

public enum TextColor {
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