Essays & Articles
I recently came across this line of Python code:
shipping = TextField(u’First Name’, label=’<a href=“[email protected]” onClick=“helpDialog();”>Help</a>’, validators=…)
Smell that? There’s an
onClick handler in an
You can stomach mixing two programming languages, but three is gross. In HTML, it’s common to inline CSS or JS here and there, trading convenience for the ability to cache stylesheets and script files, and to keep logic separate. Pretend you have a turkey. Whenever you inline code, visualize yourself hand-shoving another baked animal into that turkey. Grotesque.
index.html instead of in a cacheable
.js file? Did you inline some CSS for a button, instead of abstracting it into a cacheable
You defined a
Software engineer building machine learning backends.
Want updates when I write?