Category: Web

Taking Bun JavaScript runtime for a spin

Taking Bun JavaScript runtime for a spin

Bun has made a big splash on reaching version 1.0. It is so much faster than Nodejs and provides enough compatibility with Nodejs to get most people interested. One of the key design decisions that helped Bun achieve this outstanding performance is to bundle all the tooling required for a typical JavaScript project into a…

Read More Read More

Released svelte-lexical 0.3.1: Upload images

Released svelte-lexical 0.3.1: Upload images

It is a minor release including few bug fixes and minor enhancements. We have to ability to upload images now, earlier images could only be added using a URL. Another enhancement is the ability to use collaboration in nested editors like image caption. Here is a demo: Change Log:

Released svelte-lexical 0.3.0: Code blocks and link editor

Released svelte-lexical 0.3.0: Code blocks and link editor

svelte-lexical version 0.3.0 is out with a lot of new features and bug fixes. Now, we can insert code blocks. They support keyword and syntax highlighting in 14 different languages. Also, there is support for code formatting using Prettier for HTML, JavaScript, CSS and markdown. Another focus area for enhancements in this release is hyperlinks.…

Read More Read More

Type transformations in TypeScript: Removing functions from a type

Type transformations in TypeScript: Removing functions from a type

TypeScript is often quoted as one of the most loved programming languages (StackOverflow, 2022). I guess, what contributes to it is the ease with which TypeScript can be introduced in a JavaScript project and the benefits it bring like static type checking, null safety, better refactoring and IntelliSence support. Another aspect of TypeScript which I…

Read More Read More

Unit testing in Svelte

Unit testing in Svelte

We are going to set up unit testing in Svelte using Testing Library and Jest. The working version of the project is available here. You can use it as a starter template for your project. 1 – Let’s start with the standard svelte template to create a new project. You need to have Nodejs, npm,…

Read More Read More

Developed a Rich-text Editor for Svelte (svelte-lexical)

Developed a Rich-text Editor for Svelte (svelte-lexical)

Developed a rich-text editor for svelte called svelte-lexical. It is based on Lexical, an open source framework for creating rich-text editors developed by Facebook. Here is the GitHub repo: https://github.com/umaranis/svelte-lexical Technical details

Dart Code Coverage with Github Actions and CodeCov

Dart Code Coverage with Github Actions and CodeCov

Unit tests and Code Coverage not only improves the code quality but also provides agility in developing new features with confidence. How to set it up for a Dart repository hosted on GitHub? We will be using the following two packages for writing/running unit tests and collecting code coverage data. Package Description test Provides a…

Read More Read More

Load Testing with JMeter – Tips and Tricks

Load Testing with JMeter – Tips and Tricks

Increasing the heap size By default, JMeter uses 1 GB of heap memory. This may not be enough and you may encounter an Out of Memory exception. Maximum Heap memory size can be increased to say 2GB by adding the following line in JMeter startup script: Xmx2g means maximum heap size is set to 1…

Read More Read More

JMeter: Use multiple user logins for load testing

JMeter: Use multiple user logins for load testing

Thread Group simulates a number of virtual users putting the load on the server. Often one of the initial requests is user login and depending on the user credentials specified in the login call, all threads will be using the same login. If you want each thread spawned by the Thread Group to use a…

Read More Read More

Introduction to Load Testing with JMeter

Introduction to Load Testing with JMeter

JMeter is a load testing tool to measure the performance of web applications. It is open-source and written in Java. Key concepts in JMeter JMeter test script is developed by adding components in the Test Plan pane on the left side. To get a general idea about the components and what can be achieved, let’s…

Read More Read More