Skip to content

Commit f274dba

Browse files
Merge branch 'mouredev:main' into miSolucion
2 parents e3deac3 + bdc150e commit f274dba

File tree

200 files changed

+24547
-1811
lines changed

Some content is hidden

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

200 files changed

+24547
-1811
lines changed

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 8 de julio de 2024 a las 20:00 (hora España) desde **[Twitch](https://twitch.tv/mouredev)**
31-
> #### Consulta el **[horario](https://discord.gg/4azkvPUJ?event=1254974320136949871)** por país y crea un **[recordatorio](https://discord.gg/4azkvPUJ?event=1254974320136949871)**
30+
> #### Lunes 15 de julio de 2024 a las 20:00 (hora España) desde **[Twitch](https://twitch.tv/mouredev)**
31+
> #### Consulta el **[horario](https://discord.gg/ssrS9zeS?event=1257395660962005113)** por país y crea un **[recordatorio](https://discord.gg/ssrS9zeS?event=1257395660962005113)**
3232
3333
## Roadmap
3434

@@ -61,7 +61,8 @@
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)|[🗓️ 08/07/24](https://discord.gg/4azkvPUJ?event=1254974320136949871)||[👥](./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/)
65+
|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/)
6566

6667
## Instrucciones
6768

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
namespace _00_sintaxis
2+
{
3+
internal class Program
4+
{
5+
static void Main(string[] args)
6+
{
7+
// EJERCICIO:
8+
// * -Crea un comentario en el código y coloca la URL del sitio web oficial del lenguaje de programación que has seleccionado.
9+
// * -Representa las diferentes sintaxis que existen de crear comentarios en el lenguaje(en una línea, varias...).
10+
// * -Crea una variable(y una constante si el lenguaje lo soporta).
11+
// * -Crea variables representando todos los tipos de datos primitivos del lenguaje(cadenas de texto, enteros, booleanos...).
12+
// * -Imprime por terminal el texto: "¡Hola, [y el nombre de tu lenguaje]!"
13+
14+
15+
// * -Crea un comentario en el código y coloca la URL del sitio web oficial del lenguaje de programación que has seleccionado.
16+
// https://learn.microsoft.com/en-us/dotnet/csharp/
17+
18+
19+
20+
// * -Representa las diferentes sintaxis que existen de crear comentarios en el lenguaje(en una línea, varias...).
21+
// Ejemplo de comentario en línea
22+
/*
23+
* Ejemplo de comentario en varias líneas
24+
*
25+
*/
26+
27+
28+
29+
// * -Crea una variable (y una constante si el lenguaje lo soporta).
30+
string example = "Hola";
31+
const string constant = "Victor";
32+
33+
34+
// * -Crea variables representando todos los tipos de datos primitivos del lenguaje(cadenas de texto, enteros, booleanos...).
35+
string name = "Victor";
36+
char firstLetter = 'V';
37+
38+
short age2 = 4000;
39+
int age = 400000000;
40+
long age3 = 4000000000000000000;
41+
42+
ushort age4 = 40000;
43+
uint age5 = 4000000000;
44+
ulong age6 = 4000000000000000000;
45+
46+
double weight = 75.6;
47+
float height = 1.778f;
48+
decimal longPlay = 1.87665m;
49+
50+
string[] arrayExample = ["Patatas", "Fruta", "Comida"];
51+
52+
bool working = true;
53+
54+
55+
// * -Imprime por terminal el texto: "¡Hola, [y el nombre de tu lenguaje]!"
56+
string langName = "C#";
57+
Console.WriteLine($"¡Hola, {langName}!");
58+
}
59+
}
60+
}
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: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
public class CoronelSam {
2+
/*
3+
* 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+
*/
6+
7+
// https://www.java.com/
8+
9+
/*
10+
* Representa las diferentes sintaxis que existen de crear comentarios
11+
* en el lenguaje (en una línea, varias...).
12+
*/
13+
14+
// Hola mundo
15+
16+
/*
17+
* Hola
18+
* Mundo
19+
*/
20+
public static void main(String[] args) {
21+
// - Crea una variable (y una constante si el lenguaje lo soporta).
22+
int velocidad = 1;
23+
final double PI = 3.1416;
24+
//* - Crea variables representando todos los tipos de datos primitivos
25+
int number = 2;
26+
short corto = 20;
27+
long numeroSeguridad = 20_42_12_16;
28+
float tipoFloat = 16.00f;
29+
double llama = 9.11;
30+
boolean siNo = true;
31+
char caracter = 'L';
32+
String saludo = "Hola, Java!!";
33+
//* - Imprime por terminal el texto: "¡Hola, [y el nombre de tu lenguaje]!"
34+
System.out.println(saludo);
35+
}
36+
37+
}
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: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
package MauroDevRetos;
2+
3+
//https://www.oracle.com/java/
4+
5+
/*
6+
* https://www.oracle.com/java/
7+
*/
8+
9+
/**
10+
* https://www.oracle.com/java/
11+
*/
12+
public class julian98789 {
13+
14+
int numero;
15+
final int numeros = 4;
16+
17+
byte unByte = 127; // Rango: -128 a 127
18+
short unShort = 32767; // Rango: -32,768 a 32,767
19+
int unInt = 2147483647; // Rango: -2^31 a 2^31-1
20+
long unLong = 9223372036854775807l; // Rango: -2^63 a 2^63-1
21+
22+
// Punto flotante
23+
float unFloat = 3.14f; // Precisión simple
24+
double unDouble = 3.141592653589793; // Precisión doble
25+
26+
// Carácter
27+
char unChar = 'A'; // Almacena un solo carácter Unicode
28+
29+
// Booleano
30+
boolean unBoolean = true; // Puede ser true o false
31+
32+
public static void main(String[] args) {
33+
System.out.println("Hola, Java");
34+
}
35+
36+
}
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
// Reto 1 de programacion 2024 por MoureDev
2+
3+
/*
4+
EJERCICIO:
5+
1. Crea un comentario en el código y coloca la URL del sitio web oficial del lenguaje de programación que has seleccionado.
6+
2. Representa las diferentes sintaxis que existen de crear comentarios 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 del lenguaje (cadenas de texto, enteros, booleanos...).
9+
5. Imprime por terminal el texto: "¡Hola, [y el nombre de tu lenguaje]!"
10+
*/
11+
12+
public class jlrojano {
13+
14+
15+
16+
// 1. URL del sitio oficial: https://www.java.com/
17+
18+
// 2. Una linea comentada
19+
/*
20+
2. Varias lineas...
21+
... comentadas
22+
*/
23+
24+
25+
public static void main(String[] args) {
26+
27+
// 3. Crea una variable (y una constante si el lenguaje lo soporta).
28+
// VARIABLE
29+
var myVar = 100;
30+
// CONSTANTE
31+
final var MY_VAR = false;
32+
// 4. Crea variables representando todos los tipos de datos primitivos del lenguaje (cadenas de texto, enteros, booleanos...).
33+
byte bByte = 127;
34+
short sShort = 32767;
35+
int iInt = 2^32;
36+
long lLong = 2^63L;
37+
float fFloat = 123;
38+
double dMyDouble = 12e306D;
39+
boolean bMybool = true;
40+
char cMyChar = 'c';
41+
42+
43+
// 5. Imprime por terminal el texto: "¡Hola, [y el nombre de tu lenguaje]!"
44+
System.out.println("¡Hola, java!");
45+
46+
}
47+
}
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}!`);

0 commit comments

Comments
 (0)