Skip to content

Commit db90547

Browse files
author
Rich Oscar
authored
Merge branch 'mouredev:main' into main
2 parents a8aaf18 + 05a630f commit db90547

File tree

238 files changed

+30106
-1354
lines changed

Some content is hidden

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

238 files changed

+30106
-1354
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 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)**
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)**
3232
3333
## Roadmap
3434

@@ -60,7 +60,8 @@
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/)
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/)
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/)
63+
|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/)
6465

6566
## Instrucciones
6667

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
// https://docs.microsoft.com/en-us/dotnet/csharp/ -- Sitio web oficial del lenguaje de programación C#
2+
3+
// Comentario de una línea
4+
5+
/*
6+
Comentario de múltiples
7+
líneas utilizando barras
8+
y asteriscos.
9+
*/
10+
11+
12+
string variable = "Soy una variable"; // Variable
13+
14+
const string CONSTANTE = "¡Hola, C#!"; // Constante
15+
16+
var miVar = "JoseEsmil04"; // Inferencia
17+
18+
string texto = "Esto es una cadena de texto"; // String
19+
20+
bool booleano = false; // Bool
21+
22+
float flotante = 3.14f; // Float
23+
24+
double doble = 2.718281828459045; // Double
25+
26+
char caracter = 'A'; // Char
27+
28+
decimal decimalNum = 19.99m; // Decimal
29+
30+
int entero = 42; // Int
31+
uint uintNum = 4294967295; // UInt
32+
33+
byte byteNum = 255; // Byte
34+
sbyte sbyteNum = -128; // SByte
35+
36+
short corto = 32767; // Short
37+
ushort ushortNum = 65535; // UShort
38+
39+
long largo = 9223372036854775807; // Long
40+
ulong ulongNum = 18446744073709551615; // ULong
41+
42+
object nulo = null; // Null
43+
44+
// Imprimir por terminal el texto: "¡Hola, C#!"
45+
Console.WriteLine(CONSTANTE);
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: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
package main
2+
3+
// Comentario de una línea - comienza con // y van hasta el final de la línea
4+
/*
5+
Comentarios generales - comienzan con /* y terminan con
6+
*/
7+
8+
// Sitio oficial: https://go.dev/
9+
10+
import (
11+
"fmt"
12+
)
13+
14+
var lenguaje = "Go" // Tipo implicito string
15+
16+
func main() {
17+
/*
18+
Declaración de variables
19+
20+
var nombreVariable Tipo
21+
var nombreVariable Tipo = valor
22+
23+
Declaración corta de variables - solo funciona dentro de funciones
24+
25+
nombreVariable := valor // El tipo es implicito
26+
*/
27+
variable := 0
28+
fmt.Println(variable)
29+
30+
// Booleanas
31+
var verdadero, falso bool = true, false
32+
fmt.Println(verdadero)
33+
fmt.Println(falso)
34+
35+
// Numéricas
36+
/*
37+
uint
38+
uint8 the set of all unsigned 8-bit integers (0 to 255)
39+
uint16 the set of all unsigned 16-bit integers (0 to 65535)
40+
uint32 the set of all unsigned 32-bit integers (0 to 4294967295)
41+
uint64 the set of all unsigned 64-bit integers (0 to 18446744073709551615)
42+
43+
byte // alias for uint8
44+
45+
int
46+
int8 the set of all signed 8-bit integers (-128 to 127)
47+
int16 the set of all signed 16-bit integers (-32768 to 32767)
48+
int32 the set of all signed 32-bit integers (-2147483648 to 2147483647)
49+
int64 the set of all signed 64-bit integers (-9223372036854775808 to 9223372036854775807)
50+
51+
rune // alias for int32
52+
// represents a Unicode code point
53+
54+
float32 the set of all IEEE-754 32-bit floating-point numbers
55+
float64 the set of all IEEE-754 64-bit floating-point numbers
56+
57+
complex
58+
complex64 the set of all complex numbers with float32 real and imaginary parts
59+
complex128 the set of all complex numbers with float64 real and imaginary parts
60+
*/
61+
var entero int8 = -5
62+
fmt.Println(entero)
63+
64+
var enteroSinSigno uint8 = 0
65+
fmt.Println(enteroSinSigno)
66+
67+
var flotante float32 = 1.2525
68+
fmt.Println(flotante)
69+
70+
var complejo complex64 = 4 + 1i
71+
fmt.Println(complejo)
72+
73+
// Cadenas
74+
var saludo string = "Hola"
75+
fmt.Println(saludo)
76+
77+
// Arrays
78+
arreglo := [3]int{1, 2, 3}
79+
var pow = []int{1, 2, 4, 8, 16, 32, 64, 128}
80+
fmt.Println(arreglo)
81+
fmt.Println(pow)
82+
83+
// Constantes
84+
const pi float64 = 3.14159265
85+
fmt.Println(pi)
86+
87+
// Punteros
88+
var p *int
89+
i := 42
90+
p = &i
91+
fmt.Println(*p)
92+
93+
fmt.Printf("!%s, %s!", saludo, lenguaje)
94+
}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
package main
2+
3+
import "fmt"
4+
5+
func main() {
6+
// comentario
7+
8+
/*
9+
comentario
10+
multiples
11+
lineas
12+
*/
13+
const language string = "gOlAng"
14+
VarInt := 10
15+
VarFloat := 10.486485688
16+
VarBool := true
17+
VarString := "esto es un String"
18+
fmt.Printf("Variable Entera : %d\n", VarInt)
19+
fmt.Printf("Variable Float : %.2f\n", VarFloat)
20+
fmt.Printf("Variable Boolean : %v\n", VarBool)
21+
fmt.Printf("ariable String : %s\n", VarString)
22+
fmt.Println("Hello " + language)
23+
24+
}
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: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
public class Fluna29 {
2+
public static void main(String[] args) throws Exception {
3+
/**
4+
* Coloco aqui el link de Java pero no de la página de descarga, sino de la pagina que tiene la documentación de Java
5+
* https://docs.oracle.com/en/java/
6+
*
7+
* Por cierto esto es un comentario en varias lineas
8+
*/
9+
10+
//Y a partir de ahora voy a escribir comentarios de una sola linea, al igual que este mismo
11+
12+
//Esto es una variable
13+
var nombre = "El caballo es de color gris";
14+
15+
//Esto es una constante
16+
final double PI = 3.1416;
17+
18+
19+
//A continuación voy a escribir los tipos primitivos de variables para numeros
20+
21+
byte bite = 1;
22+
short corto = 2;
23+
int entero = 3;
24+
long largo = 4;
25+
float flotante = 5.5f;
26+
double numDecimal = 6.6;
27+
28+
//El tipo primitivo de texto sería Char, ya que String es un tipo de dato de referencia porque hacen referencia a objetos
29+
char caracter = 'a';
30+
31+
//El tipo primitivo de booleano es boolean
32+
boolean dormido = true;
33+
34+
35+
//Por último vamos a saludar a nuestro lenguaje de programación
36+
System.out.println("Hola, Java!");
37+
38+
39+
}
40+
}
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+
}

0 commit comments

Comments
 (0)