Programmare Server

Total Page:16

File Type:pdf, Size:1020Kb

Programmare Server Programmare server Programmazione Web 1 RequestRequest to to a aDynamic Dynamic Site Site ! The! The server server must must respond respond dynamically dynamically if it if needs it needs to provideto provide differentdifferent client-side client-side code code depending depending on onthe the situation situation ! Date! Date and and time time Richiesta a un sito sta2co ! Specifics! Specifics of theof theuser’s user’s request request ! Database! Database contents contents – forms – forms and and authentication authentication HTTP req: GET www.uniroma2.it Server: HTTPHTTP Request: Request: GET GETwww.facebook.com www.facebook.com Server: 1. Look1. Look up things up things that thatgo ongo on user’suser’s profile, profile, such such as as wall wallposts posts and andfriends friends " " caches,caches, database database lookups You (client)You (client) Webweb Web server server lookups client server 2. Generate2. Generate client-side client-side code containing these HTTPHTTP Response:HTTP Response:resp web: HTML, CSS, webcontent content (HTMLjs , ... (HTML file) file) code containing these things Client-sideClient-side code: code: HTML, HTML, CSS, CSS, JavaScript JavaScript things 3. Send3. Send as HTTP as HTTP response response (dynamically (dynamically generated generated by server) by server) Server 1. Riceve una richiesta per un file 2. Cerca il file e se lo trova lo invia in risposta Programmazione Web 2 Richiesta a un sito dinamico RequestRequest to to a aDynamic Dynamic Site Site • Il server deve rispondere dinamicamente se è necessario fornire risulta diversi a seconda della ! The! The server server must must respond respond dynamically dynamically if it if needs it needs to provideto provide differentsituazione different client-side client-side code code depending depending on onthe the situation situation – Ora o data ! Date! Date and and time time – richieste specifiche ! Specifics of the user’s request – !Contenuto del DB – Specifics of the user’sform o autenLcazione request ! Database! Database contents contents – forms – forms and and authentication authentication HTTP req: GET www.uniroma2.it Server Server: HTTPHTTP Request: Request: GET GETwww.facebook.com www.facebook.com 1.Riceve la richiesta e vede Server: 1. Look1. Look up things up things that thatgo ongo on che è per una risorsa user’suser’s profile, profile, such such as as "dinamica" wall wallposts posts and andfriends friends " " 2. esegue il codice associato caches,caches, database database alla risorsa lookups You (client)You (client) Webweb Web server server lookups client server 3. invia l'output del codice al 2. Generate2. Generate client-side client-side code containing these HTTPHTTP Response:HTTP Response:resp web: HTML, CSS, webcontent content (HTMLjs , ... (HTML file) file) client code containing these things Client-sideClient-side code: code: HTML, HTML, CSS, CSS, JavaScript JavaScript things Programmazione Web 3. Send3. Send as HTTP as HTTP response response3 (dynamically (dynamically generated generated by server) by server) Linguaggi per server • Php – linguaggio specifico per il web, open source, interpretato • CGI/Perl – Più vecchio del php ma difficile da usare. Usato per creare degli script nei sistemi unix • ASP.NET – Linguaggio MicrosoX, licenza commerciale; di pendente dalla piaaforma. • Coldfusion – linguaggio Adobe per chi non sa programmare, facile. costoso il server. • Python – Linguaggio ad ogge per scripng generici. • Java (JSP o servlet)- Java server-side programming, richiede Apache Tomcat o simili. • Ruby – linguaggio generico a ogge • Javascript – server di script come node.js Programmazione Web 4 Caraerische da confrontare • Embedding – L'HTML è inserito nel codice (con delle print) o è il codice inserito nell'HTML? • Flexibility – quante strade ho per la soluzione del mio problema? • Usability – quanto è difficile da imparare e da usare il linguaggio? • Security – sviluppare nel linguaggio scelto è sicuro o devo scrivere del codice per garanLre la sicirezza? – Ci sono buchi di sicurezza nel linguaggio? • Speed of execuon – Con che velocità viene eseguito uno script? • Generality – Il linguaggio è generico o specifico? Programmazione Web 5 Stasche Programmazione Web 6 Classifica per i maggiori si Programmazione Web 7 Programmazione Web 8 Programmazione Web 9 Popular sites using PHP • Facebook.com • Baidu.com • Wikipedia.org • Qq.com • Twier.com • Taobao.com • Sina.com.cn • Vk.com • Pinterest.com • Onclickads.net Programmazione Web 10 Content Management Systems • Applicazione lato server – memorizza i contenuL su dB – una sezione di amministrazione (back end), per gesLre i contenuL; – una sezione applicava (front end),per mostrare i contenuL • CMS famosi – wordpress – joomla – drupal – magento – django Programmazione Web 11 Content Management Systems Programmazione Web 12 Content Management Systems Programmazione Web 13 PHP Programmazione Web 14 Cosa è PHP? • PHP è l’acronimo ricorsivo di “PHP HyperText Preprocessor” – Inizialmente era l’acronimo di “Personal Home Page” • PHP è un linguaggio di programmazione creato da Rasmus Lerdorf nel 1994 per costruire delle estensioni in documenL HTML e migliorare così la sua home page personale – Porzioni del documento HTML sono generate dinamicamente • PHP è open source Programmazione Web 15 Cosa è PHP • PHP convive normalmente all’interno di documenL HTML – È possibile creare degli script in PHP eseguiL da una shell • PHP viene normalmente eseguito dal server prima che la pagina venga inviata all’utente • L’output di PHP è normalmente codice HTML per il browser, ma ci sono molte eccezioni – Può generare anche immagini, documenL pdf, documenL XML, filma Flash, ... Programmazione Web 16 Storia • 1994 – PHP fu pensato e sviluppato nell’autunno del 1994 da Rasmus Lerdorf (membro del team di sviluppo di Apache). • 1995 – Rilasciato PHP/FI (Form Interpreter) versione 2. PermeZeva l’accesso a database (MySql) • 1997 – Rilasciato PHP versione 3 (riscriZura in C++ dell’interprete da parte di Zeev Suraski e Andi Gutmans) • 2000 – Rilascio di PHP 4 basato sul motore di scripng Zend www.zend.com • 2004 – Rilascio di PHP 5 Programmazione Web 17 Vantaggi • La curva di apprendimento è brevissima • Veloci tempi di sviluppo • Alte prestazioni e stabilità • Supporto dei sistemi operavi principali (UNIX, Linux, Windows, ...) • Supporto navo per i database più popolari • Molte librerie built-in • Pre-installato nelle distribuzioni Linux Programmazione Web 18 Esempio PHP – hello.php Programmazione Web 19 Risposta server Programmazione Web 20 RequestRequest to to a aDynamic Dynamic Site Site ! The! The server server must must respond respond dynamically dynamically if it if needs it needs to provideto provide differentdifferent client-side client-side code code depending depending on onthe the situation situation ! Date! Date and and time time ArchiteHura web con ! Specifics! Specifics of theof theuser’s user’s request request php ! Database! Database contents contents – forms – forms and and authentication authentication HTTP req: GET www.uniroma2.it/hello.php Server: HTTPHTTP Request: Request: GET GETwww.facebook.com www.facebook.com Server: 1. Look1. Look up things up things that thatgo ongo on user’suser’s profile, profile, such such as as wall wallpostsphp posts and andfriends friends " " caches,caches, database database lookups You (client)You (client) Webweb Web server server lookups client 2. Generate2. Generate client-side client-side server code containing these HTTPHTTPHTTP Response: Response:resp: output dell' interprete web webcontent content (HTML (HTML file) file) code containing these Client-side code: HTML, CSS, JavaScript thingsthings Client-side code: HTML, CSS, JavaScript 3. Send as HTTP response (dynamically generated by server) 3. Send as HTTP response (dynamically generated by server) 1. richiesta di un documento con estensione .php 2. il server invia il documento al PHP 3. PHP interpreta lo script produce un output 4. il server produce la risposta HTTP Programmazione Web 21 Esempio PHP – hello2.php Programmazione Web 22 Esempio PHP 2 – hello3.php Programmazione Web 23 Esempio PHP - CSS Programmazione Web 24 Inserire codice php <?php ... ?> • TuZo quello che è racchiuso fra i tag <?php ... ?> viene interpretato dal modulo PHP – in alcuni casi si può omeZere il tag di chiusura • Metodi alternavi per inserire codice php – da configurare in php.ini – <? CODICE PHP ?> (short_open_tag) – NON PIU' SUPPORTATO – <% CODICE PHP %> (asp_tags) – <script language=“php”> CODICE PHP </script> Programmazione Web 25 Pagina di configurazione • Per vedere quali parLcolari estensioni sono state installate o per vedere come il file php.ini è stato configurato è possibile eseguire il seguente script <?php phpinfo(); ?> ! • Inserire la riga precedente in un file (e.g., info.php) e poi invocare hZp://localhost/info.php • La funzione phpinfo() crea una pagina HTML contente informazioni su come PHP è stato installato Programmazione Web 26 Errori in PHP • Il server non comunica gli errori al client • Possiamo modificare una direva in php.ini per mostrare nel browser gli eventuali errori (solo il primo) di script PHP • Cercare la direva display_errors e seZare – display_errors = On • SOLO PER DEBUGGING Programmazione Web 27 Ambiente server • Server STUD – Apache con modulo php – Mysql • SoXware per lavoro in locale – Xampp – WINDOWS, LINUX, MAC – Easyphp – WINDOWS – Wamp – WINDOWS Programmazione Web 28 Sviluppare con IDE • NetBeans + Chorme Connector – hp://www.netbeans.org • Eclipse PDT – hp://eclipse.org/pdt/downloads/ • Komodo IDE – hp://acvestate.com/Products/komodo_ide • phpDesigner – hp://mpso<ware.dk • PHPEclipse – hp://phpeclipse.de • PhpED – hp://nusphere.com • PHPEdit – hp://www.phpedit.com Programmazione Web 29 Verificare il proprio ambiente • Creare programma hello.php • Creare programma info.php Programmazione Web 30 .
Recommended publications
  • Implementation of Calfem for Python
    IMPLEMENTATION OF CALFEM FOR PYTHON ANDREAS OTTOSSON Structural Master’s Dissertation Mechanics Detta är en tom sida! Department of Construction Sciences Structural Mechanics ISRN LUTVDG/TVSM--10/5167--SE (1-47) ISSN 0281-6679 IMPLEMENTATION OF CALFEM FOR PYTHON Master’s Dissertation by ANDREAS OTTOSSON Supervisors: Jonas Lindemann, PhD, Div. of Structural Mechanics Examiner: Ola Dahlblom, Professor, Div. of Structural Mechanics Copyright © 2010 by Structural Mechanics, LTH, Sweden. Printed by Wallin & Dalholm Digital AB, Lund, Sweden, August, 2010 (Pl). For information, address: Division of Structural Mechanics, LTH, Lund University, Box 118, SE-221 00 Lund, Sweden. Homepage: http://www.byggmek.lth.se Detta är en tom sida! Preface The work presented in this masters’s thesis was carried out during the period June 2009 to August 2010 at the Division of Structural Mechanics at the Faculty of Engineering, Lund University, Sweden. I would like to thank the staff of the Department of Structural Mechanics, es- pecially my supervisor Jonas Lindemann, for help during this work. I would also like to thank my Jennie, and both our families, for their support throughout my education. Lund, August 2010 Andreas Ottosson i Contents 1 Introduction 1 1.1Background.............................. 1 1.2WhyCALFEMforPython?..................... 1 1.3 Objective ............................... 1 2MATLAB 3 2.1Background.............................. 3 2.2 Objects ................................ 3 3 Python and NumPy 5 3.1Python................................ 5 3.1.1 Background.......................... 5 3.1.2 Influences ........................... 5 3.1.3 Objects ............................ 6 3.2NumPy................................ 6 3.2.1 Objects ............................ 7 3.2.2 Commonmatrixoperations................. 8 4 Integrated Development Environments 11 4.1MATLAB............................... 11 4.2PythonIDLE............................. 12 4.3IPython...............................
    [Show full text]
  • Python Programming
    Python Programming Wikibooks.org June 22, 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 149. 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 143. The licenses GPL, LGPL and GFDL are included in chapter Licenses on page 153, 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 149. 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]
  • Run Python Program from Terminal
    Run Python Program From Terminal Crunchiest and representationalism Alfonzo intertwines while slim Archy belly-flopped her redactions also and recapping pleasingly. Swampy Sivert somebreakaway: gracelessness he spreads jauntily. his Seoul Somerville and consecutively. Parliamentary and autecologic Carlyle infuriates her screwer borates while Jessey belie On the script from python test cases, for some experience, you can do you are Now you will connect with a great for the main file format instead of wine before we are distributed in python idle to our latest tutorials. This way you can interpret python programs that you might want to reverse a step in terminals as an excellent idea. In python program or run the id and. This program from websites and terminal window that are welcome our programs. At this topic, we go ahead and find the zip file in the map concept. This run it runs on terminal and code. For mac users and terminal commands using ssh for working with the python interactive mode by entering the run python program from terminal by system that i made. Python programming language is run your python available on the results in terminals as and. Passionate about some of terminal looks like python programming task! Spyder and functions and schedule scripts in web development environment where you. Hopefully you from our programs are running untrusted python programming? These other python running the run your path you can open a script will end, and scp or directly download. Path of files recursively on windows background application makes use for? Create programs from. Food notifier example of your file, we can also effective bu the utilities folder you see the full path to install both locally and how can put it accepts two orders or terminal program from python? Debugging mode by running.
    [Show full text]
  • Php Editor Mac Freeware Download
    Php editor mac freeware download Davor's PHP Editor (DPHPEdit) is a free PHP IDE (Integrated Development Environment) which allows Project Creation and Management, Editing with. Notepad++ is a free and open source code editor for Windows. It comes with syntax highlighting for many languages including PHP, JavaScript, HTML, and BBEdit costs $, you can also download a free trial version. PHP editor for Mac OS X, Windows, macOS, and Linux features such as the PHP code builder, the PHP code assistant, and the PHP function list tool. Browse, upload, download, rename, and delete files and directories and much more. PHP Editor free download. Get the latest version now. PHP Editor. CodeLite is an open source, free, cross platform IDE specialized in C, C++, PHP and ) programming languages which runs best on all major Platforms (OSX, Windows and Linux). You can Download CodeLite for the following OSs. Aptana Studio (Windows, Linux, Mac OS X) (FREE) Built-in macro language; Plugins can be downloaded and installed from within jEdit using . EditPlus is a text editor, HTML editor, PHP editor and Java editor for Windows. Download For Mac For macOS or later Release notes - Other platforms Atom is a text editor that's modern, approachable, yet hackable to the core—a tool. Komodo Edit is a simple, polyglot editor that provides the basic functionality you need for programming. unit testing, collaboration, or integration with build systems, download Komodo IDE and start your day trial. (x86), Mac OS X. Download your free trial of Zend Studio - the leading PHP Editor for Zend Studio - Mac OS bit fdbbdea, Download.
    [Show full text]
  • BUG ET DEBUG DEBUG Des Scripts PHP Les Niveaux D’Erreur De PHP
    BUG ET DEBUG DEBUG des scripts PHP Les niveaux d’erreur de PHP Pour debug, il faut commencer par la configuration dans php.ini : display_errors = On error_reporting = E_ALL Ce dernier peut aussi être défini dans le code : error_reporting(E_ALL ^ E_NOTICE); Ou pour SPIP, dans mes_options.php : define('SPIP_ERREUR_REPORT',E_ALL ^ E_NOTICE); define('SPIP_ERREUR_REPORT_INCLUDE_PLUGINS', E_ALL ^ E_NOTICE); La méthode débrouille On ajoute du code de test pour voir quel chemin suit le script <?php echo « il est passe par ici » ?> die(‘ici’); Voir la valeur d’une variable ou d’une expression var_dump($ma_variable); Voir la pile d’appel debug_print_backtrace(); C’est intrusif et long On modifie le code « pour voir » On relance le script, et on recommence jusqu’à réussir à voir la bonne variable, ou le bon chemin et comprendre le problème Et on laisse des var_dump dans le code … Améliorer les affichages Des affichages plus riches avec XDEBUG XDEBUG S’installe comme une extension de php Compilée en .dll sous windows ou .so sous *nix (la compilation sous Mac OS nécessite l’installation de Xcode) http://devzone.zend.com/article/2803 Guide d’install pour MAMP+Mac OS http:// www.netbeans.org/kb/docs/php/configure-php- environment-mac-os.html#installEnableXdebug XDEBUG http://www.xdebug.org/ Librairie libre sous licence dérivée de PHP Librairie qui facilite le debug Amélioration des affichages de debug Debug interactif Profilage Couverture de code Un joli var_dump Configurable via php.ini : Longueur maxi des chaines affichées
    [Show full text]
  • Python Guide Documentation 0.0.1
    Python Guide Documentation 0.0.1 Kenneth Reitz 2015 09 13 Contents 1 Getting Started 3 1.1 Picking an Interpreter..........................................3 1.2 Installing Python on Mac OS X.....................................5 1.3 Installing Python on Windows......................................6 1.4 Installing Python on Linux........................................7 2 Writing Great Code 9 2.1 Structuring Your Project.........................................9 2.2 Code Style................................................ 15 2.3 Reading Great Code........................................... 24 2.4 Documentation.............................................. 24 2.5 Testing Your Code............................................ 26 2.6 Common Gotchas............................................ 30 2.7 Choosing a License............................................ 33 3 Scenario Guide 35 3.1 Network Applications.......................................... 35 3.2 Web Applications............................................ 36 3.3 HTML Scraping............................................. 41 3.4 Command Line Applications....................................... 42 3.5 GUI Applications............................................. 43 3.6 Databases................................................. 45 3.7 Networking................................................ 45 3.8 Systems Administration......................................... 46 3.9 Continuous Integration.......................................... 49 3.10 Speed..................................................
    [Show full text]
  • Copyrighted Material
    24_575872 bindex.qxd 5/27/05 6:28 PM Page 417 Index PHP, 53 • A • security, 41 abstract classes, 403–404 Security Sockets Layer (SSL), 41 abstraction, 387–388 application development accessing consistency in coding style, 376 methods, 395–396, 399–400 constants, 376 MySQL databases, 33–34 discussion lists, 378 MySQL from PHP scripts, 37 documentation, 378 properties, 395–396 PHP source code, 377 Account class (HTTP authentication application) planning, 19–22, 375 code, 66–68 readability of code, 376 comparePassword method, 69–70 resource planning, 21–22 constructor, 68–69 reusable code, 377 properties, 66 schedule, 21 selectAccount method, 69 separating page layout from function, 377 Account class (user login application) testing code incrementally, 376 comparePassword method, 112 application scripts constructor, 111 accessing MySQL, 37 Admin-OO.php createNewAccount method, 112–114 , 303–307 Admin.php getMessage method, 112 , 269–274 Auth-OO.php selectAccount method, 111 , 73–76 Catalog-oo.php accounts (MySQL) , 155–157 CompanyHome-OO.php creating, 35–36 , 294–300 CompanyHome.php modifying, 35 , 253–262 passwords, 35–36 error handling, 32–33 Login-OO.php permissions, 35 , 119–125, 293 login.php root, 35 , 92–100, 246–249 Orders-oo.php activating MySQL, 12–13 , 224–230 addCart method, 220 outside sources, 25–30 postMessage-OO.php AddField method, 327 , 361–363 postMessage.php addItem method, 214 , 339–342 postReply-OO.php addslashes function, 39COPYRIGHTED MATERIAL, 364–368 postReply.php Admin-OO.php script, 303–307 , 342–345 ProcessOrder.php
    [Show full text]
  • Methodologies and Tools for OSS: Current State of the Practice
    Electronic Communications of the EASST Volume 33 (2010) Proceedings of the Fourth International Workshop on Foundations and Techniques for Open Source Software Certification (OpenCert 2010) Methodologies and Tools for OSS: Current State of the Practice Zulqarnain Hashmi, Siraj A. Shaikh and Naveed Ikram 11 pages Guest Editors: Luis S. Barbosa, Antonio Cerone, Siraj A. Shaikh Managing Editors: Tiziana Margaria, Julia Padberg, Gabriele Taentzer ECEASST Home Page: http://www.easst.org/eceasst/ ISSN 1863-2122 ECEASST Methodologies and Tools for OSS: Current State of the Practice Zulqarnain Hashmi1, Siraj A. Shaikh2 and Naveed Ikram1 1 [email protected], [email protected] Department of Software Engineering, Faculty of Basic and Applied Sciences, International Islamic University, Islamabad, Pakistan 2 [email protected] Department of Computing and the Digital Environment, Faculty of Engineering and Computing, Coventry University, Coventry, United Kingdom Abstract: Over the years, the Open Source Software (OSS) development has ma- tured and strengthened, building on some established methodologies and tools. An understanding of the current state of the practice, however, is still lacking. This pa- per presents the results of a survey of the OSS developer community with a view to gain insight of peer review, testing and release management practices, along with the current tool sets used for testing, debugging and, build and release management. Such an insight is important to appreciate the obstacles to overcome to introduce cer- tification and more rigour into the development process. It is hoped that the results of this survey will initiate a useful discussion and allow the community to identify further process improvement opportunities for producing better quality software.
    [Show full text]
  • IDE Comparison for HTML 5, CSS 3 and Javascript
    HTML 5, CSS 3 + JavaScript IDE shootout A comparison of tools for the development of HTML 5 Applications AUTOR Sebastian Damm ) Schulung ) Orientation in Objects GmbH Veröffentlicht am: 21.4.2013 ABTRACT It is quite normal in the IT business that every year one or two new technologies arrive ) Beratung ) that cause a fundamental hype and that promise to change literally everything. Once the hype wave dimishes it often appears as if the technology could not live up to its hype. With HTML 5 the hype seems to be justified, but for developers a good technology or language is often only as good as their tooling support. In this article we will compare some of the most popular IDEs for HTML 5 development regarding their support for HTML 5, CSS 3 and JavaScript including features like auto-completion, validation and refactoring. ) Entwicklung ) ) Artikel ) Trivadis Germany GmbH Weinheimer Str. 68 D-68309 Mannheim Tel. +49 (0) 6 21 - 7 18 39 - 0 Fax +49 (0) 6 21 - 7 18 39 - 50 [email protected] Java, XML, UML, XSLT, Open Source, JBoss, SOAP, CVS, Spring, JSF, Eclipse INTRODUCTION Recent developments and the arrival of HTML5, CSS3 and foremost many new HTML/JavaScript APIs (canvas, offline storage, web sockets, asynchronous worker threads, video/audio, geolocation, drag & drop ...) resulted in a massive HTML5 hype. It is now possible to develop serious sophisticated web frontends only using HTML, CSS and JavaScript. With Microsoft abandoning Silverlight[1] and Adobe officially favoring HTML5 instead of Flash[2] for mobile development it is quite obvious that HTML5 is not just another huge hype bubble that will burst once the next shiny new technology arrives.
    [Show full text]
  • A Review of Source Code Projections in Integrated Development Environments
    Proceedings of the Federated Conference on DOI: 10.15439/2015F289 Computer Science and Information Systems pp. 923–927 ACSIS, Vol. 5 A Review of Source Code Projections in Integrated Development Environments Ján Juhár and Liberios Vokorokos Department of Computers and Informatics Technical University of Košice Letná 9, 0420 00 Košice, Slovakia Email: {jan.juhar, liberios.vokorokos}@tuke.sk Abstract—The term Projectional editor is commonly used for analyzers, refactoring and build automation tools, debuggers, tools that can work directly with the program’s abstract syntax and other tools. The research on the comprehension strategies tree. They are able to provide different views of the program, of professional programmers by Maalej et al. [2] points out the according to the specific editor used. The ability to look at the program from multiple views is often requested as a mean to importance of integrated environments: comprehension tools simplify program comprehension. During their evolution, the that are not a part of the IDEs are virtually not used at all in Integrated Development Environments were equipped with tools the practice. that provide such possibilities. Many of them already work with The main advantage modern IDEs have over pure text the parsed abstract syntax tree of the code and thus can be editors (even the advanced ones) is that they can “understand” considered for projections. In this paper we review projections available in 6 widely used IDEs. The review categorizes existing the structure of the source code. After loading the source projections and shows that significant number of IDE tools code contained in text files, they parse it into an abstract depend on the knowledge of program structure, but also that data representation of the code – a form of its abstract syntax tree from other integrated tools are used to enhance the projections.
    [Show full text]
  • Open Komodo: an Open Source IDE for Open Languages Own Your IDE Eric Promislow Activestate Software Inc
    Open Komodo: An Open Source IDE For Open Languages Own Your IDE Eric Promislow ActiveState Software Inc. OpenKomodo: Own Your IDE Oslo, Norway April 4, 2008 1 History • Perl for Windows • Active Python, Komodo Anti -Spam Digression • • • Refocus on Developer Tools OpenKomodo: Own Your IDE Oslo, Norway April 4, 2008 2 Contradiction?Origins OpenKomodo: Own Your IDE Oslo, Norway April 4, 2008 3 Agenda • Ruby and Rails Support • OpenKomodo • Zooming In OpenKomodo: Own Your IDE Oslo, Norway April 4, 2008 4 Komodo Philosophy Balance of Helpfulness • • • Projects Are Optional OpenKomodo: Own Your IDE Oslo, Norway April 4, 2008 5 Ruby Support Ruby -Aware Auto-Indentation • • • Soft Characters • • Code Completion – Their Stuff – Your Stuff • OpenKomodo:• AbbreviationsOwn Your IDE (Snippets)Oslo, Norway April 4, 2008 6 • Complete Known Names OpenKomodo: Own Your IDE Oslo, Norway April 4, 2008 7 Walk Library Objects OpenKomodo: Own Your IDE Oslo, Norway April 4, 2008 8 Call Tips OpenKomodo: Own Your IDE Oslo, Norway April 4, 2008 9 Your Own Code OpenKomodo: Own Your IDE Oslo, Norway April 4, 2008 10 Troubleshoot OpenKomodo: Own Your IDE Oslo, Norway April 4, 2008 11 Rails Support: Goals Avoid the Command-Line for Routine • activities – Generate & Migrate – Test – Debug – Run – SCC OpenKomodo: Own Your IDE Oslo, Norway April 4, 2008 12 Useful Tools Firefox JavaScript Debugger • • HTTP Inspector • DOM Inspector • Unit Test Integration • Rx Toolkit OpenKomodo: Own Your IDE Oslo, Norway April 4, 2008 13 Visualizing Redirects: Before OpenKomodo:
    [Show full text]
  • Learning PHP, Mysql & Javascript, 5Th Edition
    Learning PHP, MySQL, & JavaScript With jQuery, CSS, & HTML5 Fifth Edition Robin Nixon 1. Learning PHP, MySQL, & JavaScript 2. Preface 1. Audience 2. Assumptions This Book Makes 3. Organization of This Book 4. Supporting Books 5. Conventions Used in This Book 6. Using Code Examples 7. Safari® Books Online 8. How to Contact Us 9. Acknowledgments 3. 1. Introduction to Dynamic Web Content 1. HTTP and HTML: Berners-Lee’s Basics 2. The Request/Response Procedure 3. The Benefits of PHP, MySQL, JavaScript, CSS, and HTML5 1. Using PHP 2. Using MySQL 3. Using JavaScript 4. Using CSS 4. And Then There’s HTML5 5. The Apache Web Server 6. Handling mobile devices 7. About Open Source 8. Bringing It All Together 9. Questions 4. 2. Setting Up a Development Server 1. What Is a WAMP, MAMP, or LAMP? 2. Installing Ampps on Windows 1. Testing the Installation 3. Installing Ampps on Mac OS X 4. Installing a LAMP on Linux 5. Working Remotely 1. Logging In 2. Using FTP 6. Using a Program Editor 7. Using an IDE 8. Questions 5. 3. Introduction to PHP 1. Incorporating PHP Within HTML 2. This Book’s Examples 3. The Structure of PHP 1. Using Comments 2. Basic Syntax 3. Variables 4. Operators 5. Variable Assignment 6. Multiple-Line Commands 7. Variable Typing 8. Constants 9. Predefined Constants 10. The Difference Between the echo and print Commands 11. Functions 12. Variable Scope 4. Questions 6. 4. Expressions and Control Flow in PHP 1. Expressions 1. TRUE or FALSE? 2. Literals and Variables 2.
    [Show full text]