DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports Events Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones AWS Cloud
by AWS Developer Relations
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones
AWS Cloud
by AWS Developer Relations
  1. DZone
  2. Coding
  3. Java
  4. Well-Written Java 8, 8 Ways

Well-Written Java 8, 8 Ways

Continuing the Java discussion backing it up with facts, tools and answers. Link this to the other Java comment explosions.

Tim Spann user avatar by
Tim Spann
CORE ·
Apr. 19, 16 · Opinion
Like (42)
Save
Tweet
Share
34.11K Views

Join the DZone community and get the full member experience.

Join For Free

You can do it. Write Better Code.

It's hard, but there are tools, techniques, and tool kits to help.

I love Scala, Case Classes (okay the 22 field thing is an issue, especially when I want to model Twitter JSON) and val. That alone made it so much cleaner to write then Java. Write Scala code.   Think Functionally. Use what you learn and like in Scala in Java.

Say you are at a large enterprise, they can't get off Java that easy. Hundreds of Java developers can't all be functional programmers writing Scala.

You can make Java 8 really strong.

  1. Follow the Right Guidelines (12 Factor Apps, Reactive Programming, SOLID, TDD, AntiFragile, microservices)

  2. Use the Right Infrastructure (Containers/Docker, CloudFoundry/PaaS, Mesos, YARN, NoSQL, Hadoop, Geode, Redis)

  3. Use the Right Frameworks (Lagom, Spring Boot, Play, DropWizard, JHipster)

  4. Use the Right Tools (IntelliJ, Gradle, SBT). Never create a singleton, toString method or JavaBean set/get from scratch.

  5. Use the Right Libraries and Accelerators (Immutables, Google Auto, Cyclops-React, RetroFit, Spring Cloud Netflix, Guava, Project Lombok, Project Reactor, Chronicle Maps, LMAX Disruptor, Vertx)

  6. Use the Functional Force (Java 8 Lambdas, Javaslang)

  7. Use Java 8 for Big Data (Spark, Flink, Kakfa, Akka)

  8. Use Java for Non-JEE Internal Apps (IoT, Android, Big Data, Deep Learning)

Remember, a few companies might still be using a little Java: Google, AOL, ebay, Square,... You may find a few repositories for Java here.

Oh and unlike, say, Perl, Java isn't afraid to do some serious upgrades and changes like adding cool things from other languages and just fixing stuff.

Java (programming language)

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • Microservices 101: Transactional Outbox and Inbox
  • Fixing Bottlenecks in Your Microservices App Flows
  • Stress Testing Tutorial: Comprehensive Guide With Best Practices
  • Public Key and Private Key Pairs: Know the Technical Difference

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends: