Giter Club home page Giter Club logo

effective-java's Introduction

README

Build Status

Sample example from Effective Java book.

Project template and aggregation

We build a project template.

This template is based on https://github.com/scoulomb/sample-maven-app. Where we did following modifications:

mvn exec

We can execute with maven exec rather than generating a jar file: See https://stackoverflow.com/questions/15869784/how-to-run-a-maven-created-jar-file-using-just-the-command-line. As stated here: https://github.com/scoulomb/sample-maven-app#some-notes

Then we should do

mvn exec:java

Here we run a plugin goal directly we should do before

mvn clean install

or

cd my-app
mvn clean install exec:java

Use aggregation

We can aggregate several poms. It is described here: https://stackoverflow.com/questions/10665936/maven-how-to-build-multiple-independent-maven-projects-from-one-project

But mvn exec:java will not work with aggregation.

https://stackoverflow.com/questions/1469004/mvn-execjava-on-aggregate-pom

So we will use unit test

and run mvn clean install

Docker

We modified docker file to run all sub-project

So that we can run full project with

docker compose up --build

We can also run from IDE

Configure project as maven in Pycharm.

Using book reference

Note we can clone and use IDE directly, for instance:

https://github.com/jbloch/effective-java-3e-source-code/blob/master/src/effectivejava/chapter6/item34/Operation.java

But I use this repo to add more tests,

It can also be runned when class are duplicated via maven or IDE. See example.

Some issues with rate limit in travis already seen

Followed procedure here: https://blog.travis-ci.com/docker-rate-limits. To use account which can pull more than anonymous (travis ip).

See travis file.

After docker login password save here in base64:/home/vagrant/.docker/config.json

TODO

  • Copy pom to improve
  • python amd c++ parallel on lambdas
  • item 43 on lambda concluded but could read enum item to understand better
  • also mystery how when using lambda it knows it has to override applyAsDouble
  • Try parent POM
  • next chapters

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.