Posts

Showing posts from July, 2015

Do No Harm

Image
Quick:   what do Michael Crichton, Saint Luke, Anton Chekhov, Copernicus, Ethan Canin, William Carlos Williams, Sir Arthur Conan Doyle, Carl Jung and Rabelais all have in common?   None of them are women?   Okay, throw in Tess Gerritsen, Alison Sinclair and Alice Weaver Flaherty.   They are doctors and writers.   What is it about the medical profession that along with the fragile art of healing comes the ability to tell a story?   Is it because the illness of the patient is steeped in narrative?   Is it that one cannot begin to heal what ails a patient until he or she understands that unique backstory? To that list of physician-writers must be added British neurosurgeon Henry Marsh.   His recently published memoir, Do No Harm: Stories of Life, Death, and Brain Surgery (Thomas Dunne Books, 2015) is an insightful and poetic look inside the human mind.   It is, at the same time, technical but accessible, brilliant and beautiful.   We follow the surgeon’s microscope into the patient’s br

New regular expression features in ECMAScript 6

This blog post explains new regular expression features in ECMAScript 6. It helps if you are familiar with ES5 regular expression features and Unicode. Consult the following two chapters of “Speaking JavaScript” if you aren’t: “ Regular Expressions ” “ Unicode and JavaScript ” Overview The following regular expression features are new in ECMAScript 6: The new flag /y (sticky) anchors each match of a regular expression to the end of the previous match. The new flag /u (unicode) handles surrogate pairs (such as \uD83D\uDE80 ) as code points and lets you use Unicode code point escapes (such as \u{1F680} ) in regular expressions. The new data property flags gives you access to the flags of a regular expression, just like source already gives you access to the pattern in ES5: > /abc/ig.source // ES5 'abc' > /abc/ig.flags // ES6 'gi' You can use the constructor RegExp() to make a copy of a regular expression: > new RegExp(/abc/ig).flags &

Philemon's Problem

Image
Many years ago, I was assigned to read James Tunstead Burtchaell’s book, Philemon’s Problem:   The Daily Dilemma of the Christian , for my high school senior religion class.   Recently, I found my copy of the slim volume with my name and phone number on the front cover buried at the back of a shelf.   Sadly, that name and number were the only marks in the text.   I never read the book most likely, or if I did, I found little to take note of or highlight.   This does not surprise me; in those days, the way to make sure I did not read a particular book was to make it a class assignment.   I wanted to read what I wanted to read, not what some teacher demanded of me to read.   And like many of my assigned readings from that time in my life, I usually discovered their importance when I had to teach them to a new crop of students in my own classroom years later.   Since I am writing a paper about Paul’s letter to Philemon, one of the shortest letters from that section of the New Testament a