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
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
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
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
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;