Code Monkey home page Code Monkey logo

better-java's People

Contributors

alfasin avatar blakehawkins avatar bryant1410 avatar cxxr avatar danieldietrich avatar gohnicho avatar kamalkishor1991 avatar lptk avatar machineloop avatar martiansnoop avatar mortonfox avatar open-objects avatar parroty avatar poulwiel avatar readmecritic avatar ruanjf avatar verhas avatar viswans83 avatar winterbe avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

better-java's Issues

Spring (Java-based configuration)

 It's important that you don't overuse Spring because of its XML-based configuration format.

Since Spring 3, you can have a Java-based configuration.

#1

public class DataHolder {
public final String data;

public DataHolder(String data) {
    this.data = data;
}

}

If it has many properties , create many construct method ? it similar to use get()/set() way

Optional should only be used as a Return Type

The JSR-335 EG felt fairly strongly that Optional should not be on any more than needed to support the optional-return idiom only.
Someone suggested maybe even renaming it to OptionalReturn"

Any thoughts on this?

A resource to make better java even better...

A lot of people who want to learn some of the more advanced concepts in Java would also land on your page looking for something basic. I have a really really good YouTube series on basics of Java that I think the community will find to be really useful. If it isn't too much to ask, could you kindly add a link to this YouTube playlist in your repo
https://www.youtube.com/playlist?list=PLonJJ3BVjZW4QfXVLHe6ewOxLne_XFGWB

(stats) 150k people currently subscribed :)
Thank You

Rekord and Octarine

Please consider Rekord/Octarine for inclusion in your list of libraries:

http://github.com/samirtalwar/rekord
http://github.com/poetix/octarine

See in particular this article explaining why "Java Beans Must Die" and proposing Rekord as an alternative way of working with value types:

http://monospacedmonologues.com/post/86221882520/rekord-java-beans-must-die

Better Java is, I believe, Java without beans (even in a "C struct" style) and builders, an anti-pattern we've been saddling ourselves with for much too long.

Collections and Generics section

It would be useful to have a small section detailing different collections and generics in java and maybe a small blurb regarding each collection

Review "Avoid lots of Util classes"

I failed to see how the suggested alternative to Util classes is better. in fact it is much worse in my POV it pollute the class public API with concerns that ere irrelevant to its usage.

A better suggestion to address the problem would be to look for an existing library that offers better / more general solution to the problem at hand. And if no library offer the functionality you may want to do a contribution to one of them.

Builder method and inheritance

I've been testing out this method on a fairly standard school assignment, the only issue I'm encountering is how to handle inheritance.

Let's say I have an Employee class with an EmployeeBuilder, with a firstname, lastname, hiredate and salary, I then extend this class into a supervisor class and add a bonusrate member to it, should I extend the EmployeeBuilder or just create a new SupervisorBuilder from scratch?

The specific problem I've run into is the SupervisorBuilder methods return the Employee class instead of the Supervisor class.

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.