--- title: 'Long classes can be split into small single-use traits' tweet_id: '1538579137463406592' thread_slug: weekly-thread-2022-24 author_username: archtechx images: - 'https://pbs.twimg.com/media/FVSanUMUcAA5iRg.jpg' created_at: 2022-06-19T17:47:06+00:00 slug: long-classes-can-be-split-into-small-single-use-traits --- 💡 Create single-use traits to split up long classes into smaller parts This way, all e.g. link-related logic can be contained within a single trait