7
Wisecrack
13d

Anyone that tells you "jquery is stupid" is either a pro or obviously hasn't tried to do drag and drop with the html5 api.

What a pain in the fucking ass bunch of boilerplate bullshit.

Comments
  • 1
    what's the hangup, maybe I can help.
  • 3
    Too much of a footprint for just drag and drop. There are loads of codepens up for nabbin'
  • 2
    I've had a project that relied on excessive drag and drop processes. There were hundreds of hundreds objects to drag, and hundreds of hundreds cells to drop. Jquery UI is a turtle on that situation. Because all of drags and drops rely on event listeners and consume too much RAM. But HTML5 is not like that.
  • 2
    Too heavy for just a few uses, not roboust enough for many.
  • 0
    @M1sf3t nothing
    im just aqzy son of a bitch.

    took one look at all the weird edge case code for various browsera and said "nope" out loud.
  • 1
    @Wisecrack yea your not the only one. I learned it well enough to build a trello mock up but I switched to svg's and pointer events shortly after and haven't looked back since.
  • 1
    @M1sf3t turned off autocorrect b/c i got tired of it being *way* off on really obvious words.

    tiny keyboard and the above now mean my posts are guaranteed to be 40% more retarded.

    how long did that trello mockup take you anyway?
  • 1
    Jquery was amazing at doing what it was supposed to do and today it’s still pretty great.

    There are other smaller, maybe nicer ways to do certain things.

    But without jquery kicking off the entire industry. We would still be in the dark ages
  • 1
    @Wisecrack a week, week and a half maybe? it was just the cards with the data binded to a store. Using svelte of course. I was gonna add a way to send it to a db from there but this happened to be my first major git blunder when I decided to git "rm" it after I git "add"ed it along with a list of other small components I was migrating to my sapper project.

    I've got another working draft started but I decided I wanted to build multiple views, one of which being a mind map type thing, each with their on individual sets of filters and arrangements. Now I'm letting the idea simmer a bit while I slowly wrap my mind around what the data objects will need to look like in order for it to work.
  • 1
    here's the basic movement part. Most of the function is in the store. This particular version doesn't work with svg's though, just absolute position. There's a conversion that has to be added with the pointer coordinates for svg

    https://gitlab.com/M1sf3t/...
  • 0
    @M1sf3t

    erggghhhg...god why does svelte have to be so clean and fantastic yet so underappreciated!
  • 1
    jQuery needs to die, and why this tagged with devrant?
  • 0
    @Fast-Nop no, jquery is the new hotness. it's becoming popular again.
  • 3
    @Wisecrack It will never become popular again because:

    1) It manipulates the DOM directly which derails into the typical jQuery spaghetti for complex applications. That's why JS frameworks were created in the first place.

    2) Old IE support has become so irrelevant that even jQuery ditched it years ago.

    3) Most jQuery usage is either easier, shorter and with better performance in plain contemporary JS, or isn't JS' job (e.g. animations), or doesn't belong on a production website to begin with.
  • 3
    @Fast-Nop

    1. lies
    the dom is the source of all life and light in this world

    2. slander. jquery appears to be rising fast again. some people using react are now using jquery left and right. Google might even be rewriting it's homepage in jquery.

    3. heresy. what, did you only test it in one browser or something?

    I know, im terrible! Here you are making a valuable post and I jyst shitpost with my tongue in my cheek.
  • 1
    @Wisecrack svelte's the new jquery. jury's out on how fast it is compared to vanilla, but it does seem to run circles around most everything else. It's also half the size of react, even with sapper added and you'd still have to download redux and next to get the same features it brings to the table.
  • 1
    @Wisecrack 🙄 kids today...
  • 0
    @M1sf3t been meaning to try next but im working on making sure I have a more solid foundation.
  • 1
    @Wisecrack fuck that, you just think svelte is clean, wait til you get a load of sapper.
  • 0
    @M1sf3t I heard sappee is really well structures and thought out?
  • 1
    @Wisecrack well the whole thing is only 273kb and only 5 dependencies so I'll let you do the math on that one 😅

    https://npmjs.com/package/sapper/
Add Comment