10 Practices for Readable Code

I’ve been writing code for 20 years. During that time I’ve worked with 17 teams coding different languages to build hundreds of projects. These include everything from a simple blog site, to APIs supporting 3,000 requests/second, to top selling apps. From these experiences, combined with the books I’ve read, it’s become apparent to me what matters most in code: readability.

https://dev.to/gonedark/10-practices-for-readable-code-143a

Implementing single file Web Components

Probably everyone who knows the Vue framework also heard about its single file components. This super simple idea allows web developers to define the entire code of a component in one file. It’s such a useful solution that an initiative to include this mechanism in browsers has already appeared. However, it seems quite dead as, unfortunately, no progress has been made since August 2017. Nevertheless, looking into this topic and trying to make single file components work in the browsers using the technologies already available was interesting enough to write an article about it!

https://medium.com/content-uneditable/implementing-single-file-web-components-22adeaa0cd17

5yo With Two Problems

I took Blaire to the zoo that last time she had a day off of school. While there Murphy’s Law struck and there was quite a major issue with a web app I support. I got on the phone and folks back in the office fixed it all up. I was trying to explain what was going on to Blaire. I always do my best to explain things to her as best I can given her age. I really try hard never to say “it’s grown-up stuff” and I would never ever say “you wouldn’t understand”. Bleh!

Anyway I explained the idea that every problem is really two problems. First you have the immediate surface problem. “The app is down” or “my car is out of gas” or “I’m bored”. Then you have the underlying cause of the problem. “The app depends on an external resource that is evidently not very dependable” or “I don’t pay enough attention to the gas gauge” or “I need a hobby”.

She got it. A few days later, completely unaware, I mentioned a completely unrelated problem we’re having at home. She immediately jumped in and said “it’s not a problem, Dad, it’s two problems!” Wow! Can you imagine what 5yo would be capable of if we actually met their potential instead of downplaying it?

Written 2015-11-20.

I think one’s feelings waste themselves in words, they ought all to be distilled into actions, and into actions which bring results.

Florence Nightingale

No problem is too small or too trivial if we can really do something about it. You say you are a nameless man. You are not to your wife and to your child. You will not long remain so to your immediate colleagues if you can answer their simple questions when they come into your office. You are not nameless to me.

Richard P. Feynman

You don’t have to say everything to be a light. Sometimes a fire built on a hill will bring interested people to your campfire.

Shannon L. Alder
Design a site like this with WordPress.com
Get started