• Design
  • Shotty
  • Blog
  • Reading
  • Photos
Menu

Jacob Ruiz

Product Designer
  • Design
  • Shotty
  • Blog
  • Reading
  • Photos

Improving the render method in TodoMVC

June 5, 2018

Today's exercise was to improve the render method in TodoMVC. The problem with the render method was that it did more than just render the view. It also stored data to local storage. Here's a look at the method:

Read More
In Javascript, Code Tags mastering javascript fundamentals
Comment
javascript-defaults

Mastering Javascript Fundamentals: AccountingJS Internal Helper Methods (Part 2): defaults

May 10, 2018

Summary

  • The defaults() function allows you to pass in two objects and apply the properties from the second object to the first one where those properties don't already exist on the first object.

  • It does this by enumerating through each property on the second object and checking to see if that property exists on the first object. If the property doesn't exist, it applies that property to the first object.

  • This is a way to only need to define "custom" properties when creating a new object, and then setting all the "standard" options to the defaults set in another "default" object.

Read on to see how this all works in detail.

Read More
Tags mastering javascript fundamentals
closures@2x.png

Mastering Javascript Fundamentals: Scopes, locals, closures, globals

April 27, 2018

Summary:

  • Functions can always remember the variables they could see at creation.

  • They can see variables defined inside the function.

  • They can see variables defined in enclosing functions.

Read More
In Javascript, Code Tags mastering javascript fundamentals
shotty-skinny2x.jpg

Shotty - Faster Access To Your Screenshots on Mac

Shotty is an award-winning Mac app I created to give you instant access to all your recent screenshots, right from the menu bar. You can even add annotations on-the-fly. Stop wasting time digging through Finder for your screenshots. I promise it’ll change your workflow forever (just read the App Store reviews!).



Most popular

information-architecture

Information Architecture: The Most Important Part of Design You're Probably Overlooking

Follow @JacobRuizDesign