Cover of A little Java, a few patterns

A little Java, a few patterns

by Matthias Felleisen · first published 1997

10mentions
7recommended by
9HN commenters
2011–2026first – last mentioned

78% recommend22% neutral

Why HN recommends it

Teaches object-oriented design through a question-driven, example-heavy walkthrough of Java and common patterns. It serves as a bridge for those coming from functional thinking into OOP, and it is delightful to read.

Summarised by Claude from recommending comments

Matthias Felleisen and Daniel Friedman use a small subset of Java to introduce pattern-directed program design. With their usual clarity and flair, they gently guide readers through the fundamentals of object-oriented programming and pattern-based design. Readers new to programming, as well as those with some background, will enjoy their learning experience as they work their way through Felleisen and Friedman's lessons.

Affiliate links. As an Amazon Associate I earn from qualifying purchases.

Mentions per year

30 2007: 0 mentions2008: 0 mentions2009: 0 mentions2010: 0 mentions2011: 2 mentions2012: 0 mentions2013: 0 mentions2014: 2 mentions2015: 0 mentions2016: 0 mentions2017: 0 mentions2018: 0 mentions2019: 0 mentions2020: 0 mentions2021: 0 mentions2022: 1 mention2023: 1 mention2024: 3 mentions2025: 0 mentions2026: 1 mention200720172026

What Hacker News says

  • olifante · Aug 14, 2022 · Recommends

    A little Java, a few patterns, by Matthias Felleisen. Delightful book.

    on “Quirky computing books” ↗
  • pkrumins · Dec 29, 2011 · Recommends

    I agree. It's the best book ever. Also see The Seasoned Schemer and The Reasoned Schemer. Similarly there is "A Little Java, A Few Patterns", that one teaches Java, and is written by the same authors. I was so excited about these books that I started writing "The Little C", it's gonna teach C the same way schemer books teach lisp! PS. I…

    on “Deriving the Y Combinator” ↗
  • empthought · Dec 1, 2014 · Recommends

    …example, partial application, passing as arguments for abstraction) that you mention in Java, if a bit tedious (and often pointless, since the standard APIs generally weren't designed with that in mind.) _A Little Java, A Few Patterns_ came out in 1998; give it a read.

    on “Yahoo Mail moving to React” ↗
  • klibertp · Oct 19, 2014 · Recommends

    …It's more pragmatic and immediately useful than The Little/Seasoned Schemer, but this doesn't make it any less about FP. "Spessore" is about OOP, but described from unusual angle: it reminds me of "The Little Java, a Few Patterns" in this regard. It's a great description of how and why OOP works, from the most basic concepts up. Reg's articles on FP in JS and Ruby let me fill the gaps in my knowledge I had because of having no…

    on “Functional Programming in JavaScript: A Collection of Hands-on Exercises” ↗
  • _glass · Jun 24, 2024 · Recommends

    For me best described in, and also as a topic mentioned in the paper about the visitor pattern connection, "A Little Java, A Few Patterns". This book writes really impractical Java, but in such a Scheme way, that you really can understand the deep connections between functional and object-oriented programming.

    on “Deriving Dependently-Typed OOP from First Principles” ↗
  • nextos · Sep 28, 2024 · Recommends

    I don't think there's a centralized community for the Little Series. I think this is unfortunate. With a community, some great titles like The Little MLer (typed FP) and A Little Java, a Few Patterns (OOP) would be much better known. I found those two outstanding. I think A Little Java has been reprinted. But last time I checked, The Little MLer was bloody expensive. Standard ML, OCaml and F# need…

    on “The Little Typer (2018)” ↗
  • rramadass · Dec 19, 2024 · Recommends

    The book A Little Java, A Few Patterns by the same author and his colleague might answer your question.

    on “Developing Developers (2015)” ↗
  • _glass · May 13, 2026 · Recommends

    there's actually a really good book that bridged it well for me when I was doing my bachelors, A Little Java, A Few Patterns. this is from the famous lisp books for groking FP.

    on “Why senior developers fail to communicate their expertise” ↗
  • liendolucas · Dec 24, 2023 · Mentions

    I'm actually not surprised to see the counterfeit warning in the site. Last week I've ordered a book from Amazon Italy (A Little Java, A Few Patterns) only to receive what I do consider a very low quality copy of the book and somehow different edition despite having both the original and this "copy" same ISBNs: https://www.amazon.it/Little-Java-Few-Patterns/dp/0262561158…

    on “The Art of Electronics (2015)” ↗
  • cconroy · Aug 24, 2011 · Mentions

    Good examples of closures / first order functions in java is through a visitor; example below is like the ones in A Little Java, A Few Patterns new Top(new Anchovy(), new Top(new Tuna(), new Top(new Lettuce(), new Bot()))) .accept( new RemVisitor(new Anhovy() ); This removes those smelly Anchovies from your tuna sandwich -- and can be implemented…

    on “Closures – A Simple Explanation (Using Ruby)” ↗

Keyboard shortcuts

/
Focus search
j / k
Next / previous book
Enter
Open focused book
Esc
Close / go back
g h
Go to Home
g t
Go to Top all-time
g m
Go to Most recommended
g r
Go to Rising
g f
Go to For You
?
Show this help