1. Данни и имена НЕЩА (данни, стойности) и имена (променливи) ! име
=
НЕЩО
! Например: ! event_name
=
"Rails
Girls
Sofia
3.0" candidates
=
"many"
accepted_participants
=
70
Why Bento? • You need a balanced mix of things. • It’s a puzzle - putting everything together in the box. • “Ekiben“ - content which is arranged in the most efficient, graceful manner. The bento is presented in a simple, beautiful, balanced way. Nothing lacking. Nothing superfluous. Not decorated, but wonderfully designed. Friday, March 23, 12
Etsy: “We use a number of different programming languages (including Matlab!) but are primarily a PHP shop. We have a number of databases, some of which are MySQL and some of which are PostgreSQL. “ Friday, March 23, 12
8 Foursquare: “Server code is written in scala running on the lift web framework using jetty for a webserver. We front everything with nginx, and use HAProxy in between. MongoDB handles most of our data storage needs (though a bit hasn't been migrated off PostgreSQL yet). Friday, March 23, 12
R #1 PHP #2 SaaS #3 RoR #4 HTML #5 MongoDB Rules: Figure out the term and place it on the bentobox in the right place.. There might be false friends and doubles. Googling allowed! You have five minutes – wrong answers will be removed, the team with most post-its wins! #6 Apache #7 CSS #8 Django #9 MySQL #10 nginx Friday, March 23, 12
R #1 PHP #2 SaaS #3 RoR #4 HTML #5 MongoDB #6 Apache #7 CSS #8 Django #9 MySQL #10 nginx Logic. PHP is a very popular language designed to produce dynamic Web pages. It goes well with HTML. - What makes PHP special? - Why it’s so popular? No where. Software as a service. Not a technical term - more a business/delivery model, in which software is hosted centrally, not by the user themselves and they often pay a subscription fee. Examples range from Salesforce, Spotify, Google Docs.. - What other buzzwords are there that are not technical? Logic. Ruby on Rails. Sometimes abbreviations might fool you! Style & structure. Especially structue: HTML is what describes the structure and the (static) content of the website. - What is XHTML? HTML5? - Scripting language vs. markup? Database. An open source database system. Stores the web app data in a little different way than MySQL, making it easier and faster for certain types of apps. - What are noSQLs? Why is MongoDB so popular? Infrastructure. A popular open source HTTP server software. Servers can be hardware or software - here we’re focusing on the latter. Servers are the piece of software that deliver the web page to you. - What is HTTP? What is the role of the browser? Style and structure. Especially style, designed to describe the look of webpages, including elements such as the layout, colors and fonts. - Why is CSS important when building bigger sites? - What is CSS3? Logic. A similar framework as Rails is for Ruby, Django is for Python. - What other examples of popular frameworks are there? For Ruby? Database. Worlds most popular open source database system, used by Facebook, Twitter, Wordpress etc. Well baked into many software stacks like LAMP - Talk about LAMP and other software stacks - Talk a little about open source Infrastructure. Pronounced “Engine X”. An open source HTTP server. Said to be faster than Apache - in many ways like MongoDB is for MySQL. - What are proxies? - Talk about Friday, March 23, 12
$
ghc
Foo.hs
! Foo.hs:3:22:
My
brain
just
exploded.
I
can't
handle
pattern
bindings
for
existentially-‐quantified
constructors.
Instead,
use
a
case-‐expression,
or
do-‐ notation,
to
unpack
the
constructor.
In
the
binding
group
for
Foo
a
In
a
pattern
binding:
Foo
a
=
f
In
the
definition
of
`ignorefoo':
ignorefoo
f
=
1
where
Foo
a
=
f
Какво означават прог4амистките су>ерсили? -‐ възможността да улеснявате живота си чрез автоматизация -‐ независимостта да създадете решение на проблема си сами, вместо да търсите нещо готово -‐ да сте създадетели, а не потребители на компютъра
Какво можете да правите с Рейлс? -‐ динамични страници, които да зареждат съдържанието от база данни – личен блог -‐ по-‐сложни апликации, като например онлайн магазин: но принципът е същият, динамична страница, която зарежда съдържание от база данни -‐ апликации, които свързват милиарди, позволяват им да споделят впечатления, снимки, видеа, да изразяват себе си по всеки възможен начин; -‐ мислите, че би било трудно?
Прог4амирането е метод, а не цел -‐ прог4амирането е като строеж -‐ прог4амистите са като строителите – има архMтекти (sofQRare architects), има ВиК и електричари (backend), има зидаромазачи (f_ontend), има и (интериорни) дизайнери -‐ никой не се занимава със строителство, за да бъде омазан в гMпс, а за да създаде нещо х`баво! -‐ в този смисъл, прог4амирането не е цел, а средство;
Стъпка по стъпка в прог4амирането -‐ започваме от промяната на нещо готово -‐ постепенно променяме все повече -‐ стигаме момент, в който сме спокойни да започнем от нулата сами ! o Не бързайте. Колкото по-‐стабилни са основите, толкова по-‐устойчива е сг4адата. o Каква е разликата между инструcторите и
5 причини да продължа... 1. Sandi Metz - sandimetz.com "Bikes has always been cool" Practical Object-Oriented Design in Ruby The 4 rules: 1. Classes can be no longer than one hundred lines of code. 2. Methods can be no longer than five lines of code. 3. Pass no more than four parameters into a method. Hash options are parameters. 4. Controllers can instantiate only one object. Therefore, views can only know about one instance variable and views should only send messages to that object (@object.collaborator.value is not allowed). “You should break these rules only if you have a good reason or your pair lets you.” Talks: • Ruby Rogues Podcast #87 - Book Club: Practical Object-Oriented Design in Ruby • Golden Gate Ruby Conference 2012 - Go Ahead, Make a Mess
Разбийте яйцата с миксер Сложете яйцата в купа Сложете яйцата в купа Сложете яйцата в купа Сложете яйцата в купа Сложете яйцата в купа Разбийте с миксера
Разбийте яйцата с миксер Сложете яйцата в купа Сложете яйцата в купа Сложете яйцата в купа Сложете яйцата в купа Сложете яйцата в купа Разбийте с миксера Сложете яйцата в купа Счупете яйцата Сложете яйцата в купа Сложете белтъка и желтъка в купа Сложете бъркалки Включете в контакта Разбийте
1.Разделяме тестето на две половини. 2.Поглеждаме картата, която дели тестето: a)Ако е по-силна от търсената, изхвърляме дясната половина. Премини към т.1 b)Ако е по-слаба от търсената, изхвърляме лявата половина. Премини към т.1 c)Ако е търсената, край Търсене на карта в подредено тесте