The Flavors of Object-Oriented Programming (in JavaScript)

In my research, I’ve found there are four approaches to Object-Oriented Programming in JavaScript:

Which methods should I use? Which one is “the best” way? Here I’ll present my findings along with information that may help you decide which is right for you.

To make that decision, we’re not just going to look at the different flavors but compare conceptual aspects between them:

What is Object-Oriented Programming?

Object-Oriented Programming is a way of writing code that allows you to create different objects from a common object. The common object is usually called a blueprint while the created objects are called instances.

Each instance has properties that are not shared with other instances. For example, if you have a Human blueprint, you can create human instances with different names.

The second aspect of Object-Oriented Programming is about structuring code when you have multiple levels of blueprints. This is commonly called Inheritance or subclassing.

The third aspect of Object Oriented Programming is about encapsulation where you hide certain pieces of information within the object so they’re not accessible.

If you need more than this brief intro, here’s an article that introduces this aspect of Object-Oriented Programming if you need help with it.

Let’s begin with the basics — an introduction to the four flavors of Object-Oriented Programming.

The four flavors of Object-Oriented Programming

There are four ways to write Object-Oriented Programming in JavaScript. They are:

Using Constructor functions

Constructors are functions that contain a this keyword.

function Human (firstName, lastName) {
  this.firstName = firstName
  this.lastName = lastName

this lets you store (and access) unique values created for each instance. You can create an instance with the …

35+ Best Instagram Post & Story Templates 2020

We’ve handpicked a collection of Instagram post and Story templates with professional designs. You can easily customize these templates to add your own text and images to create a more successful Instagram content strategy.

Instagram is one of the best platforms for promoting brands and businesses. But, with millions of posts being added every day, you need to think outside the box to attract your followers’ attention.

If you’re tired of using the same old designs to promote your brand and products on Instagram and looking for a better way to get more followers, you should consider using more professional post layouts and designs, especially for creating attractive Instagram Stories.

To help you find the right design to promote your business, we’ve curated some of our favorite Instagram post and Story templates, designed to wow your audience.

Top Pick

330+ Instagram Post & Banner Templates

330+ Instagram Post & Banner Templates

There are many great Instagram template bundles in our list but we had to include this bundle as our top pick for its sheer size.

This behemoth of a templates pack comes with 337 Instagram post templates. It will pretty much cover your Instagram social media content strategy for an entire year.

Why This Is A Top Pick

Each template in this pack comes as fully-layered and easily customizable PSD files. Each template also features unique designs that will allow you to run a new promotion every day without making your posts look similar. With this bundle, you’ll never run out of ideas for creating unique Instagram posts ever again.

Foodies Social Media Kit Instagram Templates

Foodies Social Media Kit Instagram Templates

This is a bundle of 9 unique Instagram post templates designed specifically for foodies and restaurants for sharing all kinds of food-related posts to attract customers. All of the templates are easily editable with Photoshop and includes smart objects.

Woman Fashion Instagram Templates Kit

Woman Fashion Instagram Templates Kit

If you’re promoting a fashion brand or a clothing store on Instagram, this bundle of Instagram post templates will help you promote your new arrivals and sales more easily. This pack includes 9 PSD templates …

20 Freshest Web Designs, September 2020

This month we’re going big and bold. Oversized type, strong colors, in-your-face layouts, and little touches of playfulness exude confidence and make a statement. There are some quieter moments too, with thoughtful illustration and more gentle use of color. Animation still features strongly in the details, with circles proving popular in rollover effects. Enjoy.


Fledge is a film production company based in Belgium. Their site uses split screen with looped text scrolling in opposite directions on each side. A minimal color palette adds extra punch.

2ºC Earth

2ºC Earth is a beautiful and also scary website that explores the effects of rising global temperatures by focusing on 5 specific locations. Some stunning photography and subtle use of sound take you to these locations as they are now, then show what they could become. The experience is both immersive and unsettling.


Unlike many digital studios who use the design of their own site to demonstrate their skills, pill&pillow have taken a very basic approach. It is very self-assured, and it works. Random colored strikethroughs on visited links add a nice touch of playfulness.

Ferrum Pipe

Metal fencing is not the most interesting of subjects to most of us, but this site for Ferrum Pipe is surprisingly appealing. On scroll animation and some off-grid image layout brings life to what would normally be, well, a bit dull.


With its focus on mouth-watering photography and videography, the site for gelato makers Luccianos, will have you checking your freezer for any leftover salted caramel or stracciatella. The zoom on rollover is a nice effect, and the use of circles with ice cream color backgrounds for rollover text reinforces the gelato theme.

Björn Wieland

UI designer and artist Björn Wieland has created a portfolio site with a simple, relaxed feel and pleasing transitions. It feels simple, but behind the scenes there is quite a lot going on.


Coloursmith is a tool from Taubmans paint company which allows you to create a custom paint color by uploading a photo. You name …

Website Design Trends & Tips for a COVID World

A lot has changed about the world in the past year. The impact of COVID on human interaction is undeniable. It’s influencing digital experiences as well. If you haven’t started to think about adjustments you need to make to your website design due to the worldwide pandemic and virus, it might be time to develop a strategy.

Here, we’ve got tips on things to consider when it comes to COVID and website design.

Does COVID change everything about website design? Of course not. But it might impact some of the decisions you make about imagery, your general approach to sharing information, or how you communicate some aspects of your brand.

Imagery and Photos

The wrong image or photo can make your website look dated now that we are well into the pandemic and new ways of life. Photos of large gatherings of people – once a sign of a healthy, thriving event – should be avoided.

But you don’t have to go to the extreme of no images with people either, that time of complete quarantine has also mostly passed. The goal is to use photos and illustrations that show people somewhere in the middle.

People in Masks

covid design

Your website design is likely to include images of people in masks. It’s something you probably never would have considered a year ago, but has become the norm in much of the world.

Imagery with masks is a little tricky and can present some issues, but your photographer should be able to navigate this with ease.

Plan to use photos of masked people in a natural way. Images should imitate real life with mask-wearing as it would actually happen. (Pictures of people eating or drinking would be maskless, but people wandering around in a store would show masked individuals.)

Imagery with masks is a little tricky and can present some issues, but your photographer should be able to navigate this with ease. Your primary concern in terms of masks is whether any graphics or branding on masks stand in contrast to your …

Looking at an Online School Through a Web Designer’s Eyes

Like so many families around the globe, ours has had to make some difficult decisions during the COVID-19 pandemic. One of the most agonizing was what to do about school. Should we send our daughter back to traditional school, or should we opt for an online school?

Out of both concerns for safety and consistency, we chose the online program offered by our local school district. It would require some adjustments from all of us, but we felt it was the right path to take – at least for now.

Still, there was a lot we didn’t know in terms of how this virtual school worked. How are parents kept in the loop? How easy would it be for our daughter to use? What would the classes be like?

We’ve now had some experience with this method of learning and are slowly getting the hang of it. With that, I thought it might be interesting to look at things from a web designer’s perspective – one who is also a parent.

Below are some observations based on the particular provider our school district uses. It’s by no means a complete review of online education – just a look at the design and functionality of this one system. And any critiques are just that, as I’m not privy to why certain decisions were made or the limitations involved.

So, how does the experience stack up? It’s a bit of a mixed bag so far.

Background Information

The virtual academy we’re utilizing doesn’t have live classes. Rather, it’s a mix of videos, testing and interactive features all run through a web browser.

While classes can theoretically be taken at any time, students are encouraged to do their work during normal school hours. That is in part due to the …

Popular Design News of the Week: September 21, 2020 – September 27, 2020

Every week users submit a lot of interesting stuff on our sister site Webdesigner News, highlighting great content from around the web that can be of interest to web designers.

The best way to keep track of all the great stories and news being posted is simply to check out the Webdesigner News site, however, in case you missed some here’s a quick and useful compilation of the most popular designer news that we curated from the past week.

The Core Concepts of Bold Web Design


Chrome Extensions Every Web Developer Must Have


How to Use Email Infographics to Engage Subscribers


30+ Free Graphic Templates for SaaS Social Media


Searchbox – A Lightweight JavaScript Library for Building Search UIs


Twake – Open Source Collaboration Platform for Teams


Synthesia – Generate Professional-looking AI Videos from Text in Minutes


Design Resources


19 Trippy & Glitchy CSS Distortion Effects


Update on Firefox Send and Firefox Notes


The Rounded User Experience


Chinese Approach to 3D Illustration and Character Design


Sapiens Character Builder




Here’s How You Measure the Success of a UX Design Project


Tools Should not Only Be for Experts – They Should Turn Us into Them


Designing with Accessible Color Contrast on the Web


The Future of Experiences, According to a Theme Park Designer


How to Make an App – The Ultimate Guide


Page Experience: A Guide on Google’s Newest Ranking Factor


Visual Mind AI – How Attractive is your Website?


The Untold History of MacOS System Preferences


Bringing Context to Design Systems


How to Market Yourself as a Creative Entrepreneur


Magic Startup Shell – Validate your Startup Idea


Want more? No problem! Keep track of top design news from around the web with Webdesigner News.


from Webdesigner Depot…

Weekly News for Designers № 559

Envato Elements

How HTTPS Works – A comic adventure that sheds some light on HTTPS.
Example from How HTTPS Works

Mono Icons – A simple, consistent open-source icon set designed to be used in a wide variety of digital products.
Example from Mono Icons

Essential Cheat Sheet: Convert jQuery to JavaScript – A resource of JavaScript equivalents to the most frequently used jQuery functionality.
Example from Essential Cheat Sheet: Convert jQuery to JavaScript

Menu to Inner Page Animation with Image Grid Background – Learn the secrets to building a layout with a menu and background image grid that animates to an inner content page.
Example from Menu to Inner Page Animation with Image Grid Background

What Your Clients Need to Know About a Website Redesign – A quality redesign requires both resources and a commitment to making a real improvement.
Example from What Your Clients Need to Know About a Website Redesign

Totally Mundane™ – A cheeky collection of resources for those who never want to stand out.
Example from Totally Mundane™

10 useful HTML5 features, you may not be using – Some hidden gems to boost your HTML5 projects.
Example from 10 useful HTML5 features, you may not be using

Read Me – An essay for creating and designing good content that people will take the time to read.
Example from Read Me

How CSS Perspective Works – The concept of perspective, starting with the very basics and working up to a fully animated 3D cube.
Example from How CSS Perspective Works

The 50 Best Fonts for Creating Stunning Logos – Let one of these stellar logo fonts become a go-to resource in your branding kit.
Example from The 50 Best Fonts for Creating Stunning Logos

1 line CSS to center object – This handy tip will both horizontally and vertically center an object on the user’s screen.
Example from 1 line CSS to center object

How to use CSS clipping – Learn how to create interesting effects with CSS clip-path.
Example from How to use CSS clipping

Halfmoon – A front-end framework with a built-in dark mode and full customizability using CSS variables.
Example from Halfmoon

BGJar – Create SVG backgrounds for your projects with this free online tool.
Example from BGJar

Why Some Outdated WordPress Plugins & Themes Are Facing Extinction – A transition of the included jQuery library version could spell the end for some WordPress products.
Example from Why Some Outdated WordPress Plugins & Themes Are Facing Extinction

Unoline Icons Set – Grab this set of icons that use just a single line.
Example from Unoline Icons Set

Lo-fi Wireframe Kit – Download this free, robust library of over 100 wireframing components for Figma.
Example from Lo-fi Wireframe Kit

Big Heads – A collection of …

AccessiBe Review 2020: Solving Web Accessibility with AI and Scalability

Web accessibility is important for two reasons:

  1. Being ADA & WCAG compliant is required by law (we’ll explain this further) so if your website isn’t compliant, you can get sued.
  2. It allows people with disabilities to browse your website, which increases your potential audience and it is the decent thing to do.

In this accessiBe review, we’ll cover:

How Does accessiBe Work

accessiBe is an automated solution that combines two applications to achieve full compliance.

Foreground application: the accessibility interface. This is the accessibility menu that allows users with disabilities to adjust the various UI and design elements on your website so it meets their unique needs.

Background application: proprietary AI technology that’s responsible for the ‘heavy lifting’, screen-reader, and keyboard navigation optimization.

The combination of these two applications is unique for accessiBe for a few reasons. While most available accessibility solutions offer just one of the two or rely on manual remediation, accessiBe checks both boxes and does it in a fully automated way.

Additionally, and most importantly, accessiBe continuously scans your website, every 24 hours, identifying and fixing new accessibility issues as they arise. Websites are dynamic – meaning, keep updating constantly with new content, pages, images and so on; being ADA and WCAG compliant is an ongoing concern, not a one-time fix.

How to Install and Setup accessiBe

You install accessiBe by inserting a single line of code on your website.

From your end, that’s all it takes.

The first thing that happens is that the accessibility interface appears on your website. The menu is available via the accessibility icon (that also appears automatically.)

Source: accessiBe website

Next, the AI application scans and analyzes your website …