Manning - Bitter Java - Anti-Patterns (2002), Java EE, Manning
[ Pobierz całość w formacie PDF ]
Process and performance
The same
problem
The same
problem
Isolated
problem
The same
problem
Antipattern
Refactored
solution
Refactoring
guide
Process
weakness
Protective Barrier
Solve antipatterns by finding a problem, establishing a
pattern, fixing the problem, and distributing the solution. Fix
the broken process to deploy a protective barrier. Read
about it in section 1.3.2, page 11.
Healthy
enterprise
Fast fail-safe
legacy app
configuration
Fast fail-safe
database
configuration
Data
Web app
server
Web app
server
Web app
server
Firewall
Web
server
Web
server
Web
server
Standby
Sprayer
Deploy high performance Internet
applications with redundant
sprayers and parallel services.
Read about it in section 10.1,
page 284.
Firewall
Internet
Triangle design pattern and related antipatterns
Command
JSP
10 KB Servlet
Servlet
Submit
Client
HTML
Among the most common antipatterns is the
magic servlet. In this bitter pill, a Submit button
triggers a massive servlet, with no logical
delineation of responsibilities. Read about it in
section 3.2, page 59.
Use the triangle design pattern to partition
the user interface and model. Unlike MVC
application, Java Internet applications have
an upstream and downstream view. Read
about it in chapter 3.
JSP
if (command.x = a){
Command
Command
HTML for a
JSP
else if (command.x = b){
Servlet
HTML for b
Servlet
}
Client
HTML
Client
HTML
Sometimes, utilities, model logic, or view logic
can creep into Fat commands. In this
antipattern, performance and maintenance
costs suffer. Read about them in section 4.5,
page 102.
Compound JSPs process too many decisions in
the JSP. Decision logic should be pushed into
the controller. Read about them in section 4.3,
page 88.
Bitter Java
BRUCE TATE
MANNING
Greenwich
(74° w. long.)
For Maggie
For electronic information and ordering of this and other Manning books,
go to www.manning.com. The publisher offers discounts on this book
when ordered in quantity. For more information, please contact:
Special Sales Department
Manning Publications Co.
209 Bruce Park Avenue
Fax: (203) 661-9018
Greenwich, CT 06830
email: orders@manning.com
©2002 by Manning Publications Co. All rights reserved.
No part of this publication may be reproduced, stored in a retrieval system, or transmitted,
in any form or by means electronic, mechanical, photocopying, or otherwise, without
prior written permission of the publisher.
Many of the designations used by manufacturers and sellers to distinguish their products
are claimed as trademarks. Where those designations appear in the book, and Manning
Publications was aware of a trademark claim, the designations have been printed in initial
caps or all caps.
Recognizing the importance of preserving what has been written, it is Manning’s policy to have
the books they publish printed on acid-free paper, and we exert our best efforts to that end.
Manning Publications Co.
Copyeditor: Liz Welch
209 Bruce Park Avenue
Typesetter: Tony Roberts
Greenwich, CT 06830
Cover designer: Leslie Haimes
ISBN 1-930110-43-X
Printed in the United States of America
12345678910– VHG – 05 04 03 02
[ Pobierz całość w formacie PDF ]
Tematy
- Strona pocz±tkowa
- Matura z chemii - marzec 2002 - Arkusz II, Arkusze Maturalne
- Matematyka dyskretna 2002 - 09 Grafy nieskierowane, materiały naukowe do szkół i na studia, Matematyka chomikuj, Skrypty z matematyki chomikuj
- Mazda 6 Workshop Manual 2002, MAZDA
- MAZDA B4000 2002, Elektronika, Mazda
- MAZDA TRIBUTE 2002(1), Elektronika, Mazda
- Mazda 6 - Workshop Manual 2002, â–£ MAZDA 6
- Matura 2002 biologia - klucz opowiedzi, Matura
- MAZDA MX-5 MIATA 2002(1), Elektronika, Mazda
- maj 2002 A2, Matura 2014, Biologia, Matury biologia - rozszerzenie
- Mantak Chia - Dark Room Enlightenment (2002) (8 pages), QiGong
- zanotowane.pl
- doc.pisz.pl
- pdf.pisz.pl
- loko1482.xlx.pl