Hacker News new | ask | show | jobs
by mattmanser 5782 days ago
If I were you, run screaming from this idea.

I've seen this done a few times on varying scales (from form gen to whole app gen) and it's never been pretty.

Invariably, if you've got no previous experience with real business software, you'll get it wrong. Even if you have experience, you'll get it wrong. The database will probably be where you go wrong the most.

Also consider some of the basic hurdles. As soon as you've done iteration 1 of the app you need to customise it a bit.

Then you need to do iteration 2, the scope's increased. Do you rebuild using the tools and then reintegrate all those little customisations? Or do you stop using the framework? If so, what was the point of it in the first place? You've got a bunch of code that you're not sure quite how it works or where everything is. It's also not in your programming style.

The closest I've seen anyone getting to this is MS's Entity Framework and the scope of that is extremely limited compared to what's being suggested.

This is a timesink of good intentions that will produce the most horrific code.

You might be able to tell I've been on the receiving end of cleaning up after these things. I need to go shower just thinking about it. Feeling. Unclean. Urgh.

1 comments

The idea isn't to keep the generated version blessed; it's to get up to a minimum product as fast as possible instead of wasting time issuing generation commands over and over again.

This is all pseudo-implemented already; I'm just talking about adding a little more automation to an already repetitive process.

Either way, it's a problem that needs solving; just because it's hard doesn't mean it's not worth trying to fix, right?

http://blogs.tedneward.com/2006/06/26/The+Vietnam+Of+Compute...

I've tried for years working on it, and I even wrote a programming language (Kira: http://www.mathgladiator.com/projects/kira/ ) to solve this problem. I can attest that the problem... well, sucks.

If you want to get off the ground, then using a RDBMS isn't the way to go. The way I would recommend is to use object graph serialization then as the problems arise, use a database to index. I wrote about this here: http://blog.mathgladiator.com/2010/08/guide-to-databases-in-...