{ "uuid": [ { "value": "b5b7cf41-fa32-4c63-a182-9b048c290f05" } ], "langcode": [ { "value": "en" } ], "type": [ { "target_id": "daily_email", "target_type": "node_type", "target_uuid": "8bde1f2f-eef9-4f2d-ae9c-96921f8193d7" } ], "revision_timestamp": [ { "value": "2025-05-11T09:00:22+00:00" } ], "revision_uid": [ { "target_type": "user", "target_uuid": "b8966985-d4b2-42a7-a319-2e94ccfbb849" } ], "revision_log": [], "status": [ { "value": true } ], "uid": [ { "target_type": "user", "target_uuid": "b8966985-d4b2-42a7-a319-2e94ccfbb849" } ], "title": [ { "value": "Code is a liability, not an asset" } ], "created": [ { "value": "2024-01-14T00:00:00+00:00" } ], "changed": [ { "value": "2025-05-11T09:00:22+00:00" } ], "promote": [ { "value": false } ], "sticky": [ { "value": false } ], "default_langcode": [ { "value": true } ], "revision_translation_affected": [ { "value": true } ], "path": [ { "alias": "\/daily\/2024\/01\/14\/code-is-a-liability-not-an-asset", "langcode": "en" } ], "body": [ { "value": "\n

Something I mentioned during my podcast episode with Mike Karthauser<\/a> is a quote I saw recently:<\/p>\n\n

\n

Code is a liability, not an asset.<\/p>\n<\/blockquote>\n\n

The more code you write, the more you have to maintain.<\/p>\n\n

The more complex the code is, the harder it is to maintain.<\/p>\n\n

For example, when adding a new page to a Drupal application, should you write a custom route, a Controller, and a Repository and write accompanying tests, or should you use the Views module?<\/p>\n\n

Both can give the same result.<\/p>\n\n

One involves writing and maintaining custom code; the other uses a no-code approach available in Drupal, which creates the page and output based on your selections.<\/p>\n\n

There isn't a correct answer.<\/p>\n\n

The option you choose will depend on what problem you're solving, what deadlines you're working to, and any precedents set within the project.<\/p>\n\n

It also depends on whether you want to maintain the code you write over time, fix any bugs, refactor it, and upgrade it as part of major Drupal version upgrades.<\/p>\n\n

Like a house, car or pet, any code you write will need ongoing care and maintenance in the future - not just now.<\/p>\n\n ", "format": "full_html", "processed": "\n

Something I mentioned during my podcast episode with Mike Karthauser<\/a> is a quote I saw recently:<\/p>\n\n

\n

Code is a liability, not an asset.<\/p>\n<\/blockquote>\n\n

The more code you write, the more you have to maintain.<\/p>\n\n

The more complex the code is, the harder it is to maintain.<\/p>\n\n

For example, when adding a new page to a Drupal application, should you write a custom route, a Controller, and a Repository and write accompanying tests, or should you use the Views module?<\/p>\n\n

Both can give the same result.<\/p>\n\n

One involves writing and maintaining custom code; the other uses a no-code approach available in Drupal, which creates the page and output based on your selections.<\/p>\n\n

There isn't a correct answer.<\/p>\n\n

The option you choose will depend on what problem you're solving, what deadlines you're working to, and any precedents set within the project.<\/p>\n\n

It also depends on whether you want to maintain the code you write over time, fix any bugs, refactor it, and upgrade it as part of major Drupal version upgrades.<\/p>\n\n

Like a house, car or pet, any code you write will need ongoing care and maintenance in the future - not just now.<\/p>\n\n ", "summary": null } ], "feeds_item": [ { "imported": "2025-05-11T09:00:22+00:00", "guid": null, "hash": "46a1df14b13ff412272180103b18543b", "target_type": "feeds_feed", "target_uuid": "90c85284-7ca8-4074-9178-97ff8384fe76" } ] }