Hacker News new | ask | show | jobs
by bch 4037 days ago

  s/^\([a-zA-Z_]*\)(\(.*\))$/ggl_\1(\2)/  ??
This ruling sounds horrible... very curious to hear point-of-view of people who think otherwise.

Edit: my regexp joke is mangled by markup, but who cares ?

Edit: fixed regexp display (not that it affects joke).

2 comments

put a couple of spaces in front of it

  *like this*
I don't know if I'm failing to read regexes or failing to see the humor. Can someone explain/kill the joke for me?
I believe it's basically a suggestion that one replaces each `foo` or `bar` API call with a prefix, e.g. `ggl_foo`, `ggl_bar`. I expect that doing so would get one slapped (literally or figuratively?) by a judge for being a wiseass.
The API is just a signature for calling the function -- I was joking that instead of

  screen_draw(int x, int y);
what Google could do is:

  ggl_screen_draw(int x, int y);
and say "New API -- they've got screen_draw(), we have ggl_screen_draw()".
Copyright protects deivative works, not just literal copying, so if copying the API is a violation, so is such a direct transformation.