Recommendations for local web page display?



  • I'm prototyping an application that has a console backend, and an MVC4 front end on the server [Although as I write this post I'm starting to question whether or not this is really worth the effort]. I'd like to create a local version of this application which will run on the clients side, generate content data (for general concept, something like IRC chat, event notications, events from a remote site, etc.)

    The front end will run in a browser, but the target user is not guarenteed to have anything other than the target .NET framework that I package with my deployment.

    I'm looking for suggestions on the best client side rendering engine for the major browsers (IE 10+/recent chrome/recent firefox/etc) to display the mentioned event data to the user in a nice layout.

    Is Javascript/Jquery the best way to approach this? Can I use something native to C# for display? (I'd prefer the server and local versions to stay as close as possible in displaying data as possible)

    Many of the events generated on the client side for display will result in JSON batch data being sent to the server for synchronization and public display.

    ...
    Huh. There's a thought.
    After typing this out, maybe something as simple as a winforms app with a browser control docked to fill, pointed at a local web page that gets populated by jquery?



  • It sounds like

    • You are building a local display, and a remote display, which you want to be as in-sync as possible.
    • You are using the .NET framework.

    With this in mind, I would suggest using SignalR for the remote view. SignalR will use websockets when your page is viewed in a browser that is websockets capable, and automatically fall back to long polling when the client uses a browser without websockets. This way, you only have to worry about sending your message through SignalR, and SignalR handles the how.

    At the very least, it might be worth looking into for your scenario.

    This also gives you the benefit of allowing your users to look at the page using their preferred browser, aside from the usual layout issues, of course.


  • :belt_onion:

    @abarker said:

    With this in mind, I would suggest using SignalR for the remote view. SignalR will use websockets when your page is viewed in a browser that is websockets capable, and automatically fall back to long polling when the client uses a browser without websockets. This way, you only have to worry about sending your message through SignalR, and SignalR handles the how.

    You mean, the thing Dicsourse should have used instead of EmberAJAX polling?



  • Huh. I've never heard of SignalIR - I'll take a look now. Thanks.



  • @darkmatter said:

    You mean, the thing Dicsourse should have used instead of EmberAJAX polling?

    I don't see why Discourse didn't use Node.js. I mean, it's Jeff-friendly AND it gets you the long polling/websockets easily.



  • Is signalR pretty easy to install for clients who are not technically savvy? (IE: Is it easily packaged for deploy?)


  • :belt_onion:

    there's no i and you do the deploy. it is a library you would put in your code.



  • @Matches said:

    Is signalir pretty easy to install for clients who are not technically savvy? (IE: Is it easily packaged for deploy?)

    Your clients shouldn't need to install anything to use SignalR. It's a library which is used server side. It handles the necessary client code injections for you.

    Here's a link to one of the official sites:

    Edit: Hanzo'd by @darkmatter


  • :belt_onion:

    Also, one of their sample apps is a chatroom (essentially it's dicsourse minus Likes and Topics; otherwise known as IRC).



  • @Arantor said:

    I don't see why Discourse didn't use Node.js.

    JDGI



  • Thanks for the link, checking it out now.



  • The problem with web browser control in a WinForm app is it's very hard to communicate with the app. It's fine for a static web page, but if you need ajax or just simple request-response, you'll run into problems.

    During prep phase for one of my many aborted projects, I played around with this: http://www.awesomium.com/

    It's basically a wrapper around webkit. It works the same as web browser control, except you can actually communicate with the page inside. Call ajax, local storage etc.. Don't hold me for the specific, it was a while back, but I seem to remember putting together a simple gui with c# backend and ajax powered front. Might be worth a look.



  • Also, node.js is "old" and debugged and properly understood. ember is new and groovy and buzzword compliant, thus perfect for <a @twatwood's vision of developing for the next ten years1

    1 i.e. in ten years' time, he might be where phpBB is now2
    2 Functionally speaking, of course. He's already surpassed it in levels of user hatred.



  • [size=4]....,.,.,,....................,.........,,._,,...,,..,[/size]



  • @tufty said:

    Also, node.js is "old" and debugged and properly understood. ember is new and groovy and buzzword compliant, thus perfect for @twatwood's vision of developing for the next ten years1

    Actually,

    1. These two are both pretty new and trendy
    2. They have nothing to do with each other, besides language

    Filed under: Can I get one of them pendantic thingy awards?



  • @cartman82 said:

    Filed under: Can I get one of them pendantic thingy awards?

    At least 27% more pedantry and 18% more snark required.


  • Discourse touched me in a no-no place

    @Arantor said:

    At least 27% more pedantry and 18% more snark required.

    I think you'll find that it's 27.3% more pedantry required, and the scaling for snark hasn't been properly standardised yet; getting a reproducible benchmark snark is proving unexpectedly awkward under laboratory conditions. Like that was unexpected…



  • @dkf said:

    I think you'll find that it's 27<b>.3</b>% more pedantry required, and the scaling for snark hasn't been properly standardised yet; getting a reproducible benchmark snark is proving unexpectedly awkward under laboratory conditions. <small> <small> <small> <small> <small> <small> <small>Like that was unexpected…

    I was rounding for the sake of brevity, besides the odds are that increasing by exactly 27% are sufficiently unlikely... my experience is that people tend to overshoot on the pedantry, so being given an aspirational goal of 27% would typically result in a 28.5% to 29.4% increase based on the preliminary studies carried out so far.

    As for the snark scale, well, yes, that's a problem of course but as far as the Order is concerned, pedantry is the primary characteristic and snark is a usually for cases where the pedantry is already borderline; if we were talking about, say, a 2% shortfall on pedantry, a suitable indication of snark can swing the judge's vote. I believe the judges of the Order are using the Atwood scale at present for measuring community grade snark, and while not in any shape or form an ideal metric, it is at least consistent in its foibles.



  • Now you're trying too hard.



  • Better to try too hard than to not try hard enough.



  • I thought the whole point of you rounding was so people didn't try too hard?



  • No, the point of rounding is to give people a more generic target to hit. If you tell people there is a 0.3% thing they have to hit, they seem to tend to go for it. It's really quite strange. Rounding seems to produce better results.


  • ♿ (Parody)

    @Arantor said:

    Rounding seems to produce better results.

    Except for pricing.



  • Ah, yes, the phenomenon of psychological pricing that even gets people like me that talk it out loud with rounding but are still fucked over by it in the long run.


  • I survived the hour long Uno hand

    Somehow when I do my monthly Sam's Club run, I always end up spending about $20-50 less than my calculator says I'm spending. I think I beat the system of psychological pricing?



  • Or you're just bad at math.

    Or calculators.


  • I survived the hour long Uno hand

    Maybe my calculator is broken :) actually I am bad at math, I have dyscalculia, hence the calculator.



  • My general approach is just approximate to the nearest dollar if i'm trying to track total cost of a shopping trip, usually the over / under even out.


  • ♿ (Parody)

    @Matches said:

    Or you're just bad at math.

    Or calculators.

    Or taxes.


  • :belt_onion:

    @cartman82 said:

    Actually,

    1. These two are both pretty new and trendy
    2. They have nothing to do with each other, besides language

    Filed under: Can I get one of them pendantic thingy awards?

    Should have gone with d3.v3, it's the new hip and trendy library.


  • I survived the hour long Uno hand

    I do that too, but thanks to psychological pricing I round up often enough that I end up significantly over. That's $20-50 over on a $400 shopping trip or thereabouts



  • I live in a state without taxes, so this doesn't apply to me.

    Well, food taxes.



  • @Matches said:

    I live in a state without taxes, so this doesn't apply to me.

    <small><small><small><small><small><small><small><small><small><small><small><small><small><small><small><small><small><small><small>Well, food taxes.

    I live in a country where tax is applied to the price you see on the shelf meaning there's no illusions about the price you're paying.



  • @Arantor said:

    there's no illusions about the price you're paying.

    What's the tax rate then?



  • @Buddy said:

    What's the tax rate then?

    Currently? 20% on most goods, 5% on selected goods under certain circumstances, 0% on things like essentials and books.

    VAT is evil, but frankly we as customers don't have to generally deal with this. The price is what's displayed, that's what we pay. How much of it goes to the government is a fairly marginal situation for most people.



  • Yeah, that's super high.



  • @Buddy said:

    Yeah, that's super high.

    Europe and the Age of Austerity. Politicos telling us we're all in it together.


  • BINNED

    It's ok. It's 25% here. On everything. Happy happy joy joy.


  • Discourse touched me in a no-no place

    @Buddy said:

    Yeah, that's super high.

    But no use taxes, which greatly simplifies personal taxation. What's more, once VAT is considered paid once in any EU country, it's considered to be paid in all, even if the rate is actually 0% (which is the case on some goods in the UK, notably newspapers and books).

    Ultimately, as long as the income from taxes of various kinds approximately matches the outgoings by governments, it's not too big a deal. You can have all sorts of arguments about whether lower tax levels or higher service levels is best, but the thing that ought to be beyond debate is that budgets must be reasonably close to balanced (where “reasonably close” is a bit slippery). The problems come when there are large differences. (Hellooooooo, Greece!)


  • ♿ (Parody)

    @dkf said:

    lower tax levels or higher service levels is best

    Based on reality, it seems higher taxes and lower service is the ideal toward which we're all striving.



  • @boomzilla said:

    Based on reality, it seems higher taxes and lower service is the ideal toward which we're all striving.

    Not so much string, more rushing headlong towards while everyone else is clapping along.


  • ♿ (Parody)

    @Arantor said:

    Not so much string, more rushing headlong towards while everyone else is clapping along.

    The deuce you say‽ I've been told this is all Progress.



  • That's the best part. We are merely running 'to'. We have no destination in mind, it's just 'to' 'somewhere'. Which means it is indeed Progress along some destination. It's just probably not one you actually want to go to.

    Even Dirk Gently's navigation system would be confused by this


  • ♿ (Parody)

    @Arantor said:

    It's just probably not one you actually want to go to.

    Oh, it's definitely not where I want to go. But that's Progressives for you.

    ONWARD TO THE GLORIOUS FUTURE OF NEXT TUESDAY!



  • @boomzilla said:

    Oh, it's definitely not where I want to go. But that's Progressives for you.

    ONWARD TO THE GLORIOUS FUTURE OF NEXT TUESDAY!

    That should be when the bathroom manglers are done, apparently.


  • ♿ (Parody)

    Bad news for you: Next Tuesday (and its glorious world) never get here.



  • @boomzilla said:

    Bad news for you: Next Tuesday (and its glorious world) never get here.

    See You Next Tuesday then?



  • @Arantor said:

    We have no destination in mind

    Some people have a destination in mind. One problem is that people have different destinations in mind, and can't agree on one. The other problem is that the destination toward which we are headed at any given moment (which changes often) is not necessarily one desired by anyone.

    Filed under: "Progress" is measured by speed, not velocity.



  • It's an interesting question.

    If you pay all of your taxes via VAT, and VAT is only collected on items you purchase (with exclusions which are free from VAT) and you don't pay local/county/government taxes other than that, you're only taxed based on the amount you consume.

    If you don't pay sales tax (IE: Oregon), but pay state/federal tax, you are mostly taxed based on your income, not what you consume. (Taxes from my paycheck usually amount to ~23% for normal wages, 43% for overtime)

    If you pay sales tax, but not state tax, but federal tax (IE: Texas), you are partially taxed based on what you consume

    If you pay sales tax, state/local taxes, and federal tax, you just get bent over and reamed. (IE: There's a few states that do that)

    Which is the best? It's hard to say, it depends on your living habits, income, type of consumption, etc.

    But we should all agree the EU is garbage, because they have things like the Television Licence


  • ♿ (Parody)

    You're also paying property taxes, possibly indirectly (like VAT).


Log in to reply