Ask HN: Any language-like frameworks that combine server/client relations?
I'm not entirely sure what to google for something like this so I figured I'd just ask.

And I'm not talking about frameworks like Ruby on Rails, CakePHP, etc. etc. etc. While I'm not entirely familiar with all of them... I get the impression that they're all fairly separate in terms of scripting/markup; i.e., you specify your html, include your css, include your javascript and specify when to use its functions, and do some server-side scripting to interact with databases and what not. Even though all of these pieces work together, they're still quite separate and it seems to me like it's not nearly as efficient as it could be. I mean... obviously there is a limit to how efficient it can be given current standards but even so, this limit has yet to be reached.

I may get some responses saying this isn't possible given the nature of web development, but I'm 100% sure it is. The nature of programming is inherently complex relative to the world as the human brain immediately understands it... so it would suffice to say what I'm suggesting really just boils down to another abstraction layer on top of current methods. It's just a matter of how feasible/easy it would be to implement given current standards and technology.

And I wonder this because the framework I've developed allows me to whip together nearly any highly functional multidimensional relational database (aka most modern websites lol) in a short period of time while still being fairly customizable. I say fairly because it's definitely limited to the structure I've given it (the framework). The more abstract the layers become, the less flexible it becomes... the less control you really have. But even then... that's not entirely what I'm looking for.

For instance, my framework allows me to do something like this:

'Home' => array(
'_Step_' => 'Profile',
'Profile' => array(
'_Step_' => 'Group',
'Group' => array(
'_AffectedBy_' => array(
array('Home', 'Requests', 'Incoming')
),
'_Form_' => array(
array(
'DimText' => 'E-Mail',
'input' => 'text',
'attributes' => array(
'name' => '_E-Mail_',
'tip' => array(
'_Function_' => array(
array('Chef', 'DoTip'),
array('RecommendTips', 'It is <b>highly</b> recommended that you follow these tips your first time through. There\'s more going on here than meets the eye!', true, false, true)
)
),
'tsq' => $tsq++
)
),
array(
'DimText' => 'Other Websites',
'input' => 'list',
'attributes' => array(
'name' => 'Other Websites'
)
),
array(
'Etc...'
)
)
),
'User' => array(
'_Form_' => array(
array(
'_Function_' => array(
array('Chef', 'ChangePass'),
array('_Data_')
),
'_DisableBreak_' => true
),
array(
'_UserData_' => true,
'DimText' => true,
'input' => 'text',
'attributes' => array(
'name' => 'First Name'
)
),
array(
'_UserData_' => true,
'DimText' => true,
'input' => 'text',
'attributes' => array(
'name' => 'Last Name'
)
)
)
)
)
)

Now, I cut out quite a bit of it just so I'm not posting an insanely long message but you should get the idea.

The only two files I ever need to modify are the multidimensional array (site structure/contents) file and the css file to change the layout/look. It operates like a desktop app with no refreshing, including all navigation. All of the database handling and html/css/javascript/ajax generation is performed in the background and everything is at a minimum - no whitespace, minimum required javascript/css is included, etc. Ideas like headers, navigation, content, etc. are given wrappers with logical corresponding IDs and/or class names so that all you have to do is follow an easy standard to know what CSS you need to add to give it the look you want. And when custom functions are to be performed on the data, you can retrieve it like this:

$D['Home']['Profile']['Group']['Other Websites']

Of course, as I said earlier, this is fairly limited functionality-wise to the structure I've given it - but let's be real... there's a limit to the extent of flexibility 90% of web apps really need. So back to the question now that I hope it's clear... is there something out there like my framework but more flexible? And I mean to the extent of... as if you're coding a typical desktop application.