Professional Documents
Culture Documents
T o t h ose t r a in ed a n d ex per ien ced in .NET , V isu a l Ba sic, C libr a r ies a n d ot h er n on -sh ell in t er fa ces, t h e com m a n d-lin e m a y seem lik e a n old-sch ool w a y t o g et t h in g s don e. (If y ou r e a lr ea dy lost , h er es a g ood in t r odu ct ion t o t h e ba sic con cept s). If y ou r focu s is on ea se-of-dev elopm en t a n d ser v er u pt im e, h ow ev er , com m a n d-lin e a pplica t ion s a r e oft en a sm a r t er a n d m or e cost -effect iv e ch oice. I ca n h ea r t h e disbelief a lr ea dy : Hu h ? A r e y ou sa y in g t h a t t h er es been n o r ea l pr og r ess sin ce t h e com m a n d-lin e in t er fa ce w a s in v en t ed?!? V isu a l St u dio is a t v er sion 9 , w h a t else do y ou w a n t ! Gr a n t ed, in com pu t er t er m s, t h e com m a n d-lin e h a s been a r ou n d a lm ost sin ce m a n ca m e dow n fr om t h e t r ees. W h o w a n t s t o r em em ber a ll t h ose opt ion sw it ch es? Ev en so, t a k e a m om en t t o u n der st a n d w h y t h e com m a n d-lin e in t er fa ce st ill m a k es sen se oft en a lot of sen se for m a n y h ig h -lev el pr ocesses in t oda y s m ission cr it ica l ser v er im plem en t a t ion s.
9/27/13
T h e sh or t v er sion is t h is: Goog le decided t h a t r elia bilit y w a s k ey . User s w it h 2 0 t a bs open ca n n ot a ffor d t o h a v e t h e br ow ser g o dow n beca u se on e t a b lock s u p du e t o a fr ea k ed-ou t ser v er or som e r u n a w a y clien t -side Ja v a Scr ipt . Ch r om es desig n er s t h er efor e specified t h a t ea ch br ow ser t a b sh ou ld r u n a s a com plet ely in depen den t pr ocess. In a t h r ea ded br ow ser (lik e t h e on e y ou a r e u sin g n ow , if y ou a r en t u sin g Ch r om e), t h er es n o w a y t o isola t e a pr oblem t a b fr om t h e r est of t h e a pplica t ion . Ru n a w a y t a bs ca n ca u se a loss of da t a in ot h er t a bs, or r equ ir e a com plet e r est a r t of t h e a pplica t ion , a n d som et im es, t h e w h ole m a ch in e. T h a t ca n t h a ppen in Ch r om e.
Ease of Administration
W ev e a lr ea dy n ot ed t h a t in t h r ea ded a pplica t ion s, a t h r ea d t h a t st a r t s ea t in g m em or y or pr ocessor t im e a lm ost a lw a y s m ea n s t h a t t h e a pplica t ion m u st be t er m in a t ed. En t ir e ser v er clu st er s a r e con ceiv ed, in st a lled a n d m a in t a in ed pr ecisely t o h edg e a g a in st t h ese a ll-t oo-com m on ev en t s w h er e w h ole a pplica t ion in st a n ces or m a ch in es n eed t h eir pow er cy cled (t o ch ose t h e k in dest of a v a ila ble eu ph em ism s). A dm in ist r a t iv e con t r ol of ea ch pr ocess fost er s r elia bilit y a n d r esilien cy in t h e sy st em ; t h a t s w h a t ea sy a dm in ist r a t ion sh ou ld be a ll a bou t . W h ile t h e a n sw er t o r elia bilit y con cer n s is u su a lly g et m or e m a ch in es , w it h com m a n d-lin e soft w a r e it doesn t h a v e t o be. Sim ply t er m in a t e t h e offen din g pr ocess. Ca lm ly ex a m in e a n d r ect ify t h e pr oblem file or r ecor d w h ile bu sin ess a s u su a l t a k es pla ce a ll a r ou n d y ou . Y ou ca n g et by w it h fa r few er ser v er s if y ou don t h a v e t o con st a n t ly r est a r t t h em ! T h e a dm in ist r a t or s h a v e t h eir r ea son s, bu t pr ocess isola t ion is a ct u a lly a boon for dev eloper s a s w ell, beca u se isola t ed pr ocesses ca n be u sed t o t est ch a n g es in on es ow n code. In depen den t of y ou r ow n code, a com m a n d-lin e t ool ca n be pr ov en t o w or k or n ot w or k , r ig h t t h er e a t t h e com m a n d-lin e. Su ppor t a n d pr oblem -r esolu t ion is g r ea t ly sim plified w h en t h er es n o fu zzin ess a bou t w h ich code is a t fa u lt .
talkingpdf.org/the-command-line-reliability-never-goes-out-of-style/
2/4
9/27/13
Conclusion
Com m a n d-lin e soft w a r e is cost -effect iv e beca u se it s ea sier t o set u p, ea sier t o debu g , m or e r elia ble t o r u n a n d sim pler t o m a in t a in a n d a dm in ist er . T h e com m a n d-lin e ju st w or k s, a n d let s y ou spen d m or e t im e t h in k in g a bou t bu sin ess object iv es in st ea d of debu g g in g m icr o-lev el libr a r y ca lls. W h ich on e do y ou t h in k y ou r boss w a n t s y ou t o be doin g ? By Duff Johns on
talkingpdf.org/the-command-line-reliability-never-goes-out-of-style/ 3/4
9/27/13
talkingpdf.org/the-command-line-reliability-never-goes-out-of-style/
4/4