cloud, webdev

How to Use ngrok and LocalTunnel: Expose Your Local APIs to the World

Intro

As developers, we often face the challenge of testing our local applications with external services, webhooks, or mobile devices. Whether you’re developing APIs that need to communicate with AWS/GCP/Azure services, testing webhook integrations, or simply want to demo your work from different devices, exposing your localhost to the internet becomes essential.

This guide will walk you through two popular solutions: ngrok and LocalTunnel, showing you how to securely expose your local development server to the world.

What Are Tunneling Services?

Tunneling services create a secure tunnel from a public endpoint to your local machine, allowing external services to reach your development server without complex network configuration or deployment.

Common Use Cases

  • Testing webhooks from third-party services (Stripe, GitHub, etc.) — You can connect your local code directly and debug it more efficiently.
  • Sharing your work-in-progress with clients or team members — Instead of pushing it to some remote server. Useful in all the cases, where you are still ‘not ready’.
  • Testing mobile applications that need to connect to your local API — A must have in almost all cases.
  • Integrating with AWS services that require publicly accessible endpoints
  • Cross-device testing and debugging
Continue reading →
Standard
webdev

Mastering Clean Code: 15 Key Lessons for Software Developers

Years ago (when Java was ‘new’), I got a recommendation from a good friend to check out “Ah, Clean Code by Robert C. Martin”. He told me, “It’s not just a book; it’s a must-read to anyone who wishes to be a professional software developer.”

He was right. This is still one of the top five books that I recommend developers read. It focuses on some simple but important concepts that will make your Code better, simpler, and easier to debug.

More than aesthetics, clean Code is about clarity, maintainability, and efficiency. Investing in writing clean Code might seem time-consuming, but it pays off exponentially in debugging, collaboration, and scaling efforts.

Think of messy Code as a tangled web: complex to navigate and easy to get stuck in. Clean Code teaches you to weave a well-structured tapestry instead—clear, elegant, and easy to extend.

Here are 15 powerful lessons every developer should carry from this book, with practical examples:

Continue reading →
Standard
Business

Leveraging AI for Efficient Code Reviews

In today’s fast-paced development environment, leveraging AI tools for code reviews can significantly enhance productivity and code quality. As developers, we often work in isolation or wait hours (sometimes days) for our colleagues to review our pull requests. Large Language Models (LLMs) like GPT-4, Claude, and others can provide immediate feedback, spot potential issues, and suggest improvements within your favorite IDE.

This blog post explores how to craft effective prompts for LLMs when reviewing your code in VSCode, with specific examples for backend Node.js/Express developers and React frontend developers.

Continue reading →
Standard
Business

Securing Your (NodeJS) Backend: A Comprehensive Guide to Preventing Common Attacks

Web security is a critical concern for any backend developer. If you’re building applications using Node.js and Express, it’s essential to safeguard your backend against common security threats such as SQL injections, cross-site scripting (XSS), cross-site request forgery (CSRF), and other vulnerabilities. This comprehensive guide explores these attacks in depth and demonstrates best practices to prevent them with practical coding examples.

Continue reading →
Standard
JavaScript, webdev

Why/How Senior Engineers Embrace AI Tools in Development?

How can you do better (or succeed more) with AI coding tools?

Senior engineers who use AI tools (co-pilot, claude.ai, cursor, etc.) are like master chefs who know when to use the microwave and when to actually cook with fire.

Here are some of the bold aspects I’ve noticed in the past year:

Continue reading →
Standard
Business

The Art of AI Conversation: 6 Essential Tips for Chat LLM Success

When working with Large Language Models (LLMs) in a chat interface, understanding how to effectively communicate and leverage their capabilities can significantly improve your results. This involves crafting clear and specific prompts, providing necessary context, and breaking down complex tasks into manageable steps. It’s important to recognize that while LLMs possess vast knowledge, they require precise guidance to deliver optimal outputs. Users should be prepared to iterate on their queries, refine their instructions, and engage in a collaborative back-and-forth to achieve desired outcomes. Additionally, being aware of the model’s limitations, such as potential biases or outdated information, allows users to critically evaluate responses and seek clarification when needed.

Btw, if you wish to save and improve your prompts over time – you can use your VScode editor or a platform like latitude.

Here are six essential tips to enhance your experience:

Continue reading →
Standard
JavaScript, webdev

The Power of Many: Why You Should Consider Using Multiple Large Language Models

Large Language Models (LLMs) have taken the world by storm. These AI systems can generate text, translate languages, write different kinds of creative content, and answer your questions in an informative way. But with so many LLMs available, each with its own strengths and weaknesses, how do you choose the right one for the task? 

The answer might surprise you: it’s about more than picking just one. Here’s why using multiple LLMs can be a powerful approach.

Continue reading →
Standard
bots, Business, life

ChatGPT/Bard And The Future Of Your Job

AI tools like ChatGPT and Google Bard are designed to automate specific tasks and make them more efficient.
Some jobs will be eliminated (e.g., customer service, lawyers, software developers, designers), but in other cases, these tools will likely change the nature of the particular role that a person is doing and require workers to adapt to new technologies.

In other words, “if you can’t beat it – join it.”

Continue reading →
Standard
Business, cloud, JavaScript

OpenAI API – 101 Tutorial

OpenAI is a research organization focused on developing advanced artificial intelligence technology, and one way it achieves this is by making its technology available to developers through APIs. 

This blog post will explore what OpenAI API is and how to use it from Node.js – We will show a few examples you can take and combine with your current applications.
Other good examples to explore the API are at openai.com.

What is OpenAI API?

OpenAI API is a powerful tool allowing developers to access cutting-edge AI models that OpenAI researchers train. 

It’s (also) a mouthful, no?

These models can be used for various applications, including natural language processing, translation, image recognition, chatbots, etc.

The OpenAI API is designed to be easy to use, with a RESTful API that can be accessed using any programming language.
It also includes pre-built models that can be used out of the box and the ability to train custom models using your own data.

Continue reading →
Standard
JavaScript, webdev

SkyMass: A New Way to Build Web Apps

If you’re searching for a fresh approach to developing web applications, SkyMass offers an innovative solution. It provides a more efficient method for swiftly crafting functional web applications for your internal APIs.

Over the past few months, I’ve had the opportunity to collaborate with SkyMass on multiple projects, and the results have been impressive. Instead of starting from scratch with a React app each time, SkyMass has enabled me to swiftly define the essential components and have a working prototype in a matter of hours or days, rather than the weeks or even months it would typically take.

Continue reading →
Standard