Recursion in Elixir
Coming from an object oriented language with data mutability, learning looping in Elixir required that I let go of my current understanding about iterating over a collection. In fact, just forget looping and think recursion. So, what’s recursion? Recursion is solving a problem whereby one applies the same solution to smaller instances of that problem. […]
Angular 1.x Dropdown Menus
(Removing The Blank Option)
Over the past week I kept running into the issue of iterating over an array or an object in a <select> field with ng-repeat, only to find that I had a blank option as the first item in the dropdown. After trying several strategies, I finally found one that worked. Let’s say you want to […]
Animating height with only CSS
CSS transitions allows smooth animation of containers using max-height. Using height will not work.
Example:
Efficient Object Oriented Design with UML Sequence Diagrams
So, you have a feature to write. Now what? Do you start coding right away and hope for the best? Hopefully not. Here’s an example of using a Universal Modeling Language (UML) Sequence Diagram to plan a feature. In this example, User calls the create() method on Post, which in turns calls the send() method […]
Increase Productivity On Your Mac
Today I learned about a tool to help with workflows on your mac. The Better Touch Tool allows the user to create custom workflows, keyboard shortcuts and snap areas. The custom keyboard shortcuts can be set to individual apps or to be enabled in certain circumstances. In addition to special keyboard shortcuts, the app also […]