Está en la página 1de 42

Fundamentos de la

Programación
Renato Haddad
Microsoft Most Valuable Professional
Brasil
Objetivo

Mostrar los fundamentos de la


programación a través de ejemplos y
prácticas utilizadas en el uso cotidiano del
desarrollo de aplicaciones
Lógica de
Programación
Lógica de Programación
input input
N

process test ok?


Y

output output
Lógica de Programación
Database
input

process Class Library

output
Web Service
Fundamentos
Variable
¿Qué es una variable?
¿En qué situación se usa una variable?
Variable
¿Cómo declarar una variable?
C# Espacio
Tipo NomeDaVariável en la
RAM

VB.NET
Dim NomeDaVariável As Tipo
Variable
¿Cómo nombrar una variable?
Variable
Tipos de variables
Variable
Tipos de variables
Variable
Tiempo de vida de una variable
Variable
Conversiones
Variable
Tipos definidos por el usuario
Estructuras de
Programación
Estructuras de Decisión
IF - VB.NET IF - C#
If condition Then if (condition)
statements statements
ElseIf elseifcondition Then else if (condition)
elseifstatements statements
Else else
elsestatements statements
End If
IF – VB.NET
IF – C#
Estructuras de Decisión
Select Case – VB.NET
Select Case testexpression
Case expressionlist switch – C#
statements switch (testexpression)
Case Else {
elsestatements case expressionlist:
End Select statements
break:
default:
statements] }
Select Case – VB.NET
switch - C#
Estructuras de Looping
For Next
ForEach
While
Do While
For Next – VB.NET
For counter = start To end Step
statements
Exit For
Next
For – C#
for (counter; expression; iterators)
statement
For Each – VB.NET
For Each element In group
statements
Exit For
Next
Foreach – C#
foreach (element in group)
statement
VB.NET
While condition While
statements
End While

Do { While | Until } condition


statements
Exit Do
Loop

Do
statements
Exit Do
Loop { While | Until } condition

C#
while (expression) statement
do statement while (expression);
Rutinas y
Objetos
Procedures / Rutinas
¿Qué es un procedure?

Argumentos y tipos usados

Argumento opcional
Errores comunes en la devolución
Fig 1

Fig 2

Fig 3
Función
¿Qué es una función?
Argumentos y tipos usados
Tipos devueltos
Función
Función
Funciones internas
Objeto
¿Qué es un objeto?
Propiedades
Propiedades de un objeto
Métodos
Métodos de un objeto
Colecciones
¿Qué es una colección?
OOP
Programación Orientada a Objetos - OOP
Glosario
Términos comunes
Variable Array
Types Procedure
Index n-tier
Constants business class
Collection web services
Términos comunes
Build Breakpoint
Deploy Debug
OOP Solution
Components Project
Class library
Términos comunes
Stored procedure
Query
Provider
Datatable
Dataset

También podría gustarte