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
_"es generación Lazy"_ | |
tienes razón y quizás la he obviado injustamente, es una buena herramienta, pero piensa | |
por ejemplo que en C#, tú puedes escribir igualmente lo siguiente: | |
{{ | |
var ApiGit = new JsonProvider<Repo>("http..."); | |
var repo = ApiGit.Load("https://api.github.com/repos/"+user+"/"+repoName); | |
var gIndex = 3 * repo.Forks + repo.StargazersCount + repo.WatchersCount; | |
}} | |
Entonces, VS te dará errores de tipo, pero *si tienes en background el "generador de wrappers"* |
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
import Prelude hiding (map) | |
-- Generalizar el mapeo (por ejemplo) consiste en definirlo | |
class Mappeable f where | |
map :: (a -> b) -> f a -> f b | |
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
*** AVISO, si lees ésto podrías llegar a desaprender *** | |
Cuidado con las mónadas, yo estoy bastante seguro de no entenderlas (bien). | |
Me explico, el concepto "por definición" de mónada es bastante simple, | |
bastante confuso al principio (como todo, supongo) pero luego es simple | |
(simple en el sentido de que las reglas que se aplican son sencillas, | |
luego cada mónada ya... puede ser infumable de entender). | |
(Ojo, lo que sigue hasta el siguiente aviso es una explicación CONCEPTUAL, |
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
// La currificación (estilo Haskell) se consigue | |
// de forma efectiva con sólo separar los | |
// argumentos 1º, 2º, ... con paréntesis en lugar | |
// de comas. | |
// | |
// Por ejemplo, en lugar de | |
// | |
// miFuncion(arg1, arg2, arg3) | |
// | |
// Hacer |
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
# First install homebrew | |
ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)" | |
# Choose the name of the virtualenv as simplecv | |
virtualenv simplecv --no-site-packages | |
source simplecv/bin/activate | |
# This activates the virtualenv; your command prompt should change from `$` to `(simplecv)$` | |
# Next the dependencies | |
sudo easy_install pip # Can be ignored, if pip already present |
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
// Example program | |
#include <iostream> | |
#include <string> | |
#include <vector> | |
#include <type_traits> | |
//--------------------- | |
// Maybe and MyVector, two totally unrelated classes whose only commanilty is that they are both type constructors of the same arity (e.g. 1) and order (e.g. 1). | |
//--------------------- | |
template< typename T > |
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
// Fill out your copyright notice in the Description page of Project Settings. | |
using System; | |
using System.IO; | |
using UnrealBuildTool; | |
public class codevr : ModuleRules | |
{ | |
public codevr(ReadOnlyTargetRules Target) : base(Target) | |
{ | |
PCHUsage = PCHUsageMode.UseExplicitOrSharedPCHs; |
- Lean and Functional Programming - Bryan Hunter
- A tour of the language landscape - Yan Cui
- Enterprise Tic-Tac-Toe -- A functional approach - Scott Wlaschin
- Learning from Haskell - Venkat Subramaniam
- Computation expression in context : a history of the otter king - Andrea Magnorsky
- Type-Driven Development - Mark Seemann
- F-Words - Functional Programming Terms With More Than Four Letters - Calvin Bottoms
- Reactive Game Development For The Discerning Hipster - Bodil Stokke
- Erlang Patterns Matching Business Needs -- Torben Hoffman
- Equivalence Classes, xUnit.net, FsCheck, Property-Based Testing -- Mark Seemann
- Functional programming design patterns -- Scott Wlaschin
- Write Your Own Compiler in 24 Hours -- Phillip Trelford
OlderNewer