SlideShare a Scribd company logo
1 of 40
Download to read offline
< StartupDecode />
Coding for entrepreneurs:
from zero to hero
Amine Sadry
@donaminos
www.startupdecode.com
@startupdecode /startupDecode /user/startupDecodemeetup.com/startupDecode
< Program />
1. What is Programming ?
2. OOP Principle
3. World Wide Web
4. The best programming language
5. Architecture 101
6. Hands-on Ruby On Rails
7. Apéro Networking
www.startupdecode.com
What is
programming?
< Machine language />
www.startupdecode.com
< Assembler language />
www.startupdecode.com
2000 DEF PROCasm(pass,org)
2010 P%=org
2020 [ OPT pass
2030 ADR R0, message
2040 SWI OS_Write0
2050 MOV PC, R14
2060 .message
2070 EQUS "Hello, World!" + CHR$(0)
2080 ALIGN
2090 ]
2100 ENDPROC
1000 REM Hello World using a mix of
BBC Basic and ARM assembler
1010 DIM org 100
1020 OS_Write0 = &2
1030 FOR pass=0 TO 3 STEP 3
1040 PROCasm(pass,org)
1050 NEXT pass
1060 CALL org
1070 END
1080
< High-level language />
www.startupdecode.com
void main (void)
{
printf ("Hello n");
if ( x == y )
printf("x equal y n");
}
10100110
01010001
11100101
Compile
< Implementation />
www.startupdecode.com
Compiled vs Interpreted
< Procedural programming />
www.startupdecode.com
main(){
var data1, data2;
procedure_1();
procedure_2(data1);
procedure_3(data1, data2);
print data2;
}
procedure_1(){
...
}
procedure_2(param){
….
}
procedure_3(p1, p2){
….
}
Object Oriented
Programming
< OOP principle 1/3 />
www.startupdecode.com
Properties:
● Brand
● Color
Actions:
● Strart
● Accelerate
● Stop
< OOP principle 2/3 />
www.startupdecode.com
Properties:
● Name
● Email
● …
Actions:
● Move
● Text
● …
< OOP principle 3/3 />
www.startupdecode.com
Attributes
Methods
Class
< Code 1/2 />
www.startupdecode.com
Class Nom_classe
attr_accessor :var1, :var2
Def nom_methode_1
…
end
Def nom_methode_2
…
end
end
Class Car
attr_accessor :brand, :color
Def start_engine
puts “Engine started.”
end
Def turn_left
puts “Turn left.”
end
end
< Code 2/2 />
www.startupdecode.com
voiture1 = Car.new
voiture1.brand = “Peugeot”
voiture1.color = “rouge”
voiture2 = Car.new
voiture2.brand = “Fiat”
voiture2.color = “verte”
voiture2.start_engine
voiture1.brand
—— ——— ——— —— —— — — — — —
# Engine started.
# Peugeot
Inheritance
< Inheritance />
www.startupdecode.com
B
A
C
A A
< Inheritance />
www.startupdecode.com
class User
attr_accessor :name
def login
“I logged in!”
end
def logout
“I logged out!”
end
end
class Freelance < User
def add_resume
“I added a resume!”
end
end
class Entreprise < User
def add_offer
“I added an offer!”
end
end
< Ruby code />
www.startupdecode.com
World Wide Web
< HTTP Protocol />
www.startupdecode.com
Client Server
Request
Response
< HTML document />
www.startupdecode.com
<head>
</head>
<body>
</body>
<!DOCTYPE html>
<html>
</html>
< Head />
www.startupdecode.com
<head>
<title> Titre du document html </title>
</head>
< Body />
www.startupdecode.com
<body>
<h1> Titre de ma page </h1>
<p>
Le contenu de mon paragraphe.
</p>
<a href=“www.google.com”> Lien vers google </a>
</body>
< The first website />
http://www.w3.org/...
www.startupdecode.com
Browser / Client Server
Response
Request
index.html
page1.html page2.html
Source: http://www.w3.org/History/19921103-hypertext/hypertext/WWW/TheProject.html
< CSS Principle />
www.startupdecode.com
<body>
<p id=“identifiant_unique” class=“ma_classe”>
Le contenu de mon paragraphe.
</p>
<p id=“autre_identifiant” class=“ma_classe”>
Un autre paragraphe.
</p>
</body>
#identifiant_unique {
margin-top:20px;
}
.ma_classe {
width:200px;
height: 300px;
}
< Great design />
www.startupdecode.com
< Static website />
http://www.horriblest.com/
www.startupdecode.com
Browser / Client Server
Response
Request
index.html
page1.html page2.html
< Dynamic website />
http://www.facebook.com
www.startupdecode.com
Browser / Client / Front-end Server / Back-end
Response
Request
Database
Web
Application
< Relational database />
www.startupdecode.com
cars
id brand color created_at
1 peugeot rouge 23/11/2014
2 fiat verte 23/11/2014
n ... ... ...
SQL:
SELECT * FROM cars WHERE id = 2
INSERT INTO cars (brand, color) VALUES (fiat, verte);
DELETE FROM cars WHERE id = 1;
< Languages />
http://www.facebook.com
www.startupdecode.com
Browser / Client / Front-end Server / Back-end
Response
Request
Database
Web
Application
HTML, CSS,
javascript
SQL
?
The best
programming language
Java C# Python PHP Node JS Ruby
Learning
curve
Stability
Ecosystem
Enthusiasm
Workforce
Java C# Python PHP Node JS Ruby
Resources
Use case Linkedin
< Languages />
www.startupdecode.com
Criteo Facebook MySpacePinterest AirBnB
Architecture 101
Presentation:
HTML / CSS
JavaScript
< Application layers />
Front-end Back-end
Data:
SQL
Logic:
Ruby
on Rails
www.startupdecode.com
< MVC architecture />
http://www.facebook.com
www.startupdecode.com
Browser / Client / Front-end Server / Back-end
Database
APP
Controller
View
Model
< Rails app directory />
www.startupdecode.com
$ rails new APP_NAME
1. generate new app
3. http://localhost:3000
2. run the server
$ rails server
< Rails app architecture />
www.startupdecode.com
Database
Rails app
Controller
(ActionController)
View
(ActionView)
Model
(ActiveRecord)
Routes
Hands-on
Ruby on Rails
< Ruby code />
www.startupdecode.com
< StartupDecode />
@startupdecode /startupDecode /user/startupDecodemeetup.com/startupDecode
Merci
&
A bientôt

