Open Source Code)

Total Page:16

File Type:pdf, Size:1020Kb

Open Source Code) ΠΑΝΕΠΙΣΤΗΜΙΟ ΜΑΚΕΔΟΝΙΑΣ ΠΡΟΓΡΑΜΜΑ ΜΕΤΑΠΤΥΧΙΑΚΩΝ ΣΠΟΥΔΩΝ ΕΦΑΡΜΟΣΜΕΝΗ ΠΛΗΡΟΦΟΡΙΚΗ Μεταπτυχιακή Εργασία Σύγκριση scripting γλωσσών προγραμματισμού και διερεύνηση της καταλληλότητας τους για εργασίες συντήρησης λογισμικού Φοιτητής: Πέτρου Βασίλειος Α.Μ. 21/09 Επιβλέπων Καθηγητής: κος Αλέξανδρος Χατζηγεωργίου Θεσσαλονίκη 2011 Σύγκριση scripting γλωσσών προγραμματισμού και διερεύνηση της καταλληλότητας τους για εργασίες συντήρησης λογισμικού Copyright © Πέτρου Βασίλειος, 2011 Με επιφύλαξη παντός δικαιώματος. All rights reserved. Η έγκριση της μεταπτυχιακής εργασίας από το Τμήμα Εφαρμοσμένης Πληροφορικής του Πανεπιστημίου Μακεδονίας δεν υποδηλώνει απαραιτήτως και απόδοχη των απόψεων του συγγραφέα εκ μέρους του Τμήματος. 2 Σύγκριση scripting γλωσσών προγραμματισμού και διερεύνηση της καταλληλότητας τους για εργασίες συντήρησης λογισμικού Περίληψη Σκοπός της διπλωματικής εργασίας είναι να αναλύσει και να συγκρίνει δύο scripting γλώσσες προγραμματισμού, την πολύ διαδεδομένη PHP και την νεοεισερχόμενη Ruby. Η σύγκριση αυτή μπορεί να οδηγήσει και σε βαθύτερα συμπεράσματα όπως για το ποια γλώσσα είναι ακαδημαϊκά και επαγγελματικά καταλληλότερη. Αρχικά θα υλοποιηθεί μια βασική μορφή ενός ηλεκτρονικού περιβάλλοντος διαχείρισης πτυχιακών εργασιών με βασικές λειτουργίες και στις 2 γλώσσες. Στη συνέχεια θα προταθούν σενάρια ανάπτυξης της λειτουργικότητας και μαζί με την υλοποίηση αυτών θα γίνει παράλληλα καταγραφή των βημάτων υλοποίησης και όλων των σημαντικών στοιχείων που σχετίζονται με τη διαδικασία για να προκύψουν τα κατάλληλα συμπεράσματα. Λέξεις Κλειδιά : «Ruby, Ruby on Rails, PHP, Apache, MySQL, Model-View- Controler, Box-Plot» 3 Σύγκριση scripting γλωσσών προγραμματισμού και διερεύνηση της καταλληλότητας τους για εργασίες συντήρησης λογισμικού Summary The main purpose of this thesis is to analyze and compare two scripting languages, the very popular PHP and the “newcomer” Ruby. This Comparison can guide to deeper conclusions. eg. Which language is more appropriate for academic and business purpose. First of all, an initial interface of an electronic environment in management and publication of thesis will be developed with basic functions in both languages separately. Then, there will be some proposals upgrading the functionality of the environment. During programming, all the development steps and the significant details will be recorded to guide us to conclusions. Keywords : «Ruby, Ruby on Rails, PHP, Apache, MySQL, Model-View-Controler, Box-Plot» 4 Σύγκριση scripting γλωσσών προγραμματισμού και διερεύνηση της καταλληλότητας τους για εργασίες συντήρησης λογισμικού Πίνακας Περιεχομένων Ευχαριστίες....................................................................................................................9 1. Περιγραφή και Ανάλυση Προβλήματος..................................................................10 1.1 Περιγραφή και Ανάλυση Προβλήματος ...........................................................10 1.1.1 Το γενικό πρόβλημα ...................................................................................10 1.1.2 Το ειδικό πρόβλημα ...................................................................................10 1.2 Αντιμετώπιση του προβλήματος......................................................................11 1.2.1 Τρέχουσα κατάσταση .................................................................................11 1.2.2 Προσέγγιση λύσης......................................................................................11 2. Ανάπτυξη με PHP.....................................................................................................14 2.1 Λογισμικά Ανοικτού Κώδικα (Open Source Code) ............................................14 2.1.1 Τι είναι το Λογισμικό Ανοικτού Κώδικα (Open Source) ; ...........................14 2.1.2 Τα πλεονεκτήματα του Open Source .........................................................14 2.1.3 Τα μειονεκτήματα του Open Source ..........................................................16 2.2 PHP.....................................................................................................................17 2.2.1 Τι είναι η PHP ;............................................................................................17 2.2.2 Τι μπορεί να κάνει η PHP ;..........................................................................18 2.3 HTML..................................................................................................................20 2.3.1 Τι είναι η HTML ;.........................................................................................20 2.3.2 Τι είναι οι ετικέτες της HTML ; ...................................................................20 2.4 APACHE ..............................................................................................................21 2.4.1 Τι είναι ο Apache ; ......................................................................................21 2.4.2 Πως δημιουργήθηκε ο Apache ;.................................................................22 2.4.3 Χαρακτηριστικά του Apache ......................................................................23 2.5 MySQL................................................................................................................24 2.5.1 Τι είναι η MySQL ;.......................................................................................24 2.5.2 Ιστορία της MySQL......................................................................................25 2.6 Λόγοι χρησιμοποίησης της PHP και της MySQL................................................25 2.6.1 Μερικά από τα πλεονεκτήματα της PHP....................................................26 2.6.2 Μερικά από τα πλεονεκτήματα της MySQL...............................................27 3. Ανάπτυξη με RUBY...................................................................................................29 3.1 Ιστορία ...............................................................................................................29 3.1.1 Ετυμολογία του ονόματος "Ruby"..............................................................29 3.1.2 Αρχική δημοσιοποίηση...............................................................................30 5 Σύγκριση scripting γλωσσών προγραμματισμού και διερεύνηση της καταλληλότητας τους για εργασίες συντήρησης λογισμικού 3.1.3 Ruby 1.0 ......................................................................................................30 3.1.4 Ruby on Rails...............................................................................................30 3.1.5 Ruby 1.9.1 ...................................................................................................33 3.2 Φιλοσοφία .........................................................................................................33 3.3 Χαρακτηριστικά .................................................................................................34 3.4 Σημασιολογία ....................................................................................................35 3.5 Σύνταξη ..............................................................................................................36 3.6 Διαφορές στη συμπεριφορά σε σχέση με άλλες γλώσσες ...............................37 3.7 Αλληλεπίδραση..................................................................................................38 3.8 Υλοποιήσεις .......................................................................................................38 3.9 Αποθήκες κώδικα και βιβλιοθήκες ...................................................................39 4. Περιγραφή της Βάσης Δεδομένων..........................................................................40 4.1 Οι πίνακες γενικά...............................................................................................40 4.2 Οι πίνακες αναλυτικά .......................................................................................40 4.3 Η βάση περιγραφικά ........................................................................................43 4.4 Διάγραμμα Οντοτήτων Συσχετίσεων της βάσης δεδομένων............................49 5. Δομή του ιστοτόπου................................................................................................50 5.1 Σύντομη περιγραφή της δομής του ιστοτόπου.................................................50 5.1.1 Κεντρική Σελίδα ..........................................................................................50 5.1.2 Επιλογές Φοιτητή .......................................................................................52 5.1.3 Επιλογές Καθηγητή.....................................................................................54 6. Σύγκριση Scripting Γλωσσών Προγραμματισμού....................................................56 6.1 Συγκριτικά Διαγράμματα...................................................................................56 6.2 Συγκριτικοί Πίνακες ...........................................................................................58 6.3 Συγκριτικοί Αλγόριθμοι .....................................................................................61 6.3.1 Πρόγραμμα “Hallo World” .........................................................................61 6.3.2 Αλγόριθμος “Binnary Trees”.......................................................................62 6.3.3 Αλγόριθμος “Recursive” .............................................................................65 6.3.4 Αλγόριθμος “FANNKUCH” ..........................................................................68
Recommended publications
  • Product End User License Agreement
    END USER LICENSE AGREEMENT If you have another valid, signed agreement with Licensor or a Licensor authorized reseller which applies to the specific Licensor Software, Software Services, Maintenance or Consulting Services you are downloading, accessing or otherwise receiving, that other agreement shall control; otherwise by using, downloading, installing, copying, or accessing Licensor Software, Software Services, Maintenance or Consulting Services, or by clicking on "I accept" on or adjacent to the screen where these Master Terms may be displayed, you hereby agree to be bound by and accept these Master Terms. These Master Terms shall also apply to any Maintenance or Consulting Services you later acquire from Licensor relating to the Software or Software Services. You may place orders under these Master Terms by submitting separate Order Form(s). Capitalized terms used in these Master Terms and not otherwise defined, are defined at https://terms.tibco.com/posts/845635-definitions. 1. License Models, License Grant, Rights and Restrictions. Licensor provides Software on a Perpetual, or Term basis, embedded and delivered as part of Equipment, as Software Services and on a Subscription basis. The Supplemental Terms, include, but are not limited to, the license grant, rights and restrictions for each of the foregoing (including for evaluation purposes) which are located at https://terms.tibco.com. The availability of Software in one or more of the foregoing license models is at Licensor's sole discretion. Additional license requirements and notices, if any, if not included at https://terms.tibco.com, shall be contained in the Documentation that is delivered with the applicable Software.
    [Show full text]
  • Rails 4 En Windows Y Linux Ubuntu – V 1.0.5 Beta – Pag 1/200 - Actualizado Al 7/10/ 2016 Sergio A
    Sergio A. Alonso - Rails 4 en Windows y Linux Ubuntu – v 1.0.5 Beta – pag 1"#00 - a$tuali%ado al &"10" 201' Sergio A. Alonso - Rails 4 en Windows y Linux Ubuntu – v 1.0.5 Beta – pag #"#00 - a$tuali%ado al &"10" 201' ¡Ud podría estar leyendo una copia vieja! ()equee la versión en el en$abe%ado de las )o,as- $ontra la última en el sitio o.$ial- )tt!/""r0uw.)ero1u.$o2 3esde allí en$ontrará el vín$ulo )acia la versión 2as actual- y un listado 2uy útil de erratas- $orrec$iones- e in$luso una sec$ión donde !ostear errores y sugeren$ias. Este libro es tan gratis como una cerveza (free-as-a-beer) (uente sie2!re con la 6ltima versión dis!onible en P38. Mi ob,etivo es que lo lea la mayor cantidad posible de personas, y que éstas me retornen sus im!resiones, errores encontrados y sugerencias en general. De he$ho, ne$esito de estos re!ortes para obtener un nivel a!re$iable de $alidad, tal *ue el libro sea digno de ser llevado a una im!renta. Una ve% que el libro este listo, pretendo seguir de,5ndolo libre, publicarlo en la editorial Bubok ;i2!resión a de2anda<- y *uedar2e como mu$ho con u=s 5 de regalías por libro... al menos para ha$erle creer a mi es!osa que hago dinero con esto. Creo que si el libro lo mere$e, la gente se cansar5 de leerlo en !antalla- y querr5 tener un e,e2!lar en pa!el.
    [Show full text]
  • Roles in a Networked Software Development Ecosystem: a Case Study in Github Patrick Wagstrom IBM TJ Watson Research Center Hawthorne, NY, [email protected]
    University of Nebraska - Lincoln DigitalCommons@University of Nebraska - Lincoln CSE Technical reports Computer Science and Engineering, Department of 2012 Roles in a Networked Software Development Ecosystem: A Case Study in GitHub Patrick Wagstrom IBM TJ Watson Research Center Hawthorne, NY, [email protected] Corey Jergensen University of Nebraska-Lincoln, [email protected] Anita Sarma University of Nebraska-Lincoln, [email protected] Follow this and additional works at: http://digitalcommons.unl.edu/csetechreports Wagstrom, Patrick; Jergensen, Corey; and Sarma, Anita, "Roles in a Networked Software Development Ecosystem: A Case Study in GitHub" (2012). CSE Technical reports. 149. http://digitalcommons.unl.edu/csetechreports/149 This Article is brought to you for free and open access by the Computer Science and Engineering, Department of at DigitalCommons@University of Nebraska - Lincoln. It has been accepted for inclusion in CSE Technical reports by an authorized administrator of DigitalCommons@University of Nebraska - Lincoln. Roles in a Networked Software Development Ecosystem: A Case Study in GitHub Patrick Wagstrom Corey Jergensen, Anita Sarma IBM TJ Watson Research Center Computer Science and Engineering Department 19 Skyline Dr University of Nebraska, Lincoln Hawthorne, NY, USA 10532 Lincoln, NE, USA 68588 [email protected] {cjergens,asarma}@cse.unl.edu ABSTRACT tiple languages and utilizing multiple different development Open source software development has evolved beyond single frameworks and libraries, For example, development of a web projects into complex networked ecosystems of projects that application may use the JavaScript library jQuery for the user share portions of their code, social norms, and developer commu- interaction, Ruby on Rails for the backend processing, and Rack nities.
    [Show full text]
  • Extending Facter and Puppet
    Pro Puppet James Turnbull Jeffrey McCune Pro Puppet Copyright © 2011 by James Turnbull and Jeffrey McCune All rights reserved. No part of this work may be reproduced or transmitted in any form or by any means, electronic or mechanical, including photocopying, recording, or by any information storage or retrieval system, without the prior written permission of the copyright owner and the publisher. ISBN 978-1-4302-3057-1 ISBN 978-1-4302-3058-8 (eBook) Trademarked names, logos, and images may appear in this book. Rather than use a trademark symbol with every occurrence of a trademarked name, logo, or image we use the names, logos, and images only in an editorial fashion and to the benefit of the trademark owner, with no intention of infringement of the trademark. The use in this publication of trade names, trademarks, service marks, and similar terms, even if they are not identified as such, is not to be taken as an expression of opinion as to whether or not they are subject to proprietary rights. President and Publisher: Paul Manning Lead Editor: Frank Pohlmann Technical Reviewer: Jessica Fraser Editorial Board: Steve Anglin, Mark Beckner, Ewan Buckingham, Gary Cornell, Jonathan Gennick, Jonathan Hassell, Michelle Lowman, Matthew Moodie, Jeff Olson, Jeffrey Pepper, Frank Pohlmann, Douglas Pundick, Ben Renow-Clarke, Dominic Shakeshaft, Matt Wade, Tom Welsh Coordinating Editor: Anita Castro Copy Editor: Seth Kline Compositor: Bytheway Publishing Services Indexer: John Collin Artist: April Milne Cover Designer: Anna Ishchenko Distributed to the book trade worldwide by Springer Science+Business Media, LLC., 233 Spring Street, 6th Floor, New York, NY 10013.
    [Show full text]
  • Rubywrite: a Ruby-Embedded Domain-Specific Language for High-Level Transformations
    RubyWrite: A Ruby-Embedded Domain-Specific Language for High-Level Transformations Andrew Keep, Arun Chauhan, Chun-Yu Shei, and Pushkar Ratnalikar Indiana University, Bloomington, IN 47405, USA fakeep,achauhan,cshei,[email protected] Abstract. We introduce a Domain Specific Language (DSL), called RubyWrite, embedded within Ruby, with the goal of providing an ex- tensible, effective, portable, and easy to use framework for encoding source-level transformations. Embedding within Ruby provides access to the powerful features of Ruby, including its purely object-oriented design and meta-programming capabilities. The syntactic flexibility and advanced language features of Ruby drove our choice of it as the host lan- guage. Easy integration of external C interfaces seamlessly within Ruby lets us move performance critical operations to C, or link with external libraries. RubyWrite was developed to aid our compiler research where it provides the core of three compiler infrastructure development projects, and is used as a teaching aid in a graduate-level compilers course. We expect RubyWrite to be widely applicable and a proof of concept in leveraging an existing modern language to write a portable compiler in- frastructure core. 1 Introduction We describe a Domain Specific Language (DSL), embedded within Ruby, aimed at simplifying the task of source-level transformations through term-rewriting. The DSL, called RubyWrite, is motivated by the need for a compiler development environment that allows easy integration of source-level transformations with program analysis. After spending frustrating months trying to develop a compiler for matlab in C++ a few years ago, we made the decision to move to a domain-specific lan- guage for compiler development.
    [Show full text]
  • Ruby on Rails
    Ruby.learn{ |stuff| } ● What is Ruby? ● What features make it interesting to me (and maybe you)? ● A quick, idiosyncratic tour of the Ruby ecosphere. Tuesday Software Lunch Talk: March 4, 2008 What is it? ● a dynamic, object-oriented, open source programming language... ● with a uniquely (but not too uniquely), expressive syntax ● dynamically or “duck” typed ● influenced by Perl, Smalltalk, Eiffel, Ada and Lisp ● has aspects of functional and imperative programming styles History ● created by Yukihiro “Matz” Matsumoto on Feb 24 1993, released to public in 1995 ● “Ruby” coined in comparison to “Perl” Philosophy (the “Ruby Way”) ● emphasize programmer needs over computer needs ● encourage good design, good APIs ● Principle of Least Surprise (POLS) – the language should behave in such a way as to minimize confusion for experienced users ● “Everything should be a simple as possible, but no simpler.” - Einstein ● orthogonality ● change at runtime is not to be feared Interesting Stuff... ● Is Not a Ruby tutorial – http://tryruby.hobix.com/ – Programming Ruby: The Pragmatic Programmer's Guide – our just google it – you want something totally different? ● http://poignantguide.net/ruby/ ● Is what I find interesting/different/well done about Ruby. Everything's an Object ● no exceptions Falsiness ● only false and nil are falsey. Not 0. Symbols ● labels ● lightweight strings with no behaviour ● often used as hash keys Blocks ● another name for a Ruby block is a “closure” ● clo-sure [kloh-zher] – noun. A function that is evaluated in an environment containing one or more bound variables. Procs ● anonymous subroutines or closures with a life of their own Adding Methods to Classes ● You can add methods to an object at runtime in several ways..
    [Show full text]
  • Ruby Programming
    Ruby Programming Wikibooks.org December 1, 2012 On the 28th of April 2012 the contents of the English as well as German Wikibooks and Wikipedia projects were licensed under Creative Commons Attribution-ShareAlike 3.0 Unported license. An URI to this license is given in the list of figures on page 249. If this document is a derived work from the contents of one of these projects and the content was still licensed by the project under this license at the time of derivation this document has to be licensed under the same, a similar or a compatible license, as stated in section 4b of the license. The list of contributors is included in chapter Contributors on page 243. The licenses GPL, LGPL and GFDL are included in chapter Licenses on page 253, since this book and/or parts of it may or may not be licensed under one or more of these licenses, and thus require inclusion of these licenses. The licenses of the figures are given in the list of figures on page 249. This PDF was generated by the LATEX typesetting software. The LATEX source code is included as an attachment (source.7z.txt) in this PDF file. To extract the source from the PDF file, we recommend the use of http://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/ utility or clicking the paper clip attachment symbol on the lower left of your PDF Viewer, selecting Save Attachment. After extracting it from the PDF file you have to rename it to source.7z. To uncompress the resulting archive we recommend the use of http://www.7-zip.org/.
    [Show full text]
  • The Ruby Intermediate Language ∗
    The Ruby Intermediate Language ∗ Michael Furr Jong-hoon (David) An Jeffrey S. Foster Michael Hicks University of Maryland, College Park ffurr,davidan,jfoster,[email protected] Abstract syntax that is almost ambiguous, and a semantics that includes Ruby is a popular, dynamic scripting language that aims to “feel a significant amount of special case, implicit behavior. While the natural to programmers” and give users the “freedom to choose” resulting language is arguably easy to use, its complex syntax and among many different ways of doing the same thing. While this ar- semantics make it hard to write tools that work with Ruby source guably makes programming in Ruby easier, it makes it hard to build code. analysis and transformation tools that operate on Ruby source code. In this paper, we describe the Ruby Intermediate Language In this paper, we present the Ruby Intermediate Language (RIL), (RIL), an intermediate language designed to make it easy to ex- a Ruby front-end and intermediate representation that addresses tend, analyze, and transform Ruby source code. As far as we are these challenges. RIL includes an extensible GLR parser for Ruby, aware, RIL is the only Ruby front-end designed with these goals in and an automatic translation into an easy-to-analyze intermediate mind. RIL provides four main advantages for working with Ruby form. This translation eliminates redundant language constructs, code. First, RIL’s parser is completely separated from the Ruby in- unravels the often subtle ordering among side effecting operations, terpreter, and is defined using a Generalized LR (GLR) grammar, and makes implicit interpreter operations explicit.
    [Show full text]
  • Intro to Ruby
    Intro to Ruby Aaron Bartell [email protected] Copyright 2014 Aaron Bartell Ruby… a dynamic, open source programming language with a focus on simplicity and productivity. It has an elegant syntax that is natural to read and easy to write. Matz desired a language which he himself enjoyed using, by minimizing programmer work and possible confusion - enter Ruby. - Est 1995 by Yukihiro "Matz" Matsumoto - Mass acceptance 2006 - Very active and well organized community - October 2013, on IBM i with PowerRuby Features: - variable declarations are unnecessary - variables are dynamically and strongly typed - syntax is simple and consistent - everything is an object - classes, methods, inheritance, etc. - NO SEMI COLONS!!! ruby-lang.org – Home website ruby-doc.org - Formal documentation codecademy.com - Learn Ruby in the browser for free amzn.to/1apcrse - Metaprogramming Ruby: Program Like the Ruby Pros Where can I use Ruby? Web apps with Rails - rubyonrails.org iOS with RubyMotion - rubymotion.com Android with Ruboto - ruboto.org Desktop (Mac, Linux, Windows) with Shoes - shoesrb.com ShoesRB.com irb (Interactive Ruby) is an interactive programming environment for Ruby that allows you to quickly test various coding ideas. ● Included with Ruby distribution. ● Symbolic link in /QOpenSys/usr/bin exists for the irb binary ● Great for learning Ruby through quick tests vs. editing files, saving, and invoking. ● irb is the foundation for the rails console. ● nil in screenshot is the reality that every Ruby method (i.e. puts) returns a value. ruby-doc.org/stdlib-2.0/libdoc/irb/rdoc/IRB.html - Formal documentation tryruby.org – Ruby code in the browser without having to install anything.
    [Show full text]
  • Rbfeatures: Feature-Oriented Programming with Ruby
    View metadata, citation and similar papers at core.ac.uk brought to you by CORE provided by Elsevier - Publisher Connector Science of Computer Programming 77 (2012) 152–173 Contents lists available at SciVerse ScienceDirect Science of Computer Programming journal homepage: www.elsevier.com/locate/scico rbFeatures: Feature-oriented programming with Ruby Sebastian Günther ∗, Sagar Sunkle Faculty of Computer Science, University of Magdeburg, Germany article info a b s t r a c t Article history: Features are pieces of core functionality of a program that is relevant to particular Available online 1 February 2011 stakeholders. Features pose dependencies and constraints among each other. These dependencies and constraints describe the possible number of variants of the program: Keywords: A valid feature configuration generates a specific variant with unique behavior. Feature- Feature-oriented programming Oriented Programming is used to implement features as program units. This paper Domain-specific languages Dynamic programming languages introduces rbFeatures, a feature-oriented programming language implemented on top of the dynamic programming language Ruby. With rbFeatures, programmers use software product lines, variants, and features as first-class entities. This allows several runtime reflection and modification capabilities, including the extension of the product line with new features and the provision of multiple variants. The paper gives a broad overview to the implementation and application of rbFeatures. We explain how features as first- class entities are designed and implemented, and discuss how the semantics of features are carefully added to Ruby programs. We show two case studies: The expression product line, a common example in feature-oriented programming, and a web application.
    [Show full text]
  • Maik Schmidt — «Enterprise Recipes with Ruby and Rails
    What readers are saying about Enterprise Recipes with Ruby and Rails Enterprise Recipes with Ruby and Rails covers most of the tasks you need to accomplish in the enterprise, including integration with other systems, databases, and security measures. I wish I’d had this book three years ago. Ola Bini JRuby Core Developer, ThoughtWorks Studios This book is full of practical, relevant advice instead of theoretical background or “Hello, World” samples. Once you move beyond the basic skills of using Ruby and Rails, this is exactly what you need— real-world recipes that you can put to use immediately. It’s like getting condensed experience on paper, giving you a two-year head start on those who have to acquire this knowledge by making their own mis- takes. Stefan Tilkov CEO and Principal Consultant, innoQ If you’re responsible for developing enterprise software, after reading this book you’ll want to review all your projects to see where you can save time and money with Ruby and Rails. Maik Schmidt shows us once again that enterprise software doesn’t have to be “enterprisey.” Steve Vinoski IEEE Internet Computing Columnist and Member of Technical Staff, Verivue, Inc. On exactly the right level, this book explains many interesting libraries and tools invaluable for enterprise developers. Even experi- enced Ruby and Rails developers will find new information. Thomas Baustert Rails Book Author, b-simple.de Enterprise Recipes with Ruby and Rails Maik Schmidt The Pragmatic Bookshelf Raleigh, North Carolina Dallas, Texas Many of the designations used by manufacturers and sellers to distinguish their prod- ucts are claimed as trademarks.
    [Show full text]
  • Serverová Aplikace Pro Mobilní Katalog Smartlib
    Masarykova univerzita Fakulta}w¡¢£¤¥¦§¨ informatiky !"#$%&'()+,-./012345<yA| Serverová aplikace pro mobilní katalog SmartLib diplomová práce Bc. Tomáš Hrabal Brno, Jaro 2013 Prohlášení Prohlašuji, že tato diplomová práce je mým původním autorským dílem, které jsem vypracoval samostatně. Všechny zdroje, prameny a literaturu, které jsem při vypracování používal nebo z nich čerpal, v práci řádně cituji s uvedením úplného odkazu na příslušný zdroj. Bc. Tomáš Hrabal Vedoucí práce: prof. RNDr. Jiří Hřebíček, CSc. ii Poděkování Na tomto místě bych rád poděkoval Jonáši Ševčíkovi za vedení projektu SmartLib. Jaromíru Dvořáčkovi a Marku Jelenovi za rady při vývoji a po- mocnou ruku s nasazením projektu. iii Shrnutí Diplomová práce se zabývá návrhem, popisem implementace a produkčního nasazení serverové aplikace SmartLib, sloužící uživatelům mobilních klientů a knihovníkům Masarykovy univerzity. V práci jsou diskutována a porovnána řešení datové struktury, včetně výběru toho nejvhodnějšího. Práce ve všech částech poukazuje na spolupráci se studenty vyvíjejícími její mobilní část. iv Klíčová slova SmartLib, Knihovna, Mobilní aplikace, NoSQL, Serverová aplikace, Datová struktura, API v Obsah 1 Popis systému ............................3 1.1 Knihovnický systém na Masarykově univerzitě .........3 1.1.1 Aleph . .3 Parametry Alephu . .3 Nedostatky Alephu . .4 1.1.2 SmartLib . .4 Mobilní aplikace . .5 1.1.3 Vlastní aplikace . .5 2 SmartLib ...............................7 2.1 Implementace ...........................7 2.1.1 Ruby . .7 Sinatra vs Ruby on Rails . .8 Rozšíření Sinatry: Git. Bundler a Gemy . .9 2.1.2 OpenShift . .9 2.1.3 SQL/NoSQL . 10 Sequel a instalace databáze . 10 MongoDB . 11 ElasticSearch . 12 2.1.4 Služby třetí strany . 13 MailGun . 13 Veřejný repozitář . 13 Externí služby pro detaily knih .
    [Show full text]