The Artima Developer Community
Sponsored Link

Java Buzz Forum
Components vs Objects

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Brian McCallister

Posts: 1282
Nickname: frums
Registered: Sep, 2003

Brian McCallister is JustaProgrammer who thinks too much.
Components vs Objects Posted: Aug 27, 2007 9:28 PM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by Brian McCallister.
Original Post: Components vs Objects
Feed Title: Waste of Time
Feed URL: http://kasparov.skife.org/blog/index.rss
Feed Description: A simple waste of time and weblog experiment
Latest Java Buzz Posts
Latest Java Buzz Posts by Brian McCallister
Latest Posts From Waste of Time

Advertisement

One of the nasty questions when using lightweight component-oriented stuff (Spring, Guice, Pico, #{LightweightContainerOfTheMoment}) is what to make a component and what to make somethng that you just instantiate. At one end of the spectrum are folks that say "new is evil, inject everything." I equate that to people who say "mutable state is evil, never change anything" -- cute in principle, but one of the reasons you don't know of a single piece of software written in Clean.

Thinking about it just a moment ago I had the thought "if it maintains internal state it should be an injected component." I certainly don't work this way in practice, but something about the statement rings... as potentially worth investigating.

In the abstract, lie this, the question is absurd and pointless -- "angels on pin" stuff. I definitely have the practices I follow, but I am not sure I can explain them. Weird.

Read: Components vs Objects

Topic: JavaCC, Java 1.5, and StringBuilder Previous Topic   Next Topic Topic: Factory vs Singleton

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use