A closure is a function bundled with its lexical environment
Closures are commonly used for encapsulation (the ability to have private properties for objects), functional programming (curried functions, partial applications) and to grant access to variables inside event listeners.
Let’s take a look at each of these use cases to help us understand what closure is. …
The breaking down of problems into smaller problems and stitching them together (from a functional perspective) is the topic of this post. How you do it matters for your growing codebase.
What does it mean to ‘compose’ functions? Take a look at the below…
__proto__, prototypal inheritance vs class inheritance, and object composition. It's quite a deep subject and this blog post probably scratches the surface but I hope it helps you understand it a little better too.
I’ll start by looking at how we make one object and how this evolves to a factory function, constructor function, and classes. Then we’ll look at why you might want to favor certain methods.
These thoughts aren’t my own, rather an amalgamation of what I’ve learned elsewhere. What you are about to read, I sourced from the following references. If you don’t quite get everything you need from this post I’d encourage you to dig into…
Recently I’ve been trying to become a better software engineer and programmer and something I’m trying to get my head around is how to ‘encapsulate’ your code well. Encapsulation produces code that has loose coupling but high cohesion. Capsules of your code work seamlessly together but also independently of each other.
As put by Eric Elliott here, the encapsulation of code is the bundling of data and the methods that act on that data such that access to that data is restricted from outside the bundle. It’s the local retention, hiding, and protection of state processes.
Code that is well encapsulated keeps in mind three timeless principles in software…
…But there are also unknown unknowns. There are things we don’t know we don’t know.
This is how I felt when I became a Web Developer almost a year ago. I knew very little about not a lot and had no idea what I didn’t know. Now, a year in, I know what I don’t know and have a plan in my head of how I want to end up knowing it.
What I want to share here is my personal learning methodology/roadmap. …
This was just enough to get me through the door, but once I was part of the team I learned that there is so much more to being a frontend developer than I previously thought. Here are my top 6 takeaways from my first 3 months in the industry and some great resources to help you out if you are interested.
Honestly, you are.
You’ve probably heard of the phrase ‘Imposter Syndrome’. There many different spins on its exact cause/definition but for me it is a feeling you get when you are dealing with things you are not ‘qualified’ for. …
No time? Scroll to the bottom to see my top 5 tips for writing good code in Webflow.
TLDR: If you are a front-end developer, test out using Webflow to “write” your HTML & CSS. It is a user interface for code that, if used correctly, can quickly generate good quality mark-ups. Just be sure always to use a style guide and watch out for class names, non-semantic HTML and excess code.
I recently used Webflow to generate most of the HTML and CSS for a homepage. I found that, once I had the process down, I could produce a lot more quality code in a given amount of time than I would normally be able to. …
I’m just starting in my journey as a part-time freelance web developer. I make money from developing websites for people, and I am also a student at Flatiron School learning how to code. At the moment, one does not help me with the other, but I’m working towards the two being synonymous one day. Confused? Don’t worry. In this short post, I will explain what the below picture means, why I am approaching my web development career in this way and how it might benefit you too.
At one end of the spectrum I am learning the fundamentals of full-stack development (the coding side), and at the other, I’m freelancing. Somewhere in the middle, I want to become a professional that’s able to draw on expertise in both to create amazing experiences for my clients. …
About six months ago I decided I was going to do a web development boot camp. Why? Well, I’m going to try and explain but if you haven’t got time to read all of this then here’s a summary:
I would be lying if I said I knew precisely why I enrolled with Flatiron School to learn how to code. My end goal with it all changes on a weekly basis. …