About

Cats, code and Casablanca

Programmer & Web Developer

I've worked QA, frontend dev and devops positions for thirteen years.

  • Degree: Masters
  • Job: QA (Doximity)
  • Phone: 512.820.3772
  • City: Austin, Texas

I completed my Masters in Software Engineering at Texas State in June 2022. Prior to school I had worked building websites (HTML, CSS and JavaScript) for several companies; had worked QA for a Fortune 500 company, and a startup which went public while I was there and had worked one devops position (setting up Jenkins CI/CD and writing tests in Java). In school I studied C, C++, Java, Python and Bash. On my own over the years I've learned some Node, Mongo, Angular, and React. Since school, I've been focusing on learning Ruby on Rails and Vue. Outside of work, I love riding my Peloton, listening to lofi music and spending time with my family.

Devblog

Notes From The Trenches

Javascript Check If All/Some Array Elements Are True

3/27/24

I learned today a quick way to test a bunch of boolean expressions in Javascript is to put them in an array and use Javascript's `some` or `every` method:

arr.some(Boolean)

arr.every(Boolean)

`.some(Boolean)` will return true if any element of the array is truthy. `.every(Boolean)` will return true if all elements in the array are truthy.

Source: https://www.30secondsofcode.org/js/s/check-array-values-are-truthy/#check-if-all-values-in-an-array-are-truthy

Quick Notes On Git Amending, Squashing & Diffing

3/25/24

I've been working collaboratively on Drivetracks with a couple people and have forced to improve my git-fu a bit and want to jot down real quick what I've learned.

change last commit messagegit commit --amend
change specific commit messagegit rebase -i HEAD~3
add stuff to the last commitgit commit --amend --no-edit
sqash last n commitsgit reset --soft HEAD~n
interactive squashgit rebase -i HEAD~n
(...but keep original commit date)git rebase -i --committer-date-is-author-date HEAD~n
see a branch's changesgit diff main
see a branch's divergent changesgit diff main...branch
see diff between two commitsgit diff hash1...hash2

Contact

Contact Me

My Location

Austin, Texas

Social Profiles

Email Me

mark@markmcdermott.io

Call Me

512.820.3772

Loading
Your message has been sent. Thank you!

Success

Message sent successfuly

Thank you for reaching out! 🙏