Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
I have a pro-application story for people. I have an app that does a virtual tail onto a web page. Problem is, we can't show ALL the data at once. It takes a lot of time for the page to render. (Think 3000 rows). So we show the top 100 and let it auto refresh so we can eye-ball newer stuff "just in case". This fucker pulls the same data over and over again, generating a lot of database hits.

So why not cache it you say? Well, we can't. We need the data live. Ticker-style. So if someone hits reload, the better have the newest data. Now lets say we want to find people with only certain attributes. In a web page, we have to either run a new query to pull the specific data. But.. if there is an app w/ all the data loaded (quick to render sits it's using a native widget set), why not use the existing dat aand then filter that. Just hide the irrelivant data. Now we don't need the data again, just un-filter it.

Now imagine dealing with 8-10 THOUSAND rows of data at 12 columns and doing live manipulations. Whn it comes to doing data manipulartions, an app is usually easier. The JS becomes a pain.

Also, take a mail app. I tried switching permanently to a web interface.. but lord, it's so slow compared to mutt or Mail.app just because it has to take so much more time to build and render a page. W/ an app, the interface sticks around, you just change the data on the fly.

Dont' even get me started on maintaining a state. Say that you dont' want peopel to "go back". Say you wanted to have people go through 52 cards on 52 pages, but hit each one once. Then you have to worry about caching and all of this other stuff. W/ an app, you have TOTAL control of what the user can and can't do. No need for encrypted cookies, or doing a db call every now and then to make sure he hasn't clicked back.

But you know what the web is good for. It's good for arbitrary data and showing it ala book form. If i had to read each email message once w/o managing it.. moving it into folders, performing a search, in chronological order, web pages would be easy.

One-off's, where state doesn't matter (like a simple calculator) or a search page, those do really well, since state doesn't matter so much. Other things, not so good. :)


Play that funky music white boy..

In reply to Re: web-based application or desktop application? by exussum0
in thread web-based application or desktop application? by pg

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (3)
As of 2024-04-20 05:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found