Skip to content

Commit 63672e3

Browse files
committed
2 parents 615ae73 + 76c4740 commit 63672e3

File tree

70 files changed

+6563
-983
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+6563
-983
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,5 @@
66
!stats.json
77
.DS_Store
88
.idea/
9+
pubspec.yaml
10+
pubspec.lock

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@
2727
2828
## Corrección y próximo ejercicio
2929

30-
> #### Lunes 24 de junio de 2024 a las 20:00 (hora España) desde **[Twitch](https://twitch.tv/mouredev)**
31-
> #### Consulta el **[horario](https://discord.gg/EWMJPcUq?event=1249918242370355262)** por país y crea un **[recordatorio](https://discord.gg/EWMJPcUq?event=1249918242370355262)**
30+
> #### Lunes 1 de julio de 2024 a las 20:00 (hora España) desde **[Twitch](https://twitch.tv/mouredev)**
31+
> #### Consulta el **[horario](https://discord.gg/CPKcDD9d?event=1252321976027054111)** por país y crea un **[recordatorio](https://discord.gg/CPKcDD9d?event=1252321976027054111)**
3232
3333
## Roadmap
3434

@@ -59,7 +59,8 @@
5959
|22|[FUNCIONES DE ORDEN SUPERIOR](./Roadmap/22%20-%20FUNCIONES%20DE%20ORDEN%20SUPERIOR/ejercicio.md)|[📝](./Roadmap/22%20-%20FUNCIONES%20DE%20ORDEN%20SUPERIOR/python/mouredev.py)|[▶️](https://youtu.be/ABniGtbqAXk)|[👥](./Roadmap/22%20-%20FUNCIONES%20DE%20ORDEN%20SUPERIOR/)
6060
|23|[SINGLETON](./Roadmap/23%20-%20SINGLETON/ejercicio.md)|[📝](./Roadmap/23%20-%20SINGLETON/python/mouredev.py)|[▶️](https://youtu.be/cOIcFo_w9hA)|[👥](./Roadmap/23%20-%20SINGLETON/)
6161
|24|[DECORADORES](./Roadmap/24%20-%20DECORADORES/ejercicio.md)|[📝](./Roadmap/24%20-%20DECORADORES/python/mouredev.py)|[▶️](https://youtu.be/jxJOjg7gPG4)|[👥](./Roadmap/24%20-%20DECORADORES/)
62-
|25|[LOGS](./Roadmap/25%20-%20LOGS/ejercicio.md)|[🗓️ 24/06/24](https://discord.gg/EWMJPcUq?event=1249918242370355262)||[👥](./Roadmap/25%20-%20LOGS/)
62+
|25|[LOGS](./Roadmap/25%20-%20LOGS/ejercicio.md)|[📝](./Roadmap/25%20-%20LOGS/python/mouredev.py)||[👥](./Roadmap/25%20-%20LOGS/)
63+
|26|[SOLID: PRINCIPIO DE RESPONSABILIDAD ÚNICA](./Roadmap/26%20-%20SOLID%20SRP/ejercicio.md)|[🗓️ 01/07/24](https://discord.gg/CPKcDD9d?event=1252321976027054111)||[👥](./Roadmap/26%20-%20SOLID%20SRP/)
6364

6465
## Instrucciones
6566

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
// Sitio oficial: https://fsharp.org/
2+
// F# Basics: https://dotnet.microsoft.com/es-es/languages/fsharp
3+
// http://learn.microsoft.com/dotnet/fsharp
4+
5+
// Variables en F#
6+
// Después de asignar un valor, no se puede cambiar, es inmutable
7+
// Para hacer que sea mutable se emplea la palabra reservada mutable
8+
// Con inferencia de tipos
9+
let nombre_variable = "Valor" // variable string
10+
let entero = 5 // variable int
11+
let float = 1.0 // variable float
12+
let char = 'a' // variable char
13+
let booleano = true // variable bool - true o false
14+
15+
// Con tipos
16+
let cadena : string = "Hola"
17+
let entero2 : int = 10
18+
let float2 : float = 5.0e2
19+
let double : double = 20.0
20+
let char2 : char = '@'
21+
let booleano2 : bool = false
22+
23+
// variables mutables
24+
let mutable name = "Chris"
25+
name <- "Luis"
26+
27+
let fsharp = "F#"
28+
29+
printfn $"¡Hola, {fsharp}!" // Imprime la cadena en stdout y agrega un caracter de nueva línea
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
public class jaimeNar {
2+
public static void main(String args[]) {
3+
// URL del sitio web oficial
4+
/**
5+
* https://www.java.com
6+
**/
7+
8+
// Diferentes sintáxis para crear comentarios
9+
// Comentario de una sola línea
10+
11+
/*
12+
* Comentario de varias líneas
13+
*/
14+
15+
/**
16+
* Otro comentario de varias líneas
17+
**/
18+
19+
int variable; // Variable
20+
21+
final int constant; // Constante
22+
23+
// Variables que representan los tipos de datos primitivos
24+
byte by = 127;
25+
short num_sh = 32767;
26+
int num = 234567834;
27+
long num_long = 456546465L;
28+
float num_float = 1.5f;
29+
double num_double = 3.7;
30+
char character = 'A';
31+
boolean bool = true;
32+
33+
// Imprime por terminal el texto: "¡Hola, [y el nombre de tu lenguaje]!"
34+
System.out.println("¡Hola, Java!");
35+
}
36+
}
37+
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
/*
2+
* EJERCICIO:
3+
* 1 Crea un comentario en el código y coloca la URL del sitio web oficial del
4+
* lenguaje de programación que has seleccionado.
5+
* 2 Representa las diferentes sintaxis que existen de crear comentarios
6+
en el lenguaje (en una línea, varias...).
7+
* 3 Crea una variable (y una constante si el lenguaje lo soporta).
8+
* 4 Crea variables representando todos los tipos de datos primitivos
9+
del lenguaje (cadenas de texto, enteros, booleanos...).
10+
* 5 Imprime por terminal el texto: "¡Hola, [y el nombre de tu lenguaje]!"
11+
*/
12+
13+
14+
// 1: https://developer.mozilla.org/es/docs/Web/JavaScript
15+
16+
// 2: Existen 2 formas de crear comentarios en JavaScript:
17+
// Comentario de una sola línea
18+
// Esto es un comentario de una sola línea
19+
20+
/*
21+
Comentario de múltiples líneas
22+
Esto es un comentario
23+
que abarca varias líneas
24+
*/
25+
26+
// 3 =
27+
let variable = 1; // variable
28+
const variable2 = 2; // constante
29+
30+
// 4 =
31+
let string = "esto es un string";
32+
let numEntero = 1;
33+
let numDecimal = 1.5;
34+
let booleanTrue = true;
35+
let booleanFalse = false;
36+
let nulo = null;
37+
38+
let object = {
39+
nombre: "Joaquin",
40+
apellido: "Lopez"
41+
};
42+
43+
//5 =
44+
let helloWorld = "¡Hola, Javascript!";
45+
console.log(helloWorld);
46+
47+
48+
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
// Sitio oficial de Javascript: https://developer.mozilla.org/es/docs/Web/JavaScript
2+
3+
//Este es un comentario en una línea
4+
/*
5+
Este es un comentario en varías líneas
6+
*/
7+
8+
//Constante
9+
const greetings = 'Hello'
10+
11+
//Variable
12+
let language = 'Javascript'
13+
14+
//Tipos de datos:
15+
16+
//String
17+
const thiIsAString = 'This is a string'
18+
19+
//Number
20+
const thisIsANumber = 1
21+
22+
//BigInt
23+
const thisIsABigInt = BigInt(9007199254740991)
24+
25+
//Boolean
26+
const thisIsABoolean = true
27+
28+
//Undefined
29+
let thisIsAnUndefined
30+
31+
//Symbol
32+
const thisIsASymbol = Symbol()
33+
34+
35+
console.log(`${greetings} ${language}`)
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Sitio web oficial: https://www.python.org/
2+
3+
# Esto es un comentario
4+
5+
"""
6+
Esto es
7+
un comentario
8+
multilínea
9+
"""
10+
11+
'''
12+
Esto es
13+
otro comentario
14+
multilínea
15+
'''
16+
17+
my_string = "Soy un string"
18+
19+
my_int = 1
20+
21+
my_double = 1.2
22+
23+
my_boolean = True
24+
25+
print('¡Hola, Python!')
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# https://www.python.org/
2+
3+
4+
# comentario de una sola línea
5+
6+
7+
"""
8+
Este comentario es realidad una
9+
un bloque de texto multilínea,
10+
pero al no estar asignado actúa
11+
como un comentario.
12+
"""
13+
14+
# VARIABLES
15+
16+
first_var = "Mi primera variable en Python."
17+
18+
CONSTANT = "Por convención, las constantes en Python se escriben en mayúsculas, sin embargo son variables normales que se pueden modificar."
19+
20+
# TIPOS DE DATOS PRIMITIVOS
21+
22+
# string str
23+
my_string = "Cadena de texto."
24+
25+
# Integer int
26+
my_integer = 7
27+
28+
# Float float
29+
my_float = 7.3
30+
31+
# Boolean bool
32+
my_boolean = False
33+
34+
# None NoneType
35+
my_none = None
36+
37+
# IMPRESIÓN POR TERMINAL
38+
language = "Python"
39+
print(f"¡Hola, {language}!")
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# https://python.org
2+
3+
# esto es un comentario en una linea
4+
"""
5+
Esto es un comentario
6+
en varias lineas
7+
entre comillas dobles
8+
"""
9+
'''
10+
Esto es un comentario
11+
en varias lineas
12+
entre comillas simples
13+
'''
14+
15+
my_variable = "Mi variable"
16+
my_variable = "Nuevo valor de mi variable"
17+
18+
MY_CONSTANT = "No es una constante pero estando en mayusculas se entiende que si" # por conveccion
19+
20+
my_int:int = 1
21+
my_float:float = 1.5
22+
my_bool:bool = True
23+
my_bool = False
24+
my_string:str = "Mi cadena de texto"
25+
my_other_string = 'Mi cadena de texto'
26+
27+
print("¡Hola, Python!")
28+
29+
print(type(my_int))
30+
print(type(my_bool))
31+
print(type(my_float))
32+
print(type(my_string))
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# URL del sitio web oficial de Python: https://www.python.org/
2+
3+
# La amohadilla nos permite escribir un comentario de una sola línea
4+
5+
"""
6+
Las comillas dobles nos permiten
7+
escribir un comentario de varias líneas
8+
"""
9+
10+
'''
11+
Las comillas simples tambien nos permiten
12+
escribir un comentario de varias líneas
13+
'''
14+
15+
# Variable
16+
my_variable = "Una variable en Python"
17+
18+
# Constante
19+
MY_CONSTANTE = "Una constante en Python" # Aclaracion, al parecer la gente escribe sus constantes en MAYUSCULAS
20+
21+
my_int = 1
22+
my_float = 1.5
23+
my_bool = True
24+
my_bool = False
25+
my_string = "Cadena de texto"
26+
my_other_string = 'Otra cadena de texto'
27+
28+
# Imprimir por terminal
29+
print("¡Hola, Python!")
30+
31+
print(type(my_int))
32+
print(type(my_float))
33+
print(type(my_bool))
34+
print(type(my_string))

0 commit comments

Comments
 (0)