filter function and how you can use it to make your code more concise. It's probably the easiest of the three to understand, since it's fairly straightforward, but it's always helpful to have examples on hand to understand exactly how it does and doesn't work.
reduce, which (for me at least) was the most abstract one of the three. By virtue of its abstractness, however, it's also the most powerful. In fact, it's possible to do the jobs of the other two using just
reduce alone! (Even though you shouldn't. Definitely, absolutely, do not do this.)
Much like the
for loops and
while loops, making the switch to more abstract constructions like
filter can be quite difficult. There are lots of posts describing these functions and giving examples, but very few actually compile a list of these being used in a real codebase. …
Blogs that show an estimated reading time can get upwards of 400% increased click-through rates. Since I roll my own stack for my statically built blog posts, I thought it would be a fun exercise to try and add this useful metric to my blog page.
In general, HTML templaters are designed to take custom data and merge them with predefined templates. My current blog post templating setup is a single Java program which uses almost Markdown-like syntax to insert content into a prewritten HTML file. I won’t go into the details too much, but suffice it to say that…
I think by now everyone with a LinkedIn account has seen at least one post announcing an internship or job offer. For people who’ve been searching for ages and sending out resumes into what seems like a bottomless void, these posts can seem like a slap in the face. But no longer — today, I’ll be talking about my experience applying for a job internship, and how you can take actionable steps to increase your chances of getting an offer too.
Every post I’ve seen so far that talks about getting an internship (and I’ve seen many) have always said…
Imagine a calculus exam where you had to do all the calculations in your head. It’s technically possible, but there’s absolutely no reason to do it. The same principle applies to storing things in the browser.
Today, there are a number of widely implemented technologies for client-side storage. We have cookies, the Web Storage API, and IndexedDB. While it’s entirely possible to write a fully functioning web application without worrying about any of these, you shouldn’t. So how do you use them? Well each of them has a use case that they’re best suited to.
Cookies, being sent on basically…
Good question. At their core, closures are simply an enclosed scope inside a function. They allow an inner function to access the variables in an outer…
Forward thinking full stack developer, passionate about using tech to make the world better.