Upload
rails-girls-muc
View
112
Download
1
Embed Size (px)
DESCRIPTION
From Bento Box to BackEnd by Ana Oprea
Citation preview
Backend Logic Classes and Objects
Ana Oprea
IT Consultant
Table of contents
• My professional and personal background
• べんとう
• Bento Box Example
• Backend
• Object Oriented Programming
• Classes
• Objects
2 30/11/2013 Rails Girls Munich
Professional and personal background
• Bachelor in CS, University Politehnica of Bucharest
• MSc in IT Security, Eurecom TélécomParisTech, France
• Work experience: Network Administrator, Teaching Assistant, Software Developer; IT Consultant
• Hobbies: travelling, mountaineering, skiing
30/11/2013 Rails Girls Munich 3
べんとう
30/11/2013 Rails Girls Munich 4
Bento Box Example
30/11/2013 Rails Girls Munich 5
Oracle
SQLite PostgreSQL
HBase
Apache Tomcat
Python
Java C
Ruby
Javascript HTML5 CSS
Backend
• Behind the scenes
• Logic of the application
30/11/2013 Rails Girls Munich 6
Object Oriented Programming
• Object : fields and methods
– Data encapsulation – Inheritance
– Modularity
• Languages: Java, Python, C++, Ruby, Scala
30/11/2013 Rails Girls Munich 7
Classes
class Bicycle:
# building a bike
def initialize(start_speed=0)
@speed = start_speed
end
# how the bike works
def go_faster(increment):
@speed += increment
end
def go_slower(decrement):
@speed -= decrement
end
30/11/2013 Rails Girls Munich 8
Objects
city_bike = Bicycle.new()
city_bike.go_faster(1)
mountain_bike = Bicycle.new(4)
mountain_bike.go_slower(3)
mountain_bike.go_faster(4)
30/11/2013 Rails Girls Munich 9
Mulțumesc
30/11/2013 10 Rails Girls Munich
Useful Links
• Introduction to OOP http://www.codeproject.com/Articles/22769/Introduction-to-Object-Oriented-Programming-Concep
• The Java Tutorials http://docs.oracle.com/javase/tutorial/java/concepts/index.html
• The Python Tutorial http://docs.python.org/2/tutorial/index.html
30/11/2013 Rails Girls Munich 11