HTML5 App For Panasonic TVs Rejected - JQuery Is a "Hack" 573
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."
Psh, jQuery. (Score:5, Informative)
Boycott (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 [slashdot.org] in a new tab. After seeing that, click here [slashdot.org] 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.
Re:Beta is terrible! (Score:5, 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.
Re:Um.. Please Explain (Score:5, 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.
I kind of agree (Score:4, Informative)
Bad timing, hope this helps. (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 [jquery.org] many large companies, including Wordpress, BlackBerry, Intel, Mozilla, and Adobe, to pick just the most recognizable names from that page.
According to this [lineofthought.com], it is used by Google, Facebook, AOL, ESPN, and whitehouse.gov. This [pingdom.com] 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
Fuck Beta: I've been here for 13 years (Score:5, Informative)
If I am forced out of Classic, I will leave and never look back.
Fuck beta.
Re:Um.. Please Explain (Score:1, Informative)
Ok, since you seem to think you know what jQuery is, but clearly don't, it's an API over the native browser APIs, which hacks around various glitches, quirks, and bugs in said native APIs. It also, as a consequence, makes it easier to write certain things than the native APIs often do, but that's NOT it's primary motivation. The vast majority of the code in jQuery is to work around browser issues, hence "jQuery is a hack". If you want to call it a kludge instead, fine. It's still not primarily a convenience library. That doesn't diminish it's usefulness, but don't go pretending it's not a "hack/kludge" when it is.
Re: oh look, an actual tech related "ask slashdot" (Score:3, Informative)
The "time to develop being as close to zero as possible" thing is only looking at one part of the productivity/profitability angle.
If, for instance, your HTML5 app is able to be co-opted into doing very scary things by feeding it strange inputs for the plex server address, or by using some hack to send it instructions that make it improperly call additional functions in the script library (yes, I know javascript is sandboxed) then the developed application can suddenly be used in more sophisticated hacks, doing exactly what the code in the library was meant to, just not in ways the application was meant to.
This can result in loss of profitability for the company adopting the software and loss of percieved public image and reputation, which can cost the company a good amount of money.
At what point does saving 20 minutes to an hour of programming time trump the costs of the potential externalities?
That doesn't even count the issues with wasting space inside an embedded device's memory to hold code that will, by design anyway, never be executed.
Sometimes the correct course of action is to write the function yourself, and not include yet another library, especially when dealing with embedded or closed platform devices.
Putting a swiss-army knife in a closed platform goes against the purpose behind using a closed platform. The costs of such inclusion can dwarf the savings in development time.
Developer time is not the end-all of the discussion.
Re:Psh, jQuery. (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.
Spent all mod points on Beta protest (Score:5, Informative)
Re:Psh, jQuery. (Score:5, 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.
Re:Beta is terrible! (Score:5, Informative)
quoting myself
You can also get independent RSS feeds from each subreddit. sweet!
Re:Boycott (Score:3, Informative)
I don't know about others, but when I get redirected to beta it tells me that I need to enable Javascript to see the comments. Granted I'm just an AC and maybe there's a hack to get around that, but I've been reading and commenting on /. since the days of Hemos and CmdrTaco and I've never had to turn on Javascript to read comments, not until this beta.
Re:Um, WTF? (Score:5, Informative)
Re:Where to go after Slashdot? (Score:5, 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
Re:Fuck Beta: I've been here for 13 years (Score:5, Informative)
Step 1: Singup on reddit:
Step 2: visit these subreddits and click "subscribe" in each one of them:
http://www.reddit.com/r/games [reddit.com]
http://www.reddit.com/r/gaming [reddit.com]
http://www.reddit.com/r/pcgami... [reddit.com]
http://www.reddit.com/r/privac... [reddit.com]
http://www.reddit.com/r/politi... [reddit.com]
http://www.reddit.com/r/openso... [reddit.com]
http://www.reddit.com/r/techno... [reddit.com]
http://www.reddit.com/r/law [reddit.com]
http://www.reddit.com/r/space [reddit.com]
http://www.reddit.com/r/scienc... [reddit.com]
http://www.reddit.com/r/govern... [reddit.com]
http://www.reddit.com/r/securi... [reddit.com]
http://www.reddit.com/r/biotec... [reddit.com]
http://www.reddit.com/r/censor... [reddit.com]
Step 3: Go to your user profile and look for your personalized RSS feed, it will give you a digest of the best stories accross all your subscriptions.
Try reading the actual response (Score:4, Informative)
The reviewer did not say that jQuery was a hack. The review said that using jQuery to avoid using their predefined interface was a hack.
Whether that interface is so bad that you are driven to use a workaround to get anything done I cannot say. However, you will get nowhere if you argue against an imagined response.
Re:Beta is terrible! (Score:4, Informative)
If a large population likes it the way it is, that is valid feedback. It means don't change.
It's possible that /.'s new overlords have thought of that and don't want the current population anymore.
Maybe the format change is a way to push us luddites out.
/And whose bright idea was it to strip almost all the Green out of beta?
BETA discussion (Score:5, Informative)
http://beta.slashdot.org/submi... [slashdot.org]
I HAVE THE ACTUAL ANSWER TO THE GUY (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.
Re:Quite possibly indeed! But still... FUCK BETA! (Score:3, Informative)
I think you forgot: Fuck Beta
Re:Quite possibly indeed! But still... FUCK BETA! (Score:5, Informative)
Also, fuck beta.
And now I have a new signature. Thanks!
Re:Quite possibly indeed! But still... FUCK BETA! (Score:5, Informative)