Skip to content

Commit 17f0fc1

Browse files
authored
Merge branch 'mouredev:main' into main
2 parents 01b1fdd + b28836b commit 17f0fc1

File tree

58 files changed

+6323
-953
lines changed

Some content is hidden

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

58 files changed

+6323
-953
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
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)|[📝](./Roadmap/25%20-%20LOGS/python/mouredev.py)||[👥](./Roadmap/25%20-%20LOGS/)
62+
|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)|[🗓️ 01/07/24](https://discord.gg/CPKcDD9d?event=1252321976027054111)||[👥](./Roadmap/26%20-%20SOLID%20SRP/)
6464

6565
## Instrucciones
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
-- Comentario de una línea
2+
-- Sitio oficial: https://www.haskell.org/
3+
4+
{-
5+
Comentario de varias líneas
6+
7+
Documentación oficial: https://www.haskell.org/documentation/
8+
-}
9+
10+
-- Las variables en Haskell son inmutables
11+
12+
i :: Integer -- Enteros
13+
i = 1
14+
15+
d :: Double -- Real de Punto Flotante de doble precision
16+
d = 1.0
17+
18+
fl :: Float -- Real Punto Flotante de simple precisión
19+
fl = 1.0
20+
21+
c :: Char -- Caracter
22+
c = 'a'
23+
24+
s :: String -- Cadena
25+
s = "Haskell"
26+
27+
t :: Bool -- Booleanos
28+
t = True -- Verdadero
29+
30+
f :: Bool
31+
f = False -- Falso
32+
33+
o :: Integer
34+
o = 0o10 -- 8 en notación octal
35+
36+
h :: Integer
37+
h = 0x10 -- 16 en hexadecimal
38+
39+
b :: Integer
40+
b = 0b1111 -- 15 en binario
41+
42+
u :: () -- Tipo de la expresión (), llamada unit
43+
u = ()
44+
45+
main :: IO () -- Tipo de una expresión que representa una subrutina de IO que retorna ()
46+
main = putStrLn "¡Hola, Haskell!"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
public class Dariel800XD {
2+
3+
public static void main(String[] args) {
4+
5+
//https://www.java.com
6+
7+
//esta es una forma de comentar en java
8+
/*Esta es para varias lineas
9+
de codigo*/
10+
11+
12+
//Constante:
13+
final int constante;
14+
15+
16+
//Variables:
17+
byte var = 127;
18+
short var2 = 20000;
19+
int var3 = 2000;
20+
long var4 = 400000;
21+
float var5 = 2;
22+
double var6 = 3.14;
23+
boolean var7 = true;
24+
char var8 = 'D';
25+
String var9 = "Hola";
26+
27+
System.out.println("Hola, Java");
28+
29+
}
30+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
//Sitio web: https://developer.mozilla.org/es/docs/Web/JavaScript
2+
3+
//Comentario de una sola linea
4+
5+
/*Comentario
6+
en multiples
7+
lineas*/
8+
9+
let variable = "Hola";
10+
const constante = "Mundo";
11+
12+
let numero = 1;
13+
let cadena = "Hola mundo";
14+
let booleano = true;
15+
let indefinido = undefined;
16+
17+
console.log("Hola, JavaScript!");
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
// link de la documentacion oficial de Javascript https://developer.mozilla.org/es/docs/Web/JavaScript
2+
3+
// este es un comentario de una sola linea
4+
5+
/* este
6+
es
7+
un
8+
comentario
9+
de
10+
varias
11+
lineas
12+
*/
13+
14+
let nombre = "Matias";
15+
const apellido = "Nuñez";
16+
17+
let string = "Cadena de texto"; // cadena de texto
18+
let numero = 10; // entero
19+
let booleano = true; // booleano
20+
let flotante = 10.5; // flotante
21+
let nulo = null; // nulo
22+
let indefinido; // udefined
23+
24+
console.log("Hola, Javascript!");
25+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
2+
/*
3+
* EJERCICIO:
4+
* - Crea un comentario en el código y coloca la URL del sitio web oficial del
5+
* lenguaje de programación que has seleccionado.
6+
* - Representa las diferentes sintaxis que existen de crear comentarios
7+
* en el lenguaje (en una línea, varias...).
8+
* - Crea una variable (y una constante si el lenguaje lo soporta).
9+
* - Crea variables representando todos los tipos de datos primitivos
10+
* del lenguaje (cadenas de texto, enteros, booleanos...).
11+
* - Imprime por terminal el texto: "¡Hola, [y el nombre de tu lenguaje]!"
12+
*
13+
* ¿Fácil? No te preocupes, recuerda que esta es una ruta de estudio y
14+
* debemos comenzar por el principio.
15+
*/
16+
17+
18+
19+
//✅Pagina web del lenguaje. https://developer.mozilla.org/es/docs/Web/JavaScript
20+
21+
// ✅Este es un comentario en unas sola linea
22+
23+
/**
24+
* ✅Este es un comentario en varias lineas
25+
* como puedes ver
26+
* estan en 3 lineas
27+
*/
28+
29+
// ✅una variable tipo string
30+
var lenguaje = 'Java Script'
31+
// ✅una constante tipo number, con coma flotante
32+
const pi = 3.14
33+
// ✅variable de tipo number, pero entero
34+
var entero = 34
35+
// ✅varialbe de tipo boolean
36+
var flag = true
37+
// ✅variable de tipo BigInt
38+
var granEntero = 12391239182938917785676283904n
39+
// ✅variable de tipo null
40+
var vacio = null
41+
// ✅ variablede tipo symbol
42+
var sym = Symbol();
43+
44+
console.log(`Hola, ${lenguaje}`)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// https://developer.mozilla.org/es/docs/Learn/JavaScript/First_steps/What_is_JavaScript
2+
// This is a one line comment
3+
/* But this is a
4+
multi-line
5+
comment. */
6+
7+
var myVariable = 3;
8+
const MY_CONST = 4;
9+
10+
var string = "Hello";
11+
var boolean = true;
12+
var numbers = 2;
13+
14+
console.log( "¡Hola, Javascript !" );
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// https://developer.mozilla.org
2+
// comentarios de una sola linea
3+
4+
/*
5+
comentario multiples
6+
varias lineas
7+
*/
8+
var variable numero = 1
9+
const constante numero = 2
10+
var datoINT= 1
11+
var float = 1.3
12+
var bolean= true
13+
var bolean2= false
14+
var datoundefined= undefined
15+
var datoNUll= null
16+
var datosymbols = symbol :D
17+
18+
console.log("¡Hola,javascript")
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
<?php
2+
/*
3+
* EJERCICIO:
4+
* - Crea un comentario en el código y coloca la URL del sitio web oficial del
5+
* lenguaje de programación que has seleccionado.
6+
* - Representa las diferentes sintaxis que existen de crear comentarios
7+
* en el lenguaje (en una línea, varias...).
8+
* - Crea una variable (y una constante si el lenguaje lo soporta).
9+
* - Crea variables representando todos los tipos de datos primitivos
10+
* del lenguaje (cadenas de texto, enteros, booleanos...).
11+
* - Imprime por terminal el texto: "¡Hola, [y el nombre de tu lenguaje]!"
12+
*
13+
* ¿Fácil? No te preocupes, recuerda que esta es una ruta de estudio y
14+
* debemos comenzar por el principio.
15+
*/
16+
17+
// https://www.php.net/
18+
19+
// Comentario en una linea
20+
# Esto tambien es un comentario en una linea
21+
/*
22+
Comentario de
23+
varias lineas
24+
*/
25+
26+
// Variables y constantes
27+
$miVariable = "Mi variable";
28+
define("MI_CONSTANTE", "Valor de mi constante");
29+
30+
// Tipos de datos
31+
$entero = 23;
32+
$cadena = "Mi cadena";
33+
$flotante = 3.14;
34+
$booleano = true;
35+
$arrays = array("Rojo", "Negro", "Blanco");
36+
$nulo = null;
37+
38+
// Imprime por terminal
39+
print "¡Hola, PHP!";
40+
?>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# https://www.python.org
2+
3+
# Comentario en una linea
4+
5+
'''
6+
Comentario
7+
para
8+
varias
9+
lineas
10+
11+
'''
12+
# Variable en python
13+
variable = None
14+
15+
# Tipos de datos
16+
num = 100
17+
cadena = 'Cadena de caracteres'
18+
f_num = 100.50
19+
b_var = True
20+
b_var_2 = False
21+
sin_asignar_tipo = None
22+
23+
# Imprimir por consola nombre del lenguaje
24+
25+
lenguaje = 'Python'
26+
print(f"¡Hola, {lenguaje}!")
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# www.python.org
2+
3+
# este es un comentario de una sola linea
4+
5+
"""
6+
este es un docstring un comentario de varias lineas
7+
que comunmente se utiliza para
8+
para documentar módulos, funciones, clases y métodos
9+
"""
10+
11+
# Crea una variable (y una constante si el lenguaje lo soporta)
12+
# variable
13+
my_variable = "my_variable"
14+
15+
# constante
16+
MY_CONSTANT = "my_constant" #no es una constante pero se usa esta forma
17+
18+
"""
19+
Crea variables representando todos los tipos de datos primitivos
20+
del lenguaje (cadenas de texto, enteros, booleanos...).
21+
"""
22+
# Variable int (o numeros completos )
23+
X= 1
24+
#variable float (numeros decimales)
25+
Y = 1.5
26+
# variable complex (donde se usan dos numeros int o float + una unidad imaginaria)
27+
Z = 2 + 3j
28+
# variable string (cadenas de texto)
29+
my_variable = my_variable
30+
# varialbe boolean (variable de comparacion verdadero o falso
31+
My_variable = True
32+
Not_myvariable = False
33+
34+
#Imprime por terminal el texto: "¡Hola, [y el nombre de tu lenguaje]!"
35+
my_variable = "hola python"
36+
print(my_variable)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# https://www.python.org
2+
3+
# Comentario en una linea
4+
5+
"""
6+
Esto es un comentario
7+
de varias
8+
lineas
9+
"""
10+
11+
'''
12+
Esto tambien es
13+
un comentariode
14+
varias lineas
15+
'''
16+
17+
my_variable = "Mi variable"
18+
19+
# Tipos de datos primitivos
20+
my_int = 25 # Enteros representa numeros sin punto decimal
21+
my_float = 1.80 # Flotantes representa números con punto decimal
22+
my_bool = True or False # Booleanos representa valor verdaderos o falso
23+
my_string = "Cadena de texto" # Cadenas de Texto representa secuencias de caracteres encerradas entre comillas 'simple' o "dobles"
24+
my_none = None # NoneType representa ausencia de valor
25+
26+
27+
print("Hola, Python!")

0 commit comments

Comments
 (0)