News for hackers. Stuff that matters.
Re:_hyperscript: A jQuery and JavaScript Alternative by tyingq on Wednesday April 21, 2021 @01:36PM (#26892852)
<div _="on click transition opacity to 0 then remove me">

My immediate reaction was "Oh, web Cobol".

Edit: By the downvotes, I'm guessing people think it was a lazy attempt to poke fun. It's not though :) Cobol has a very repeated VERB->NOUN->ADVERB->ETC sentence style pattern that's very similar to what's in that snippet of _hyperscript above. Like:

DIVIDE NUMA BY NUMB GIVING RES-DIV

PERFORM VARYING LoopCount FROM 1 BY 1 UNTIL LoopCount GREATER THAN 4

And so on...

Re:_hyperscript: A jQuery and JavaScript Alternative by deniz-a on Thursday April 22, 2021 @06:15AM (#26900977)
Thankfully, we have arithmetic expressions :]

Every command has an initial verb, which makes parsing easier (both by computer, and hopefully by people). Just for fun, here are your examples in hyperscript:

    get numA / numB then put it into resDiv
    -- or simply
    set resDiv to numA / numB
    
    repeat 5 times index loopCount
      log loopCount
    end
Re:_hyperscript: A jQuery and JavaScript Alternative by tyingq on Friday April 23, 2021 @11:58AM (#26916070)
Ah, very cool. Thanks for sharing the hyperscript examples.
Re:_hyperscript: A jQuery and JavaScript Alternative by lhjn on Wednesday April 21, 2021 @09:19PM (#26897527)
I had the exact same reaction. It's a very striking resemblance. Don't mean to detract from the project though, not my piece of cake but could be handy