News for hackers. Stuff that matters.
Re:Ask HN: Is jQuery still a thing? by darrelld on Wednesday November 16, 2016 @01:59PM (#12970173)
jQuery might not be the fancy new hotness on the block, but it still works and is still used.

I get the feeling more and more that developers are embarrassed about using it, similar to how some devs are embarrassed about using PHP, yet it's still a workhorse.

Re:Ask HN: Is jQuery still a thing? by toadkicker on Wednesday November 16, 2016 @02:24PM (#12970480)
It's really silly that is how the culture behaves. The right tool for the job is a common moniker in other industries, yet in ours its the source of heated debate and hipsterdom.
Re:Ask HN: Is jQuery still a thing? by marcosdumay on Wednesday November 16, 2016 @02:34PM (#12970605)
PHP is some tool that was never really good, but had some compelling features that no other tools provided. Except that now there are better tools for any task it solved, excluding the task of "maintaining a PHP codebase".

If you are starting a new project on it, you should indeed feel silly.

Re:Ask HN: Is jQuery still a thing? by gremlinsinc on Wednesday November 16, 2016 @08:28PM (#12973383)
I disagree, -- sure if you're building native php apps w/out a framework.. but Laravel is probably the easiest MVC framework out there to pickup and build something that works super fast without having to know how to deploy a VPS, etc... For small to midsize php is STILL a workhorse -- but I wouldn't recommend wordpress or vanilla php themselves.

Laravel collections alone make it almost a functional language when using it w/ laravel.

Re:Ask HN: Is jQuery still a thing? by dabernathy89 on Thursday November 17, 2016 @11:38AM (#12978926)
Have you looked at the PHP landscape over the past few years? You may still not love the syntax, but PHP as a language, an ecosystem, and a developer community is extremely strong. It's a fantastic choice for a web app in 2016.
Re:Ask HN: Is jQuery still a thing? by marcosdumay on Thursday November 17, 2016 @02:50PM (#12980805)
Honestly, no, I haven't look at it in the last 7 years. (It's being that great! Thanks for lighting-up my day.)

Also honestly, I don't think I should look now. The PHP applications I see around are still the ones getting serious vulnerabilities found every week, the same ones that other communities found ways to pack the solutions into tools and conventions that are easier to use than not to. I also don't see anybody claiming PHP has any new template system to replace the dated original one.

I've seen some progress on the language, but not nearly enough to make it compelling. I have plenty of stuff already on my ToTry list, PHP would have to say something better than "I'm not a complete mess anymore" to enter it.

Re:Ask HN: Is jQuery still a thing? by dabernathy89 on Thursday November 17, 2016 @06:16PM (#12982710)
You can of course choose to still avoid it - but your advice to other devs to do the same makes little sense. It's a completely different beast than it was 7 years ago.
Re:Ask HN: Is jQuery still a thing? by marcosdumay on Friday November 18, 2016 @08:56AM (#12986739)
Do you know of any compelling reason, instead of problem fixes?

Because the language is a bit archaic (has maintainability problems for large codebases, has the "too little power" problem for small codebases); as far as I have looked, the ecosystem still does not include a good templating system (although it does include most of the tools available on other web ecosystems); and the community is still heavy on applications with the same kinds of security bugs they always had, and many, many "X-only" developers.

And, anyway, fixing those outstanding problems can only make it an ordinary language. And there's no reason to look at any language that the best claim is "it's not worse than any other random language".

Re:Ask HN: Is jQuery still a thing? by zelon88 on Wednesday November 16, 2016 @02:39PM (#12970662)
I disagree. Let's try adding 0.2 and 0.3 with the JScript library of your choosing and see if it's any easier than PHP.
Re:Ask HN: Is jQuery still a thing? by marcosdumay on Wednesday November 16, 2016 @03:14PM (#12971035)
Javascript being bad does not make PHP any better.

There are more than 2 languages available for backend programming. Some even get both templating and IO right.

Re:Ask HN: Is jQuery still a thing? by hood_syntax on Wednesday November 16, 2016 @02:46PM (#12970730)
Floating point math has been around for a very long time, I don't get why that's what you would pick as a problem; a lot of languages have the same behavior. I'm not a fan of JS either, so you don't have to give me a reason to dislike it.
Re:Ask HN: Is jQuery still a thing? by zelon88 on Wednesday November 16, 2016 @02:57PM (#12970866)
I wasn't necessarily giving you a reason to dislike it. I was giving you a reason why I personally believe it to be over-hyped and convoluted (and why I disagree that PHP is embarrassing by comparison).

I picked floating point math as a problem because JScript would give you an incorrect answer.

Re:Ask HN: Is jQuery still a thing? by labster on Wednesday November 16, 2016 @02:24PM (#12970479)
PHP should be significantly more embarrassing than jQuery. The jQuery interface is well designed and reliable.

The fact that it still works is important. As long as I've got clients asking for IE 8 support, jQuery's going to be in my toolbox. And probably even after.

Re:Ask HN: Is jQuery still a thing? by tjons on Wednesday November 16, 2016 @02:31PM (#12970564)
Ouch. PHP dev here. We write design-pattern-influenced code with classes, abstract classes, DI, interfaces, etc. It's not all bad.
Re:Ask HN: Is jQuery still a thing? by brandon272 on Wednesday November 16, 2016 @02:37PM (#12970645)
You know, it's been well over a decade of seeing the anti-PHP stuff and I still have yet to see a "PHP is evil" argument that doesn't fall apart after a little scrutiny. I proudly use it and am happy to look at it's usage vs. alternative languages in any of the real-world projects I've developed.
Re:Ask HN: Is jQuery still a thing? by markplindsay on Wednesday November 16, 2016 @02:34PM (#12970600)
React (plus a couple shims) works great with IE8 up until v15.
Re:Ask HN: Is jQuery still a thing? by fetbaffe on Wednesday November 16, 2016 @03:56PM (#12971433)
PHP has a renaissance now, nothing embarrassing at all.
Re:Ask HN: Is jQuery still a thing? by flukus on Wednesday November 16, 2016 @09:50PM (#12973832)
$Do $you $still $need $dollars $everywhere?
Re:Ask HN: Is jQuery still a thing? by fetbaffe on Thursday November 17, 2016 @03:47AM (#12975612)
Of course, we don't code for free.