SlideShare a Scribd company logo
1 of 31
Door Chiel Wester
Inhoud

• De opdracht
• Ruby On Rails
• Realisatie
• Demo
• Vragen
De opdracht

• Een informatiesysteem
• Webbased
• Dynamisch
• Filtering
Webbased


+      +       =
Dynamisch


• Minder ontwikkeltijd
• Overal toepasbaar
Dynamisch

 E-mail      Relatiebeheer   Informatiebeheer   Agenda



                                                 ?
Documenten                                       ...
Filtering


•   Alle mogelijke informatie
•   Filters opslaan
Ruby On Rails
Ruby On Rails
                      Snel ontwikkelen
Veel structuur
                      Goed onderhoudbaar



    Ruby: “A Programmer’s Best Friend”
Een berekening 5 keer
      uitvoeren
In Java...
int k = 0;
for(int i=0;i<5;i++) {
	 k = k + (i * 5);
}
In Ruby...
k=0
5.times {|i| k = k + (i * 5) }
Nog meer functies


• names = @person.collect {|x| x.name}
• active_persons = @persons.select {|x| x.active}
Of achter elkaar...


active_names = @persons.select{|x|
x.active}.collect{|x| x.name}
RJS
  Server                                             Client

                     new Ajax.Request(‘een_actie’)




alert(‘Wijzigingen
   opgeslagen’);
RJS


• Ruby in JavaScript
• Server genereert JavaScript
• Geen page refresh = gebruiksvriendelijk
Realisatie
Een probleem...

                            Client
Server

 Server                 JavaScript
memory                  geheugen
Desktop   View
  Views   Sub_Views
Van welke view moet de
  functie aangeroepen
        worden?
Desktop heeft nog een
   array: all_views
Elk nieuw View Object
wordt toegevoegd aan
       all_views
Desktop
Desktop                 View
           All_Views

 Views                 Sub_Views
Bij de request wordt de
  positie meegegeven:
    new Ajax.Request(‘/view/load_data/?
 index=’+desktop.all_views.indexOf(view));
Server
                   All_Views
geheugen


           1   1




           2   2
RJS Functie
               desktop.all_views
[@index].main_object.merge_with_dataset(@data)
Demo
Vragen?
Afstudeerpresentatie

More Related Content

Viewers also liked

Rails Software Metrics
Rails Software MetricsRails Software Metrics
Rails Software Metricschiel
 
Guiamoodle 3
Guiamoodle 3Guiamoodle 3
Guiamoodle 3aalva1959
 
Pakistan
PakistanPakistan
Pakistancyllan1
 
Scalable Networking
Scalable NetworkingScalable Networking
Scalable Networkingl xf
 
The Proactor Pattern
The Proactor PatternThe Proactor Pattern
The Proactor Patternl xf
 
Erlang Message Passing Concurrency, For The Win
Erlang  Message  Passing  Concurrency,  For  The  WinErlang  Message  Passing  Concurrency,  For  The  Win
Erlang Message Passing Concurrency, For The Winl xf
 
The Migration From Erlang To Otp A Case Study Of A Heavy Duty Tcpip Clients...
The Migration From Erlang To Otp   A Case Study Of A Heavy Duty Tcpip Clients...The Migration From Erlang To Otp   A Case Study Of A Heavy Duty Tcpip Clients...
The Migration From Erlang To Otp A Case Study Of A Heavy Duty Tcpip Clients...l xf
 
Stackless Python In Eve
Stackless Python In EveStackless Python In Eve
Stackless Python In Evel xf
 
Comparing Cpp And Erlang For Motorola Telecoms Software
Comparing Cpp And Erlang For Motorola Telecoms SoftwareComparing Cpp And Erlang For Motorola Telecoms Software
Comparing Cpp And Erlang For Motorola Telecoms Softwarel xf
 
Concurrency And Erlang
Concurrency And ErlangConcurrency And Erlang
Concurrency And Erlangl xf
 
