Skip to main content

Tools that can make your development life easier

In this post, we will look into some lesser-known tools/websites that can help you to easily and quickly do your web development activities.

  1. Mongo Playground

Mongo Playground is a simple yet powerful sandbox to test and share MongoDB queries. Sometimes we quickly want to check few queries with sample collections.

For example, you want to test that can you perform an upsert operation on an array of objects in a MongoDB collection. Instead of creating collections and then trying to do queries, you can use mongo playground to quickly create a sandbox and try your queries and also share them with your team members.

There are few limitations though currently in the mongo playground, such as

  • a database can’t contain more than 10 collections
  • a collection can’t contain more than 100 documents

The query capability is also limited. Currently find()aggregate() and update() queries are supported. Hope this project will grow and provide much more features in the future.

If you want to check out the source code the GitHub repository for this project is provided below. If you find this useful and can extend it please do so.

2. Comma Quote — The Online Comma Separator

Many times we want to query the database with a bunch of lists of values/ids like user ids. After getting this bunch of ids, I want to make a query by providing this list of ids in comma-separated ids.

select * from users where id in (1,2,3)

Often this is a very big list and separating them with a comma (,) is very boring and time-consuming. Thankfully there is an online tool that can help you with this and save some precious time.

This can also help you with adding Quotes in the ids (helpful for the MongoDB Ids). You can choose to add a single quote and a double quote.

3. Regex

If you are not well versed with the regex that's awesome. But like me you also struggle with regex, coming up with a simple regex is also a pain. Mostly StackOverflow can give help you with some regex like email, mobile number, etc.

But when you need a custom regex it’s hard to come up with one, and more often than not we waste a lot of time building one. Searching for regex like this on google one fine day a came across a wonderful site for understanding as well as building the regex.

Give it a try this will surely help you with regex.

4. Playcode.io (JavaScript)

If you want to quickly want to write and test a quick JavaScript snippet. Playcode is awesome to use. Sometimes I get code snippets from Stackoverflow and want to quickly modify and run to see whether it works for me or not. I just avoid putting it in code modifying it and then run the application and see if it's working as expected.

I just simply use play code to do this. It runs the code on the fly.

5. Comparing two Lists/code/text

At work sometimes we encounter scenarios where we need to compare two lists or two texts to see what is the difference. If it's small you are lucky, but if it's a little big it's very tedious(boring I would say) to compare the list and come up with differences.

Once I wanted to compare the .env file of the two environments and check which env variable is missing and different. Going through all the variables and finding the difference was something very tedious for me.

I started looking for some tools to help me with this and came across the listdiff tool.

You can provide two lists and see the difference in a very neatly and smartly designed site.

So these were a couple of tools/sites that I use regularly on my work and save some precious time and speed up my development.

Hopefully, I will add more tools like this as and when I stumble upon them.

Thanks for reading. If you have some feedback, please provide your response or reach out to me on Twitter or Github.

Happy Coding!!!

Comments

  1. Great tools.
    Another nice mongodb playground: https://extendsclass.com/mongodb-online.html

    ReplyDelete
  2. This blog post is a gem! It's concise, informative, and packed with actionable advice. I've already implemented some of the strategies mentioned and can already feel a positive impact on my subject of Brave Browser. Keep it up.

    ReplyDelete

Post a Comment

Popular posts from this blog

Track stock market information right in your Terminal.

     Introduction: As a developer, I love working with the terminal. The plain, simple, and in my opinion the best way to interact with the computer (also it makes you look geeky). I spent most of my time in the terminal. By now you must have guessed I am a huge fan of the terminal and terminal-based applications. Recently I developed an interest in stock markets and started tracking the stock markets. Since I love working with the terminal I decided to build a terminal oriented application that can help me to track the stock market. Inspir e d by  wttr.in  I build  terminal-stocks  which can provide the stock's current prices, historical prices, and global market summary. How to use terminal-stocks terminal-stocks  is available and can be used without installation. Get the current price of the stock. curl terminal-stocks.dev/ITC.NS Current price of stocks You need to provide the ticker of the stock and terminal-stocks will give you the price inf...

PrivateGPT: A Step-by-Step Guide to Installation and Use

In this blog post, we will explore the ins and outs of PrivateGPT, from installation steps to its versatile use cases and best practices for unleashing its full potential. What is PrivateGPT? PrivateGPT is a cutting-edge program that utilizes a pre-trained GPT (Generative Pre-trained Transformer) model to generate high-quality and customizable text. Built on OpenAI's GPT architecture, PrivateGPT introduces additional privacy measures by enabling you to use your own hardware and data. This ensures that your content creation process remains secure and private. Installation Steps Before we dive into the powerful features of PrivateGPT, let's go through the quick installation process. PrivateGPT is a command line tool that requires familiarity with terminal commands. Let's get started: 1. Clone the Repository: Begin by cloning the PrivateGPT repository from GitHub using the following command: ``` git clone https://github.com/imartinez/privateGPT.git ``` 2.Navigate to the Direc...

Terraform accessing data from maps and list in the variable

In this post, we will discuss a use case where we want to access the variable value which is part of the list or the map. let’s try to understand the use case with an example: resource "aws_instance" "myec2" { ami = "ami-082b5a644766e0e6f" instance_type = <INSTANCE_TYPE> } variable "list" { type = list default = ["t2.nano", "t2.micro", "t2.medium"] } variable "types" { type = map default = { dev = "t2.nano", int = "t2.micro", prod = "t2.medium" }, } here we want to assign a value for the instance_type from either variable list or from variable types. Variable list is a list type and variable type is a map type. First, let’s use the list variable. To access the value from the list variable we will use the position. We want to assign let’s say t2.micro in that case we want position 1. resource "aws_instance...