加载中
《Scala in action》学习笔记

请参考我的博客 https://barudisshu.github.io 项目代码 http://git.oschina.net/Barudisshu/Scala-Tutorial

2017/01/04 11:12
279
Archlinux系统快速安装

Just a simple bash script wizard to install Arch Linux after you have booted on the official Arch Linux install media. With this script, you can install Arch Linux with 2 lines ...

2016/07/14 12:20
313
Scala类型系统——高级类类型(higher-kinded types)

高级类类型(higher-kinded types)是编程中必备的技能,以及大部分框架都实现了higher-kinded写法,其主要作用是对一组非原生类型类进行抽象,再结合高阶函数(higher-order functions)和组合函...

2016/06/13 15:39
3.9K
Scala implement Comb Sort

/** * * @param arr 待排序的数据 * @param o 隐式转换 * @tparam T type * @return */ def combSort[T](arr: Array[T])(implicit o: Ordering[...

2016/03/18 20:19
121
关于PROPAGATION_REQUIRES_NEW和PROPAGATION_NESTED事务的比较

最近在用spring-data-jpa做事务处理时,由于两个事务都处理了同一个表,其中一个事务加锁,另外一个事务不加锁,于是在调用的另外一个事务中使用了嵌套的方式,但是运行却报 JpaDialect doe...

IntelliJ Idea中使用JRebel

“不开源就是耍流氓”

2016/01/20 12:34
1.4K
Scala Monad Design Pattern

Monad的设计有几点原则: 为接口同时定义flatMap 和 map。 设计一个获取monad值的方式(模式匹配或者apply)。 符合一元法则,monadic laws。 按照说明,那么创建两个方法map和flatMap: import...

JPA复杂实体关系的构建

从JPA的角度看,实体的构建,就是关系型数据库的构建。目前的JPA2.0尚未有完全实现ER的non-identify relationship、identifying relationship功能,所以暂且不作讨论。...

JPA
2015/11/20 10:47
800
FP - Pure function vs. Closure

1. Functions containing no free variables are called pure functions. 2. Functions containing one or more free variables are called closures....

2015/10/29 11:51
152
IDEA 编辑快捷键

We have two exciting pieces of news for you today. First of all, IntelliJ IDEA 13.1 RC is now available for download, so you can try all the new features right away. By the way,...

2015/10/16 13:53
362
用Spray构建RESTful接口

学习了Scala一些基础内容后,我开始着手寻找一些比较有用的框架。大致有play2,lift,Spray这几个,本着基于最小设计的原则,我选择了Spray。数据库框架我选择Slick,中间件选择akka。...

2015/10/08 17:34
3.9K
select2组件

详情请: http://select2.github.io/select2/

2015/08/18 16:45
4.5K
AOP切面编程

AOP主要用于模块化一些常见的横切关注点——事务管理、安全机制、缓存、并发控制以及轨迹追踪。AOP全称 Aspect Oriented Programming,它属于函数式编程的一种衍生泛型。实际开发中主要用于对...

Scala 高阶函数(high-order function)剖析

Scala中的函数作为一等公民,即第一类函数(first-class function)。作为一门函数式编程(FP,Functional Programming)语言,Scala鼓励EOP编程(Expression-Oriented Programming),为了简化输入...

2015/06/30 16:41
1.4K
递归:兑换问题

28人买可乐喝,3个可乐瓶盖可以换一瓶可乐,那么要买多少瓶可乐,够28人喝?假如是50人,又需要买多少瓶可乐?(需写出分析思路)

2015/05/26 14:40
360
关于Scala多重继承的菱形问题

菱形问题一直是编程语言中非常难着手的问题,比如C++和common lisp中的多重继承(multiple inheritance)。

Scala method call syntax

Because Scala is a shell-like language , and sometime it puzzled me while invoking a method or a function . Here are some instruction in this ....

2015/05/18 18:56
133
Scala实现REST操作

本例用Scala模拟POST,GET,DELETE,OPTIONS操作,命令行通过如下形式传递参数: (post | get | delete | options) -d

2015/05/04 15:15
1.8K
第一类对象(First-class Object)

第一类公民(对象,实体,值等)是指可以在执行期创建并作为参数传递给其他函数或传入一个变数的实体。

没有更多内容

加载失败,请刷新页面

返回顶部
顶部