Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Pensando logicamente: introdução à lógica de pr...
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Juliana Negreiros
July 20, 2019
Technology
72
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
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
More Decks by Juliana Negreiros
See All by Juliana Negreiros
Um guia para começar no mundo Front End
juunegreiros
0
350
Desmistificando a área de TI
juunegreiros
0
93
Como otimizar seu site com lighthouse e core web vitals
juunegreiros
0
450
Introdução ao Git
juunegreiros
0
70
Webpacker e a Jornada do Heroi
juunegreiros
0
38
Como modularizar seu front-end sem depender de um framework
juunegreiros
0
97
Sopa de Letrinhas CSS | Alphabet soup CSS
juunegreiros
1
86
Carreiras em TI
juunegreiros
0
64
Javascript, um menino serelepe | Javascript, a serelepe guy
juunegreiros
0
290
Other Decks in Technology
See All in Technology
二歩目のフロントエンド・ウェブアクセシビリティ
camiha
2
650
Kiro Crewで「みのるん式」仕事術やってみた
minorun365
PRO
2
330
ブラウザとサーバーから考えるAI時代のフロントエンド監視
shogo4131
3
1k
フィンテック養成勉強会#68
finengine
0
130
アウトプット初心者、半年間のふりかえり
4o1sobblue
0
440
AI コーディングと人間の認知スループット / CTO Night & Day 2026 Morning Session / AI Coding and Human Cognitive Throughput
prog893
5
1.3k
大型犬好きによるPugの紹介
yamanoku
1
160
CTO Night|NotionのAIエージェントとFDE
kzkhykw1991
0
230
Active Record Connection Adaptersにおける長年の課題に再び取り組む
yahonda
0
200
V8のArray.prototype.flatを最大約20倍速くするまでと、巨大OSSへの大規模コミットの道のり
riyaamemiya
0
300
専門領域のAIをどう評価するか
bengo4com
2
280
Gemini Intelligence 入門 ― AppFunctions と Gemini Nano
takuroabe
0
290
Featured
See All Featured
AI: The stuff that nobody shows you
jnunemaker
PRO
10
1.2k
The Organizational Zoo: Understanding Human Behavior Agility Through Metaphoric Constructive Conversations (based on the works of Arthur Shelley, Ph.D)
kimpetersen
PRO
0
500
Paper Plane
katiecoart
PRO
5
54k
Statistics for Hackers
jakevdp
799
230k
Effective software design: The role of men in debugging patriarchy in IT @ Voxxed Days AMS
baasie
1
570
Jamie Indigo - Trashchat’s Guide to Black Boxes: Technical SEO Tactics for LLMs
techseoconnect
PRO
0
710
Understanding Cognitive Biases in Performance Measurement
bluesmoon
32
3.1k
How to Talk to Developers About Accessibility
jct
2
580
How To Stay Up To Date on Web Technology
chriscoyier
790
250k
How to Build an AI Search Optimization Roadmap - Criteria and Steps to Take #SEOIRL
aleyda
1
2.2k
Documentation Writing (for coders)
carmenintech
77
5.6k
sira's awesome portfolio website redesign presentation
elsirapls
0
460
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!