TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

99 Bottles of OOP now available in Python

255 pointsby mattcollins6 months ago

12 comments

crabmusket6 months ago
I&#x27;d like to mention that despite OOP being in the title, I thought this book had a lot to teach that isn&#x27;t specific to OOP architecture or OOP languages. Really, I think the star of the show is TDD and refactoring.<p>For a short intro to Sandi&#x27;s style and approach, I always recommend this 35min talk: <a href="https:&#x2F;&#x2F;youtu.be&#x2F;OMPfEXIlTVE?si=Ird6t8uDN86T06Y7" rel="nofollow">https:&#x2F;&#x2F;youtu.be&#x2F;OMPfEXIlTVE?si=Ird6t8uDN86T06Y7</a><p>Aside from any specifically educational content, as a talk it is fantastic - funny, smart, well put together.
lastofus6 months ago
This is one of my favorite software development books of all time. It&#x27;s the book that finally offered straight forward guidance and wisdom on how to properly utilize OOP language features.<p>I&#x27;m very happy to see it out for Python!
评论 #42188180 未加载
评论 #42196085 未加载
robomc6 months ago
Maybe this is misguided, but it feels a bit to me (comparing the ruby and js versions for example) that this is using the same code examples in both, and neither are really typical of the sorts of code people in either language community would actually write?
评论 #42197021 未加载
SiempreViernes6 months ago
&gt; The 2nd Edition contains 3 new chapters and is about 50% longer than the 1st.<p>I&#x27;ve never really had the problem that I&#x27;ve read an OOP text and felt &quot;this was too short&quot;.
kubav16 months ago
Is the book DRM free? Sorry to be this paranoid, but you cannot be sure today.
评论 #42188858 未加载
评论 #42190958 未加载
评论 #42189199 未加载
评论 #42189346 未加载
elashri6 months ago
Previous Discussion<p>Bottles of OOP - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=12129821">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=12129821</a> - July 2016 (71 comments)
评论 #42189649 未加载
inanepenguin6 months ago
While I understand the complaints against OOP, I highly recommend this book to anyone working in an environment where they&#x27;re working with OOP languages&#x2F;frameworks. There are plenty of Ruby&#x2F;Rails shops out there still. At the very least I love the mentality that this book teaches and often recommend Tidy First by Kent Beck at the same time.
gigatexal6 months ago
I’m gonna buy the book but I prefer composition over OOP. I prefer to have an init that takes some params where those params are fully baked clients of whatever services I need and then the class just uses them as needed. I don’t see a lot of value in having a Python class that might have a few or more classes that it extends where all the functions from all the classes crowd up the classes namespace.<p>Class Foo.__init__(self, db, blob_storage, secrets_manager, …)<p>Instead of class Foo(DB, BlobStorer, SecretsMgr)<p>Etc
评论 #42190800 未加载
评论 #42191086 未加载
评论 #42193088 未加载
评论 #42190856 未加载
dennisy6 months ago
I have seen quite a few digital books at this price point now. Personally I feel it is quite high, but I assume I am in the minority?
teraflop6 months ago
HN&#x27;s automatic title editing strikes again. The title of this submission should presumably be: &quot;99 Bottles of OOP now available in Python&quot;.
评论 #42188430 未加载
评论 #42194129 未加载
评论 #42188093 未加载
评论 #42194814 未加载
评论 #42193789 未加载
cutler6 months ago
OOP is an industry of its own which generates a ton of incidental complexity. See &quot;Object-Oriented Programming is Bad&quot; by Brian Wills (<a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=QM1iUe6IofM" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=QM1iUe6IofM</a>) and most of Rich Hickey&#x27;s excellent videos, especially his keynote at Rails Conf 2012 where he basically told the Ruby crowd they&#x27;re doing it wrong (<a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=rI8tNMsozo0" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=rI8tNMsozo0</a>).
评论 #42191386 未加载
评论 #42191094 未加载
评论 #42190770 未加载
评论 #42191490 未加载
otteromkram6 months ago
Thank you for using snake_case.<p>That&#x27;s all I got. Best of luck!
评论 #42203729 未加载