More Related Content

What's hot

How to Build SPA with Vue Router 2.0
How to Build SPA with Vue Router 2.0How to Build SPA with Vue Router 2.0
How to Build SPA with Vue Router 2.0Takuya Tejima
 
Mobile web-debug
Mobile web-debugMobile web-debug
Mobile web-debugFINN.no
 
Como construir uma Aplicação que consuma e produza updates no Twitter usando ...
Como construir uma Aplicação que consuma e produza updates no Twitter usando ...Como construir uma Aplicação que consuma e produza updates no Twitter usando ...
Como construir uma Aplicação que consuma e produza updates no Twitter usando ...Cirdes Filho
 
Silex and Twig (PHP Dorset talk)
Silex and Twig (PHP Dorset talk)Silex and Twig (PHP Dorset talk)
Silex and Twig (PHP Dorset talk)Dave Hulbert
 
devise tutorial - 2011 rubyconf taiwan
devise tutorial - 2011 rubyconf taiwandevise tutorial - 2011 rubyconf taiwan
devise tutorial - 2011 rubyconf taiwanTse-Ching Ho
 
Web Components: Web back to future.
Web Components: Web back to future.Web Components: Web back to future.
Web Components: Web back to future.GlobalLogic Ukraine
 
Silex: From nothing to an API
Silex: From nothing to an APISilex: From nothing to an API
Silex: From nothing to an APIchrisdkemper
 
Gordian knot presentation
Gordian knot presentationGordian knot presentation
Gordian knot presentationJim Osowski
 
How to call $scope function from console
How to call $scope function from consoleHow to call $scope function from console
How to call $scope function from consolecodeandyou forums
 
Developers, Be a Bada$$ with WP-CLI
Developers, Be a Bada$$ with WP-CLIDevelopers, Be a Bada$$ with WP-CLI
Developers, Be a Bada$$ with WP-CLIWP Engine
 
Securing Word Press Blog
Securing Word Press BlogSecuring Word Press Blog
Securing Word Press BlogChetan Gole
 
Please, dont touch the slow parts v.3.6 @webtechcon
Please, dont touch the slow parts v.3.6 @webtechconPlease, dont touch the slow parts v.3.6 @webtechcon
Please, dont touch the slow parts v.3.6 @webtechconFrancesco Fullone
 
Pluginが広げるRailsの魅力
Pluginが広げるRailsの魅力Pluginが広げるRailsの魅力
Pluginが広げるRailsの魅力Yoji Shidara
 
