Alex Sears
user

Alex Sears

Developer. Drummer. Ginger.


Featured

article

Create a POS System in Vue.js - Part 3

Posted on .

Learn how to move your Vue.js components into their own directories and use Gulp and Browserify to pull it all together.

Featured

article

Create a POS System in Vue.js - Part 2

Posted on .

In this post, we will take the application from the previous post and abstract out the functionality into reusable components.

Featured

article

Create a POS System in Vue.js - Part 1

Posted on .

Together, we will create a POS system using Vue.js, starting with a mockup and moving to a fully-functional application.

Featured

article

Create a POS System in Vue.js - Introduction

Posted on .

Vue.js is a view library that updates the physical DOM based on state managed in JavaScript. Together we will build a simple POS system that demonstrates its power.

Featured

article

Adding Ellipsis to Text Using CSS

Posted on .

In almost every blog these days, there is a listing page of blog posts with “Read more” or ellipsis (…) to show there is more content to be viewed. Many people will use backend languages, such as PHP and Ruby, to truncate the text before it gets to the browser. That is an effective technique that works well. However, if you want to be more responsive and allow the browser to be able to change how much text is shown depending on the screen width, you should use CSS to create these ellipsis.

Featured

article

Persisting Guest Users in Rails with Devise

Posted on .

Some sites allow guest users to still interact with it. Kandid.ly allows you to like a photo, for example. CodePen and JSFiddle allow you to create pieces of code without having an account. Devise by default doesn’t have anything in it for having guest users on your site. Adding this functionality is not a difficult thing to do.

Featured

tutorial

User Friendships in Laravel

Posted on .

Facebook has friends. Twitter has followers. LinkedIn has connections. A staple of a social media site is the ability to let people connect with other user in some way. It’s not very social if people aren’t interacting. Adding this to a website isn’t that difficult. It just takes some thought into what that relationship looks like on a database level.

Featured

article

Iterating Backwards Through A Ruby Array

Posted on .

This will be a quick one. I have seen alot of posts on StackOverflow about iterating backwards through a Ruby array. Ruby, in all its beauty, gives quite a few ways to iterate through an array.