Javascript
Create a Blog with Astro
· ☕ 5 min read
With Astro 4 released recently, I wanted to check out what is going on in that part of the world. What better way to do that than to create a blog using Astro.. or so I thought. I had not been quite sold on Astro for the stuff that I typically do.

Create a simple contact database with Express & Xata
· ☕ 11 min read
I am quite excited with all the developments in the database world. While hosted database is not a new concept, we now have services that are - far more focused on usability - support intuitive data types, have spreadsheet-like experience have schema editors :) support simple migrations support more advanced functions like caching without need for black magic .

Create a blog on Sveltekit
· ☕ 10 min read
In this post let us create a simple blog using Sveltekit. Why Sveltekit if you ask - Because it’s cool Make your pages interactive without a big JS payload for the client Fast Get started with the following command in your favorite terminal - 1 pnpm create svelte@latest avix-blog-sveltekit This should initiate the folder with basic sveltekit structure and initiate a few files.

NextJS 13 is a good step forward
· ☕ 8 min read
I am quite excited about the possibilities offered by NextJS 13. Announced in Oct ‘22, the most popular JavaScript framework has set fantastic standards for rest of the world. I particularly liked the below features - React Server Components that makes life simpler, but the coding process is much more efficient The new directory structure that simplifies routes.

Reactivity for Arrays & Objects in Vue vs. Svelte
· ☕ 3 min read
Coming from the Vue world, Reactivity in Svelte for anything more than simple strings feels.. a bit different. Vue has made me lazy when handling reactive arrays or objects. All I have to do with the older Object API is - 1 2 3 4 // nums: [1, 2] addToNum() { this.

Create a Task Management App with ReactJS in 2021
· ☕ 13 min read
In this post let us see how we can easily build a task management app (which is totally & completely different from a todo app) using ReactJS. We will be using React Hooks, Chota CSS for styling and a lot of ES6+. We will not look at any centralised state management, or deal with a backend to store the tasks in this post.

Get Started on NextJS
· ☕ 12 min read
Welcome to 2021. For me this will be an exciting year when I embrace ReactJS and Svelte as friends. And, what better way to start with React than NextJS..? In this post, we will see why and how we can get started on NextJS, and a few good learning resources.

Find user's country without Geolocation and IP Lookup
· ☕ 2 min read
I have this nagging problem of determining an end user’s country/region in my web apps. The reasons for doing that are many - Automatic conversion of an event date/time Display regional news Show prices in user’s currency .. and so on We could do two things to determine a user’s region -

Multiple Ways to Define Functions in Javascript
· ☕ 3 min read
We have looked at functions quite a bit on this blog over the last two years. We have seen many avatars of a function including a function object, a function’s method, function of functions, and so on. But, what we have not done is to document all the ways in which we can define functions.

Using Nullish Coalescing Operator
· ☕ 6 min read
ES2020 introduced nullish coalescing operator. We will see just how and where can you find use for it? What it is? Nullish coalescing operator (??) is introduced in the newest Javascript specification. It’s primary design goal is quite simple - provide a way to check for nulls to return true or false values from an expression.

Javascript - A Beginner Guide
· ☕ 30 min read
Here’s a good guide to get you started on Javascript in a practical way. Why another guide? Practical - don’t learn for the sake of learning, learn for the sake of doing! Tactical - learn what matters, fast (yes, that’s what everyone says) Strategic - see the big picture This guide will get you started from the beginning, graduate you to using industry standard tools, and point you towards the right direction for learning even more than what can be offered in one guide or course.

Convert XML to JSON in Node
· ☕ 4 min read
Here’s a quick demo of how you can convert XML to JSON in NodeJS. Problem You are given a slew of XML files and you have to convert them to JSON. But why JSON? It takes lesser space Faster and easier to work with What are we dealing with here?

Starter Template for AdonisJS
· ☕ 3 min read
I have used AdonisJS in and out of projects in the last year. Despite it’s smaller community and not-so-regular enhancements, it remains one of my favourite NodeJS frameworks. I recommend AdonisJS for hobby and production projects in full confidence :) I typically use AdonisJS for back-end, which has me start with -