Slidecarol.html
Slidecarol.htmlSlidecarol.html
Slidecarol.htmlLeda0401
 

What's hot (18)

How to Build SPA with Vue Router 2.0
How to Build SPA with Vue Router 2.0How to Build SPA with Vue Router 2.0
How to Build SPA with Vue Router 2.0
 
Intro to Silex
Intro to SilexIntro to Silex
Intro to Silex
 
Mobile web-debug
Mobile web-debugMobile web-debug
Mobile web-debug
 
Como construir uma Aplicação que consuma e produza updates no Twitter usando ...
Como construir uma Aplicação que consuma e produza updates no Twitter usando ...Como construir uma Aplicação que consuma e produza updates no Twitter usando ...
Como construir uma Aplicação que consuma e produza updates no Twitter usando ...
 
Jquery
JqueryJquery
Jquery
 
Silex and Twig (PHP Dorset talk)
Silex and Twig (PHP Dorset talk)Silex and Twig (PHP Dorset talk)
Silex and Twig (PHP Dorset talk)
 
devise tutorial - 2011 rubyconf taiwan
devise tutorial - 2011 rubyconf taiwandevise tutorial - 2011 rubyconf taiwan
devise tutorial - 2011 rubyconf taiwan
 
Web Components: Web back to future.
Web Components: Web back to future.Web Components: Web back to future.
Web Components: Web back to future.
 
Jasmine with JS-Test-Driver
Jasmine with JS-Test-DriverJasmine with JS-Test-Driver
Jasmine with JS-Test-Driver
 
Silex: From nothing to an API
Silex: From nothing to an APISilex: From nothing to an API
Silex: From nothing to an API
 
Gordian knot presentation
Gordian knot presentationGordian knot presentation
Gordian knot presentation
 
How to call $scope function from console
How to call $scope function from consoleHow to call $scope function from console
How to call $scope function from console
 
Developers, Be a Bada$$ with WP-CLI
Developers, Be a Bada$$ with WP-CLIDevelopers, Be a Bada$$ with WP-CLI
Developers, Be a Bada$$ with WP-CLI
 
Securing Word Press Blog
Securing Word Press BlogSecuring Word Press Blog
Securing Word Press Blog
 
Up & running with jasmine
Up & running with jasmineUp & running with jasmine
Up & running with jasmine
 
Please, dont touch the slow parts v.3.6 @webtechcon
Please, dont touch the slow parts v.3.6 @webtechconPlease, dont touch the slow parts v.3.6 @webtechcon
Please, dont touch the slow parts v.3.6 @webtechcon
 
Pluginが広げるRailsの魅力
Pluginが広げるRailsの魅力Pluginが広げるRailsの魅力
Pluginが広げるRailsの魅力
 
Slidecarol.html
Slidecarol.htmlSlidecarol.html
Slidecarol.html
 

Similar to Coding for entrepreneurs

WordCamp Montreal 2016 WP-API + React with server rendering
WordCamp Montreal 2016  WP-API + React with server renderingWordCamp Montreal 2016  WP-API + React with server rendering
WordCamp Montreal 2016 WP-API + React with server renderingZiad Saab
 
Widget Summit 2008
Widget Summit 2008Widget Summit 2008
Widget Summit 2008Volkan Unsal
 
Introduction to Yesod
Introduction to YesodIntroduction to Yesod
Introduction to Yesodbobjlong
 
Developing a Web Application
Developing a Web ApplicationDeveloping a Web Application
Developing a Web ApplicationRabab Gomaa
 
A Holistic View of Website Performance
A Holistic View of Website PerformanceA Holistic View of Website Performance
A Holistic View of Website PerformanceRene Churchill
 
Spicy javascript: Create your first Chrome extension for web analytics QA
Spicy javascript: Create your first Chrome extension for web analytics QASpicy javascript: Create your first Chrome extension for web analytics QA
Spicy javascript: Create your first Chrome extension for web analytics QAAlban Gérôme
 
Even Faster Web Sites at jQuery Conference '09
Even Faster Web Sites at jQuery Conference '09Even Faster Web Sites at jQuery Conference '09
Even Faster Web Sites at jQuery Conference '09Steve Souders
 
Using and scaling Rack and Rack-based middleware
Using and scaling Rack and Rack-based middlewareUsing and scaling Rack and Rack-based middleware
Using and scaling Rack and Rack-based middlewareAlona Mekhovova
 
