Most of the web apps you use have a placeholder image for your avatar. If the app is using Gravatar to generate the avatars, you will get the mystery man if no user exists. Applications like Trello take it to the next level by displaying initials of the user if they have no avatar. Today we are going to learn how to generate those using a few lines of clean PHP.[Read more…] about Generate Perfect Initials using PHP
Two years ago I chose Ember over Angular as my primary framework. At the time it was a hard decision. There is a much larger community around Angular, and React was starting to pickup steam. Ember uses Convention over Configuration, which really helps our team manage larger projects.
The team over at instant2fa wrote up a great explanation on why they chose Ember over React. It’s interesting to read their take on the decision. I’m hoping this will help educate people that React is just a view layer, and Ember is so much more.
Recently I was working on a new project, where I had to stream stock data and display it on a chart. My first instinct was to setup a loop using setTimeout, but I quickly realized that wouldn’t work for my exact needs. Stock prices change so frequently, often happening several times a second. Doing an ajax call every second seemed like the worst overhead baggage I could possibly program myself into. After doing a bit of research, I stumbled upon Server-Sent Events. [Read more…] about Server Sent Events using Laravel and Vue
Type hinting is one of those arguments that every developer eventually get’s pulled into. More often then not, the anti-type hinters will win the argument with their standard go-to argument, “it makes the method less flexible”. Let me explain why type hinting makes your code no less “flexible” then it was before. [Read more…] about The Massive Benefits of Type Hinting
For all of us that work in a Git repo all day long, problems often arise. We constantly have those “Oh, shit” moments, when we need to fix something in Git, and not quite sure how to do it. This incredible one-page summary describes how to recover from some very common Git problems.
The title is a bit misleading. This is good knowledge for anyone looking to build applications or websites using ReactJS. I’m been wanting to build a new ReactJS powered SPA, but I was worried about the discoverability consequences. This article really helped clarify what I can do to help with that.