News for hackers. Stuff that matters.
Re:What people in tech had to say about JavaScript when it d... by nickthemagicman on Monday February 24, 2020 @04:49PM (#22408821)
Jquery was invented and became massive for decades because it made js basically suck less.
Re:What people in tech had to say about JavaScript when it d... by JimDabell on Monday February 24, 2020 @10:30PM (#22410698)
jQuery was invented for basically two reasons, neither of them about making JavaScript suck less.

1. Introduce a "chaining" API.

2. Paper over the differences between how browsers implemented the DOM, with events being the big issue.

Note that the DOM is not JavaScript and JavaScript is not the DOM. The DOM is a language-agnostic API for manipulating markup-based documents.

Re:What people in tech had to say about JavaScript when it d... by tasogare on Tuesday February 25, 2020 @02:54AM (#22411558)
That's nitpicking. Javascript was the only language that could be used to manipulate DOM so it's normal to conflate the two.
Re:What people in tech had to say about JavaScript when it d... by uk_programmer on Tuesday February 25, 2020 @05:53AM (#22412214)
Well to nitpick your nitpick. Internet Explorer did allow you to use vbscript to manipulate the DOM.

http://www.herongyang.com/VBScript/IE-Browser-DOM-API-Docume...

Also you can use XSLT to create a new DOM tree in a browser from an XML document.

http://www.informit.com/articles/article.aspx?p=24032&seqNum...

EDIT: I forgot about JScript vs JavaScript vs ECMAScript.

https://johnresig.com/blog/versions-of-javascript/

However much of this isn't relevant today.

Re:What people in tech had to say about JavaScript when it d... by nickthemagicman on Tuesday February 25, 2020 @07:00AM (#22412453)
So in other words: 1: to fix js chaining 2: to fix js compatibility Ergo to make js suck less.
Re:What people in tech had to say about JavaScript when it d... by JimDabell on Tuesday February 25, 2020 @07:39AM (#22412661)
No. The first is incoherent, the second ignores half my comment.
Re:What people in tech had to say about JavaScript when it d... by nickthemagicman on Tuesday February 25, 2020 @09:33AM (#22413502)
You're splitting hairs with that half of your comment so I ignored it.
Re:What people in tech had to say about JavaScript when it d... by tabtab on Monday February 24, 2020 @07:38PM (#22409898)
To an extent, yes, but didn't entirely solve the problem. When something goes wrong with Jquery or something that uses it, Jquery is yet another layer to debug or break. There's a point where throwing more layers at a problem has diminishing returns.

The solution (for CRUD makers) is to make common desktop GUI idioms part of a standard instead of emulate them all. This includes but is not limited to: MDI windowing (as an option), modal panels, drop-down menus, tabs, combo boxes, editable column-expandable data grids, expandable trees, tool bars, and a decent multi-select widget instead of using (just) the Ctrl key. HTML frames were helpful, but have since been deprecated. Somebody found them too useful? Mobile land is too different from desktop land. Forcing a lowest common denominator is bad for business IT productivity.