Professional XML with PHP
Professional XML with PHPProfessional XML with PHP
Professional XML with PHPTobias Schlitt
 
XPath - A practical guide
XPath - A practical guideXPath - A practical guide
XPath - A practical guideTobias Schlitt
 
Asynchronous Io Programming
Asynchronous Io ProgrammingAsynchronous Io Programming
Asynchronous Io Programmingl xf
 

Viewers also liked (13)

Rails Software Metrics
Rails Software MetricsRails Software Metrics
Rails Software Metrics
 
Guiamoodle 3
Guiamoodle 3Guiamoodle 3
Guiamoodle 3
 
Pakistan
PakistanPakistan
Pakistan
 
Scalable Networking
Scalable NetworkingScalable Networking
Scalable Networking
 
The Proactor Pattern
The Proactor PatternThe Proactor Pattern
The Proactor Pattern
 
Erlang Message Passing Concurrency, For The Win
Erlang  Message  Passing  Concurrency,  For  The  WinErlang  Message  Passing  Concurrency,  For  The  Win
Erlang Message Passing Concurrency, For The Win
 
The Migration From Erlang To Otp A Case Study Of A Heavy Duty Tcpip Clients...
The Migration From Erlang To Otp   A Case Study Of A Heavy Duty Tcpip Clients...The Migration From Erlang To Otp   A Case Study Of A Heavy Duty Tcpip Clients...
The Migration From Erlang To Otp A Case Study Of A Heavy Duty Tcpip Clients...
 
Stackless Python In Eve
Stackless Python In EveStackless Python In Eve
Stackless Python In Eve
 
Comparing Cpp And Erlang For Motorola Telecoms Software
Comparing Cpp And Erlang For Motorola Telecoms SoftwareComparing Cpp And Erlang For Motorola Telecoms Software
Comparing Cpp And Erlang For Motorola Telecoms Software
 
Concurrency And Erlang
Concurrency And ErlangConcurrency And Erlang
Concurrency And Erlang
 
Professional XML with PHP
Professional XML with PHPProfessional XML with PHP
Professional XML with PHP
 
XPath - A practical guide
XPath - A practical guideXPath - A practical guide
XPath - A practical guide
 
Asynchronous Io Programming
Asynchronous Io ProgrammingAsynchronous Io Programming
Asynchronous Io Programming
 

Similar to Afstudeerpresentatie

Object Oriented Programming for web applications
Object Oriented Programming for web applicationsObject Oriented Programming for web applications
Object Oriented Programming for web applicationsEdwin Vlieg
 
OpenESB -- Hello World Intor
OpenESB -- Hello World IntorOpenESB -- Hello World Intor
OpenESB -- Hello World Intorpappavis
 
20130308 GB les 6
20130308 GB les 620130308 GB les 6
20130308 GB les 6mleeuwen
 
Node.js: waarom en hoe
Node.js: waarom en hoeNode.js: waarom en hoe
Node.js: waarom en hoeFrank Louwers
 
Nord Toelichting Techniek
Nord Toelichting TechniekNord Toelichting Techniek
Nord Toelichting Techniektjercus
 
Hosting van Drupal gemeentesites @ DrupalJam 2014
Hosting van Drupal gemeentesites @ DrupalJam 2014Hosting van Drupal gemeentesites @ DrupalJam 2014
Hosting van Drupal gemeentesites @ DrupalJam 2014Bas van der Zalm
 
Presentatie Webscale op DrupalJam 2014
Presentatie Webscale op DrupalJam 2014 Presentatie Webscale op DrupalJam 2014
Presentatie Webscale op DrupalJam 2014 Webscale
 
Projectpaas drupaljam 2013 rotterdam
Projectpaas drupaljam 2013 rotterdamProjectpaas drupaljam 2013 rotterdam
Projectpaas drupaljam 2013 rotterdamBert Boerland
 
Cursus Zend Framework - 1
Cursus Zend Framework - 1Cursus Zend Framework - 1
Cursus Zend Framework - 1bartjeukendrup
 
