-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6a1affb
commit 10033d9
Showing
8 changed files
with
151 additions
and
20 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,105 @@ | ||
import opiniones.* | ||
|
||
const grupoN = new Opinion( | ||
objetos = 9, | ||
funcional = 7, | ||
logico = 3, | ||
oficio = 6, | ||
blandas = 2 | ||
) // mantiene ponderacion basica | ||
|
||
|
||
const grupoNN = new Opinion( | ||
objetos = 3, | ||
funcional = 8, | ||
logico = 9, | ||
oficio = 2, | ||
blandas = 12, | ||
ponderacionObjetos = 0.4, | ||
ponderacionFuncional = 0.2, | ||
ponderacionLogico = 0.2, | ||
ponderacionOficio = 0.1, | ||
ponderacionBlandas = 0.1 | ||
|
||
) // personaliza la ponderacion de cada ítem | ||
|
||
const grupo1 = new Opinion( | ||
objetos = 7, | ||
funcional = 7, | ||
logico = 9, | ||
oficio = 7, | ||
blandas = 3 | ||
) | ||
|
||
|
||
|
||
|
||
const grupo2 = new Opinion( | ||
objetos = 8, | ||
funcional = 7, | ||
logico = 8, | ||
oficio = 9, | ||
blandas = 4, | ||
ponderacionObjetos = 0.30, | ||
ponderacionFuncional = 0.20, | ||
ponderacionLogico = 0.15, | ||
ponderacionOficio = 0.30, // porque lo vimos aplicado en los 3 pradigmas | ||
ponderacionBlandas = 0.05 | ||
) | ||
|
||
const grupo4 = new Opinion( | ||
objetos = 8, | ||
logico = 7, | ||
funcional = 9, | ||
oficio = 5, | ||
blandas = 7, | ||
ponderacionObjetos = 0.25, | ||
ponderacionFuncional = 0.3, | ||
ponderacionLogico = 0.20, | ||
ponderacionBlandas = 0.15, | ||
ponderacionOficio = 0.1 | ||
) | ||
|
||
|
||
|
||
|
||
|
||
const grupo3 = new Opinion( | ||
objetos = 8, | ||
funcional = 8, | ||
logico = 7, | ||
oficio = 6, | ||
blandas = 5, | ||
ponderacionObjetos = 0.25, | ||
ponderacionFuncional = 0.25, | ||
ponderacionLogico = 0.25, | ||
ponderacionOficio = 0.1, | ||
ponderacionBlandas = 0.15 | ||
) | ||
|
||
const grupo5 = new Opinion( | ||
objetos = 2, | ||
funcional = 10, | ||
logico = 5, | ||
oficio = 6, | ||
blandas = 10, | ||
ponderacionObjetos = 0.4, | ||
ponderacionFuncional = 0.2, | ||
ponderacionLogico = 0.1, | ||
ponderacionOficio = 0.15, | ||
ponderacionBlandas = 0.15 | ||
) | ||
|
||
|
||
const grupo6 = new Opinion( | ||
objetos = 8, | ||
funcional = 9, | ||
logico = 6, | ||
oficio = 9, | ||
blandas = 4, | ||
ponderacionObjetos = 0.4, | ||
ponderacionFuncional = 0.2, | ||
ponderacionLogico = 0.1, | ||
ponderacionOficio = 0.2, | ||
ponderacionBlandas = 0.1 | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,41 @@ | ||
class Opinion { | ||
|
||
// de 0 a 10, cuánto aprendieron de programación orientada a objetos | ||
var property objetos | ||
|
||
// de 0 a 10, cuánto aprendieron de programación funcional | ||
var property funcional | ||
|
||
// de 0 a 10, cuánto aprendieron de programación lógica | ||
var property logico | ||
// de 0 a 10, cuánto aprendieron de otras habilidades técnicas, destrezas | ||
// o buenas practicas de desarrollo de software | ||
var property oficio | ||
// de 0 a 10, cuánto aprendieron de habilidades "blandas", cultura general, | ||
// trabajo en equipo, diseño gráfico, sociablidad, etc. | ||
var property blandas | ||
//Ponderación de cada aspecto. | ||
//Por defecto, 20% cada una | ||
//Modificar para ponderar diferente, que sume 1!! | ||
var property ponderacionObjetos = 0.20 | ||
var property ponderacionFuncional = 0.20 | ||
var property ponderacionLogico = 0.20 | ||
var property ponderacionOficio = 0.20 | ||
var property ponderacionBlandas = 0.20 | ||
|
||
method general() = | ||
objetos*ponderacionObjetos + | ||
funcional*ponderacionFuncional + | ||
logico*ponderacionLogico + | ||
oficio*ponderacionOficio + | ||
blandas*ponderacionBlandas | ||
|
||
} | ||
|
||
|
||
class Encuesta { | ||
const property opiniones = [] | ||
const property descripciones = ["wollok.png", "haskell.png", "prolog.png"] | ||
const property criterios = [{o=>o.objetos()},{o=>o.funcional()},{o=>o.logico()} ] | ||
const property descripciones = ["wollok.png", "haskell.png", "prolog.png","oficio.png","blandas.png","pdep.png"] | ||
// const property descripciones = self.resultados().map{r=>r.toString()} | ||
const property criterios = [{o=>o.objetos()},{o=>o.funcional()},{o=>o.logico()},{o=>o.oficio()},{o=>o.blandas()},{o=>o.general()} ] | ||
|
||
method resultados() = criterios.map({c=>opiniones.sum(c)/opiniones.size()}) | ||
} |