
We highlight the need to create software from well organized sourcecode in Java - the focus of this course. You will ealrn how to manage a software project using free tools available in the market.
Design well-designed software by keeping it easy to understand and modify for users and developers. Ensure maintainability, efficiency, documentation, stability, and scalability to support growth and evolving requirements.
Explore core terms in software engineering—software architecture, design patterns, and design principles—highlighting how SOLID guides building maintainable, scalable, and robust Java software.
Explains each SOLID principle: single responsibility, open-closed, Liskov substitution, interface segregation, and dependency inversion, with practical examples like extending base classes and using interfaces for databases.
Check that all the sofwtare is correctly setup and ready for the project
Downlaod the required software for this course.
Download and install the Java Development Kit (JDK) from Oracle, choose JDK 21 on Windows, and verify the setup by running java version and checking JAVA_HOME.
Install and configure Apache Maven, using the Maven wrapper with Spring Boot or set it up manually, then download, extract, test mvn version, and set M2_HOME and PATH.
Download, unzip, and run the optional WildFly application server with standalone.bat, ensure JAVA_HOME is set, and verify access at localhost:8080 and the admin console.
Install postman to test API endpoints and optionally use cloud. Create a GitHub account to version-control code and enable rollback; prepare Java, Maven, and an IDE for Spring Boot setup.
Set up a Maven web project using spring boot by generating a starter with start.spring.io, selecting Java 21, and adding spring web, then import the downloaded Maven project into Eclipse.
Explore the Eclipse project structure, focusing on the Java folder with the com.udemy.solid.passport.app package, build with Maven, and run the main class to start the Tomcat server on localhost:8080.
Learn to set up Git and GitHub for collaborative software design; initialize a repository, track changes with commits, and push to a remote origin using the main branch.
Explore the single responsibility principle: a class should perform one task and have one reason to change, modeling only passport details without validation or database logic.
Build a passport entity by creating a Passport class with first name, last name, date of birth, passport number, issue date, and expiry date in an entity package.
Identify how a passport class merges data and persistence logic, revealing single responsibility principle violations. Explain isolating data into a separate class and removing persistence concerns to reduce maintenance risk.
Apply the single responsibility principle by moving applicant details to a new applicant details class, keeping passport with number, issue date, and expiry date.
Master the open-closed principle by extending existing code with new subclasses rather than modifying it, and apply this to a notification service that reports passport application status.
Create a Spring notification service in a services package to send email via a simple method and expose an api endpoint for testing.
Create a Spring REST controller to expose a get endpoint /send, invoke the notification service's send email method, and return a string response to the browser.
Explore exposing a notification service endpoint with Spring Boot, test via Postman, and adopt constructor injection for better testability, replacing field injection.
Refactors the notification service to model a notification request with channel, recipient, and content, adds a notification channel enum (email), and uses a switch to send emails.
Implement a generic send method in the notification service that switches on the channel via a REST API endpoint, handles email via SMTP, and returns a JSON-serialized notification request.
Update the notifications controller to call the notification service via the send endpoint, passing the channel as a request parameter and receiving a JSON object.
Explore how adding new notification channels like SMS and WhatsApp can violate the open-closed principle, and learn to extend functionality via interfaces rather than modifying the base service.
Define a notification interface with a send method and channel support checks to enable email, WhatsApp, and SMS. Refactor the notification service to delegate sending to channel implementations.
This lecture shows extending a notification system for WhatsApp and SMS under the open-closed principle, with new services implementing the notifications contract without altering the existing code.
Explore the Liskov substitution principle (LSP) by modeling passport types—ordinary, child, and diplomatic—and show how derived classes replace the parent without changing system behavior, including silent errors.
Create a validity service to compute a passport's expiry from the issue date for a minor's, diplomatic, and ordinary passport types, using constructors and getters.
Extend a passport base class with a validity controller and a diplomatic passport. This example exposes a Liskov substitution principle violation when the diplomatic passport yields a 10-year expiry.
Fixes an LSP violation in a Java passport example by making validity depend on type, using today's date as issue date and a type-based expiry rule.
Align the passport class with LSP by updating constructors and types, rename the controller to passport controller, and verify API calls using type parameters such as diplomatic, ordinary, and child.
Abstract the base passport class and instantiate only its child types—diplomatic, ordinary, and minor—to respect the Liskov Substitution Principle and prepare for ISP.
Remember to commit your changes and document each class update with commit messages, including ordinary passport and minor passport classes, then push before moving to DISCOV and interface segregation principle.
Explore the interface segregation principle by splitting interfaces into smaller ones so classes implement only the methods they need, using passport application system with initialize, resume, save, and submit stages.
Explore the interface segregation principle by refactoring a large passport application interface into focused contracts, and implement init, resume, save, and submit methods within a service class.
Split the passport application interface into smaller interfaces to apply the interface segregation principle, implementing only initialize and save for a new application, with resume and submit as separate interfaces.
Create a passport processing controller in a Java application, wiring services via constructor injection, exposing an init endpoint, and handling bean naming conflicts when multiple implementations exist.
Explore the dependency inversion principle by decoupling high-level and low-level modules through abstractions, using a logging service example and a passport application notification system.
Apply open-closed and dependency inversion principles to the notification service, refactoring the send method to accept recipient and message for email, sms, and whatsapp, and update contracts to pass data.
Update the notifications controller to accept channel, recipient, and message via request parameters, while preserving DIP through abstracted sending logic and consistent service contracts.
Set up the java mail service by adding the spring mail dependency to the pom, then configure spring.mail properties (host, port, username, app password) and smtp with tls.
Update the email notification service to send a simple mail message using Java mail sender, with from and to addresses from properties, ready for migration to SendGrid or Amazon SES.
Are you ready to take your Java coding skills to a professional level?
This course, “SOLID in Java: Professional Software Design,” will guide you step-by-step through mastering the five SOLID principles - the foundation of clean, maintainable, and scalable object-oriented software design.
Whether you’re a beginner looking to understand the “why” behind clean coding or an experienced Java developer wanting to refine your craft, this course is built to help you write code that is flexible, testable, and easy to improve over time.
You’ll start by learning each principle - Single Responsibility, Open/Closed, Liskov Substitution, Interface Segregation, and Dependency Inversion, through clear explanations and real-world Java examples. You’ll see how each principle helps you eliminate code duplication, reduce bugs, and make your applications easier to extend without breaking existing functionality.
But professional software development is more than just great design. It’s also about version control and team collaboration. That’s why you’ll also learn to use Git, the industry-standard tool for tracking changes, managing branches, and collaborating on projects effectively. You’ll gain hands-on experience committing changes, and maintaining clean project histories, just like real developers in modern software teams.
By the end of this course, you’ll be able to confidently apply the SOLID principles in your Java projects and manage them using Git like a professional. You’ll not only know how to write working code, you’ll know how to design beautiful, sustainable software that grows with your users and your career.