Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #5645

Re: Needs help in editing

Path csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!news.glorb.com!postnews.google.com!z7g2000prh.googlegroups.com!not-for-mail
From lewbloch <lewbloch@gmail.com>
Newsgroups comp.lang.java.programmer
Subject Re: Needs help in editing
Date Fri, 24 Jun 2011 08:42:17 -0700 (PDT)
Organization http://groups.google.com
Lines 13
Message-ID <4389af7c-3124-42ea-b092-54999cff42c2@z7g2000prh.googlegroups.com> (permalink)
References <1021f122-3898-4fc9-93ed-ac1aa9403b82@q15g2000yqk.googlegroups.com> <4e03bfb7$0$23665$426a34cc@news.free.fr> <4e03c0a3$0$23665$426a34cc@news.free.fr>
NNTP-Posting-Host 127.6.6.6
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1
Content-Transfer-Encoding quoted-printable
X-Trace posting.google.com 1308930137 13450 127.0.0.1 (24 Jun 2011 15:42:17 GMT)
X-Complaints-To groups-abuse@google.com
NNTP-Posting-Date Fri, 24 Jun 2011 15:42:17 +0000 (UTC)
Complaints-To groups-abuse@google.com
Injection-Info z7g2000prh.googlegroups.com; posting-host=127.6.6.6; posting-account=CP-lKQoAAAAGtB5diOuGlDQk0jIwmH0T
User-Agent G2/1.0
X-Google-Web-Client true
X-Google-Header-Order ASELCHRU
X-HTTP-UserAgent Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/534.30 (KHTML, like Gecko) Chrome/12.0.742.91 Safari/534.30,gzip(gfe)
Xref x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:5645

Show key headers only | View raw


On Jun 23, 3:39 pm, Aéris <ae...@imirhil.fr> wrote:
> I forgot to say you must use an EmployeeFactory to create employee from
> user input (with reflection for example) to avoid harcoded craps switch
> case.

Silly advice to give a newbie.

Actually, silly advice to give anyone.  There's no "must use" in
factory methods or classes.  Reflection is an elephant gun for
shooting fleas; simple polymorphism suffices in most cases.

--
Lwq

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Needs help in editing Eric <ehtisham@gmail.com> - 2011-06-23 11:25 -0700
  Re: Needs help in editing Aéris <aeris@imirhil.fr> - 2011-06-24 00:35 +0200
    Re: Needs help in editing Aéris <aeris@imirhil.fr> - 2011-06-24 00:39 +0200
      Re: Needs help in editing lewbloch <lewbloch@gmail.com> - 2011-06-24 08:42 -0700
        Re: Needs help in editing Aéris <aeris@imirhil.fr> - 2011-06-24 21:28 +0200
          Re: Needs help in editing Lew <noone@lewscanon.com> - 2011-06-26 13:30 -0400
            Re: Needs help in editing Aéris <aeris@imirhil.fr> - 2011-06-26 21:49 +0200
              Re: Needs help in editing Lew <noone@lewscanon.com> - 2011-06-26 16:32 -0400
              Re: Needs help in editing Lew <noone@lewscanon.com> - 2011-06-26 16:35 -0400
  Re: Needs help in editing rossum <rossum48@coldmail.com> - 2011-06-23 23:42 +0100
  Re: Needs help in editing William Colls <william.colls@rogers.com> - 2011-06-23 22:40 -0400
    Re: Needs help in editing Lew <noone@lewscanon.com> - 2011-06-26 13:40 -0400
  Re: Needs help in editing Roedy Green <see_website@mindprod.com.invalid> - 2011-06-27 20:05 -0700
  Re: Needs help in editing Lew <noone@lewscanon.com> - 2011-06-28 00:09 -0400

csiph-web