Exploring general development principles


show more While object-oriented design programming doesn't have hard-and-fast rules, several key principles will make maintaining and improving code easier. Examples include: only have one part of your system deal with a specific problem; don't write any code unless it serves a specific purpose; and don't write excessively long comments on code. Watch this online video to start exploring general development principles. show less
please wait ...

Exploring general development principles

First, we're going to go through some general development principles, some obvious and some not so obvious. Now, one well-known idea in software development--and not just limited to Object-Oriented Design but still worth mentioning--is D-R-Y or DRY: Don't Repeat Yourself. Now, the very obvious impact of this is we don't copy and paste unchanged blocks of code from one place to another, we contain them in functions or methods. But what's not so obvious is the idea that this can be applied in multiple areas.

We don't just want to avoid duplication in code, but in our database schemas, in our diagrams, in our documentation, and more than that, there should be a single source of truth. There should be one place in our system that deals with the particular problem. One place that that gets taken care of, whether that's handling a business problem or storing or calculating a piece of data. And then there's YAGNI, Y-A-G-N-I: You Ain't Gonna Need It. Solve the problems that yo...

Exploring general development principles
Video duration: 3m 55s 3h 1m Intermediate

Viewers:

While object-oriented design programming doesn't have hard-and-fast rules, several key principles will make maintaining and improving code easier. Examples include: only have one part of your system deal with a specific problem; don't write any code unless it serves a specific purpose; and don't write excessively long comments on code. Watch this online video to start exploring general development principles.

Subject:
Developer
Software:
Java
Author:
please wait ...