Dynamic Image/Video Placeholders

There are quite some cool ways out there to do dynamic image plaeholders. That basically being a way to reserve some space on the layout for an image that will be downloaded and shown. For example if you use a img tag with 100% width it will eventually snap into position and look good. However to start with it will seem like the grid is being filled with nothing and then something - which is not the nicest UI. Components to the rescue! But first like I mentioned above some cool solutions out there. My favorite is the ‘blur up’...

Moving to React/Redux from AngularJS

So this post is hopefully a seriers of things I have learned since starting to work with React and it’s ecosystem the last 6 months, but most importantly coming from a background of working only with AngularJs since 2013. I have been interested in React since it started gaining traction in the last 5 years, eventually to surpass AngularJS in most metrics. Since then though finding time between work and home life to learn it as with everything has been a balance. So when I decided to jump in and figure this React thing out I was as with any...

Deep Copies of Objects in JS

So you wanna copy objects in JS. Great me too. Want them to be not referenced to each other? Yep. Here too. So go read this. Done? Sweet. Well if you’re like me, a little naive I suppose, but never the less I thought I knew. Object.assign({}, someOtherObject) Thats supposed to be a reliable method to clone objects… Until I read that post and realized shit, have I fucked it up. Well kinda yes maybe and kinda no maybe. So if you check out what happens if you modify a nested array then yes, PBR - not the beer -...

Prettier and the Dog

Working on a team of developers is always interesting. I’ll leave it at that. Developers always seem to have the most interesting of personalities, and of course opinions. Spaces vs Tabs. 2 vs 4. Patch vs Put. etc… We can probably compile a much larger list, but point made. The first two in the list is where we will focus - patch vs put can be a subject of another post. The first two items are simply put - styling of the code. I prefer to look at 4 spaces or tabs. I never really bit into any importance of...

F.U.nctional coding - filter, map, reduce.

I recently answered a question on stackoverflow. It was a type of problem I always find so much fun to answer - decomposition of arrays into new data structures. Gimme an array and tell me you need an object out of it, or gimme an object and tell me you need two array out of it. I find it such a fun problem to solve as elegantly as possible - using ONLY filter, map, and reduce. Ok the occasional Object.keys method as well, but thats just grease for the engine. The thing that struck me first with the SO problem...
pow wow!