Skip to content

Commit 8ae2997

Browse files
authored
Merge branch 'mouredev:main' into main
2 parents 87e951a + c2e1e6c commit 8ae2997

File tree

113 files changed

+12713
-1103
lines changed

Some content is hidden

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

113 files changed

+12713
-1103
lines changed

README.md

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

30-
> #### Lunes 29 de julio de 2024 a las 20:00 (hora España) desde **[Twitch](https://twitch.tv/mouredev)**
31-
> #### Consulta el **[horario](https://discord.gg/wZn6cmdR?event=1262532223417057411)** por país y crea un **[recordatorio](https://discord.gg/wZn6cmdR?event=1262532223417057411)**
30+
> #### Lunes 5 de agosto de 2024 a las 20:00 (hora España) desde **[Twitch](https://twitch.tv/mouredev)**
31+
> #### Consulta el **[horario](https://discord.gg/3WGUdmwZ?event=1265005769007566961)** por país y crea un **[recordatorio](https://discord.gg/3WGUdmwZ?event=1265005769007566961)**
3232
3333
## Roadmap
3434

@@ -64,7 +64,8 @@
6464
|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)|[📝](./Roadmap/28%20-%20SOLID%20LSP/python/mouredev.py)|[▶️](https://youtu.be/SgHoiF1KLTo)|[👥](./Roadmap/28%20-%20SOLID%20LSP/)
6666
|29|[SOLID: PRINCIPIO DE SEGREGACIÓN DE INTERFACES](./Roadmap/29%20-%20SOLID%20ISP/ejercicio.md)|[📝](./Roadmap/29%20-%20SOLID%20ISP/python/mouredev.py)|[▶️](https://youtu.be/0zTmCTHJ_lg)|[👥](./Roadmap/29%20-%20SOLID%20ISP/)
67-
|30|[SOLID: PRINCIPIO DE INVERSIÓN DE DEPENDENCIAS](./Roadmap/30%20-%20SOLID%20DIP/ejercicio.md)|[🗓️ 29/07/24](https://discord.gg/wZn6cmdR?event=1262532223417057411)||[👥](./Roadmap/30%20-%20SOLID%20DIP/)
67+
|30|[SOLID: PRINCIPIO DE INVERSIÓN DE DEPENDENCIAS](./Roadmap/30%20-%20SOLID%20DIP/ejercicio.md)|[📝](./Roadmap/30%20-%20SOLID%20DIP/python/mouredev.py)|[▶️](https://youtu.be/wxIj6Rs8rAU)|[👥](./Roadmap/30%20-%20SOLID%20DIP/)
68+
|31|[SIMULADOR JUEGOS OLÍMPICOS](./Roadmap/31%20-%20SIMULADOR%20JUEGOS%20OLÍMPICOS/ejercicio.md)|[🗓️ 05/08/24](https://discord.gg/3WGUdmwZ?event=1265005769007566961)||[👥](./Roadmap/31%20-%20SIMULADOR%20JUEGOS%20OLÍMPICOS/)
6869

6970
## Cursos en YouTube
7071

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
//Documentacion de C: https://devdocs.io/c/
2+
3+
//Comentario de una linea
4+
5+
/*
6+
Comentario
7+
de
8+
varias
9+
lineas
10+
*/
11+
12+
//Librerias (necesarias para todo)
13+
#include<stdio.h>;
14+
#include<stdlib.h>;
15+
#include<stdbool.h>
16+
17+
#define CONSTANTE 8
18+
19+
int numero = 10;
20+
char caracter = 'a';
21+
float decimal = 1.3;
22+
23+
int main(){
24+
printf("Hola, C");
25+
return 0;
26+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
/*
2+
* Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
3+
* Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Main.java to edit this template
4+
*/
5+
package javaapplication16;
6+
7+
/**
8+
*
9+
* @author DAVID
10+
*/
11+
public class JavaApplication16 {
12+
13+
14+
public static void main(String[] args) {
15+
16+
/*__________ 1 _______________
17+
Link del sitio oficial del Lenguaje:
18+
https://www.java.com/es/
19+
*/
20+
21+
//__________ 2 _______________
22+
//EJEMPLO COEMTARIO DE (1) LINEA
23+
24+
25+
/* _________ 3 _______________
26+
27+
EJEMPLO COMENTARIOS EN BLOQUE
28+
29+
*/
30+
31+
/* _________ 4 _______________
32+
33+
Variable
34+
35+
*/
36+
37+
int VARIABLE_A = 15;
38+
39+
final int CONSTANTE_EJE = 7 ;
40+
41+
/* _________ 4 _______________
42+
43+
Tipos de Datos Primitivos
44+
45+
*/
46+
47+
48+
long EJEMPLO_1 = 777666;
49+
50+
char EJEMPLO_2 = 'L';
51+
52+
String EJEMPLO_3 = "Manolo";
53+
54+
System.out.println("My name is " + "Manolo" );
55+
56+
boolean EJEMPLO_4 = false;
57+
58+
59+
60+
System.out.println("¡Hola, Jsva");
61+
}
62+
63+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
/**
2+
* Solución del reto #00: Sintaxis, variables, tipos de datos y hola mundo;
3+
* @author Alejosor
4+
*/
5+
public class alejosor {
6+
7+
public static final int num_max = 100; // Constante entera
8+
9+
public static final String mensaje_bienvenida = "¡Bienvenido a Java!"; // Constante de cadena
10+
11+
public static void main(String[] args) {
12+
/*
13+
* EJERCICIO:
14+
* - Crea un comentario en el código y coloca la URL del sitio web oficial del lenguaje de programación que has seleccionado.
15+
* - Representa las diferentes sintaxis que existen de crear comentario 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 del lenguaje (cadenas de texto, enteros, booleanos...).
18+
* - Imprime por terminal el texto: "¡Hola, [y el nombre de tu lenguaje]!"
19+
*/
20+
21+
// - Crea un comentario en el código y coloca la URL del sitio web oficial del lenguaje de programación que has seleccionado.
22+
// URL del sitio web oficial de Java: https://www.java.com/es/
23+
24+
25+
// - Representa las diferentes sintaxis que existen de crear comentario en el lenguaje (en una línea, varias...).
26+
// <- Forma de comentar en una sola línea.
27+
28+
/*
29+
* <- Forma de comentar en varias líneas.
30+
*/
31+
32+
// - Crea una variable (y una constante si el lenguaje lo soporta).
33+
String variable = "Esto es una variable"; // Creación de una variable.
34+
35+
final int num_mim = 1; //Constante dentro de un método
36+
37+
// - Crea variables representando todos los tipos de datos primitivos del lenguaje (cadenas de texto, enteros, booleanos...).
38+
byte byt = 10; // Tipo de dato primitivo -> Byte
39+
40+
short shrt = 12; // Tipo de dato primitivo -> Short
41+
42+
int entero = 150; // Tipo de dato primitivo -> Int
43+
44+
long lng = 14567l; // Tipo de dato primitivo -> Long
45+
46+
float flat = 23.6f; // Tipo de dato primitivo -> Float
47+
48+
double dbl = 23.54566; // Tipo de dato primitivo -> Double
49+
50+
char chr = 'A'; // Tipo de dato primitivo -> Char
51+
52+
boolean bool = true; // Tipo de dato primitivo -> Boolean
53+
54+
// - Imprime por terminal el texto: "¡Hola, [y el nombre de tu lenguaje]!"
55+
System.out.println("¡Hola, Java!");
56+
57+
}
58+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
//https://www.javascript.com//
2+
3+
//Comentario de una sola línea//
4+
5+
/*
6+
Esto
7+
Es
8+
Un
9+
Comentario
10+
Multilinea
11+
*/
12+
13+
14+
var x = 5; //Variable llamada X con valor igual a 5//
15+
16+
const price = 20; //Variable constante llamada price con valor igual a 20//
17+
18+
let name = carlos; //string//
19+
let age = 24; //int//
20+
let sundistanceinmeters = 149597870700; //BigInt//
21+
let boolean = false; //Booleano//
22+
let imNull = null; //Null//
23+
let sym1 = Symbol("simbolo1"); //Symbol//
24+
let myundefined = undefined; //Undefined//
25+
26+
console.log("¡Hola, JavaScript!");
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
//https://www.javascript.com/
2+
3+
//Este es un comentario de una sola línea
4+
/* Este es un comentario de varias líneas */
5+
6+
//Declaración de variables
7+
//var es la forma antigua de declarar variables
8+
var x;
9+
//let es la forma moderna de declarar variables y se diferencia de var en que let tiene un alcance de bloque y var tiene un alcance de función
10+
let y;
11+
//const es la forma moderna de declarar constantes
12+
const z = "constante";
13+
14+
//Tipos de variables
15+
//number
16+
let a = 1;
17+
//string
18+
let b = "Hola Mundo";
19+
//boolean
20+
let c = true;
21+
//array
22+
let d = [1, 2, 3];
23+
//object
24+
let e = { nombre: "Joan", edad: 27 };
25+
//function
26+
let f = function () {
27+
return "Hola Mundo";
28+
};
29+
//undefined
30+
let g;
31+
//null
32+
let h = null;
33+
34+
//Mostrar en consola
35+
console.log("¡Hola, JavaScript!");
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
// No hay sitio web oficial, lo mas cercano es https://developer.mozilla.org/es/docs/Web/JavaScript
2+
3+
// Comentario de una linea
4+
5+
/*Comentario de
6+
varias
7+
lineas */
8+
//declaracion de variable y constante
9+
var variableQueNoSeUsa = 1;
10+
let variable = 2;
11+
const constante= 3;
12+
13+
//variables de datos primitivos
14+
15+
let numero = 123;
16+
let string = 'JavaScript'
17+
let boolean = true;
18+
let nulo = null;
19+
20+
console.log('Hola, '+ string);
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
/**
2+
* https://nodejs.org/en
3+
* https://developer.mozilla.org/es/docs/Web/JavaScript
4+
*
5+
* comentario con descripciones lagras asi como bullets, viñetas
6+
* Tambien se puede escribir como puede recibir paramtros y que retorna o para lo que quieras describir
7+
*
8+
* @param {string}
9+
* @return {object}
10+
*
11+
*/
12+
13+
14+
/*
15+
esta es otra forma de realizar comentarios
16+
*/
17+
18+
// tambien existe el cometario por linea
19+
20+
//---------------------------------------------TIPOS DE DATOS--------------------------------------------------------------
21+
22+
// DATOS PRIMITIVOS
23+
24+
//string
25+
var string = 'primer variable'
26+
let stringLet = "segunda variable"
27+
const stringConst = `tercer string`
28+
29+
//number
30+
var number = 0
31+
const float = 25.9
32+
33+
//boolean
34+
var boolean = true
35+
36+
//undefined
37+
let noDefinido = undefined
38+
39+
//null
40+
const isNull = null
41+
42+
//symbol- valor unico
43+
let simboloUnico = Symbol('único')
44+
45+
//bigint-datos grandes
46+
let datosGrandes = 2n
47+
48+
// imprimir algo en consola
49+
console.log("¡Hola, JavaScript!");
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# https://www.python.org
2+
3+
# esta es la sintaxis que se utiliza para comentar una linea
4+
5+
'''
6+
Esta es la sintaxis que se utiliza para comentar varias lineas
7+
8+
'''
9+
10+
CONSTANTW = 0 # realmente el lenguaje no soporta constante pero la podemos represnetar con una variable con todo en mayusculas.
11+
12+
texto = "Este es un texto" # esta es una variable de tipo string
13+
entero = 7 # esta es una variable de tipo entero
14+
flotante = 7.0 # esta es una variable de tipo flotante
15+
booleano_true = True # esta es una variable de tipo Booleano
16+
booleano_false = False # esta es una variable de tipo Booleano
17+
18+
print("¡Hola, Python!")
19+
20+
print(f"String: {type(texto)}")
21+
print(f"Entero: {type(entero)}")
22+
print(f"Flotante: {type(flotante)}")
23+
print(f"Booleano True: {type(booleano_true)}")
24+
print(f"Booleano False: {type(booleano_false)}")
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
#https://www.python.org/
2+
3+
# Comentario en una linea
4+
5+
'''
6+
Ejemplo de
7+
comentarios en
8+
varias líneas
9+
'''
10+
11+
"""
12+
Estas dobles
13+
comillas
14+
tambien valen como
15+
comentarios
16+
en varias líneas
17+
"""
18+
19+
# variable
20+
21+
my_variable_str = "Aqui tu texto" # variable tipo texto
22+
my_variable_num = 0 # variable tipo numero
23+
my_variable_bool = True # variable tipo booleano
24+
my_variable_bool = False # variable tipo booleano
25+
26+
MY_CONSTANTE = "Esta es una constante" #constante
27+
28+
# Tipos de datos primitivos de variables
29+
print("----- String -----")
30+
my_string = "variable tipo string"
31+
print(my_string)
32+
print(type(my_string))
33+
print('\n')
34+
35+
print("----- Integers -----")
36+
my_integers = 15
37+
print(my_integers)
38+
print(type(my_integers))
39+
print('\n')
40+
41+
print("----- float -----")
42+
my_float = 30.15
43+
print(my_float)
44+
print(type(my_float))
45+
print('\n')
46+
47+
print("----- bool -----")
48+
my_boolean = True
49+
print(my_boolean)
50+
print(type(my_boolean))
51+
52+
# Impresion de texto
53+
print('\n')
54+
print("¡Hola, Python!")

0 commit comments

Comments
 (0)