Practice what’s new in Java

The joy of Kotlin (20 Part Series)

1 How Kotlin makes editing your Gradle build less frustrating
2 Better dependency management in Android Studio 3.5 with Gradle buildSrcVersions
16 more parts…
3 with(ConfigObject) { “Language $KOTLIN”.isSparkingJoy() }
4 Use the Gradle build-scan!
5 Configuring Gradle with “gradle.properties”
6 Kotlin is Not (Only) Android
7 How to learn Kotlin: browser vs IDE, books vs tutorials, for newbies and Java devs
8 How to become Effective with Kotlin? Answers from Marcin Moskala
9 From marketing to backend developer in one year – the story of Adele Carpenter
10 Contribute to the Kotlin Libraries Playground for #hacktoberfest
11 Comment apprendre Kotlin? IDE et navigateur, livres et tutoriels, débutants et dev Java
12 From Java to Kotlin in 20 minutes ️
13 De Java à Kotlin en 20 minutes
14 How to build a GraphQL Gateway with Spring Boot and Kotlin
15 Practice what’s new in Java
16 How to Write a Command-Line Tool with Kotlin Multiplatform
17 GitHub Actions: a New Hope in YAML Programming Wasteland
18 Is There an Equivalent of Spring Boot for Kotlin?
19 Weeks of Debugging Your Build can Save Hours of Learning Gradle
20 Typesafe Github Workflows explained to a 5 years old

You have read about the new features that have arrived in Java world but didn’t have the opportunity to learn them yet? I have a challenge for you.

What’s new in Java world

I won’t describe what’s new in Java world because this article is hard to surpass:

图片[1]-Practice what's new in Java - 拾光赋-拾光赋

20 Reasons to Move On from Java 8

Andrew (he/him) ・ Nov 23 ’19

#java #news

How to practice it?

But reading about what’s new is not enough.

Alas, your project at work may be stuck with Java 11 or even Java 8.

In a previous article, I shared the tip that if you want to learn more about a programming language – or here its evolution – you should write unit tests about them.

图片[2]-Practice what's new in Java - 拾光赋-拾光赋

Unit test your learning

Jean-Michel ‍️ Fayard ・ May 28 ’21

#javascript #beginners #career #programming

This is exactly what I’ve started to do here:

jmfayard / java16-playground

Life is too short for Java 8

java16-playground

Life is too short for Java 8

Playground project demonstrating the new features from Java 8 to Java 16

See article: Practice what’s new in Java

Contributions welcome, see open issues

Reference: https://dev.to/awwsmm/20-reasons-to-move-on-from-java-8-1dio


View on GitHub

If you look in the src/main/test folder, you will find snippets like this one:

public class RecordJava14 {
    record Employee (String name, int age, String department) {
    }

    @Test
    void createRecord() {
        var patrik = new Employee("Patrick", 36, "Marketing");
        assertThat(patrik.toString()).isEqualTo("Employee[name=Patrick, age=36, department=Marketing]");
        assertThat(patrik.name()).isEqualTo("Patrick");

        var clone = new Employee("Patrick", 36, "Marketing");
        assertThat(clone).isEqualTo(patrik);
    }
}

Enter fullscreen mode Exit fullscreen mode

This gives you a view of the features of modern Java that are already covered:

Your challenge

If you want to learn more about modern Java, I challenge you to pick one of the remaining issues and implement it.

https://github.com/jmfayard/java16-playground/issues

(of course, you can also create a new issue)

The joy of Kotlin (20 Part Series)

1 How Kotlin makes editing your Gradle build less frustrating
2 Better dependency management in Android Studio 3.5 with Gradle buildSrcVersions
16 more parts…
3 with(ConfigObject) { “Language $KOTLIN”.isSparkingJoy() }
4 Use the Gradle build-scan!
5 Configuring Gradle with “gradle.properties”
6 Kotlin is Not (Only) Android
7 How to learn Kotlin: browser vs IDE, books vs tutorials, for newbies and Java devs
8 How to become Effective with Kotlin? Answers from Marcin Moskala
9 From marketing to backend developer in one year – the story of Adele Carpenter
10 Contribute to the Kotlin Libraries Playground for #hacktoberfest
11 Comment apprendre Kotlin? IDE et navigateur, livres et tutoriels, débutants et dev Java
12 From Java to Kotlin in 20 minutes ️
13 De Java à Kotlin en 20 minutes
14 How to build a GraphQL Gateway with Spring Boot and Kotlin
15 Practice what’s new in Java
16 How to Write a Command-Line Tool with Kotlin Multiplatform
17 GitHub Actions: a New Hope in YAML Programming Wasteland
18 Is There an Equivalent of Spring Boot for Kotlin?
19 Weeks of Debugging Your Build can Save Hours of Learning Gradle
20 Typesafe Github Workflows explained to a 5 years old

原文链接:Practice what’s new in Java

© 版权声明
THE END
喜欢就支持一下吧
点赞10 分享
评论 抢沙发

请登录后发表评论

    暂无评论内容