Rapid Application Development with WSO2 Platform
Rapid Application Development with WSO2 PlatformRapid Application Development with WSO2 Platform
Rapid Application Development with WSO2 PlatformWSO2
 
Front End Development for Back End Java Developers - Jfokus 2020
Front End Development for Back End Java Developers - Jfokus 2020Front End Development for Back End Java Developers - Jfokus 2020
Front End Development for Back End Java Developers - Jfokus 2020Matt Raible
 
Build Your First Java Jersey JAX-RS REST Web Service in less than 15 Minutes
Build Your First Java Jersey JAX-RS REST Web Service in less than 15 MinutesBuild Your First Java Jersey JAX-RS REST Web Service in less than 15 Minutes
Build Your First Java Jersey JAX-RS REST Web Service in less than 15 MinutesRobert Li
 
Profiling PHP with Xdebug / Webgrind
Profiling PHP with Xdebug / WebgrindProfiling PHP with Xdebug / Webgrind
Profiling PHP with Xdebug / WebgrindSam Keen
 
Client-side JavaScript Vulnerabilities
Client-side JavaScript VulnerabilitiesClient-side JavaScript Vulnerabilities
Client-side JavaScript VulnerabilitiesOry Segal
 
Ruby MVC from scratch with Rack
Ruby MVC from scratch with RackRuby MVC from scratch with Rack
Ruby MVC from scratch with RackDonSchado
 
Clojure and the Web
Clojure and the WebClojure and the Web
Clojure and the Webnickmbailey
 

Similar to Coding for entrepreneurs (20)

WordCamp Montreal 2016 WP-API + React with server rendering
WordCamp Montreal 2016  WP-API + React with server renderingWordCamp Montreal 2016  WP-API + React with server rendering
WordCamp Montreal 2016 WP-API + React with server rendering
 
Widget Summit 2008
Widget Summit 2008Widget Summit 2008
Widget Summit 2008
 
Introduction to Yesod
Introduction to YesodIntroduction to Yesod
Introduction to Yesod
 
Meeting 01
Meeting 01Meeting 01
Meeting 01
 
Oscon 20080724
Oscon 20080724Oscon 20080724
Oscon 20080724
 
Developing a Web Application
Developing a Web ApplicationDeveloping a Web Application
Developing a Web Application
 
code-camp-meteor
code-camp-meteorcode-camp-meteor
code-camp-meteor
 
Html5 intro
Html5 introHtml5 intro
Html5 intro
 
hacking with node.JS
hacking with node.JShacking with node.JS
hacking with node.JS
 
A Holistic View of Website Performance
A Holistic View of Website PerformanceA Holistic View of Website Performance
A Holistic View of Website Performance
 
Spicy javascript: Create your first Chrome extension for web analytics QA
Spicy javascript: Create your first Chrome extension for web analytics QASpicy javascript: Create your first Chrome extension for web analytics QA
Spicy javascript: Create your first Chrome extension for web analytics QA
 
Even Faster Web Sites at jQuery Conference '09
Even Faster Web Sites at jQuery Conference '09Even Faster Web Sites at jQuery Conference '09
Even Faster Web Sites at jQuery Conference '09
 
Using and scaling Rack and Rack-based middleware
Using and scaling Rack and Rack-based middlewareUsing and scaling Rack and Rack-based middleware
Using and scaling Rack and Rack-based middleware
 
Rapid Application Development with WSO2 Platform
Rapid Application Development with WSO2 PlatformRapid Application Development with WSO2 Platform
Rapid Application Development with WSO2 Platform
 
Front End Development for Back End Java Developers - Jfokus 2020
Front End Development for Back End Java Developers - Jfokus 2020Front End Development for Back End Java Developers - Jfokus 2020
Front End Development for Back End Java Developers - Jfokus 2020
 
Build Your First Java Jersey JAX-RS REST Web Service in less than 15 Minutes
Build Your First Java Jersey JAX-RS REST Web Service in less than 15 MinutesBuild Your First Java Jersey JAX-RS REST Web Service in less than 15 Minutes
Build Your First Java Jersey JAX-RS REST Web Service in less than 15 Minutes
 
Profiling PHP with Xdebug / Webgrind
Profiling PHP with Xdebug / WebgrindProfiling PHP with Xdebug / Webgrind
Profiling PHP with Xdebug / Webgrind
 
Client-side JavaScript Vulnerabilities
Client-side JavaScript VulnerabilitiesClient-side JavaScript Vulnerabilities
Client-side JavaScript Vulnerabilities
 
Ruby MVC from scratch with Rack
Ruby MVC from scratch with RackRuby MVC from scratch with Rack
Ruby MVC from scratch with Rack
 
Clojure and the Web
Clojure and the WebClojure and the Web
Clojure and the Web
 

Recently uploaded

Magic exist by Marta Loveguard - presentation.pptx
Magic exist by Marta Loveguard - presentation.pptxMagic exist by Marta Loveguard - presentation.pptx
Magic exist by Marta Loveguard - presentation.pptxMartaLoveguard
 
A Good Girl's Guide to Murder (A Good Girl's Guide to Murder, #1)
A Good Girl's Guide to Murder (A Good Girl's Guide to Murder, #1)A Good Girl's Guide to Murder (A Good Girl's Guide to Murder, #1)
A Good Girl's Guide to Murder (A Good Girl's Guide to Murder, #1)Christopher H Felton
 
Contact Rya Baby for Call Girls New Delhi
Contact Rya Baby for Call Girls New DelhiContact Rya Baby for Call Girls New Delhi
Contact Rya Baby for Call Girls New Delhimiss dipika
 
定制(AUT毕业证书)新西兰奥克兰理工大学毕业证成绩单原版一比一
定制(AUT毕业证书)新西兰奥克兰理工大学毕业证成绩单原版一比一定制(AUT毕业证书)新西兰奥克兰理工大学毕业证成绩单原版一比一
定制(AUT毕业证书)新西兰奥克兰理工大学毕业证成绩单原版一比一Fs
 
Packaging the Monolith - PHP Tek 2024 (Breaking it down one bite at a time)
Packaging the Monolith - PHP Tek 2024 (Breaking it down one bite at a time)Packaging the Monolith - PHP Tek 2024 (Breaking it down one bite at a time)
Packaging the Monolith - PHP Tek 2024 (Breaking it down one bite at a time)Dana Luther
 
Film cover research (1).pptxsdasdasdasdasdasa
Film cover research (1).pptxsdasdasdasdasdasaFilm cover research (1).pptxsdasdasdasdasdasa
Film cover research (1).pptxsdasdasdasdasdasa494f574xmv
 
Top 10 Interactive Website Design Trends in 2024.pptx
Top 10 Interactive Website Design Trends in 2024.pptxTop 10 Interactive Website Design Trends in 2024.pptx
Top 10 Interactive Website Design Trends in 2024.pptxDyna Gilbert
 
Call Girls In The Ocean Pearl Retreat Hotel New Delhi 9873777170
Call Girls In The Ocean Pearl Retreat Hotel New Delhi 9873777170Call Girls In The Ocean Pearl Retreat Hotel New Delhi 9873777170
Call Girls In The Ocean Pearl Retreat Hotel New Delhi 9873777170Sonam Pathan
 
办理(UofR毕业证书)罗切斯特大学毕业证成绩单原版一比一
办理(UofR毕业证书)罗切斯特大学毕业证成绩单原版一比一办理(UofR毕业证书)罗切斯特大学毕业证成绩单原版一比一
办理(UofR毕业证书)罗切斯特大学毕业证成绩单原版一比一z xss
 
SCM Symposium PPT Format Customer loyalty is predi
SCM Symposium PPT Format Customer loyalty is prediSCM Symposium PPT Format Customer loyalty is predi
SCM Symposium PPT Format Customer loyalty is predieusebiomeyer
 
Call Girls Near The Suryaa Hotel New Delhi 9873777170
Call Girls Near The Suryaa Hotel New Delhi 9873777170Call Girls Near The Suryaa Hotel New Delhi 9873777170
Call Girls Near The Suryaa Hotel New Delhi 9873777170Sonam Pathan
 
定制(Lincoln毕业证书)新西兰林肯大学毕业证成绩单原版一比一
定制(Lincoln毕业证书)新西兰林肯大学毕业证成绩单原版一比一定制(Lincoln毕业证书)新西兰林肯大学毕业证成绩单原版一比一
定制(Lincoln毕业证书)新西兰林肯大学毕业证成绩单原版一比一Fs
 
Potsdam FH学位证,波茨坦应用技术大学毕业证书1:1制作
Potsdam FH学位证,波茨坦应用技术大学毕业证书1:1制作Potsdam FH学位证,波茨坦应用技术大学毕业证书1:1制作
Potsdam FH学位证,波茨坦应用技术大学毕业证书1:1制作ys8omjxb
 
