cxxr / better-java Goto Github PK
View Code? Open in Web Editor NEWResources for writing modern Java
License: Other
Resources for writing modern Java
License: Other
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.
Here's an excellent assertions library for testing, in the spirit of Hamcrest:
Also mention EasyMock as another alternative. Idea from PR #49.
Regarding section on Code quality, I am not sure that the suggested tools scan for security issues. Adding some tool that performs basic security scanning may be a good idea - for example, something like Contrast for Eclipse: http://marketplace.eclipse.org/content/contrast-eclipse
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.
https://blog.seancassidy.me/better-java.html
Warning solve this
Your connection is not private
Attackers might be trying to steal your information from blog.seancassidy.me (for example, passwords, messages, or credit cards).
Javaposse podcasted is dead since january.
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.
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?
Generic types (and its contextual brothers Parameterised Type and Raw Type) were introduced in Java 5 but plays a strong role in 7 and 8. Some eye bird information about it would be appreciated.
Possible reference: http://www.amazon.com/Java-Generics-Collections-Maurice-Naftalin/dp/0596527756
Wanted to suggest Airline, for a command line interface builder. Python developers are used to using something like clize for this.
CompleteableFuture is way better than Guava's ListenableFuture. Add a section on futures.
Hi, I want to recommend another great tool to do better Java:
https://github.com/WorksApplications/icefig
If you like it, could you mention it to let more people know?
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
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
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.
It would be useful to have a small section detailing different collections and generics in java and maybe a small blurb regarding each collection
I am not the biggest fan of the Eclipse EMF plugin. But for some XML/XSD tasks I used it and generated model code, processors, validators from the XSD and it helped a lot. I am sure that some people, who are new to model driven programming start to create classes for each models manually. Maybe you can mention it:
http://www.vogella.com/tutorials/EclipseEMF/article.html
or
https://eclipse.org/modeling/emf/
If we always use imitable object, how to change one filed value in this object? copy a instance ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.