from bento box to backend by ana oprea
DESCRIPTION
From Bento Box to BackEnd by Ana OpreaTRANSCRIPT
![Page 1: From Bento Box to BackEnd by Ana Oprea](https://reader034.vdocuments.pub/reader034/viewer/2022051818/549a470fac79591d2e8b5b24/html5/thumbnails/1.jpg)
Backend Logic Classes and Objects
Ana Oprea
IT Consultant
![Page 2: From Bento Box to BackEnd by Ana Oprea](https://reader034.vdocuments.pub/reader034/viewer/2022051818/549a470fac79591d2e8b5b24/html5/thumbnails/2.jpg)
Table of contents
• My professional and personal background
• べんとう
• Bento Box Example
• Backend
• Object Oriented Programming
• Classes
• Objects
2 30/11/2013 Rails Girls Munich
![Page 3: From Bento Box to BackEnd by Ana Oprea](https://reader034.vdocuments.pub/reader034/viewer/2022051818/549a470fac79591d2e8b5b24/html5/thumbnails/3.jpg)
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
![Page 4: From Bento Box to BackEnd by Ana Oprea](https://reader034.vdocuments.pub/reader034/viewer/2022051818/549a470fac79591d2e8b5b24/html5/thumbnails/4.jpg)
べんとう
30/11/2013 Rails Girls Munich 4
![Page 5: From Bento Box to BackEnd by Ana Oprea](https://reader034.vdocuments.pub/reader034/viewer/2022051818/549a470fac79591d2e8b5b24/html5/thumbnails/5.jpg)
Bento Box Example
30/11/2013 Rails Girls Munich 5
Oracle
SQLite PostgreSQL
HBase
Apache Tomcat
Python
Java C
Ruby
Javascript HTML5 CSS
![Page 6: From Bento Box to BackEnd by Ana Oprea](https://reader034.vdocuments.pub/reader034/viewer/2022051818/549a470fac79591d2e8b5b24/html5/thumbnails/6.jpg)
Backend
• Behind the scenes
• Logic of the application
30/11/2013 Rails Girls Munich 6
![Page 7: From Bento Box to BackEnd by Ana Oprea](https://reader034.vdocuments.pub/reader034/viewer/2022051818/549a470fac79591d2e8b5b24/html5/thumbnails/7.jpg)
Object Oriented Programming
• Object : fields and methods
– Data encapsulation – Inheritance
– Modularity
• Languages: Java, Python, C++, Ruby, Scala
30/11/2013 Rails Girls Munich 7
![Page 8: From Bento Box to BackEnd by Ana Oprea](https://reader034.vdocuments.pub/reader034/viewer/2022051818/549a470fac79591d2e8b5b24/html5/thumbnails/8.jpg)
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
![Page 9: From Bento Box to BackEnd by Ana Oprea](https://reader034.vdocuments.pub/reader034/viewer/2022051818/549a470fac79591d2e8b5b24/html5/thumbnails/9.jpg)
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
![Page 10: From Bento Box to BackEnd by Ana Oprea](https://reader034.vdocuments.pub/reader034/viewer/2022051818/549a470fac79591d2e8b5b24/html5/thumbnails/10.jpg)
Mulțumesc
30/11/2013 10 Rails Girls Munich
![Page 11: From Bento Box to BackEnd by Ana Oprea](https://reader034.vdocuments.pub/reader034/viewer/2022051818/549a470fac79591d2e8b5b24/html5/thumbnails/11.jpg)
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