Git and Github workshop GDSC MLRITM
Git and Github  workshop GDSC MLRITMGit and Github  workshop GDSC MLRITM
Git and Github workshop GDSC MLRITMgdsc13
 
办理多伦多大学毕业证成绩单|购买加拿大UTSG文凭证书
办理多伦多大学毕业证成绩单|购买加拿大UTSG文凭证书办理多伦多大学毕业证成绩单|购买加拿大UTSG文凭证书
办理多伦多大学毕业证成绩单|购买加拿大UTSG文凭证书zdzoqco
 
Blepharitis inflammation of eyelid symptoms cause everything included along w...
Blepharitis inflammation of eyelid symptoms cause everything included along w...Blepharitis inflammation of eyelid symptoms cause everything included along w...
Blepharitis inflammation of eyelid symptoms cause everything included along w...Excelmac1
 
Call Girls South Delhi Delhi reach out to us at ☎ 9711199012
Call Girls South Delhi Delhi reach out to us at ☎ 9711199012Call Girls South Delhi Delhi reach out to us at ☎ 9711199012
Call Girls South Delhi Delhi reach out to us at ☎ 9711199012rehmti665
 
Q4-1-Illustrating-Hypothesis-Testing.pptx
Q4-1-Illustrating-Hypothesis-Testing.pptxQ4-1-Illustrating-Hypothesis-Testing.pptx
Q4-1-Illustrating-Hypothesis-Testing.pptxeditsforyah
 

Recently uploaded (20)

Magic exist by Marta Loveguard - presentation.pptx
Magic exist by Marta Loveguard - presentation.pptxMagic exist by Marta Loveguard - presentation.pptx
Magic exist by Marta Loveguard - presentation.pptx
 
A Good Girl's Guide to Murder (A Good Girl's Guide to Murder, #1)
A Good Girl's Guide to Murder (A Good Girl's Guide to Murder, #1)A Good Girl's Guide to Murder (A Good Girl's Guide to Murder, #1)
A Good Girl's Guide to Murder (A Good Girl's Guide to Murder, #1)
 
Contact Rya Baby for Call Girls New Delhi
Contact Rya Baby for Call Girls New DelhiContact Rya Baby for Call Girls New Delhi
Contact Rya Baby for Call Girls New Delhi
 
定制(AUT毕业证书)新西兰奥克兰理工大学毕业证成绩单原版一比一
定制(AUT毕业证书)新西兰奥克兰理工大学毕业证成绩单原版一比一定制(AUT毕业证书)新西兰奥克兰理工大学毕业证成绩单原版一比一
定制(AUT毕业证书)新西兰奥克兰理工大学毕业证成绩单原版一比一
 
young call girls in Uttam Nagar🔝 9953056974 🔝 Delhi escort Service
young call girls in Uttam Nagar🔝 9953056974 🔝 Delhi escort Serviceyoung call girls in Uttam Nagar🔝 9953056974 🔝 Delhi escort Service
young call girls in Uttam Nagar🔝 9953056974 🔝 Delhi escort Service
 
Packaging the Monolith - PHP Tek 2024 (Breaking it down one bite at a time)
Packaging the Monolith - PHP Tek 2024 (Breaking it down one bite at a time)Packaging the Monolith - PHP Tek 2024 (Breaking it down one bite at a time)
Packaging the Monolith - PHP Tek 2024 (Breaking it down one bite at a time)
 
Film cover research (1).pptxsdasdasdasdasdasa
Film cover research (1).pptxsdasdasdasdasdasaFilm cover research (1).pptxsdasdasdasdasdasa
Film cover research (1).pptxsdasdasdasdasdasa
 
Top 10 Interactive Website Design Trends in 2024.pptx
Top 10 Interactive Website Design Trends in 2024.pptxTop 10 Interactive Website Design Trends in 2024.pptx
Top 10 Interactive Website Design Trends in 2024.pptx
 
Call Girls In The Ocean Pearl Retreat Hotel New Delhi 9873777170
Call Girls In The Ocean Pearl Retreat Hotel New Delhi 9873777170Call Girls In The Ocean Pearl Retreat Hotel New Delhi 9873777170
Call Girls In The Ocean Pearl Retreat Hotel New Delhi 9873777170
 
Model Call Girl in Jamuna Vihar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in  Jamuna Vihar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in  Jamuna Vihar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Jamuna Vihar Delhi reach out to us at 🔝9953056974🔝
 
