Tag: Java
All the articles with the tag "Java".
The First Example Compares `pizza`, Not `type`
A 2016 write-up following Head First through the factory patterns. The concepts are textbook-correct, but all three code sections are broken — and they break the same way. Take the type as a string and there's nothing for the compiler to see.