Skip to main content

Matt Smith

  • About
  • Contact
Web Dev | Front-End Engineer | UX Designer

Math.floor, Math.random, and Jurassic Park

November 14, 2016
1 min read
2542 views

In JavaScript, the Math object is something developers work with a lot. And two methods in particular, Math.floor() and Math.random(), are often utilized together. Let’s take a quick look at both to see how we might use them to create a random text engine. The Math.random() method generates a number...

  • JavaScript

Show my password, please

October 24, 2016
1 min read
14157 views

Stop me if this sounds familiar: you’re logging into a site or app on your phone, carefully entering your password, you tap the sign-in button, and… “Incorrect password, please try again.” Ohhh, snap! You didn’t enter the wrong password, you simply tapped a wrong key. It’s something you likely would’ve...

  • JavaScript
  • UX

Splitting a border around another element

October 10, 2016
1 min read
5327 views

This is one of those “Can you do that, no you can’t do that, but can you really do that?” moments. Splitting the border of an element around another element. Although, I should put quotes around “splitting”. You’re not actually splitting a border, but rather creating the appearance of it....

  • CSS
  • HTML
Newer posts Older posts
Twitter
LinkedIn
GitHub
CodePen
© 2025 Matt Smith. All rights reserved.