办理(UofR毕业证书)罗切斯特大学毕业证成绩单原版一比一
办理(UofR毕业证书)罗切斯特大学毕业证成绩单原版一比一办理(UofR毕业证书)罗切斯特大学毕业证成绩单原版一比一
办理(UofR毕业证书)罗切斯特大学毕业证成绩单原版一比一
 
SCM Symposium PPT Format Customer loyalty is predi
SCM Symposium PPT Format Customer loyalty is prediSCM Symposium PPT Format Customer loyalty is predi
SCM Symposium PPT Format Customer loyalty is predi
 
Call Girls Near The Suryaa Hotel New Delhi 9873777170
Call Girls Near The Suryaa Hotel New Delhi 9873777170Call Girls Near The Suryaa Hotel New Delhi 9873777170
Call Girls Near The Suryaa Hotel New Delhi 9873777170
 
定制(Lincoln毕业证书)新西兰林肯大学毕业证成绩单原版一比一
定制(Lincoln毕业证书)新西兰林肯大学毕业证成绩单原版一比一定制(Lincoln毕业证书)新西兰林肯大学毕业证成绩单原版一比一
定制(Lincoln毕业证书)新西兰林肯大学毕业证成绩单原版一比一
 
Potsdam FH学位证,波茨坦应用技术大学毕业证书1:1制作
Potsdam FH学位证,波茨坦应用技术大学毕业证书1:1制作Potsdam FH学位证,波茨坦应用技术大学毕业证书1:1制作
Potsdam FH学位证,波茨坦应用技术大学毕业证书1:1制作
 
Git and Github workshop GDSC MLRITM
Git and Github  workshop GDSC MLRITMGit and Github  workshop GDSC MLRITM
Git and Github workshop GDSC MLRITM
 
办理多伦多大学毕业证成绩单|购买加拿大UTSG文凭证书
办理多伦多大学毕业证成绩单|购买加拿大UTSG文凭证书办理多伦多大学毕业证成绩单|购买加拿大UTSG文凭证书
办理多伦多大学毕业证成绩单|购买加拿大UTSG文凭证书
 
Blepharitis inflammation of eyelid symptoms cause everything included along w...
Blepharitis inflammation of eyelid symptoms cause everything included along w...Blepharitis inflammation of eyelid symptoms cause everything included along w...
Blepharitis inflammation of eyelid symptoms cause everything included along w...
 
Call Girls South Delhi Delhi reach out to us at ☎ 9711199012
Call Girls South Delhi Delhi reach out to us at ☎ 9711199012Call Girls South Delhi Delhi reach out to us at ☎ 9711199012
Call Girls South Delhi Delhi reach out to us at ☎ 9711199012
 
Q4-1-Illustrating-Hypothesis-Testing.pptx
Q4-1-Illustrating-Hypothesis-Testing.pptxQ4-1-Illustrating-Hypothesis-Testing.pptx
Q4-1-Illustrating-Hypothesis-Testing.pptx
 

