Skip to content

Commit 98b64f2

Browse files
authored
Merge branch 'mouredev:main' into main
2 parents e0ebec3 + 85f1b7c commit 98b64f2

File tree

140 files changed

+17487
-1533
lines changed

Some content is hidden

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

140 files changed

+17487
-1533
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
|24|[DECORADORES](./Roadmap/24%20-%20DECORADORES/ejercicio.md)|[📝](./Roadmap/24%20-%20DECORADORES/python/mouredev.py)|[▶️](https://youtu.be/jxJOjg7gPG4)|[👥](./Roadmap/24%20-%20DECORADORES/)
6262
|25|[LOGS](./Roadmap/25%20-%20LOGS/ejercicio.md)|[📝](./Roadmap/25%20-%20LOGS/python/mouredev.py)|[▶️](https://youtu.be/y2O6L1r_skc)|[👥](./Roadmap/25%20-%20LOGS/)
6363
|26|[SOLID: PRINCIPIO DE RESPONSABILIDAD ÚNICA](./Roadmap/26%20-%20SOLID%20SRP/ejercicio.md)|[📝](./Roadmap/26%20-%20SOLID%20SRP/python/mouredev.py)|[▶️](https://youtu.be/7NM8FK9G91M)|[👥](./Roadmap/26%20-%20SOLID%20SRP)
64-
|27|[SOLID: PRINCIPIO ABIERTO-CERRADO](./Roadmap/27%20-%20SOLID%20OCP/ejercicio.md)|[📝](./Roadmap/27%20-%20SOLID%20OCP/python/mouredev.py)||[👥](./Roadmap/27%20-%20SOLID%20OCP/)
64+
|27|[SOLID: PRINCIPIO ABIERTO-CERRADO](./Roadmap/27%20-%20SOLID%20OCP/ejercicio.md)|[📝](./Roadmap/27%20-%20SOLID%20OCP/python/mouredev.py)|[▶️](https://youtu.be/o0lSVzu4ur4)|[👥](./Roadmap/27%20-%20SOLID%20OCP/)
6565
|28|[SOLID: PRINCIPIO DE SUSTITUCIÓN DE LISKOV](./Roadmap/28%20-%20SOLID%20LSP/ejercicio.md)|[🗓️ 15/07/24](https://discord.gg/ssrS9zeS?event=1257395660962005113)||[👥](./Roadmap/28%20-%20SOLID%20LSP/)
6666

6767
## Instrucciones
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
#https://godotengine.org/
2+
3+
#En GDscript es un comentario todo lo que esté en la misma linea del # a partir de este
4+
# Para cada linea hay que poner uno nuevo
5+
6+
#variable y constante
7+
var variable_jamón = "bueno"
8+
const constante_queso = "exelente"
9+
10+
#variable null
11+
var variable_null = null
12+
13+
#variables booleanas o bool
14+
var booleano_verdadera : bool = true
15+
var booleano_falso : bool = false
16+
var numero_verdadero : bool = 1 #cualquiern numero mayor a 0 es verdadero
17+
var numero_falso : bool = 0
18+
19+
#variables enteras o int
20+
var variable_positiva : int = 1
21+
var variable_negativa : int = -70
22+
23+
#variables flotantes on float
24+
var flotante_positiva : float = 1.5
25+
var flotante_negativa : float = -27.591
26+
27+
#variable de tipo texto o string
28+
var texto_cualquiera : string = "cualquiera"
29+
30+
#en GDscript todo script tiene que estar asociado a una escena o nodo para poder ejecutarlo
31+
#función de print
32+
func _ready():
33+
var saludo : string = "¡Hola "
34+
const lenguaje : string = "GDscript!"
35+
print (saludo + lenguaje) # "," = "+"
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
2+
3+
4+
5+
/*EJERCICIO #00 - SINTAXIS, VARIABLES, TIPOS DE DATOS Y HOLA MUNDO:
6+
* EJERCICIO:
7+
* - Crea un comentario en el código y coloca la URL del sitio web oficial del
8+
* lenguaje de programación que has seleccionado.
9+
* - Representa las diferentes sintaxis que existen de crear comentarios
10+
* en el lenguaje (en una línea, varias...).
11+
* - Crea una variable (y una constante si el lenguaje lo soporta).
12+
* - Crea variables representando todos los tipos de datos primitivos
13+
* del lenguaje (cadenas de texto, enteros, booleanos...).
14+
* - Imprime por terminal el texto: "¡Hola, [y el nombre de tu lenguaje]!"
15+
*/
16+
17+
// Sitio web oficial del lenguage: https://www.java.com/es/
18+
19+
//Sintaxis de una linea
20+
21+
/* Sintaxis
22+
* Multilinea
23+
*/
24+
public class Danisaurio94 {
25+
26+
27+
28+
public static void Danisaurio94(String[] args) {
29+
30+
String variable1 = "Esta es la primera variable";
31+
final int variable2 = 0; // Esta es la constante
32+
33+
byte variablePrimitiva1 = 127; // admite números de -128 a 127
34+
short variablePrimitiva2 = 32767; // admite números de -32,768 a 32,767
35+
int variablePrimitiva3 = 2147483647; // admite números de -2,147,483,648 a 2,147,483,647
36+
long variablePrimitiva4 = 922337206; // admite números de -9,223,372,036,854,775,808 a 9,223,372,036,854,775,807
37+
float variablePrimitiva5 = 6;
38+
double variablePrimitiva6 = 6;
39+
boolean variablePrimitiva7 = true;
40+
char variablePrimitiva8 = 'c'; // importante, aqui es comilla simple
41+
42+
System.out.println("Hola, Java!");
43+
44+
45+
46+
47+
48+
}
49+
}
50+
51+
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
// #00 SINTAXIS, VARIABLES, TIPOS DE DATOS Y HOLA, MUNDO.
2+
/*
3+
* ¿Preparad@ para aprender o repasar el lenguaje de programación que tú quieras?
4+
* - Recuerda que todas las instrucciones de participación están en el
5+
* repositorio de GitHub.
6+
*
7+
* Lo primero... ¿Ya has elegido un lenguaje?
8+
* - No todos son iguales, pero sus fundamentos suelen ser comunes.
9+
* - Este primer reto te servirá para familiarizarte con la forma de participar
10+
* enviando tus propias soluciones.
11+
*
12+
* EJERCICIO:
13+
* - Crea un comentario en el código y coloca la URL del sitio web oficial del
14+
* lenguaje de programación que has seleccionado.
15+
* - Representa las diferentes sintaxis que existen de crear comentarios
16+
* en el lenguaje (en una línea, varias...).
17+
* - Crea una variable (y una constante si el lenguaje lo soporta).
18+
* - Crea variables representando todos los tipos de datos primitivos
19+
* del lenguaje (cadenas de texto, enteros, booleanos...).
20+
* - Imprime por terminal el texto: "¡Hola, [y el nombre de tu lenguaje]!"
21+
*
22+
* ¿Fácil? No te preocupes, recuerda que esta es una ruta de estudio y
23+
* debemos comenzar por el principio.
24+
*/
25+
26+
/* COMENTARIO
27+
MULTIPLES
28+
LINEAS */
29+
// SITIO WEB OFICIAL DE JAVA https://www.java.com/es/
30+
public class robermejia {
31+
public static void main(String[] args) {
32+
byte my_byte = 12; // Entero
33+
short my_short = 9898; // Entero
34+
int my_int = 2024; // Entero
35+
long my_long = 1234567890; // Entero
36+
char my_char = 'A'; // Caracteres
37+
float my_float = 9.8f; // Decimal
38+
double my_double = 9.8; // Decimal
39+
boolean my_bolean = true; // Booleans
40+
41+
final double pi = 3.14; // Constante
42+
System.out.println("Hola, mundo");
43+
}
44+
}
45+
46+
47+
Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,22 @@
1-
// La URL del sitio web de JavaScript es: https://developer.mozilla.org/es/docs/Web/JavaScript
1+
// El url del sitio web oficial de JavaScript: https://developer.mozilla.org/es/docs/Web/JavaScript
22

3-
// Este es un comentario en una sola línea.
3+
// Comentario en linea
44

55
/*
6-
7-
Este
8-
es
9-
un
10-
comentario
11-
de
6+
Comentario
7+
en
128
varias
139
lineas
14-
1510
*/
1611

17-
let lenguaje = "JavaScript";
12+
var miNombre = "Marcos";
13+
let miSegundoNombre = "Pedro";
14+
const miApellido = "Lombardo";
1815

19-
let string = "Esta es una cadena de texto.";
16+
let string = "JavaScript";
2017
let number = 8;
2118
let boolean = true;
19+
let indefinido = undefined;
2220
let nulo = null;
23-
let indef = undefined;
2421

25-
console.log(`¡Hola, ${lenguaje}!`);
22+
console.log(`¡Hola, ${string}!`);
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
// https://developer.mozilla.org/es/docs/Learn/JavaScript
2+
3+
// Este es un comentario de una linea
4+
/*
5+
Este es
6+
el comentario
7+
multilínea.
8+
*/
9+
10+
var miNombre = 'Manuel';
11+
let miApellido = "Pérez";
12+
const esConstante = "Esta es una constante";
13+
14+
// Datos primitivos
15+
16+
let varIndefinida = undefined;
17+
let varBooleana = false;
18+
varBooleana = true;
19+
let varNumero = 50;
20+
let varString = "Cadena de texto";
21+
let varBigInt = 9007199254740992n;
22+
let varNull = null;
23+
let varSymbol = Symbol('Symbol');
24+
let varObject = new Object();
25+
26+
//Imprimir en consola
27+
console.log("¡Hola, Javascript!");
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# URL del sitio web oficial: https://julialang.org/
2+
3+
# Comentario de una sola línea en Julia
4+
5+
#=
6+
Comentario de varias
7+
líneas en Julia
8+
=#
9+
10+
# Variable
11+
variable_entera = 10
12+
13+
# Constante
14+
const CONSTANTE = "Esto es una constante"
15+
16+
# Variables de tipos de datos primitivos
17+
texto = "Cadena de texto" # Cadena de texto
18+
entero = 42 # Entero
19+
flotante = 3.14 # Flotante
20+
booleano = true # Booleano
21+
caracter = 'A' # Carácter
22+
23+
# Imprimir por terminal
24+
println("¡Hola, Julia!")
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<?php
2+
3+
// Sitio oficial: https://www.php.net/
4+
5+
// Comentario de una sola línea
6+
/*
7+
Este es un
8+
comentario
9+
multi línea
10+
*/
11+
# Comentario de una línea tipo consola.
12+
13+
$unaVariable = 'Esta es una variable';
14+
const CONSTANTE = 'Esta es mi constante';
15+
16+
$un_bool = true; // un valor booleano
17+
$un_bool = false; // un valor booleano
18+
$un_str = "foo"; // una cadena de caracteres
19+
$un_str2 = 'foo'; // una cadena de caracteres
20+
$un_int = 12; // un número entero
21+
$var_float = 1.0; // un decimal
22+
$var_null = null; // valor nulo
23+
$var_arreglo = [1,2,3]; // array
24+
$var_objeto = {
25+
'name':'nombre',
26+
'numero': 2,
27+
'visible': false
28+
}; // Objeto
29+
30+
print("¡Hola, PHP!");
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
""" /*
2+
* ¿Preparad@ para aprender o repasar el lenguaje de programación que tú quieras?
3+
* - Recuerda que todas las instrucciones de participación están en el
4+
* repositorio de GitHub.
5+
*
6+
* Lo primero... ¿Ya has elegido un lenguaje?
7+
* - No todos son iguales, pero sus fundamentos suelen ser comunes.
8+
* - Este primer reto te servirá para familiarizarte con la forma de participar
9+
* enviando tus propias soluciones.
10+
*
11+
* EJERCICIO:
12+
* - Crea un comentario en el código y coloca la URL del sitio web oficial del
13+
* lenguaje de programación que has seleccionado.
14+
* - Representa las diferentes sintaxis que existen de crear comentarios
15+
* en el lenguaje (en una línea, varias...).
16+
* - Crea una variable (y una constante si el lenguaje lo soporta).
17+
* - Crea variables representando todos los tipos de datos primitivos
18+
* del lenguaje (cadenas de texto, enteros, booleanos...).
19+
* - Imprime por terminal el texto: "¡Hola, [y el nombre de tu lenguaje]!"
20+
*
21+
* ¿Fácil? No te preocupes, recuerda que esta es una ruta de estudio y
22+
* debemos comenzar por el principio.
23+
*/ """
24+
25+
# https://www.python.org/
26+
27+
# Comentario de una linea
28+
""" Docstring (varias lineas) """
29+
30+
variable = 10
31+
CONSTANTE = "Python" # Realmente no es una constante pero se pone en mayuscula para indicar que lo es
32+
33+
numero = 2
34+
cadena_texto = "cadena"
35+
valor_booleano = True
36+
flotente = 1.2
37+
38+
print(f"¡Hola, {CONSTANTE}!")
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# https://python.org
2+
3+
# Esto es un comentario de una sola línea
4+
5+
"""Esto es
6+
un comentario
7+
de varias líneas"""
8+
9+
variable = "Esto es una variable"
10+
CONSTANTE = """En Python, no existen las constantes como tal
11+
por lo que se tiene que poner en mayúsculas"""
12+
13+
cadena_texto = "Hola, soy una cadena de texto"
14+
15+
entero = 32
16+
17+
flotantes = 32.5
18+
19+
booleano_positivo = True
20+
21+
booleano_negativo = False
22+
23+
print ("¡Hola, Python!")

0 commit comments

Comments
 (0)