Presentation is loading. Please wait.

Presentation is loading. Please wait.

Netbeans: Beyond Java Silveira Neto Sun Campus Ambassador University of Ceará, Brazil.

Similar presentations


Presentation on theme: "Netbeans: Beyond Java Silveira Neto Sun Campus Ambassador University of Ceará, Brazil."— Presentation transcript:

1 Netbeans: Beyond Java Silveira Neto Sun Campus Ambassador University of Ceará, Brazil

2 About me Jose Maria Silveira Neto jose.neto@sun.com

3 Do more Netbeans Agenda Ruby Quick Tour JRuby Ruby on Rails Beyond Ruby

4 Ruby Yukihiro "Matz" Matsumoto Single-pass interpreted language Dynamic, Reflexive, object-oriented language Fun

5 Interactive Ruby Shell The Ruby playground. Keiju Ishitsuka. Ruby License and GPL. irb [ options ] [ programfile ] [ argument... ] Try on your browser: http://tryruby.hobix.com

6 IRB on Netbeans Menu → Windows → Others → Ruby Shell

7 IRB Hello World

8 IRB Hello World Anatomy command command counter line counter output return scope

9 Typing Dynamic typing Strongly typed

10 Numeric Object Numeric Float Integer Fixnum Bignum Primitive types are also objects

11 Fixnum Operators

12 Bignum _ and Fixnum to Bignum handle

13 Float class, abs, ceil and floor

14 Boolean

15 Strings + operator and #{} evaluation Equality * operator

16 Strings (more) length, index and char downcase and upcase

17 Collections: Array Creation, Reverse, flatten and uniq Length and using [interval]

18 Collections: Hash

19 Blocks

20 Iterators

21 Conditional if... elsif... else... end

22 Classes

23 Duck Typing

24 Meta programing

25 Case case... when... else... end

26 While while... end

27 For Iterates over colletions

28 Until until... end

29 Loop loop do... end

30 Functional Programming

31 Do more Netbeans Agenda Ruby Quick Tour JRuby Ruby on Rails Beyond Ruby

32 JRuby ● Ruby + Java ● Pure-Java implementation of the Ruby ● Free Software released under a three-way GPL/LGPL/CPL license. ● Tightly integrated with Java ● Two-ways – Ruby to Java – Java to Ruby

33 JRuby ● Why Java? – Reliable, broad and “enterprise”. ● Why Ruby? – Flexible, dinamic and fun.

34 Ruby can call Java $ jruby hello.rb

35 Java is framework or a language?

36 Java calling Ruby ● put here a Java code calling a ruby code.

37 Do more Netbeans Agenda Ruby Quick Tour Ruby on Rails JRuby Beyond Ruby

38 Ruby on Rails ● Rails Core Team ● David Heinemeier, Jeremy Kemper, Marcel Molina Jr, Michael Koziarski, Rick Olson, Pratik Naik et all) ● License: MIT/Ruby ● asdasd

39 Who is on rails? ● Example 1 ● Example 2 ● Example 3

40 Do more Ruby on Rails Agenda Ruby Quick Tour Netbeans JRuby Beyond Ruby

41

42 Netbeans Ruby Pack

43 References Ruby on Rails: Up and Running ; Bruce A. Tate, Curt Hibbs, 2006. Rich Client Programming: Plugging into the Netbeans Platform ; Tim Boudreau, Jaroslav Tulach, Geertjan Wielenga, 2007. Agile Web Development with Rails, Dave Thomas. “Ruby on Rails with Netbeans” presentation by Hardik Dave. Ruby for the Java world, Joshua Fox, http://www.javaworld.com/javaworld/jw-07-2006/jw- 0717-ruby.htm, 2006.http://www.javaworld.com/javaworld/jw-07-2006/jw- 0717-ruby.htm Ruby User Guide, http://www.rubyist.net/~slagell/rubyhttp://www.rubyist.net/~slagell/ruby Ceará Map from Wikipedia, http://en.wikipedia.org/wiki/Cearahttp://en.wikipedia.org/wiki/Ceara Brazil Map from Wikipedia, http://en.wikipedia.org/wiki/Brazilhttp://en.wikipedia.org/wiki/Brazil

44 Thank you! Silveira Neto Sun Campus Ambassador University of Ceará, Brazil


Download ppt "Netbeans: Beyond Java Silveira Neto Sun Campus Ambassador University of Ceará, Brazil."

Similar presentations


Ads by Google