Skip to main content
added 243 characters in body
Source Link
Mike Nakis
  • 32.8k
  • 7
  • 82
  • 116

Yes, you understand Clean Code right, but your examples are quite a bit over the top.

Here is what you start with:

PageReloaderForPagesDisplayingVectorGraphicsThatAreUsedInTheEditorComments PageReloaderForPagesDisplayingVectorGraphicsThatAreUsedInTheEditorDescriptions 

A "Page Reloader" presumablyIn your system you probably don't have many kinds of reloaders, you probably only have page reloaders, so the first occurence of "Page" is redundant. This leaves you with:

ReloaderForPagesDisplayingVectorGraphicsThatAreUsedInTheEditorComments ReloaderForPagesDisplayingVectorGraphicsThatAreUsedInTheEditorDescriptions 

And since a reloader always reloads pages, so the second occurence of "Pages" part is redundant, too. This leaves you with:

PageReloaderForDisplayingVectorGraphicsThatAreUsedInTheEditorCommentsReloaderForDisplayingVectorGraphicsThatAreUsedInTheEditorComments PageReloaderForDisplayingVectorGraphicsThatAreUsedInTheEditorDescriptionsReloaderForDisplayingVectorGraphicsThatAreUsedInTheEditorDescriptions 

Pages are always displaying stuff, so the Displaying part is redundant, too. ThisThis leaves you with:

PageReloaderForVectorGraphicsThatAreUsedInTheEditorCommentsReloaderForVectorGraphicsThatAreUsedInTheEditorComments PageReloaderForVectorGraphicsThatAreUsedInTheEditorDescriptionsReloaderForVectorGraphicsThatAreUsedInTheEditorDescriptions 

In English, constructs like this-that-is-used-in-that can be reworded as that-this. For example, coloring-that-is-used-for-food is food-coloring. Applying this rule, to replace "Vector Graphics That Are Used In X" with "X Vector Graphics" leaves you with:

PageReloaderForEditorCommentsVectorGraphicsReloaderForEditorCommentsVectorGraphics PageReloaderForEditorDescriptionsVectorGraphicsReloaderForEditorDescriptionsVectorGraphics 

Also in English, constructs like this-for-that can be reworded as that-this. For example, bottle-for-water can be reworded as water-bottle. Applying this rule, to change "Reloader For X" to "X Reloader" leaves you with:

EditorCommentsVectorGraphicsPageReloaderEditorCommentsVectorGraphicsReloader EditorDescriptionsVectorGraphicsPageReloaderEditorDescriptionsVectorGraphicsReloader 

And then of course there may be other shortcuts you can apply.

For example, independing on your system you probably don't have many kinds of reloadersparticular problem domain. You probably only have page reloaders, so this would leave you with:

EditorCommentsVectorGraphicsReloader EditorDescriptionsVectorGraphicsReloader 

Also For example, when you speak of 'vector' in your system, it may be fairly clear that you are speaking of 'vector graphics', so this would leave you with:

EditorCommentsVectorReloader EditorDescriptionsVectorReloader 

... and I think that these are some pretty good realistically long names.

Yes, you understand Clean Code right, but your examples are quite a bit over the top.

Here is what you start with:

PageReloaderForPagesDisplayingVectorGraphicsThatAreUsedInTheEditorComments PageReloaderForPagesDisplayingVectorGraphicsThatAreUsedInTheEditorDescriptions 

A "Page Reloader" presumably reloads pages, so the "Pages" part is redundant. This leaves you with:

PageReloaderForDisplayingVectorGraphicsThatAreUsedInTheEditorComments PageReloaderForDisplayingVectorGraphicsThatAreUsedInTheEditorDescriptions 

Pages are always displaying stuff, so the Displaying part is redundant, too. This leaves you with:

PageReloaderForVectorGraphicsThatAreUsedInTheEditorComments PageReloaderForVectorGraphicsThatAreUsedInTheEditorDescriptions 

In English, constructs like this-that-is-used-in-that can be reworded as that-this. For example, coloring-that-is-used-for-food is food-coloring. Applying this rule, leaves you with:

PageReloaderForEditorCommentsVectorGraphics PageReloaderForEditorDescriptionsVectorGraphics 

Also in English, constructs like this-for-that can be reworded as that-this. For example, bottle-for-water can be reworded as water-bottle. Applying this rule, leaves you with:

EditorCommentsVectorGraphicsPageReloader EditorDescriptionsVectorGraphicsPageReloader 

And then of course there may be other shortcuts you can apply.

For example, in your system you probably don't have many kinds of reloaders. You probably only have page reloaders, so this would leave you with:

EditorCommentsVectorGraphicsReloader EditorDescriptionsVectorGraphicsReloader 

Also, when you speak of 'vector' in your system, it may be fairly clear that you are speaking of 'vector graphics', so this would leave you with:

EditorCommentsVectorReloader EditorDescriptionsVectorReloader 

... and I think that these are some pretty good realistically long names.

