Jim Cheung

Tuesday, October 18, 2022

one day hacker news changed their html code, broke my crawler. I checked out the repo from 10 years ago, it's a simple java app. I downloaded the good old netbeans and fixed it.

this is the first time I needed to fix the crawler, their html source has been stable for about 10 years, amazing.

java's verbosity really is a benefit for maintenance, I could easily locate the issue, tested it and fixed it. although I had to use an ide


this is interesting, WebAssembly, Rust, ServiceWorkers

backend in the browser and able to handle http requests, data could be saved to indexed db

written in rust, and still too much effort to do little things

I have doubt about the whole edge thing, locked in their workers, durable objects, distributed dbs, but if edge is the browser, then I'm intersted

wasm definitely a trend recently, but most of them are written in rust, I might learn rust just for that ...


a random light color function I copied from stackoverflow, to highlight words

function randomColor () {
  return `hsl(${Math.floor(Math.random()*361)},50%,75%)`;
}


some picks from last couple weeks:

Blog Archive