Skip to content

Lab 02#44

Open
Dzenonia wants to merge 10 commits into
Rrenkens:mainfrom
Dzenonia:lab-02
Open

Lab 02#44
Dzenonia wants to merge 10 commits into
Rrenkens:mainfrom
Dzenonia:lab-02

Conversation

@Dzenonia

Copy link
Copy Markdown

No description provided.


public class Program implements Runnable{
private final Model model;
public Program(String pathToFile) throws IOException {

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

А зачем помечать его Runnable если это нигде не используется?



@Override
public void run() {

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

А тут зачем помечать что это Runnable и нигде это не использовать?

}
}

public synchronized Integer stealCargo(String cargo, Integer count) {

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

тут лучше тогда тоже указывать synchronized (currentWeight).

private String getLogFileName() {
SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd_HH-mm-ss");
String timestamp = dateFormat.format(new Date());
return "lab-02/by/Dzenia/docks_and_hobos/logs/log_" + timestamp + ".log";

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Никогда не вшивайте имена в код, сделайте какой-нибудь доп параметр.

@Rrenkens

Copy link
Copy Markdown
Owner

Основная оценка:

  • -0.2 за замечания.

Допы:

  • +0.5 за logger. Он не меняется через n.
  • +2 за cv.

В итоге:
Основная оценка – 9.8.
Допы – 2.5.

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