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.

A Diatribe on Maintaining State

11 pointsby briandollover 14 years ago

2 comments

RodgerTheGreatover 14 years ago
This article uses the phrase "maintaining state", but it's really talking about controlling the visibility of instance variables, and on a higher level using interfaces to provide loosely-coupled contracts for the behavior of classes. Using the same ideas within classes to "shield" instance variables from internal code is a good practice.<p>While the examples are in Ruby, this is the kind of design philosophy that is typically applied to Java development. Perhaps there's some hope for Ruby after all. :)
zachinglisover 14 years ago
A rather long post but the subject is spot on! I totally agree.
评论 #1661653 未加载