Slashdot Mirror


HTML5 App For Panasonic TVs Rejected - JQuery Is a "Hack"

An anonymous reader writes "I have been working on an HTML5 app for Panasonic VIERA TVs, specifically a client for the Plex Media Server. After paying $129 for the developer program, version 1.0 was submitted for inclusion in their VIERA Connect marketplace several weeks ago. After a few requested tweaks, they inquired about how the client communicated with the Plex Server. As many/most web developers do, I used jQuery and its $.ajax call (which is just a wrapper for XMLHttpRequest()). They insisted this was not standard Javascript, and after several communications with them, they replied back with "A workaround like this is considered a hack.". I'm stunned that anyone familiar with HTML would consider jQuery a hack. I've been patient in attempting to explain how jQuery works, but I am getting nowhere. Any thoughts on how I can better explain jQuery to an app reviewer? Yes, I know I can write my app without any Javascript library, but I am really hoping avoid that."

56 of 573 comments (clear)

  1. Panasonic has a TV app store? by Anonymous Coward · · Score: 5, Interesting

    jQuery is a hack too?

    I learned two things today.

    1. Re:Panasonic has a TV app store? by Anonymous Coward · · Score: 5, Interesting

      They don't say that jQuery is a hack. They say that using features like XMLHttpRequest directly (or via a 3rd party library) and not using the Panasonic API is a "hack" around their TOS. Submitter fails at reading comprehension.

  2. Re:Beta is terrible! by asmkm22 · · Score: 4, Insightful

    Kill the Beta!!!!! Free Mod Points!!!!

  3. Psh, jQuery. by ibneko · · Score: 5, Informative
    1. Re:Psh, jQuery. by ATMAvatar · · Score: 5, Funny
      --
      "They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety."
    2. Re:Psh, jQuery. by Anonymous Coward · · Score: 5, Informative

      The point was that if you are only using one or two of these function consider writing your own equivalent function instead of including the entire jQuery library.

    3. Re:Psh, jQuery. by JWSmythe · · Score: 4, Informative

      There are too many programmers who don't think that way. They'd rather include huge libraries, than write a few lines of code.

      It is their (Panasonic's) platform. If they don't want jQuery, don't use jQuery. That seems simple enough.

      I've had headaches where I had to put on some dev's code, that required a massive number of libraries. They didn't mind, because their dev machine had them all. They usually can't even say what libraries are really required, it's a game of "lets figure out why their app doesn't work."

      I'm logged into one server in particular. One app, 39 different libraries had to be added in addition to the standard libraries included on the system. Some of those would be redundant, except they "wrote" their code with snippets from various places online that seem to do what they want. If you go back and ask what some of them do, they can't even really explain them.

      --
      Serious? Seriousness is well above my pay grade.
  4. oh look, an actual tech related "ask slashdot"... by Anonymous Coward · · Score: 5, Interesting

    I wonder if /. Is trying to put out a story that will attract actual answers, given that 90% of all the comments in the community today have been about the bloat of beta.slashdot.org instead of the topic presented in the summary.

    As for the actual topic:

    What are the reasons, other than time and it's associated costs, for not wanting to do without a javascript binary, just so you can use JQuery? It's been a trend I have been seeing lately with embedded devices (like TVs) being treated like they were desktop computers with gobs and gobs of resources to blow, and where deploying a large multipurpose binary for a single (or small number of) function(s) is commonplace.

    Throwing a big multipurpose library in there can pose a significant security risk (from the company's PoV anyway) because the library can do much more than just handle the small number of things you want it to, and some of those things can be undesirable.

    Other than the costs to time, what are your reasons for wanting to use a multipurpose javascript engine for such a narrow scope?

  5. Boycott by chebucto · · Score: 4, Informative

    On February 5, 2014, Slashdot announced through a javascript popup that they are starting to "move in to" the new Slashdot Beta design.

    Slashdot Beta is a trend-following attempt to give Slashdot a fresh look, an approach that has led to less space for text and an abandonment of the traditional Slashdot look. Much worse than that, Slashdot Beta fundamentally breaks the classic Slashdot discussion and moderation system.

    If you haven't seen Slashdot Beta already, open this in a new tab. After seeing that, click here to return to classic Slashdot.

    I propose that we boycott stories and only discuss the abomination that is Slashdot Beta until Dice abandons the project.

    Moderators - only spend mod points on comments that discuss Beta
    Commentors - only discuss Beta

    Keep this up for a few days and we may finally get the PHBs attention.

    --
    The English word fart is one of the oldest words in the English vocabulary.
    1. Re:Boycott by Nethemas+the+Great · · Score: 4, Insightful

      I believe he cited a number of points including the reduction in data density and the disregard for tradition in both form and function. Both points I also agree with. The beta version disregards the historical user base and its preferences in an attempt to attract non-Slashdot types.

      --
      Two of my imaginary friends reproduced once ... with negative results.
  6. Where to go after Slashdot? by 2phar · · Score: 4, Insightful

    Reddit isn't going to work. I like Hackaday.. But really, where is the best alternative? Can't use Slashdot much longer with this Beta.

    1. Re:Where to go after Slashdot? by OzPeter · · Score: 4, Informative

      Reddit isn't going to work.
      I like Hackaday..

      But really, where is the best alternative? Can't use Slashdot much longer with this Beta.

      Go to Ars .. and read the stories 3 days before here. Or go to Mac Rumors if you are a fanboy :P

      --
      I am Slashdot. Are you Slashdot as well?
    2. Re:Where to go after Slashdot? by Misagon · · Score: 5, Interesting

      Slashcode, which the site runs on is open source. Could we create a new, independent Slashdot that runs classic Slashcode ... and get it to host the same community as is hosted here?

      Slashdot is based on user content. Once enough users are as active on the new site as they are on the old, the new site will be viable as a replacement.

      Some users would have to work on the old site to submit and upvote "stories" with posters and links to the new site, to make people understand which site that they should migrate to.

      --
      "We mustn't be caught by surprise by our own advancing technology" -- Aldous Huxley
  7. Re:Slashdot Beta sucks by M.+Baranczak · · Score: 5, Funny

    Submit it to the Panasonic app store.

  8. Re:Beta is terrible! by LordFlower · · Score: 5, Insightful

    Fuck Beta twice for more modpoints!!

  9. Re:Beta is terrible! by chihowa · · Score: 4, Informative

    It's like they realize that it's some sort of punishment, too. First, they inflicted it on the ACs, now they're redirecting logged in users. I payed them cold hard cash (which I'm regretting now) and as a subscriber they haven't started redirecting me, yet. When they do, I'm out.

    --
    If you want a vision of the future, imagine a youtube comments section scrolling - forever.
  10. Re:Beta is terrible! by JoshuaZ · · Score: 5, Insightful
    Agreed. Here's the letter I sent to the feedback email about Beta:

    I've been a Slashdot user since 2007. My username is JoshuaZ ID# 1134087. I strongly dislike the beta version. The large default font makes less on a page at any given time. The comment handling is inferior and is harder to follow. It makes it much harder to just see upvoted comments instead subjecting us to the entire thread. I don't want a choice between "all" and insightful, informative or funny. I want an option to just see the more upvoted comments with the other comments still there with their subject lines so I can then decide based on that if they are worth looking into.

    The userpage interfact and display is also lacking. The new version of the achievement display is strictly inferior since it doesn't show when things happened or give any information about the achievements instead giving cutesy graphics that tell nothing about what an achievement is for. Even knowing what achievements are common, I had to use the inspect element feature on my browser to figure out which is which. Comments in the user page also don't show how much they have been upvoted or downvoted nor do they give their description of how they've been modded. There's also no way to just go directly from a comment on the userpage to the comment on the article page, but instead the link takes one directly to the top of the article. This means that if one wants to find the context of a comment one needs to go to the main article and then search for the comment itself. This is inconvenient.

    Overall, beta has many minor inconveniences. Any of these by itself would be minor but the totality is highly unpleasant. All of these should be fixed.

    Now that I've had even more experience with beta I'd have other fun things to add to that email. I'm not optimistic that any of this feedback is going to be listened to.

  11. Re:Um.. Please Explain by BenJeremy · · Score: 4, Informative

    What is being hacked? What exploit is required to make jQuery.js operate? How does it modify the javascript language to work?

    jQuery.js is just a library of script routines designed to make a javascript programmer's life easier, like every other library out there, whether it's for C++, ActionScript, C# or assembler. It's not a binary... it is a collection of javascript functions.

    Calling it a hack seems a bit ignorant of what hacks are. I've written hacks... patched XBox XDK libraries so I could get my Media X Menu to access extra hard drives in the system... interrupt routines loaded from DATA statements on my old C=64 that allowed me to display more sprites on screen than the hardware was supposed to display, or to do cool things with the borders. I've written multi-tasking kernels with assembler interspersed with the C code so I could directly access or manipulate hardware in embedded systems. Those are hacks.

    At worst, you might call jQuery.js a kluge... but even then, jQuery.js works pretty well and doesn't require you to jump through hoops when making small changes (which kluges tend to do). ...so it's a library. A handy collection of useful routines developers can leverage so they do not have to write all that code again. Nothing more.

  12. I kind of agree by DrPBacon · · Score: 4, Informative

    JQuery is a hack. A useful one, but still a hack. You should be accountable for all your production code, and there's really nothing jQuery does that you can't do yourself with only a little more effort. http://youmightnotneedjquery.c... #incaseyoumissedit

    --
    Spent All My Mod Points
  13. The Beta is horrible by DogDude · · Score: 5, Interesting

    The Beta of Slashdot is horrible.

    Sadly, I'm going to be moving on from Slashdot, but I don't know of anywhere on the Net has such good discussions with such relatively intelligent people. The stories on Slashdot often suck, but the moderation moderation, I think, is what has kept it such a great place to have discussions. Is there any other site that has similar moderation?

    --
    I don't respond to AC's.
  14. Bad timing, hope this helps. by sootman · · Score: 5, Informative

    You had the unfortunate luck of having your story picked up during the middle of the slashdot beta shitfest, so most of the comments here will be about that. My condolences. (Also: the new beta sucks.)

    Explain that jquery is not a hack or a workaround. It is a framework that is itself written in -- ta da! -- 100% valid javascript. Tell them it is nothing more than a collection of well-written, consistent, standards-based, heavily-reviewed and -tested code, and all it does is contain some pre-written libraries to make it easier to do common tasks.

    It is sponsored by many large companies, including Wordpress, BlackBerry, Intel, Mozilla, and Adobe, to pick just the most recognizable names from that page.

    According to this, it is used by Google, Facebook, AOL, ESPN, and whitehouse.gov. This 20-month old page also has a big list: WordPress.com, Pinterest, Reddit, MSN.com, WordPress.org, Amazon, Yandex, Microsoft.com, GO.com, Ask.com, ESPN, Craigslist, About.com, Go Daddy, Stack Overflow, Huffington Post, Instagram, Slideshare, Fox News, The Guardian, Etsy, LiveJournal, and Weather.com

    --
    Dear Slashdot: next time you want to mess with the site, add a rich-text editor for comments.
  15. Fuck Beta: I've been here for 13 years by mclearn · · Score: 5, Informative

    If I am forced out of Classic, I will leave and never look back.

    Fuck beta.

    1. Re:Fuck Beta: I've been here for 13 years by Anonymous Coward · · Score: 5, Insightful

      I agree 100% The new design offers NOTHING. It is utterly soulless and spaces everything out requiring more and more fucking scrolling. Which is what seems to be the damn trend.

      FUCK BETA

    2. Re:Fuck Beta: I've been here for 13 years by Requiem18th · · Score: 4, Informative
      --
      But... the future refused to change.
    3. Re:Fuck Beta: I've been here for 13 years by Misagon · · Score: 5, Interesting

      "If it aint broke, then don't fix it" applies here.

      My user account is from the first day that the site had come up again after a crash that had wiped the user database and everyone had to reregister. My previous user ID was not as low.

      --
      "We mustn't be caught by surprise by our own advancing technology" -- Aldous Huxley
  16. Quite possibly indeed! But still... FUCK BETA! by denzacar · · Score: 4, Insightful

    That's what Slashdot is for now.

    Comments about how beta sucks, repeating "FUCK BETA" and... Fuck Beta.
    I see no point discussing about anything else until they kill that abomination or just let us to continue using the classic interface.

    Also, fuck beta.

    --
    Mit der Dummheit kämpfen Götter selbst vergebens
    1. Re:Quite possibly indeed! But still... FUCK BETA! by NemosomeN · · Score: 4, Insightful

      Heh, as someone who just tried beta, kinda find this thread funny. I lasted about 15 seconds on beta before going back to classic.

      On topic though, just strip out the parts of jQuery you need, rename them, and use them as-is. Think about it like static-linking a library.

      --
      I hate grammar Nazi's.
    2. Re:Quite possibly indeed! But still... FUCK BETA! by TWiTfan · · Score: 4, Insightful

      Well, I'll post something on-topic: Fuck beta, and also Panasonic.

      --
      The cow says "Moo." The dog says "Woof." The Timothy says "Thanks, valued customer. We appreciate your input."
    3. Re:Quite possibly indeed! But still... FUCK BETA! by idontgno · · Score: 4, Informative

      Also, fuck beta.

      And now I have a new signature. Thanks!

      --
      Welcome to the Panopticon. Used to be a prison, now it's your home.
    4. Re:Quite possibly indeed! But still... FUCK BETA! by meustrus · · Score: 4, Informative

      I tried to post a comment on beta the other day. I wanted to be a coward, but there was no check box. So in trying to find a convenient way without logging out, I ended up back on the front page without the comment I already wrote, and the back button on the browser was even disabled. How the hell did that happen? Fuck beta.

      --
      I sometimes ask revealing, often ignorant-seeming questions. Maybe they're harder to answer than you think.
  17. Re:Apple may be even worse by fuzzyfuzzyfungus · · Score: 4, Insightful

    Not that this makes either Panasonic or Apple 'better' in any way; but what strikes me as insane is that Panasonic would feel that they are in the position to be all fiddly and demanding about 'apps' submitted for their 'smart TV' platform.

    Apple, as obnoxious as their control freakery has always been, undeniably have a walled garden that people would fight like dogs to get their applications into. Their position, in terms of platform ownership, is unbelievably enviable. They can be dicks all they like; because what are you going to do about it?

    Panasonic? One of the largely-interchangeable makers of perfectly adequate but not thrilling TVs, pretty much every last one of which has a shitty 'smart TV' platform, all braindead in somewhat different and incompatible ways? What kind of leverage do they think they have?

  18. A workaround for what? by ysth · · Score: 4, Insightful

    Reading the actual email they sent, it sounds to me like they provide a (javascript) API for doing what "VieraApp" is instead doing with a direct ajax call (and jQuery vs XMLHttpRequest is not the issue; it's not using their wrapper that is the issue).

  19. Re:Move on by atari2600a · · Score: 4, Insightful

    Implying the APP STORE on the TELEVISION....PLATFORM! isn't bloat enough?

  20. Re:Indeed by GumphMaster · · Score: 4, Insightful

    Sod that. Just point them at their own web site, where jQuery is included in every page, and tell them they've been hacked.

    --
    Patent litigation: A doctrine of Mutually Assured Destruction... in which everyone seems willing to push the button
  21. Re:Um, WTF? by unrtst · · Score: 5, Insightful

    Inline it (jQuery).
    When they ask how it communicates, tell them how, not what functions/callbacks you use in your code.
    Ex. The server communicates using the standard Plex web API (or whatever it's called), documented _here_. The RCP calls are made using the standard XMLHttpRequest, with wrappers to ensure compatibility with the evolving web browser landscape. yada yada yada.

    I'm sure it's a PITA, but I get the feeling the submitter said too much - explaining how jQuery internals work is going to seem like an over complicated nightmare. If they specifically ask about that weird looking "$.ajax" stuff, just tell them it is a simple wrapper that compensates for the subtle differences in XMLHttpRequest implementations. If the code finally gets to someone that can read it, they'll probably be quite familiar with jQuery and quite happy you are using it than some custom cobbled together hack :-)

  22. Spent all mod points on Beta protest by duckgod · · Score: 4, Informative

    I would have modded you flamebait since you are using a reference that contradicts your statement in the first line on the site.- "jQuery and its cousins are great, and by all means use them if it makes it easier to develop your application."http://youmightnotneedjquery.c... #incaseyoumissedit

  23. Re:Beta is terrible! by AuMatar · · Score: 5, Insightful

    If a large population likes it the way it is, that is valid feedback. It means don't change. Keeping things the way they are is a perfectly good, and frequently the best design decision.

    --
    I still have more fans than freaks. WTF is wrong with you people?
  24. Re:Beta is terrible! by Requiem18th · · Score: 4, Informative

    quoting myself

    Yes, slashdot beta sucks, but "classic" sucks too. The previous site code was better and THAT sucked too (no unicode support whasoever remember?)

    However now that Slashdot is owned by DICE i think it's unlikely that it wil do something so uncapitalist as not targeting the unwashed masses. It's lowest common denominator or shutdown!

    I think th ebest course of action is to move somewhere else. Reddit is the most promising one. Subscribe to the following subreddits:

    http://www.reddit.com/r/censor...
    http://www.reddit.com/r/biotec...
    http://www.reddit.com/r/govern...
    http://www.reddit.com/r/securi...
    http://www.reddit.com/r/scienc...
    http://www.reddit.com/r/space
    http://www.reddit.com/r/law
    http://www.reddit.com/r/techno...
    http://www.reddit.com/r/openso...
    http://www.reddit.com/r/politi...
    http://www.reddit.com/r/privac...
    http://www.reddit.com/r/pcgami...
    http://www.reddit.com/r/gaming
    http://www.reddit.com/r/games

    To get all of slashdot covered.

    You can also get independent RSS feeds from each subreddit. sweet!

    --
    But... the future refused to change.
  25. Re:Ah, yes... but... FUCK BETA! by denzacar · · Score: 4, Insightful

    Back then we THOUGHT we knew.

    Now we KNOW we know.

    It's a Zen thing. Like FUCK BETA.

    --
    Mit der Dummheit kämpfen Götter selbst vergebens
  26. Re:Beta is terrible! by JoshuaZ · · Score: 4, Insightful

    I'm not a designer and they aren't paying me to try to do design. The only issue I brought up which was primarily a pictorial issue was the achievements display which has two such obvious solutions that they shouldn't need to be stated: 1) having the achievement information appear when you mouse over it 2) just use freaking text. Incidentally, the use of extra graphics over text is a really strange thing given that we live in an era of mobile devices.

    It doesn't require detailed feedback to say that one should use a smaller default font. And asking that you have an option when you click on a comment from a userpage to actually go to the comment is so basic that I shouldn't need any special issue. Thank you for pointing out the typo in "interfact." if they aren't listening to people because of typos in feedback they aren't going to be listening to much at all.

    Do you write these letters to all the sites you visit?

    No. But I do write a letter when it is a website that I like and to which I actively contribute and where they've *asked for my feedback*.

  27. Re:Um, WTF? by TheRealMindChild · · Score: 4, Informative

    What is the native language of a browser?

    --

    "When life gives you lemons, don't make lemonade. Make life take the lemons back!" -- Cave Johnson
  28. Re:Um, WTF? by narcc · · Score: 4, Funny

    But jquery has been in industry wide use for years and is no "a hack".

    Check out the code, it's amazing that it works at all. That should come as no surprise to you as it should be pretty obvious by now that Resig doesn't even have a superficial understanding of javascript. (As evidence, in addition to jQuery, I would also like to submit jStat and any of his books.)

    Yeah, jQuery is a hack -- and an ugly, inconsistent, and unstable one at that! Only in the software industry could a library written for people who don't know the language by someone who knows even less about the language become so successful.

    Good for Panasonic. They made the right call here.

  29. Re:Um, WTF? by Anonymous Coward · · Score: 5, Funny

    What is the native language of a browser?

    As far as I've been able to tell, Portuguese.

  30. Re:Um, WTF? by iced_773 · · Score: 5, Funny

    Check out the code, it's amazing that it works at all.

    Are you sure you aren't trying to read the minified version?

  31. Re:It'll be alright. by camperdave · · Score: 4, Interesting

    From what I've seen of Beta, there are no comment moderation scores, and no way of viewing responses to your comments other than drilling down to them.

    --
    When our name is on the back of your car, we're behind you all the way!
  32. Re:Beta is terrible! by multimediavt · · Score: 4, Funny

    If a large population likes it the way it is, that is valid feedback. It means don't change. Keeping things the way they are is a perfectly good, and frequently the best design decision.

    Depends on the site, FUCK BETA! For community forums, FUCK BETA IN THE ASS! the community should definitely have a say, FUCK, ASS! in any redesign or feature change, BETA ASS!

  33. Re:It'll be alright. by camperdave · · Score: 4, Interesting

    From what I've seen of Beta, there are no comment moderation scores, and no way of viewing responses to your comments other than drilling down to them.

    Also, no way to quote parent comments, and you have to put your own comment subject in.

    --
    When our name is on the back of your car, we're behind you all the way!
  34. Beta looks nice by ikhider · · Score: 5, Funny

    It's kind of clean and pretty...

    --
    "SO we bide our time, waiting for a purer kick to bloom and the future is still bleak, uncertain and beautiful" -GSYBE
  35. Beta by Jadeus · · Score: 5, Funny

    JQuery compared to Slashdot Beta:

    The difference between knowing your shit and knowing you're shit.

    --
    --- Bigger bits, softer blocks, tighter ASCII.
  36. Re:Beta is terrible! by Randle_Revar · · Score: 4, Insightful

    Reddit, much like digg, sucked from the get-go, and has never stopped sucking. I'd sooner get my news from 4chan.

  37. Re:Ah, yes... but... FUCK BETA! by TheNastyInThePasty · · Score: 5, Insightful

    The beta doesn't add any useful new features. All it does is remove them and severely fucks up the best part of this site: the commenting and moderation system. If the commenting system goes out the window, why would I come here? The stories are always several days or a week old, the editors are terrible at their job, and all of the actual articles are on other sites I could browse instead.

    What the hell, Dice?

    --
    The best thing about UDP jokes is I don't care if you get them or not
  38. Vanilla.js FTW by c0lo · · Score: 5, Funny

    jQuery is a hack too?

    Vanilla.js. Have a look over their jQuery/Vanilla-JS comparison examples and consider if you really want jQuery.
    At a glance:

    Vanilla JS is a fast, lightweight, cross-platform framework for building incredible, powerful JavaScript applications.
    ...
    Vanilla JS makes everything an object, which is very convenient for OO JS applications.
    Native support for HTML5 and other cutting-edge technologies makes me keep coming back to Vanilla JS, time after time.
    Vanilla JS is the lowest-overhead, most comprehensive framework I've ever used.

    --
    Questions raise, answers kill. Raise questions to stay alive.
  39. Re:i don't get it by houstonbofh · · Score: 4, Insightful

    Like a lot of the new UI changes lately, (First rev of KDE4, Win8, Gnome3, Unity) it makes the things I do often more difficult or imposable, and makes nothing I do often easier. "It is a beautiful new hammer, and we removed the head to streamline it."

  40. Re:Ah, yes... but... FUCK BETA! by FatdogHaiku · · Score: 4, Insightful

    This is what annoys me even more than the bad design - they actually solicited our feedback, and we took the time to give it, then they completely ignored it.

    Hopefully they will listen to the crickets after classic is no longer an option...

    --
    You have the right to remain sentient. If you give up the right to remain sentient, you will be elected to public office
  41. BETA discussion by mugnyte · · Score: 4, Informative
  42. I HAVE THE ACTUAL ANSWER TO THE GUY by gl4ss · · Score: 5, Informative

    use the non-minified version.

    when you submit stuff that gets vetted by some moderation into online javascript appstores-within-apps-or-devices then it is STANDARD PRACTICE to submit non-minified code for readability.

    the theory is that they can see that you're not going to do anything to hack the tv, spotify or whatever. this is standard on all that I've submitted apps into.

    and no, they don't actually read the code and see what it does.

    so use the non-minified version.

    --
    world was created 5 seconds before this post as it is.