Leveraging Prettier and Eslint in Sublime Text 3 for cleaner code

Prettier has been getting a lot of attention recently – and rightly so; it’s a simple and effective way to ensure a consistent style across your code base. By configuring a limited set of options, you can quickly set up Prettier to format your code in your favourite IDE using one of the respective plugins (Atom, VSCode and Sublime, for example). You can then have it automatically format on save or if you prefer a little more control, on a specific key binding.

Continue reading

UX Power Tool Time

Jon and I are a lot like like the dynamic duo of Tim “The Toolman” Taylor and Al Borland from the 90’s TV show, Home Improvement: We often wear flannel and blue, one of us can grow a beard, we love dad jokes, and we each have different perspectives on our industry.

Source

Creating infinitely scalable connection arrows in Sketch

When wireframing your next big idea in Sketch, you may find yourself creating arrows on your canvas to show how screens might flow. It’s all fun and games until you need to scale or stretch one of your arrows and you find yourself with a distorted mess.

Source 

: &​​

A Quick Thought on React, Redux and ImmutableJS

I’ve been struggling to decipher the ImmutableJS documentation and while I can appreciate the benefits, the learning curve has been steep. I therefore wanted a way to ensure that if I later change my mind about implementing ImmutableJS, I had an easy way out without having to recode every React component in an ever growing app.

 

I want to keep my components clean of other frameworks (as much as possible) and this includes having zero ImmutableJS code in there. Note that I am using Redux but I don’t think it’s a requirement to maintain this philosophy.

So I use a selector in my reducer file (but you could just have a file where you keep your ImmutableJS abstractions):

 

export const getMyThings = (state) => {
  return state.get('things');
};

Then my container component has this little function (if you’re not using Redux you can still use a similar method to inject the selector as props):

 

const mapStateToProps = (state) => {
   return {
    things: getMyThings(state)
  };
};

 

Finally, my component can simply use it’s props without worrying about ImmutableJS:

 

class ListOfThings extends Component {
  render() {
    return (
      this.props.things.map(t => <ThingItem key={t.id} thing={t}/>)
    )
  }
};

export default ListOfThings;

Voila! Clean component, abstracted ImmutableJS. So when you finally get tired of tearing your hair out over the impenetrable ImmutableJS docs, you can switch it out without having to recode every component in your app.

 

Just my $0.02 as a relative n00b to React, Redux and ImmutableJS:

gamebeacon is coming

gamebeacon is the new mobile native app that lets you quickly and easily connect with like-minded Destiny players for Raids, Story Quests, Missions, Crucible action or just rolling out on Patrol. All from your mobile device.

The interface has been specifically designed for use on mobile and will allow you to quickly configure a beacon to find other players. Alternatively you can scroll through the list of existing beacons to find players who are looking for a Guardian just like you to venture forth.

With push notifications to help keep you informed on your beacons or those you’ve joined, gamebeacon will quickly become your essential companion for finding new Destiny players.

beacon list

Check active beacons. Use the date slider to see beacons in the coming week.

create a beacon

Simple swipe interface to create new beacons

 

Freebies: 6 Time Saving Sketch Plugins

I recently invested in the updated version of Sketch, having bought the pervious version some time ago. I’ve long loved it’s simple approach to great UI design. It’s had it’s bugs but these seem to have been largely ironed out in version 3.

They’ve also opened up the possibility of using plugins. Here’s a few to get you going:

Link: http://blog.invisionapp.com/6-time-saving-sketch-plugins-to-install-right-now-for-free/

Dribbble Shot of the Day – Fly On

by Colin Tierney

Dribbble Shot of the Day – Earth Mock

by Joe White

Dribbble Shot of the Day – Scone Frame

by Joe White

Dribbble Shot of the Day – Simple Line Icons 2 (100+ free icons)

by Mirko Monti