Loading...
「ツール」は右上に移動しました。
利用したサーバー: natural-voltaic-titanium
26いいね 2217回再生

Java Clean Code Tutorial #9 - STOP Writing Code!!

I always feel its good practice for a developer to take some time to understand and familiarise themselves with some reputable common and heavily used libraries. These libraries most likely contain utility classes and methods that will make your life easier. For example, I like apache commons. There are hundreds of official open source java libraries that are available via build tools; maven, gradle etc.

I also understand that sometimes one might not want to bring down a dependency just for a few lines of code. This is totally fine if you are restricted to certain vetted dependencies or are required to keep the final JAR to a the absolute minimum size.

Before you write a utility method, just have a check if the function has already been written and contained in one of the shared libraries :)

Software is written once and read hundreds of times. So let’s make our fellow developers life easier.

Why clean code?
Simple. Clean code allows us to confidently make changes and deliver more features quickly to our customers.

Don’t forget to subscribe for your regular dose of Java Tutorials!
STOP THE ROT.

Till episode 10,

Philip

For example have a look at Apache Commons Lang3 commons.apache.org/proper/commons-lang/

コメント