Digitale renovaties - Congres 2008 - V-ICT-OR
Digitale renovaties - Congres 2008 - V-ICT-ORDigitale renovaties - Congres 2008 - V-ICT-OR
Digitale renovaties - Congres 2008 - V-ICT-ORBart Gysens
 
2010 iska - tim m - nosql iska
2010   iska - tim m - nosql iska2010   iska - tim m - nosql iska
2010 iska - tim m - nosql iskaTim Mahy
 
Techdays 2013 NL - Serious Request met Windows Azure
Techdays 2013 NL - Serious Request met Windows AzureTechdays 2013 NL - Serious Request met Windows Azure
Techdays 2013 NL - Serious Request met Windows AzureMichaël Hompus
 
2019 diy migration webinar gs nl
2019 diy migration webinar gs nl2019 diy migration webinar gs nl
2019 diy migration webinar gs nlEDB
 

Similar to Afstudeerpresentatie (19)

Object Oriented Programming for web applications
Object Oriented Programming for web applicationsObject Oriented Programming for web applications
Object Oriented Programming for web applications
 
OpenESB -- Hello World Intor
OpenESB -- Hello World IntorOpenESB -- Hello World Intor
OpenESB -- Hello World Intor
 
embedded SQL en JDBC
embedded SQL en JDBCembedded SQL en JDBC
embedded SQL en JDBC
 
20130308 GB les 6
20130308 GB les 620130308 GB les 6
20130308 GB les 6
 
JDBC en embedded SQL
JDBC en embedded SQLJDBC en embedded SQL
JDBC en embedded SQL
 
Node.js: waarom en hoe
Node.js: waarom en hoeNode.js: waarom en hoe
Node.js: waarom en hoe
 
Nord Toelichting Techniek
Nord Toelichting TechniekNord Toelichting Techniek
Nord Toelichting Techniek
 
Cv
CvCv
Cv
 
Hosting van Drupal gemeentesites @ DrupalJam 2014
Hosting van Drupal gemeentesites @ DrupalJam 2014Hosting van Drupal gemeentesites @ DrupalJam 2014
Hosting van Drupal gemeentesites @ DrupalJam 2014
 
Presentatie Webscale op DrupalJam 2014
Presentatie Webscale op DrupalJam 2014 Presentatie Webscale op DrupalJam 2014
Presentatie Webscale op DrupalJam 2014
 
Projectpaas drupaljam 2013 rotterdam
Projectpaas drupaljam 2013 rotterdamProjectpaas drupaljam 2013 rotterdam
Projectpaas drupaljam 2013 rotterdam
 
Cursus Zend Framework - 1
Cursus Zend Framework - 1Cursus Zend Framework - 1
Cursus Zend Framework - 1
 
Digitale renovaties - Congres 2008 - V-ICT-OR
Digitale renovaties - Congres 2008 - V-ICT-ORDigitale renovaties - Congres 2008 - V-ICT-OR
Digitale renovaties - Congres 2008 - V-ICT-OR
 
2010 iska - tim m - nosql iska
2010   iska - tim m - nosql iska2010   iska - tim m - nosql iska
2010 iska - tim m - nosql iska
 
About Node.js
About Node.jsAbout Node.js
About Node.js
 
Drupal 7 intro
Drupal 7 introDrupal 7 intro
Drupal 7 intro
 
Unleash the power of raven db
Unleash the power of raven dbUnleash the power of raven db
Unleash the power of raven db
 
Techdays 2013 NL - Serious Request met Windows Azure
Techdays 2013 NL - Serious Request met Windows AzureTechdays 2013 NL - Serious Request met Windows Azure
Techdays 2013 NL - Serious Request met Windows Azure
 
2019 diy migration webinar gs nl
2019 diy migration webinar gs nl2019 diy migration webinar gs nl
2019 diy migration webinar gs nl
 

Afstudeerpresentatie