Andrew Scripts

Musings about Programming and Programmer Life-Skills



Have you ever thought, “maybe anxiety is normal”? What about… healthy?


Use verbose naming in JavaScript –

Use verbose naming in JavaScript –


Mock Response – One Thing Well

Mock Response

Great little service that lets you ask for any HTTP status code response you want, to enable testing for different conditions. Also has a great list of all of the different HTTP status codes.

via One Thing Well

The Art of Writing Constantly

The Art of Writing Constantly

Here’s the thing: the more you do something, the more you continue to do it. And the more you continue to do it, the easier it becomes.

5 Easy To-Dos That Keep Your To-Do List Healthy – Fast Company

5 Easy To-Dos That Keep Your To-Do List Healthy

  1. Choose the right tool – Will an App or Sticky Notes or a Notepad work best?
  2. Be in the now – Simplify and focus your tasks. Work it down to actionable items, rather than big goals.
  3. Learn to delegate – If General and later President Dwight D. Eisenhower had to delegate, so do you.
  4. Prioritize and reward – All work and no play…. Split up your tasks with quick rewards. Put them on your list and you’re more likely to do them, and when the time is right.
  5. Plan ahead – Review at the end of your day and plan for the next day. Try to keep far-future tasks and goals out of your daily to-do list. (See number 2)

If you like an analog (paper) to-do list, might I recommend one of my to-do list templates? I’ve also got a context-based list template I’m about to release too!

DailyJS: The State of Node and Relational Databases

DailyJS: The State of Node and Relational Databases.

Before I get started, let me say that if you’re into JavaScript development, you need to be subscribed to DailyJS. EchoJS likewise is an invaluable resource for the latest and greatest in JavaScript news.

I am a big fan of relational databases, having used them for many years now. I’m slowly trying to get my head wrapped around NoSQL options, and in fact have to work with CouchDB (now Couchbase) and Elastic Search at my job. But for most applications, I can ‘make sense’ of using a relational database over a non-relational one more often than not.

I’m also slowly getting into Node (server-side JS) more and more, but I haven’t dived completely in yet. So this article was very interesting to me, to get a broad overview of the options. Alex Young, the author, breaks up the various options this way (along with examples for each):

  • Driver – mysql and pg
  • Abstraction Layer – relational, any-db, and massive
  • Validator – jayschema, validator, and conform
  • Query Generator – sql
  • Schema Management – Sequelize and db-migrate

I’ve not included links to each on purpose. I think you should read the whole article if you’re interested, or at the least give Alex the inbound traffic out of courtesy and respect. 😉

He concludes by stating that even though there’s a strong anti-ORM (Object-Relational Mapping, an abstraction technique that turns relational database entries into objects) sentiment amongst the Node community, there are still some interesting projects like relational coming up.

He mentions briefly the progress that PostgreSQL has made (included by default when using Heroku), and also that MariaDB exists as a drop-in replacement for MySQL and has a non-blocking Node module. The comments are also sure to be a treasure-trove of implementation notes from others.

The 4 Elements of Personal Energy

The 4 elements of physical energy and how to master them

Based primarily on the works of Tony Schwartz, beginning with his quote “Manage your energy, not your time.”

The four energies we all have:

  1. Physical Energy – How healthy are you?
  2. Emotional Energy – How happy are you?
  3. Mental Energy – How well can you focus?
  4. Spiritual Energy – How connected are you to purpose? (Or, why are you doing all this?)

This article in particular then breaks down Physical Energy and what you can do to improve it. Sleep well, eat well, be at least a little active, and take breaks to renew yourself.

For more on steps you can take to ensure the health of all four energies, I recommend James Altucher’s Daily Practices, along with his tool

Smarter-Git: My Rakefile of Automated Awesomeness

Smarter Git

I created this rakefile of git tasks back when I was working with a dev team that relied heavily on rake. My reasoning was that since I was already doing rake deploy:staging and the like all the time (they preferred Screwcap to Capistrano), I might as well do rake git:merge_and_deploy too. This works especially well with a text expander or bash alias, where you can setup rg: to expand to rake git: or rug: to become rake username:git: if you want to further namespace out these functions.

The tools I use here also work well by themselves or in their own aliases. Use this collection as a starting point for further customizing your workflow, or use as is for a quick but complete solution.

Here are the libraries I used in this rakefile:

  • Legit – Provides a handy ‘sprout’ function for new branch creation
  • Git Smart – Provides smart-merge, smart-pull, and smart-log
  • Git Extras

To-Do and Someday Lists

TLDR; I have made my own lists, which I’ve linked to here (again at bottom):

To-Do List

Someday/Whenever List

I have found that I like paper-based task management for my day-to-day work tasks. I don’t work on my phone, so as much as I love CARROT – my iOS task manager with an attitude – it doesn’t quite feel natural to try and keep up with my work tasks on my phone. Bigger stuff or more personal stuff that I can manage anytime I handle there. Read the rest of this entry »

Find tweetable sentences on any webpage with Save Publishing

Find tweetable sentences on any webpage with Save Publishing

Excellent for quickly tweeting snippets, especially if you don’t care about writing a full blog post like I usually do here.

Pulls up Twitter’s “Write a Tweet” page in a new window, so it’ll also work with Buffer’s extensions.

%d bloggers like this: