JavaScript
32 posts tagged with "JavaScript"
Complete Beginner’s Guide to Micro Frontends - Day 1
Let’s build your first micro frontend application step-by-step. I’ll guide you through creating a simple setup with two micro frontends that can work together.
GSSoC 2019: Two months of Coding Mentorship with Techtonica!
Being an Open Source supporter, contributor and enthusiast, I came to know about GirlScript Summer of Code 2019 and this is my experience as a blog-post.
Wildcard Routing is an Anti-Pattern
Probably the most cringy pattern I see when creating apps is wildcard routing. With the next version of Express changing support for wildcards, many
Making Axios Request Payload work with PHP & What goes behind?
I tried to use a mock PHP page for my API requests with Axios, but unfortunately I ran into multiple problems. This article has solutions for all.
Notifications in React JS using Noty
I tried implementing the classic "Toast Notifications" in React by using the Noty plugin and this is an introduction to use the same plugin in React JS apps.
Using React's Proxy to get ahead of CORS & use HTTPS for API calls
My experience of managing to use CRA React's Proxy feature to proxy an API server like it's in Production and use Secure HTTPS on localhost!
Handling the weird way of Redux State Initialisation
Redux's state initialisation is weird and you shouldn't trust it. This is why, an experience where I debug it to fix an error of reducer not loading.
Troubleshooting React with Redux & Redux DevTools
When I was using React with Redux, I encountered TypeError: Cannot read property 'apply' of undefined and tried to debug and solve it in a better way.
Natural Sorting in JavaScript
An experience of how I came up with my idea of natural sorting solution with a comparison to other similar solutions.
Creating my own HAR Reader
I generally use a complex rendering engine to create a few content heavy websites locally. When I do, the original files that generate the website will be
Right way of delaying execution synchronously in JavaScript without using Loops or Timeouts!
I recently found a better way to delay JavaScript execution by the use of async and await keywords. Sharing my experience with a Jest test case.
Get the right dimensions for social preview image!
Walking through my journey in creating a simple snippet that helps us get the right dimension for thumbnails for links that are shared in social networks.
ES6 arrow functions and arguments
We thought ES6 fat arrow functions cannot have arguments? Not exactly, but there's a way to pass arguments.
Getting rid of the X-Powered-By in Express JS Middle-ware using Blood, Sweat & Tears
An article on how to get rid of X-Powered-By headers in all versions of Express JS and Node JS.
Changing the colour of SVG Images using CSS & jQuery
A scalable approach to convert linked SVG Images into inline SVGs and use CSS & jQuery to manipulate then, eg., change colours.
Implement a Quick Captcha using JavaScript
A simple, quick and efficient way of implementing JavaScript based client side CAPTCHA.
Creating a TOC for my Ghost Blog
Being lazy I found a way to automate getting the Table of Contents from my Ghost Blogging Platform to Markdown to construct my Contents section.
Avoiding HTTP 404 for map files when using minified CSS & JavaScript
Best way to get rid of 404 errors when accessing a sourcemap.
Suppressing Errors or Handling non existing includes in Nunjucks Templating engine
I didn't know how to suppress or handle errors in Nunjucks (Jinja2) when including a file that doesn't exist. I have solved it in a simple way.
Changing the origins of draggable - Possible!
Quick tutorial on how to change the origin of draggable, which by default drags on top and left offsets. Now you can customise in your own way.
Scroll content on hover using jQuery and the Mathematics behind it
This article explains the huge mathematics behind animated scrolling to keep up the time.
Getting the Initialisation Parameters for DataTables
Killing and reinitialising the DataTable. An example demonstration.
Conditional Formatting in JavaScript like Excel and other spreadsheet solutions
This is a crazy JavaScript challenge I worked today to create a similar effect like conditional formatting in Excel.
Best way to punish Plagiarisers? Vote them down!
Recently this website: codexample.org started plagiarising Stack Overflow. This is the revenge from a fan of Stack Overflow.
CSS Transitions & JavaScript for Animated Entry Effects
Creating a Slide Off Effect using CSS Transition Width Right to Left.
Using SweetAlert2 for navigating inside the pages and not focusing on calling element
Making SweetAlerts2 not to focus on the initiating element.
Calculation of Range between Array Elements
An article for calculation of range between array elements.
Introduction to MongoDB
A quick introduction on MongoDB from a beginner's perspective. My learning experience as an article.
Evolution of Drop Down Menus and Exiting Them
This has been a huge problem with drop down exit implementation strategy. This article explains a better way.
Enabling POST request for Ghost Blog
A quick way to solve the issue with Ghost, where it doesn't accept POST requests.
Writing Strings with JavaScripts using only six minimal characters!
An attempt to write content in JavaScript only using six minimal characters.
Any values of 0 or 1 from REST API, when type-casted to boolean returns true.
You can never trust the automatic type conversion in JavaScript when it has more than two data types.