Yes, you understand Clean Code right, but your examples are quite a bit over the top.

Here is what you start with:

PageReloaderForPagesDisplayingVectorGraphicsThatAreUsedInTheEditorComments PageReloaderForPagesDisplayingVectorGraphicsThatAreUsedInTheEditorDescriptions 

In your system you probably don't have many kinds of reloaders, you probably only have page reloaders, so the first occurence of "Page" is redundant. This leaves you with:

ReloaderForPagesDisplayingVectorGraphicsThatAreUsedInTheEditorComments ReloaderForPagesDisplayingVectorGraphicsThatAreUsedInTheEditorDescriptions 

And since a reloader always reloads pages, the second occurence of "Pages" is redundant, too. This leaves you with:

ReloaderForDisplayingVectorGraphicsThatAreUsedInTheEditorComments ReloaderForDisplayingVectorGraphicsThatAreUsedInTheEditorDescriptions 

Pages are always displaying stuff, so the Displaying part is redundant, too. This leaves you with:

ReloaderForVectorGraphicsThatAreUsedInTheEditorComments ReloaderForVectorGraphicsThatAreUsedInTheEditorDescriptions 

In English, constructs like this-that-is-used-in-that can be reworded as that-this. For example, coloring-that-is-used-for-food is food-coloring. Applying this rule to replace "Vector Graphics That Are Used In X" with "X Vector Graphics" leaves you with:

ReloaderForEditorCommentsVectorGraphics ReloaderForEditorDescriptionsVectorGraphics 

Also in English, constructs like this-for-that can be reworded as that-this. For example, bottle-for-water can be reworded as water-bottle. Applying this rule to change "Reloader For X" to "X Reloader" leaves you with:

EditorCommentsVectorGraphicsReloader EditorDescriptionsVectorGraphicsReloader 

And then of course there may be other shortcuts you can apply, depending on your particular problem domain. For example, when you speak of 'vector' in your system, it may be fairly clear that you are speaking of 'vector graphics', so this would leave you with:

EditorCommentsVectorReloader EditorDescriptionsVectorReloader 

... and I think that these are some pretty good realistically long names.

corrected spelling (clan -> clean) and a few other changes because there's a minimum 6 char limit for edits...
Source Link

Yes, you understand ClanClean Code right, but your examples are quite a bit over the top.

Here is what you start with:

PageReloaderForPagesDisplayingVectorGraphicsThatAreUsedInTheEditorComments PageReloaderForPagesDisplayingVectorGraphicsThatAreUsedInTheEditorDescriptions 

A "Page Reloader" presumably reloads pages, so the "Pages" part is redundant. This leaves you with:

PageReloaderForDisplayingVectorGraphicsThatAreUsedInTheEditorComments PageReloaderForDisplayingVectorGraphicsThatAreUsedInTheEditorDescriptions 

Pages are always displaying stuff, so the Displaying part is redundant, too. This leaves you with:

PageReloaderForVectorGraphicsThatAreUsedInTheEditorComments PageReloaderForVectorGraphicsThatAreUsedInTheEditorDescriptions 

In English, constructs like this-that-is-used-in-that can be reworded as that-this. For example, coloring-that-is-used-for-food is food-coloring. ApplyingApplying this rule, leaves you with:

PageReloaderForEditorCommentsVectorGraphics PageReloaderForEditorDescriptionsVectorGraphics 

Also in English, constructs like this-for-that can be reworded as that-this. For example, bottle-for-water can be reworded as water-bottle. ApplyingApplying this rule, leaves you with:

EditorCommentsVectorGraphicsPageReloader EditorDescriptionsVectorGraphicsPageReloader 

And then of course there may be other shortcuts you can apply.

For example, in your system you probably don't have many kinds of reloaders, you. You probably only have page reloaders, so this would leave you with:

EditorCommentsVectorGraphicsReloader EditorDescriptionsVectorGraphicsReloader 

Also, when you speak of 'vector' in your system, it may be fairly clear that you are speaking of 'vector graphics', so this would leave you with:

EditorCommentsVectorReloader EditorDescriptionsVectorReloader 

...and and I think that these are some pretty good realistically long names.

Yes, you understand Clan Code right, but your examples are quite a bit over the top.

Here is what you start with:

PageReloaderForPagesDisplayingVectorGraphicsThatAreUsedInTheEditorComments PageReloaderForPagesDisplayingVectorGraphicsThatAreUsedInTheEditorDescriptions 

A "Page Reloader" presumably reloads pages, so the "Pages" part is redundant. This leaves you with:

PageReloaderForDisplayingVectorGraphicsThatAreUsedInTheEditorComments PageReloaderForDisplayingVectorGraphicsThatAreUsedInTheEditorDescriptions 

Pages are always displaying stuff, so the Displaying part is redundant, too. This leaves you with:

PageReloaderForVectorGraphicsThatAreUsedInTheEditorComments PageReloaderForVectorGraphicsThatAreUsedInTheEditorDescriptions 

