Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #5692
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.42!gegeweb.eu!nntpfeed.proxad.net!proxad.net!feeder1-1.proxad.net!cleanfeed1-b.proxad.net!nnrp9-2.free.fr!not-for-mail |
|---|---|
| Date | Sun, 26 Jun 2011 21:49:03 +0200 |
| From | Aéris <aeris@imirhil.fr> |
| User-Agent | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110606 Icedove/3.1.10 |
| MIME-Version | 1.0 |
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: Needs help in editing |
| References | <1021f122-3898-4fc9-93ed-ac1aa9403b82@q15g2000yqk.googlegroups.com> <4e03bfb7$0$23665$426a34cc@news.free.fr> <4e03c0a3$0$23665$426a34cc@news.free.fr> <4389af7c-3124-42ea-b092-54999cff42c2@z7g2000prh.googlegroups.com> <4e04e54a$0$6275$426a34cc@news.free.fr> <iu7qcd$g7l$1@news.albasani.net> |
| In-Reply-To | <iu7qcd$g7l$1@news.albasani.net> |
| X-Enigmail-Version | 1.1.2 |
| Content-Type | text/plain; charset=UTF-8 |
| Content-Transfer-Encoding | 8bit |
| Lines | 30 |
| Message-ID | <4e078d2f$0$4541$426a74cc@news.free.fr> (permalink) |
| Organization | Guest of ProXad - France |
| NNTP-Posting-Date | 26 Jun 2011 21:49:03 MEST |
| NNTP-Posting-Host | 88.187.112.21 |
| X-Trace | 1309117743 news-2.free.fr 4541 88.187.112.21:59717 |
| X-Complaints-To | abuse@proxad.net |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:5692 |
Show key headers only | View raw
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Le 26/06/2011 19:30, Lew a écrit : > > Reflection is mostly avoidable. A little light use of > 'Class#newInstance()' with package-private builders called by a factory > method isn't very risky and avoids the typical mad craziness of looking > up 'Method' or 'Constructor' instances. If you're going down that > latter route, leave programming to those better equipped for it. This is what I say… On clean code, Class#newInstance + setter avoid reflection. But on the craps given code, empty constructor is not available, so Class#newInstance is not usable in this case… - -- Aeris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEcBAEBAgAGBQJOB40kAAoJEK8zQvxDY4P9tDcIAMPn2uiUEqevh3Ev26yrh7JK SKZsCxfzEtlXmiTjFUItF2XQVZDWChiL+UGpjyrCQhHnyeeL35hRiWWmdfJyxTEw IPx5VJ44+7Jk2WAmdGh4fsHDYuYETXKKkfqJnZYZFQPDIElfA6rOBLJgLD+e9Kvj PuALhiKa8mqss483NLBVTBYB1303Ro5LoXpkljKl3tIGhI5h3GES8A1QxZJEXHha wdrDjtoaAOKa9OfClhZarnEEx07QwxmXE0rAp/OPsUPwtpUgpYgSEB5EopQsNhcA C53q+1/B2DNFR7Q2miQrM7uajd4e0C46Fm3obxUSmfzhz6QZm/fhqaIxCgICfrM= =CiIk -----END PGP SIGNATURE-----
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar
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