Jakov Semenski

ChatGPT and Java: A Match Made in Heaven or Hell?

We prompted ChatGPT to act as a Linux terminal. Then we ran a Spring Boot app, curled an API, and queried a database—all inside the chat.

ChatGPT and Java: A Match Made in Heaven or Hell?
#1about 6 minutes

Understanding ChatGPT and its rapid growth

ChatGPT is an AI model built on GPT-3 that gained one million users in just five days, demonstrating its massive potential and capabilities.

#2about 4 minutes

Generating and refactoring a Java REST controller

A live demonstration shows how to prompt ChatGPT to create a Spring Boot controller, refactor it with Java streams, and extract logic into a separate service.

#3about 6 minutes

Automating unit and integration test creation

ChatGPT can generate unit tests using Mockito and integration tests with WireMock or Spring Cloud Contract based on previously created code.

#4about 8 minutes

Generating project structures, diagrams, and deployment files

The tool can outline a full project directory structure, generate UML class and sequence diagrams using Mermaid syntax, and create deployment files like Helm charts.

#5about 8 minutes

Simulating a running application in a terminal

By instructing ChatGPT to act as a Linux terminal, you can simulate starting a Spring Boot application and interacting with it via cURL commands.

#6about 5 minutes

Using ChatGPT as an interactive learning tool

ChatGPT can explain technical concepts like Java 17 features and design patterns with code examples, and can even adopt an entertaining persona for engagement.

#7about 5 minutes

Preparing for a technical interview with ChatGPT

The AI can act as an interviewer by asking theoretical and coding questions for Java and Spring, then providing feedback on your answers.

#8about 5 minutes

Understanding the limitations and risks of ChatGPT

Key limitations include handling large projects, frequent bugs, monetization plans, privacy concerns, and a lack of up-to-date knowledge.

#9about 1 minute

The right way to leverage AI in development

Use AI for boilerplate code and learning, but avoid blindly copy-pasting solutions or exposing confidential information to maintain code quality and security.

#10about 8 minutes

Q&A on ethics, security, and business models

The Q&A session covers ethical misbehavior, security concerns when using AI-generated code, and potential future business models for the tool.

Related jobs
Jobs that call for the skills explored in this talk.

Software Engineer

tree-IT GmbH
Bad Neustadt an der Saale, Germany

Intermediate
Senior

Featured Partners

Related Articles

View all articles
LM
Luis Minvielle
The Top ChatGPT Plugins for Developers in 2023
As a software developer, you know that staying ahead of the curve and increasing productivity are crucial to prosperity in a constantly evolving tech industry. But with so many tools and platforms available, it can be overwhelming to figure out where...
The Top ChatGPT Plugins for Developers in 2023
EM
Eli McGarvie
16 Ways Developers Can Use ChatGPT-4 and GPT-4o
ChatGPT has been busy getting new designations. If you’ve been scrolling on 𝕏 over the last week, then you’ve seen the ChatGPT-4o announcement and probably thought of Joaquin Phoenix’s virtual girlfriend on Her.Beyond the references to flicks, the la...
16 Ways Developers Can Use ChatGPT-4 and GPT-4o
AB
Adrien Book
Top 5 ChatGPT Plugins for Developers
The last few weeks have been very interesting in the AI space. We saw the release of a new updated version of ChatGPT from GPT-3.5 to GPT-4. Within a couple of days, Google soft-launched their competitor AI chatbot, Bard (available in the US and UK)....
Top 5 ChatGPT Plugins for Developers
EM
Eli McGarvie
9 Best ChatGPT-4 Extensions For Developers (2023)
In 2022, ChatGPT officially opened to the public. Some people panicked, some people were excited, and some people started making chrome extensions. While ChatGPT can pass law school exams and should be getting paid as a level 3 Google engineer, it’s ...
9 Best ChatGPT-4 Extensions For Developers (2023)

From learning to earning

Jobs that call for the skills explored in this talk.