Coding for entrepreneurs

  • 1. < StartupDecode /> Coding for entrepreneurs: from zero to hero Amine Sadry @donaminos www.startupdecode.com @startupdecode /startupDecode /user/startupDecodemeetup.com/startupDecode
  • 2. < Program /> 1. What is Programming ? 2. OOP Principle 3. World Wide Web 4. The best programming language 5. Architecture 101 6. Hands-on Ruby On Rails 7. Apéro Networking www.startupdecode.com
  • 4. < Machine language /> www.startupdecode.com
  • 5. < Assembler language /> www.startupdecode.com 2000 DEF PROCasm(pass,org) 2010 P%=org 2020 [ OPT pass 2030 ADR R0, message 2040 SWI OS_Write0 2050 MOV PC, R14 2060 .message 2070 EQUS "Hello, World!" + CHR$(0) 2080 ALIGN 2090 ] 2100 ENDPROC 1000 REM Hello World using a mix of BBC Basic and ARM assembler 1010 DIM org 100 1020 OS_Write0 = &2 1030 FOR pass=0 TO 3 STEP 3 1040 PROCasm(pass,org) 1050 NEXT pass 1060 CALL org 1070 END 1080
  • 6. < High-level language /> www.startupdecode.com void main (void) { printf ("Hello n"); if ( x == y ) printf("x equal y n"); } 10100110 01010001 11100101 Compile
  • 8. < Procedural programming /> www.startupdecode.com main(){ var data1, data2; procedure_1(); procedure_2(data1); procedure_3(data1, data2); print data2; } procedure_1(){ ... } procedure_2(param){ …. } procedure_3(p1, p2){ …. }
  • 10. < OOP principle 1/3 /> www.startupdecode.com Properties: ● Brand ● Color Actions: ● Strart ● Accelerate ● Stop
  • 11. < OOP principle 2/3 /> www.startupdecode.com Properties: ● Name ● Email ● … Actions: ● Move ● Text ● …
  • 12. < OOP principle 3/3 /> www.startupdecode.com Attributes Methods Class
  • 13. < Code 1/2 /> www.startupdecode.com Class Nom_classe attr_accessor :var1, :var2 Def nom_methode_1 … end Def nom_methode_2 … end end Class Car attr_accessor :brand, :color Def start_engine puts “Engine started.” end Def turn_left puts “Turn left.” end end
  • 14. < Code 2/2 /> www.startupdecode.com voiture1 = Car.new voiture1.brand = “Peugeot” voiture1.color = “rouge” voiture2 = Car.new voiture2.brand = “Fiat” voiture2.color = “verte” voiture2.start_engine voiture1.brand —— ——— ——— —— —— — — — — — # Engine started. # Peugeot
  • 17. < Inheritance /> www.startupdecode.com class User attr_accessor :name def login “I logged in!” end def logout “I logged out!” end end class Freelance < User def add_resume “I added a resume!” end end class Entreprise < User def add_offer “I added an offer!” end end
  • 18. < Ruby code /> www.startupdecode.com
  • 20. < HTTP Protocol /> www.startupdecode.com Client Server Request Response
  • 21. < HTML document /> www.startupdecode.com <head> </head> <body> </body> <!DOCTYPE html> <html> </html>
  • 22. < Head /> www.startupdecode.com <head> <title> Titre du document html </title> </head>
  • 23. < Body /> www.startupdecode.com <body> <h1> Titre de ma page </h1> <p> Le contenu de mon paragraphe. </p> <a href=“www.google.com”> Lien vers google </a> </body>
  • 24. < The first website /> http://www.w3.org/... www.startupdecode.com Browser / Client Server Response Request index.html page1.html page2.html Source: http://www.w3.org/History/19921103-hypertext/hypertext/WWW/TheProject.html
  • 25. < CSS Principle /> www.startupdecode.com <body> <p id=“identifiant_unique” class=“ma_classe”> Le contenu de mon paragraphe. </p> <p id=“autre_identifiant” class=“ma_classe”> Un autre paragraphe. </p> </body> #identifiant_unique { margin-top:20px; } .ma_classe { width:200px; height: 300px; }
  • 26. < Great design /> www.startupdecode.com
  • 27. < Static website /> http://www.horriblest.com/ www.startupdecode.com Browser / Client Server Response Request index.html page1.html page2.html
  • 28. < Dynamic website /> http://www.facebook.com www.startupdecode.com Browser / Client / Front-end Server / Back-end Response Request Database Web Application
  • 29. < Relational database /> www.startupdecode.com cars id brand color created_at 1 peugeot rouge 23/11/2014 2 fiat verte 23/11/2014 n ... ... ... SQL: SELECT * FROM cars WHERE id = 2 INSERT INTO cars (brand, color) VALUES (fiat, verte); DELETE FROM cars WHERE id = 1;
  • 30. < Languages /> http://www.facebook.com www.startupdecode.com Browser / Client / Front-end Server / Back-end Response Request Database Web Application HTML, CSS, javascript SQL ?
  • 32. Java C# Python PHP Node JS Ruby Learning curve Stability Ecosystem Enthusiasm Workforce Java C# Python PHP Node JS Ruby Resources Use case Linkedin < Languages /> www.startupdecode.com Criteo Facebook MySpacePinterest AirBnB
  • 34. Presentation: HTML / CSS JavaScript < Application layers /> Front-end Back-end Data: SQL Logic: Ruby on Rails www.startupdecode.com
  • 35. < MVC architecture /> http://www.facebook.com www.startupdecode.com Browser / Client / Front-end Server / Back-end Database APP Controller View Model
  • 36. < Rails app directory /> www.startupdecode.com $ rails new APP_NAME 1. generate new app 3. http://localhost:3000 2. run the server $ rails server
  • 37. < Rails app architecture /> www.startupdecode.com Database Rails app Controller (ActionController) View (ActionView) Model (ActiveRecord) Routes
  • 39. < Ruby code /> www.startupdecode.com
  • 40. < StartupDecode /> @startupdecode /startupDecode /user/startupDecodemeetup.com/startupDecode Merci & A bientôt