Reynald shows various ways to refactor code. This includes renaming variables by using the refactor feature rather than find and replace. Learn how to extract code and automatically create method studs to insert them.
- [Instructor] Sometimes you need to change…your code around to make it more,…not only just efficient but easier to read…and that might mean renaming some variables…and moving some methods around…but unfortunately because they might have…some dependencies on other variables…or other methods, it becomes a bit of a headache to do so…and that's where refactoring comes into play.…Refactoring let's you manipulate…your code to make it a little bit more readable…while taking care of the dependencies…without you having to deal with that yourself.…
Let's take a look through an example.…Let's start off by creating an artist class.…And to do that we want to go to our projects file…and right click over here…on working with clean code, choose new…and select java class.…And this will be an artist,…we don't know what type of artist…it could be a comedian, musician, actor, whatever.…Now within this class,…we're going to have one simple property…and it's the name.…
Let's save that and hop on over to our working…with clean code file and here…
- What is NetBeans?
- Creating templates
- Importing and exporting projects
- Debugging code
- Creating a project
- Creating a GridPane layout
- Creating the UI
- Deploying and executing an app
- Organizing the environment
Skill Level Beginner
1. Intro to NetBeans
2. Templates, Projects, and Debugging
3. Managing Services
4. Desktop Development: JavaFX
5. Web Development - PrimeFaces
6. Working with Clean Code
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.