TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

CMS Trap

252 pointsby hakuninover 11 years ago

18 comments

dansoover 11 years ago
Wow. This should be a must-read for developers, especially ones working in the content field.<p>I&#x27;ve made a few complex apps that use Google Spreadsheets as the backend...that is, to hold the public facing data and not, obviously, any proprietary data. This makes it very easy for those who have to maintain the app to enter in data. The downside is, of course, the inability to strongly enforce business rules and to denormalize things...but that forces me to reduce the data design to a bare minimum, which is often the best strategy in the first place.<p>I hope I never have to be in a situation where I&#x27;m building a CMS-type system for a client. People who haven&#x27;t dealt with data-modeling or relational-databases don&#x27;t appreciate simplicity...in the end, most people want something that they can type a headline, some text, and attach a photo or two (i.e. a Tumblr). But if you give them reins to design the system, they will inevitably want you to build them something Drupal like. In my experience, I&#x27;ve found that all these different content-relations end up being unused, and the client ends up hacking around them just to get a simple post up.
Udoover 11 years ago
This is basically the same phenomenon that happens with frameworks. At first, the framework gives you a ton of functionality for the (initially) low price of living with its abstractions. As you want more custom functionality, you find yourself either fighting the framework with increasing levels of desperation, or simply coding around it. I&#x27;d argue that the best frameworks are such that you can code around them without causing huge overhead or resorting to objectionable tricks.<p>The same goes for CMSes. Many CMS customers would probably be better off if they took the CMS editor interface as a separate component and wrote the actual page renderer as a custom development separately. The trouble is of course, content systems make it very hard to do that. Having to make things work with the native mechanisms (and the often horrific underlying data model) is what makes huge CMS projects fail or at least perform miserably for everyone involved.<p>On the very top of the list of abhorrently convolute CMSes would probably have to be Typo3, followed after some distance by Drupal. But the more you work with the initially-liberal Wordpress the more you discover it&#x27;s not that far behind either.<p>This reminds me of a bygone era: my startup (now long gone) had its own CMS. Sadly, that wasn&#x27;t our actual product as we were a pure service company and the CMS was only a tool for us. In hindsight, we should have done it the other way around. Our CMS wasn&#x27;t perfect, but it shone in a few areas that made the life of both developers and content editors very easy: a simple, accessible data model and an easily extensible page renderer. Unlike many other solutions it was designed to get things done, not to bill a lot of consultant hours. I&#x27;ve yet to come across an open source (or commercial for that matter) CMS that works equally well.
评论 #6814263 未加载
评论 #6814477 未加载
Breefieldover 11 years ago
@rudyrigot and the team @prismicio <a href="http://prismic.io" rel="nofollow">http:&#x2F;&#x2F;prismic.io</a> really have a handle on this problem. They believe a github-esq content management system makes the most sense for content creators, and a content API makes most sense for engineers to distribute that content inside of a variety of platforms (mobile, a rails app, whatever). Saw Rudy speak at Zendesk&#x2F;Rails meetup this month, it was a very good presentation (I am not affiliated with Prismic).<p>I&#x27;ve been playing with their ruby-kit, so far so good, really liking this approach and plan to see awesome things ahead.
评论 #6812494 未加载
fozover 11 years ago
From an architecture point of view, I&#x27;m convinced that the CMS is better treated as a service, and not as part of your web application. This is especially true in a larger organization where content needs to be collected and managed in different ways (via import, or where people edit or curate content).<p>At the start of this year, the company I work at had about six different CMS platforms. Many of the applications that used them were built on top of CMSs, and were tightly coupled to them. As for static content generators, we tried that. It really didn&#x27;t scale, especially for dynamic content. Too many hacks, deploys, and hard to train people.<p>As of today, our team has switched nearly all public content for our company to LocomotiveCMS (<a href="http://www.locomotivecms.com/" rel="nofollow">http:&#x2F;&#x2F;www.locomotivecms.com&#x2F;</a>), and deployed a centralized multi-tenant system. In many cases, we use our Locomotive instances as an API, pushing content via the API or the command-line tool, wagon. The CMS then renders HTML templates (or even JSON), which are consumed by our applications via HTTP. Sometimes it&#x27;s just a tiny part of a page, or sometimes entire mini-sites. As a result, most of our apps don&#x27;t need to know about a database.<p>Whenever there&#x27;s a change that requires a new model, or the addition of a field, it can be done quickly through the LCMS back-office UI (or the wagon CLI tool). We update the application(s) affected, and re-deploy. Non-techies can edit the content using the admin web UI in a familiar way.<p>In any case, it&#x27;s been working really well for us. The CMS has become an API, a service, and a separate app, shared by many applications. We&#x27;ve become more flexible and efficient as a result, our web applications are no longer burdened by CMS frameworks or admin interfaces of their own. And we dont have to struggle with Sharepoint or Wordpress or any other nonsense.<p>It&#x27;s been a fundamental shift in how we think about the CMS, and has scaled well across multiple projects.
评论 #6813702 未加载
评论 #6813940 未加载
评论 #6813789 未加载
评论 #6814215 未加载
评论 #6814111 未加载
vinceguidryover 11 years ago
I wrote an app for my company to extract data from the database and form xml feeds for various e-commerce services. I took the opportunity to learn OO principles and read through Object Oriented Design in Ruby.<p>What I eventually came up with was pretty much exactly what this post is advocating for. YAGNI was the rule, I was new and wanted to demonstrate results quickly. Instead of classes, I put constants in modules, realizing that all that a class I&#x27;d written was holding was basically a hash, and since that data wasn&#x27;t changing anytime soon, they might as well go in a constant.<p>I caught the refactoring bug sometime around when I was tasked with adding a third service. I found turning the logic I&#x27;d created into proper classes incredibly easy, make changes, run rspec, rinse, repeat. The interfaces between the various pieces were surprisingly loose. So I could play around with different implementations of a piece of logic and at every point have something that could be made to work if I suddenly had to shift gears.<p>I had two services and they were each slightly different. Waiting to build the abstractions until I had multiple implementations of them wound up being a big win. Now that I have a third, I can already tell that it&#x27;s going to be an easy add. I spend much more time figuring out service-specific stuff than wrangling with my code.<p>Hard-coding really does get a bad rap. You&#x27;re not building a castle, you&#x27;re fixing a pressing business need. If you do it well, then one day you&#x27;ll be able to open-source your work, because your company will want to add more and more to it because of how badass it is. Not because your delusions of grandeur led you to over-abstract everything to the point of uselessness.
bctover 11 years ago
Back in the old days (2005) we used to call this Do the Simplest Thing That Could Possibly Work.
评论 #6811464 未加载
评论 #6812704 未加载
评论 #6814161 未加载
maxk42over 11 years ago
I am SO sick of spending more time configuring the CMS than writing code.<p>Oftentimes, I could&#x27;ve built a product from scratch in the time it takes me to Google the undocumented quirks of some stupid YAML file.
评论 #6812326 未加载
评论 #6812465 未加载
评论 #6816043 未加载
Domenic_Sover 11 years ago
Just because you use a CMS doesn&#x27;t mean you have to use it for everything. If you&#x27;re managing content (blog content?) use a CMS. If you&#x27;re making PPC pages, host them statically somewhere. If you sell something, use ecommerce software for that part.<p>The right tool for the right job.
评论 #6811231 未加载
评论 #6812442 未加载
评论 #6811392 未加载
na85over 11 years ago
&gt;A CMS Trap is a state of a web-application in which the development of content management systems is obstructing the development of the content.<p>I think this pretty neatly summarizes my experience working with Drupal.
SolarUpNoteover 11 years ago
I think the key question is: At what point is building a user interface more expensive than hiring a full time developer?
评论 #6812341 未加载
kenster07over 11 years ago
Love of complexity is a programming disease.
评论 #6812039 未加载
paulftwover 11 years ago
Overengineered software systems are like sex - every generation thinks they invented it.
nevvvermindover 11 years ago
Oh, c&#x27;mon. I was currently doing the exact same thing the blog post advices against.<p>I was designing, centralizing, decoupling. Then some changes came about. I implemented them, then watched them fluently rippling throughout the system. &quot;How cool is that?&quot;.<p>It was some time ago when I was an OOP-design junkie (I think it&#x27;s analogous to puberty: exaggerating). I think I passed that, as I frequently wonder if I&#x27;m over-designing and get back to using plain strings, constants etc.<p>I once read that, designing a plugin (be it a pattern or an actual plugin), try no less than 3 different implementations.<p>He&#x27;s right, though. I work with Magento. Try adding a new backend form in that beast.
fiatjafover 11 years ago
Ok. Here&#x27;s an idea:<p>Imagine a code editor (probably embedded in some online where the developers would also work&#x2F;code) that would show all the application code.<p>For developers, everything would be editable, so they could change logic, add logic, database calls, anything. On the other hand, for content editors, only strings (and arrays and numbers) would be editable. So the whole page would be freezed except for the parts between quotes. The developer could then hard-code these possibly-editable-values at code time (or leave them blank) and the non-developers edit them: categories, text content, values.
评论 #6817183 未加载
prottmannover 11 years ago
You&#x27;re talking out of my soul! I see this behavior many many times in the last 10 Years, i admit, i do the same long time ago ;-)<p>The problem for the mass of developers is, that they &quot;fall in love&quot; with their CMS and that make them blind for obvious things.<p>We shift away from CMS as central point for web and web-application. CMS is only a tool to maintain simple static data in various languages for many people. For everything else (like shops) we use other systems, that are NOT a integrated part of a CMS.<p>If interaction between CMS and ohter systems is needed, implement a separate and clean API.
lifeisstillgoodover 11 years ago
I am going to look so silly :<p>- all content served as json through a REST interface<p>- all content created in best way possible and reduced to either static json or Dbase backed templates<p>- content has metadata to keep it indexed
ThinkBeatover 11 years ago
If there is a reasonable need for content editors to be able to update content in web site allowing them to do so in a quick and easy manner is a good idea.<p>Seeing this as easy, and building a custom application to handle it, will quickly become a bad idea, and an artifact of &quot;not build by me, I can build better&quot; mentality.<p>Being able to leverage a tool that is both proven and easily available to solve this problem makes sense.<p>Expecting the cms to solve every problem and be the only tool used is also a big problem.<p>As to whether to provide the users with a means to define new pricing models and change current models, depends on how frequently it needs to get done, how much dev resources are needed to keep up with demand, and what the release process is like.<p>If you are in an enterprisy place. First an issue must be created to update the pricing model or create a new one. This probably goes under change control, and it will be addressed in the next meeting of the governance committee.<p>If all is approved there it will be passed on to the project manager who will create a backlog item for it.<p>Then once the current sprint is completed, a new prioritized list of tasks are distributed and in the best scenario the issue is handed off to a developer with a high priority.<p>The developer will analyze what changes are needed, design the new pricing model, implement it, create and run unit tests, ensure it goes through CI. Then he will write the test cases for the new functionality and move on to the next issue in the back loc.<p>In 2-4 weeks when the sprint is over the worst case is that the dev branch is promoted and the test team is assigned an issue to test and regression test everything.<p>Once their sprint is done, it will be promoted to Staging and more tests and sign offs and then after a month or two the new pricing model will hit the shelfs and the executive who requested it might already have forgotten why it was an issue to begin with, or the client he created it for has long gone with a different company<p>All of that to say sometimes it makes very good sense to create a decent way for the end users to be allowed to modify and create new pricing models.<p>Just like its easier to allow the end users to edit the content of web pages.<p>It would in my opinion be absurd to create an ecommerce system where the pricing and products require code to be updated. Much better to leverage an existing product or worse case write the logic to allow the users to make changes on their own.
评论 #6815298 未加载
mavhcover 11 years ago
ie. Don&#x27;t write a programming language when you&#x27;re supposed to be writing an application.