scala_dojo_04_implicitjava
文件大小: unknow
源码售价: 5 个金币 积分规则     积分充值
资源说明:

Summary

Today we look at how easily you can write Scala that works with Java code as well as looking at a powerful language feature, implicit conversions and parameters.

Implicit Java

This week you will find some Java classes as well as the usual Scala ones. You will be implementing functions on the UserLookup Scala class, which itself queries a Java implemented DataSource class through its findUsersmethod, from which will be returned a Java collection of User's. As usual work though by getting the tests to pass one at a time, and keep an eye on the couple of comments which hint at the direction you may want to take.

Building the project

You can either build and run the tests with either Maven or the Simple Build Tool. SBT is incredabilly easy to to install and it is highly recommended you give it a try as it is the standard Scala build tool.

Getting the code

To get started you can go to the repo and fork the project into your own github repository by clicking the fork button on the top right. This is the preferred method as it means we can easily share our solutions with each other but if you don't wish to do this you can create a local copy from my repository by simply executing the git clone command.
  1. go to https://github.com/leneghan/scala_dojo_04_implicitjava
  2. click fork button on the top right of the screen
  3. git clone https://github.com/<GIT_HUB_NAME>/scala_dojo_04_implicitjava.git
or
git clone https://github.com/leneghan/scala_dojo_04_implicitjava.git

Getting started with git

If you dont have git currently installed you can download it here from the git website. When using Git I found this one page cheat sheet useful, it also comes with some pointers about good VCS practice, Git_Cheat_Sheet_grey.pdf

Resources

Labels:


本源码包内暂不包含可直接显示的源代码文件,请下载源码包。