Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Pensando logicamente: introdução à lógica de pr...
Search
Juliana Negreiros
July 20, 2019
Technology
0
61
Pensando logicamente: introdução à lógica de programação | Thinking logically: introduction to programming logic
- Rails Girls Sorocaba 2018 (16/06/2018)
- Rails Girls Sorocaba 2019 (20/07/2019)
Juliana Negreiros
July 20, 2019
Tweet
Share
More Decks by Juliana Negreiros
See All by Juliana Negreiros
Um guia para começar no mundo Front End
juunegreiros
0
340
Desmistificando a área de TI
juunegreiros
0
70
Como otimizar seu site com lighthouse e core web vitals
juunegreiros
0
430
Introdução ao Git
juunegreiros
0
54
Webpacker e a Jornada do Heroi
juunegreiros
0
23
Como modularizar seu front-end sem depender de um framework
juunegreiros
0
87
Sopa de Letrinhas CSS | Alphabet soup CSS
juunegreiros
1
77
Carreiras em TI
juunegreiros
0
54
Javascript, um menino serelepe | Javascript, a serelepe guy
juunegreiros
0
240
Other Decks in Technology
See All in Technology
CoRL 2025 Survey
harukiabe
1
220
Data Hubグループ 紹介資料
sansan33
PRO
0
2.2k
Copilot Studio ハンズオン - 生成オーケストレーションモード
tomoyasasakimskk
0
140
Claude Code Subagents 再入門 ~cc-sddの実装で学んだこと~
gotalab555
10
16k
AIとともに歩んでいくデザイナーの役割の変化
lycorptech_jp
PRO
0
530
物体検出モデルでシイタケの収穫時期を自動判定してみた。 #devio2025
lamaglama39
0
240
dbtとBigQuery MLで実現する リクルートの営業支援基盤のモデル開発と保守運用
recruitengineers
PRO
3
130
ガバメントクラウドの概要と自治体事例(名古屋市)
techniczna
3
240
エンタメとAIのための3Dパラレルワールド構築(GPU UNITE 2025 特別講演)
pfn
PRO
0
550
[Codex Meetup Japan #1] Codex-Powered Mobile Apps Development
korodroid
2
1k
能登半島地震で見えた災害対応の課題と組織変革の重要性
ditccsugii
0
1k
Sansan Engineering Unit 紹介資料
sansan33
PRO
1
3k
Featured
See All Featured
Fashionably flexible responsive web design (full day workshop)
malarkey
407
66k
Connecting the Dots Between Site Speed, User Experience & Your Business [WebExpo 2025]
tammyeverts
10
600
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
115
20k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
46
7.7k
It's Worth the Effort
3n
187
28k
Build your cross-platform service in a week with App Engine
jlugia
232
18k
Building Flexible Design Systems
yeseniaperezcruz
329
39k
Balancing Empowerment & Direction
lara
5
690
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
194
16k
Six Lessons from altMBA
skipperchong
29
4k
Facilitating Awesome Meetings
lara
56
6.6k
Gamification - CAS2011
davidbonilla
81
5.5k
Transcript
pensando logicamente: introdução a Lógica de Programação
Juliana Negreiros @juunegreiros
Entendendo um computador
Some 2 + 2 Português
Binário 00110001 00000000 00000000 00110001 00000001 00000001 00110011 00000001 00000010
01010001 00001011 00000010 00100010 00000010 00001000 01000011 00000001 00000000 01000001 00000001 00000001 00010000 00000010 00000000 01100010 00000000 00000000
Linguagem de programação var soma = 2 + 2;
Linguagem de programação Meio de campo entre nós e o
computador
Linguagem de programação Padronizada
Linguagem de programação Facilidade
dando instruções
variáveis e atribuição de valores
variáveis e atribuição de valores variável pessoas = 1 variável
nome = “rails” inteiro num = 2 decimal num = 2.5 string nome = “girls” booleano teste = true
Operações aritméticas
Operações aritméticas num1 + num2 num1 - num2 num1 /
num2 num1 * num2 num1 % num2 num+= 2 -> num = num + 2 num++ -> num = num + 1
Operações condicionais
Operações condicionais num1 > num2 num1 < num2 num1 >=
num2 num1 <= num2 num1 == num2 num1 != num2
negação
negação !ligado
condições
condições se numero < 1 faça numero++ else numero-- fim
repetição
repetição variavel num = 0 enquanto num < 5 faça
num++ fim
repetição variavel num = 0 variavel contador para contador de
0 até 5 passo 1 faça numero++ fim
entendendo de verdade
None
variável carro
None
carro anda 150m
None
carro vire à direita carro anda 200m
None
enquanto semáforo ==! verde faça carro pare fim carro anda
200m
None
se lombada faça carro reduz marcha fim carro anda 200m
None
carro vira à esquerda carro anda 300m
None
variável pessoas = 3 variável contador se faixa elevada faça
se pessoas > 0 faça para contador de 0 até pessoas passo 1 faça carro pare fim else carro reduz marcha fim fim
None
carro anda 100m se vaga faça estacione fim
vamos praticar!