Objection.js Lensing

BaseModel.js const { Model } = require('objection'); class BaseModel extends Model { static get QueryBuilder() { return CustomQueryBuilder; } static get namedFilters() { paging: builder => { const context = builder.context(); builder.page(context.page || 0, context.page_size || 30); }, } } Something.js class Something extends BaseModel { static get tableName() { return 'somethings'; } // Something inherits filters from BaseModel…

awesome-phoenix

So, there's been a really cool trend with Facebook that's been happening for a while called awesome-lists. They were started by sindresorhus. I decided recently that I wanted to start my own board, but with a Phoenix mindset. We're lucky enough to have a growing and thriving tech community centralized…

Fun with ES6 Classes

So, I recently decided with a co-worker to start learning Javascript all over again, and just re-familiarizing myself with concepts, and in general just have fun learning! So, a few weeks ago i went ahead and decided to do a fun little setup with ES6 Classes. You can see the…