You ever look at a web site and think: “Everything is either a potato or not a potato…” and more ( or less? ) importantly: ”This web site would be great as an app!”? If you did, you’re not alone, buddy boy!
Some very cool folks over at Internet HQ ( don’t fact check this just blindly believe that it exists ) that govern how the internet behaves agree with you ( the potato thing AND the web site as an app thing! WOW! Look at you go! ).
They introduced a concept called Progressive Web App — PWA, for short. …
DISCLAIMER: Restpollo isn’t an official Apollo project. They did such a good job with React Apollo that it inspired me to create a simplified version for communicating with a REST API using React components and function as children pattern.
I don’t hide the fact that I’m a HUGE fan of React ( LINK ), GraphQL ( LINK ), Apollo ( LINK ) and Apollo’s React components ( LINK ).
When Apollo React rolled out version 2.1 they introduced components for querying, mutating and subscribing to a GraphQL backend… this blew me away! …
A long a$$ time ago I created a simple React component that would lazily load an image and while it’s busy loading an image it would show a placeholder and wrote a tutorial how I did it. It is inspired by Polymer’s iron-image and a neat little trick how to transition from placeholder to loaded image.
While playing around with Polymer (shameless LINK to another article I wrote) I learned that you can make a pretty cool “Blur Up” animation by taking the image you want to show, scaling it down to 1% of its width and height, using that as the placeholder and when the original size image is done loading you fade it in over the placeholder. …
It should come as no surprise that I’m a HUGE functional programming fanboy — shameless plug for an older blog post (Link).
So what makes functional programming so gosh darn good, you ask?
Well then, generic reader I’m imagining right now, let me tell you how you and your code can benefit from going functional.
Even if you don’t know what functional programming is you’ve probably been using map, filter and reduce just because they’re so incredibly useful and make your code stink less by allowing you to write cleaner logic.
It’s basically a marketing trick to raise awareness of a really cool world of coding called functional, maybe you never heard of it or maybe you heard of it but never gave it much thought.
If you’re suddenly interested in finding out more about functional programming check out Professor Frisby’s Mostly Adequate Guide to Functional Programming (Link)
take a look at Eric Elliott the dude’s a legend(!!!) and talks about functional programming often.
Even if some of these concepts fly over your head the first time you read them, don’t worry, that’s natural, keep at it and soon you’ll be reaping the rewards. …