Ruby On Rails // retrospektiva

3,035 views

Published on

Ruby On Rails // retrospektiva

(this presentation is in Croatian)

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
3,035
On SlideShare
0
From Embeds
0
Number of Embeds
58
Actions
Shares
0
Downloads
0
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Ruby On Rails // retrospektiva

  1. 1. Ruby On Rails
  2. 2. Magiéni okvir za izradu modernih WEB rjesenja There is no spoon*
  3. 3. "" ri“ W»: _'i-. ./ ». .4!| Ruby On Rails lnterpretirani skriptni jezik Po uzoru na LISP, Smalltalk, Perl i CLU Agilan i objektno orijentiran Sveje objekt, Eak i slovni podaci Developer cycles vs CPU cycles
  4. 4. I Dva C V Cista + Citka sintaksa class Project < ActiveRecord: :Base be1ongs_to zportfolio has_one : project_manager, :c1ass_name = > "Person" has_many zmilestones, zdependent = > true has_and_be1ongs_to_many zcategories, :join_table = > "cats" end
  5. 5. lde vrijeme, dode rok, et0 vraga skok na skok! BaseCamp ekstrakcija Sredinom 2004. javno dostupna Krajem 2005. verzija 1.0, uskoro 1.2 Apple 5 Leopardom distribuira Rails-e Adobe Rails SDK for Flex
  6. 6. r rv r 37slonais1-i- Basecamp‘ Project Collaboration Utopia Join over 500,000 people like you who've discovered Basecamp - the smarter. easier, more elegant way to get your internal and client projects done “Il's rs: - simi. -l~: — you i all t l-_- arlythlrlg wr-i rig. A-. ldl-. -tivraly -"easy tn, » us»: -X‘ ' ‘ . i . - : "-‘. ':’! .“. -;‘: '.5'l"': "-E"~’. 3l. '.‘~. ‘l. "". 'v’1!. 'w: l.-Bzrmzi (mom buzz". .. I1Il9_u9.u or Sign-up just takes a minute. No contracts or sign-up fees. Cancel at any time. What is Basecamp? Basecamp is a unique project collaboration tool. Proielts don'tfai| from a lack of diarts, graphs. or renorts. they fall from a lack of communication and collaboration. Basecamp makes it simple to communicate and collaborate on proiects. Simple, safe, and hassle-free Basecamp is elegant, dead simple, and web-based land it n p_ap_e_r). You don‘t need to download, install, or — "- . ..ee. -i-. ... .. -.. ... . . . . ... . . '.'_ "' configure anything (no IT staff required). All J an. -.n—n. a.u. s. iv-A you need IS a web browser and an lntemet connection. And don't worry, y_Qy_Lq_a; a_| _5_5_a_f_a with us. ' _»~. y. ..»l. ,. . .o aspvnu -- --. .1'1aIuutl-on ‘>. ui- ~-‘-- Inn: 1 I-up-nu M4- 23: «-4- In L. :—ilR‘nIunlAIunn -‘
  7. 7. RubyOnRai| s (r ) it 3 4. l / R $ : «. ooo ooo downloada Rails-a do danas Knjige u izdanju; Pragmatic Boo| <she| 'i‘, O’Rei| |y, Adison-Wesley, lvlanning, Apress. ..
  8. 8. Ruby On Rails Basecamp (1 000 000 korisnika) 43things (1 ooo ooo pageview/ day) Odeo (podcasts) Blinksale A List Apart Fluxiom
  9. 9. : 7. .3: T, .1 . 3:11.‘ ' ~>. I1’>‘lu'lIJ'l -l'. I,-I; var: v l. I'I~'. ~'l—_- . -ritlu : .r em :1: -or: r:; :: Recurring Templates N171: S. -r EEO 2"-1 ; ‘»: :~. cr‘. :r'-; 5-’. 1 '»to ll; ,n. u-. ;~ 4) »_~ cl ‘w-3 H: nirg .4; 1.4: woo Dczazn nc: ;:rcr 52-2‘ 2 cl . -to r-; <:1'nn1l~: --'n: J‘; »t-: -: iv: ;: '*u: ;uJ: trr‘~.3le;1 nape-1Zl': _14‘l~ -4 Lu , 3 .37’ ’ ‘I J '7. 1". " ‘LI. ? ’ '~'1- -: lI L’-| w'. “/‘T i.1', ‘*. v‘ 'ri"| . ‘ lmoicc 10001 -I -~ -= - -' er’? 2IApr2oo6 um, ._.1 W) 2006 (ya 30) Import a client from Basecamp 3 ‘“3'C“°‘" Select a client from Basecamp '3) Create a new Bun’-era c chem record (J! ) l)L'~t‘l'iplimi R I 5 KM] - ‘. );'.1n'£. tn In"’cl'nl'-3 1.0 Hours Stuff Lpa L‘ 9 U ‘L (L | I'lLlJ! ‘. ‘(my l-'1‘. um‘, 3'11.-I'll]: ->~ l'lU I-:1‘ ital": »: ;: I"i«‘o Emil , -H l. ‘-ijo- yr -:1,’ l. -l_I_ A ll 1'‘: C'_v_ Ii» _iI_l i r, l’»«, '_-3rr. t Iritt-: . or tin}: Cl’ . ' 3.1-‘ 1:". -1 Popular T4A; j:; ‘ . ‘. , ,,l , , | _.‘, [_. —__ L‘ "‘: sa’-3 l. -. ~ _ _ 7 (, _._1-H Purchases lCOrlS 1 l Filter: Em _ Urpaid _ ‘T 1 From: 01-3‘ January K 1 ‘. 'rn— m TI x. ... ... ~ - T.1.‘lf". -;l4.0Z'; arcl ; ’.I_l2‘I. '- ' ‘- to -: r-:1 : m:e. |": .i: a U2‘; '-.4:-; «.'-. -1.»: '1:-m cm‘; -r El l‘: l 1; :1 »: ~ la: -1 «'11 wsplvi -.1 NJ l'i. -'J»u— laid — Jl --1| lie-I'— 4:» 1I2llH. ,HI1,l i, (1>—iu rj».
  10. 10. h': ime1l"l' -xi file chaos? solvecl. collect, organize and share your digital assets. what it how it get does works started read how people learn more about 30-day free trial use fluxiom the features! one minute to g ii .3; W‘, L31 your account r; ,n 1;; CD ,2 ¥_1_i_i; . j - 1 i - 1;: lcc lLl2'. lOlil Linlea lied! l'lll1‘-HVI‘"1'I‘l'lll'1’l. ‘V"1i'l"‘l€4""ll‘ l-Ill-. l <. —~. -'— 2'1-llil ‘I i. _ ‘l 4". -7lYl“"1'lAI l i. i'i’l M
  11. 11. /‘N. %J' H. rm / F? ‘ f J - . =. .u‘ .4 ll / Ruby On Rails Enterprise: JPMorgan Chase Ministry of Legal Affairs of the Republic of Trinidad and Tobago
  12. 12. L. »-i; -. ' i 1’-rier8l‘$ i_: v;1xi~iii 1-. it : -> _, Welcome to the Companies Registry Onllne. ~_; us1 i-:1 Mars ' l‘ . -'. - ri lili—iI-. l.1.1ll‘rqxRf You are visitor number: 351 User Manual ~'_'rl'I I‘ 441). ! A-1 and / ‘-47'. ‘<‘ll iiilh(. l’fly search company or Business l.1.’V -4 vi-. .aii' | _ At lli'll1[l55¢(fl t it A. mail A (flu M” Enter Name: Search iri: -:-5 weights , -i»'. l-'-vniuirfly The cost of downloading a copy of a file is 20 TTD (files are in POF format). There are over 750,000+ documents indexed. Search Results llurrbcr -: f iZIrr. i:1'i sat on: T-ZIJFCI 1633 i": i:: ~ 1 J . . 1114 Accmnn Ho| d°'s AMI-Rl(Ill PHARMA coup _) “m: C:8 Usernarne: -l: '- Fl"-’Il'lIIE ‘Z. T:'EE' -" Bl’-‘T CI‘ ‘E. F'AI‘-J. Incorporate: .1’ Degist: Ed on 1. . '"' D5725 Add to l art P3‘5V“"'d3 E m -.11 H M 1' Pl‘-Jlr -.1’ lr*1ll‘~'I -i ll IN4'~'— B¢~"Ht— ’~EL Irirnrri-. i': -.t. :i‘. -iv l-'-: «_1-zrzr--.1 nri L99“: -U1-I154 Add in l art "V shopping cart Aiw. (T) 51'3"? 1 35 Add items to your cart by clicking LOT 4 Ci [D I") S I‘vC'_l3TRI+'«l. 'E‘Z'v3TE, L»'- F OVA’-ll‘. E the Add to cart link; on the | eft_ lrii iiirniugtr-i1 nv p‘. ]!", “."‘d0'I 194°C: -Fl]-I" Add in r M1 Q' mtg é‘1|Zi| C‘. ii| J F APO 3.1;. vi ' ‘E or My Downloads There are currently no files Add to L on available for download. Click
  13. 13. '”HCs'L3lEteU, HubmeH) “sofie”(rnLdrcsU Ruby On Rails DRY Dogovorom izbjegnuta konfiguracija
  14. 14. Ruby On Rails Metaprogramiranje Dogovorom izbjegnuta konfiguracija Scaffolding Ugradeno testiranje Tri okoline MVC AJAX
  15. 15. Funkcionalno segmentiranje da nam mozak ne eksplodira + ---------- --+ | Model | + ---------- --+ / . / / . / . / . / / + ---------- --+ < ---- -- + ---------- --+ I V1ew I I Controller I
  16. 16. za svaku tablicu u bazi postoji odgovarajuéa klasa u aplikaciji a = Post. new a. subject = "Example message“ a. body = "This is an example message. “ a. save INSERT INTO posts (subject, body) VALUES (‘Example message‘, ‘This is an example message. ');
  17. 17. |v ERb + HTML = .rhtm| <h1>Studenti</ h1> <ul> <% for student in @studenti %> <li>Ime: <%= student. name %></1i> <% end %> </ ul>
  18. 18. class GuestBookControl1er < ActionContro11er: :Base def index @entries = Entry. find(: all) end def sign Entry. create(params[: entry]) redirect_to : action = > "index" end end app/ views/ guestbook/ index. rhtml
  19. 19. (axe sam neucvwio da ne brinem, izevclio Re lse Ruby On Rails TDD RJS BDD ' RSPEC Db integracija Mongrel Plugins Capistrano Engines ActionMai| er (; |oba| ize ActionWebService RadRaiI5
  20. 20. Ruby On Rails http: //ruby-| ang. org http: //rubyonrai| s.com http: //instantrai| s.rubyforge. org http: //radrai| s.org http: //softiesonrailscom
  21. 21. .m_= .u. ~.. _ : .._ . .:”_. vu_

×