Giter Club home page Giter Club logo

vavr-docs's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

vavr-docs's Issues

update of the match instanceOf

Tried to update this myself but I cant push so
line 248 of usage_guide it should look something like

import static io.vavr.API.$;
import static io.vavr.API.Case;
import static io.vavr.API.Match;
import static io.vavr.Predicates.instanceOf;

A result = Try.of(this::bunchOfWork)
    .recover(x -> Match(x).of(
        Case($(instanceOf(Exception_1.class)), t -> somethingWithException(t)),
        Case($(instanceOf(Exception_2.class)), t -> somethingWithException(t)),
        Case($(instanceOf(Exception_n.class)), t -> somethingWithException(t))
    ))
    .getOrElse(other);

I added the imports since there are quite a few libaries out there with a static method instanceOf and it took a while to find the right one.

Add Multimaps to docs

At the moment the multimaps are a hidden feature (no mention in the docs that I could find.)

Thank you very much for providing vavr by the way. πŸ‘

Semantic Versioning

  • The docs version is synced with core Javaslang
  • Unfinished releases will have an -alpha123 (early stage, will probably change) or -beta123 (partly finished, might change) suffix

Add versions plugin to pom

Depends on #1

Add the following property to the pom:

<maven.versions.version>2.1</maven.versions.version>

Add the following plugin to the plugins section:

<plugin>
    <groupId>org.codehaus.mojo</groupId>
    <artifactId>versions-maven-plugin</artifactId>
    <version>${maven.versions.version}</version>
</plugin>

Github Pages Discussion

@danieldietrich ask about github pages

Using github pages sounds good. How does it work? Can we trigger the build on travis-ci on a pull/commit and deploy to the github pages? Is the url then javaslang-docs.github.io? I will create a subdomain doc.javaslang.com or maybe javaslang.com/docs to refer to the github pages.

We need to discuss about github pages usage and is it suitable for javaslang documentation.

cc
@RobWin
@ruslansennov

Dependency Convergence

Currently we have an issue with the version convergence of the asciidoctorj dependency and the transitive asciidoctorj dependency of the asciidoctorj-pdf plugin.

We should explicitly include the need dependencies in our pom and not rely on any transitive dependency. Especially we should directly include asciidoctorj. But we should not include any SNAPSHOT version of a 3rd party library.

We need a maven build mechanism, which fails the build if there are any conflicting transitive dependencies. This can be accomplished for example with the maven-enforcer-plugin (see also this). Here is an example:

<plugin>
  <groupId>org.apache.maven.plugins</groupId>
  <artifactId>maven-enforcer-plugin</artifactId>
  <version>1.3.1</version>
  <executions>
    <execution>
      <id>enforce</id>
      <configuration>
        <rules>
          <DependencyConvergence/>
        </rules>
      </configuration>
      <goals>
        <goal>enforce</goal>
      </goals>
    </execution>
  </executions>
</plugin>

Is there a better way to do it than with the maven-enforcer-plugin?

Note: We shouldn't shade any dependencies.

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.