|
|
|
|
|
by the_cat_kittles
4739 days ago
|
|
I think of "polyfill" as filling many different holes to make it so you can forget about the different cases (browser compatabilities in this case). A polyfill pours concrete over a bumpy surface and makes its smooth. "Shim", to me, is essentially synonymous with monkey patch, i.e. something you shove in there to make something work- shoving a folded napkin under a table leg to make it flat is shimmy to me. |
|
Kind of like a façade then[1]? A shim would probably be synonymous with an (very informal) adapter.
[1] http://en.wikipedia.org/wiki/Facade_pattern
[2] http://en.wikipedia.org/wiki/Adapter_pattern