Jason (jcreed) wrote,
Jason
jcreed

I was mystified for a lot longer than I feel I should have been as to why
var sql = [
    ["BEGIN TRANSACTION"],
    ["INSERT INTO SOME PLAUSIBLE SQL WITH A PARAMETER LIKE $1;", [JSON.stringify(state)]]
    ["COMMIT"],
  ];
console.log(sql);

produced
   [["BEGIN TRANSACTION"], undefined]


I feel like this says something about human perception or cognition or something.
Tags: javascript, programming
Subscribe

  • (no subject)

    K's off at an atypically Saturdayish Type-Thursday event, so I stuck around the apartment hiding from 100-degree heat, and noodled around with…

  • (no subject)

    Playing around with the agda javascript backend, now. Like, my ears are popping from the sudden change of type-theory-pressure.

  • (no subject)

    https://deadlockempire.github.io is a very cute edutainment game, meant to teach people about deadlocks and race conditions and concurrency…

  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 6 comments