Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>I'm dealing with some big giant JSTL terds in the punchbowl right now so I thought I'd throw some UI dev perspective into the mix.</p> <p>SGM-like syntax wrapping another domain of SGM-like syntax is awful form, generally but that's not your fault. You can help make it better by keeping them separated however. This isn't always possible, but the more you can set vars and drop them into HTML only where necessary, the better.</p> <p>The other problem is that you're trying to set off client-side scripts directly with server-side code and I would say yes, given my five years of experience handling UI code, that it is a big giant PITA for your UI folks to suddenly run into triggers they don't really know how to follow back to the origin and don't have any control over. Hell, triggers that even Java devs aren't necessarily sure how to follow back to the origin if things are ugly enough.</p> <p>Imagine being in our shoes. Take a service driven architecture but let us add Java strings into the param mix that let us actually establish object method calls from the client-side. Is that a good idea? No, it's a horrible idea. Not because you don't want JavaScript devs writing Java (you don't - it makes us really unpleasant) but because at those two points of separation things should be as simple as possible. I send you data, you can deal with it however you want.</p> <p>So just hand us data already. Ideally in JSON form but we'll put up with anything to keep JS execution from being determined by the server. The last thing you want is a stampede of UI hooves in your OOP-murdering-bean-filled pastures so don't force us to come looking for what the crap got tightly bound between points on either side of the HTTP wall for no reason that ever made good sense to me. We wrap messages around rocks and chuck 'em over the wall. That sounds inelegant but no "thin-client" solution in my experience has ever caused less pain.</p> <p>Trust your "ick" instincts. Sometimes they're wrong but you should figure this out in the shower in the morning when you're still thinking about it because usually they're right.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload