Image for post
Image for post

Lately I’ve found myself trying to make an embedded youtube video responsive… and guess what? It wasn’t “plug&play” easy. Eventually I’ve found a solution that works like a charm and therefore to pin it for good, I’ve decided to share it with you.
This easy solution is more like a snippet of code, but still useful and it works across all the major browsers, I even tested it in Internet Explorer 10, bulletproof… rofl.

What I needed:
The video to resize depending on the browser size, but when you add the video to the page it has a fixed height and width. But guess what setting the width to 100% will not automatically resize it to the parent container. …


Image for post
Image for post

Since ES6 came out and started gaining traction, I was one of the early adopters to some of its features and like many developers I’ve came across a few tips and tricks that I want to share with you.
This article isn’t meant to be a tutorial, it’s just exploiting the new syntax, and I’ll reference some code snippets in a random collection of ES6 features.

On to the code!

ES6 template literals aren’t really “templates” per se… more like strings literals actually. …


Image for post
Image for post

Last year I made the commitment to read more, it didn’t need specifically to be in quantity by measuring the total of books read, but in quality instead.
I had previously established a list of books to read, but during the time I deviated a little in this list. In my last blog post the books list was:

1 — Happiness by Design: Change What You Do, Not How You Think
2 — Hooked: How to Build Habit-Forming Products
3 — Antifragile: Things That Gain from Disorder
4 — Start with Why: How Great Leaders Inspire Everyone to Take Action
5 — The 7 Habits of Highly Effective People: Powerful Lessons in Personal Change
6 — The 4-Hour…

About

António Regadas

Hi I’m aDeveloper | Foodie | Love a good wine | Reading | Explore new places | Techie | apregadas@gmail.com

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store