prmr / designbook Goto Github PK
View Code? Open in Web Editor NEWCompanion repository for the book "Introduction to Software Design with Java"
Companion repository for the book "Introduction to Software Design with Java"
The following Java libraries are deprecated because of a lack of event richness:
java.util.Observable
java.util.Observer
Other libraries such as java.beans.PropertyChangeListener
, java.beans.PropertyChangeSupport
, java.util.concurrent.Flow
are more versatile (and might be worth expanding on in class!).
"At this point the only thing left it to put the poem together by assembling the
twelve verses."
Should be:
"At this point the only thing left is to put the poem together by assembling the
twelve verses."
Currently, the book calls comparator.comparing
, but comparator
is the name of an instance that has not been constructed yet.
Comparator<Card> comparator =
comparator.comparing(Card::getSuit());
The correct code should be capitalized Comparator.comparing
because comparing
is a static method in the Comparator
class.
Comparator<Card> comparator =
Comparator.comparing(Card::getSuit());
MemorizingDeck
should have field named aDrawnCards
not aCards
Hello @prmr,
I wanted to let you know that there is missing a line break on line 7 of the code sample on page 234.
The code is still readable, but could be a quick fix in the next version. ๐
Current version:
Fortunately, we saw how to deal with this situation with the Interface Segregation Principle (ISP, see Section 3.2).
Correction:
Fortunately, we saw how to deal with this situation with the Interface Segregation Principle (ISP, see Section 3.8).
Hi prof @prmr ,
Just wanted to let you know on page 77, at the end of the Special values of an enumerated type bullet point, that:
although we have four ranks and 13 suits
Should probably be reversed, like so:
although we have 13 ranks and four suits
Cheers!
Just noticed a small typo on page 270 that I thought you might want to be made aware of:
It some cases, however, we want to be able to operate ...
Should probably read:
In some cases, however, we want to be able to operate ...
Missing ")" for
return String.format("%s: %s (%d minutes", title(), extra(), time());
and missing :
in problem description to be consistent with solution:
$TITLE$ [...] ($TIME$ minutes)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.