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."
jQuery is a hack too?
I learned two things today.
http://youmightnotneedjquery.c... ;)
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?
Submit it to the Panasonic app store.
Fuck Beta twice for more modpoints!!
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.
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.
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.
If I am forced out of Classic, I will leave and never look back.
Fuck beta.
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 :-)
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?
What is the native language of a browser?
As far as I've been able to tell, Portuguese.
Check out the code, it's amazing that it works at all.
Are you sure you aren't trying to read the minified version?
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
JQuery compared to Slashdot Beta:
The difference between knowing your shit and knowing you're shit.
--- Bigger bits, softer blocks, tighter ASCII.
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
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
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.
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.