In English, constructs like this-that-is-used-in-that can be reworded as that-this. For example, coloring-that-is-used-for-food is food-coloring. Applying this rule, leaves you with:

PageReloaderForEditorCommentsVectorGraphics PageReloaderForEditorDescriptionsVectorGraphics 

Also in English, constructs like this-for-that can be reworded as that-this. For example, bottle-for-water can be reworded as water-bottle. Applying this rule, leaves you with:

EditorCommentsVectorGraphicsPageReloader EditorDescriptionsVectorGraphicsPageReloader 

And then of course there may be other shortcuts you can apply.

For example, in your system you probably don't have many kinds of reloaders, you probably only have page reloaders, so this would leave you with:

EditorCommentsVectorGraphicsReloader EditorDescriptionsVectorGraphicsReloader 

Also, when you speak of 'vector' in your system, it may be fairly clear that you are speaking of 'vector graphics', so this would leave you with:

EditorCommentsVectorReloader EditorDescriptionsVectorReloader 

...and I think that these are some pretty good realistically long names.

Yes, you understand Clean Code right, but your examples are quite a bit over the top.

Here is what you start with:

PageReloaderForPagesDisplayingVectorGraphicsThatAreUsedInTheEditorComments PageReloaderForPagesDisplayingVectorGraphicsThatAreUsedInTheEditorDescriptions 

A "Page Reloader" presumably reloads pages, so the "Pages" part is redundant. This leaves you with:

PageReloaderForDisplayingVectorGraphicsThatAreUsedInTheEditorComments PageReloaderForDisplayingVectorGraphicsThatAreUsedInTheEditorDescriptions 

Pages are always displaying stuff, so the Displaying part is redundant, too. This leaves you with:

PageReloaderForVectorGraphicsThatAreUsedInTheEditorComments PageReloaderForVectorGraphicsThatAreUsedInTheEditorDescriptions 

In English, constructs like this-that-is-used-in-that can be reworded as that-this. For example, coloring-that-is-used-for-food is food-coloring. Applying this rule, leaves you with:

PageReloaderForEditorCommentsVectorGraphics PageReloaderForEditorDescriptionsVectorGraphics 

Also in English, constructs like this-for-that can be reworded as that-this. For example, bottle-for-water can be reworded as water-bottle. Applying this rule, leaves you with:

EditorCommentsVectorGraphicsPageReloader EditorDescriptionsVectorGraphicsPageReloader 

And then of course there may be other shortcuts you can apply.

For example, in your system you probably don't have many kinds of reloaders. You probably only have page reloaders, so this would leave you with:

EditorCommentsVectorGraphicsReloader EditorDescriptionsVectorGraphicsReloader 

Also, when you speak of 'vector' in your system, it may be fairly clear that you are speaking of 'vector graphics', so this would leave you with:

EditorCommentsVectorReloader EditorDescriptionsVectorReloader 

... and I think that these are some pretty good realistically long names.

Source Link
Mike Nakis
  • 32.8k
  • 7
  • 82
  • 116

Yes, you understand Clan Code right, but your examples are quite a bit over the top.

Here is what you start with:

PageReloaderForPagesDisplayingVectorGraphicsThatAreUsedInTheEditorComments PageReloaderForPagesDisplayingVectorGraphicsThatAreUsedInTheEditorDescriptions 

A "Page Reloader" presumably reloads pages, so the "Pages" part is redundant. This leaves you with:

PageReloaderForDisplayingVectorGraphicsThatAreUsedInTheEditorComments PageReloaderForDisplayingVectorGraphicsThatAreUsedInTheEditorDescriptions 

Pages are always displaying stuff, so the Displaying part is redundant, too. This leaves you with:

PageReloaderForVectorGraphicsThatAreUsedInTheEditorComments PageReloaderForVectorGraphicsThatAreUsedInTheEditorDescriptions 

In English, constructs like this-that-is-used-in-that can be reworded as that-this. For example, coloring-that-is-used-for-food is food-coloring. Applying this rule, leaves you with:

PageReloaderForEditorCommentsVectorGraphics PageReloaderForEditorDescriptionsVectorGraphics 

Also in English, constructs like this-for-that can be reworded as that-this. For example, bottle-for-water can be reworded as water-bottle. Applying this rule, leaves you with:

EditorCommentsVectorGraphicsPageReloader EditorDescriptionsVectorGraphicsPageReloader 

And then of course there may be other shortcuts you can apply.

For example, in your system you probably don't have many kinds of reloaders, you probably only have page reloaders, so this would leave you with:

EditorCommentsVectorGraphicsReloader EditorDescriptionsVectorGraphicsReloader 

Also, when you speak of 'vector' in your system, it may be fairly clear that you are speaking of 'vector graphics', so this would leave you with:

EditorCommentsVectorReloader EditorDescriptionsVectorReloader 

...and I think that these are some pretty good realistically long names.