Skip to content

Front#5

Open
NailKalimov wants to merge 18 commits intomasterfrom
Front
Open

Front#5
NailKalimov wants to merge 18 commits intomasterfrom
Front

Conversation

@NailKalimov
Copy link
Copy Markdown
Owner

No description provided.

public Album update(Long id, Album album) throws NotFoundException {
Optional<Album> albumOptionalFromDB = albumRepository.findById(id);
if (!albumOptionalFromDB.isPresent()) {
System.out.println("Album not found");
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Should use a logger here and everywhere. Using logging and throwing at the same time is a bad practice. https://dev64.wordpress.com/2012/10/07/exception-handling-antipatterns/


var albumApi = Vue.resource("/albums/{/id}");

Vue.component('album-form', {
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Please don't use frameworks. Should use vanilla js or don't write a frontend at all

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