Honeybadger Developer Blog
843 FOLLOWERS
We're the application health monitoring tool built for you, the developer who cares about a quality product and happy customers. The modern error management app gives you more than an email and a backtrace. Read useful articles for web developers in Ruby, Javascript, Elixir, and more on our blog page.
Honeybadger Developer Blog
1d ago
Everything you do when using computers is related to files and folders. The browser you're using to view this webpage is a file on your device, and this webpage is a file on this website's server, which means everything is a file one way or another. In this article, you will learn everything you need to know to build files and folder-related features in your PHP applications.
Prerequisites
To follow along with this article, you need to have a solid grasp of the basics of PHP. Knowledge of variables, functions, conditionals, etc., will come in handy.
However, every concept and code example cove ..read more
Honeybadger Developer Blog
1w ago
If you are into programming, you might have used commands like cp, mv, cat, etc, to perform different operations using a text interface like bash or Windows PowerShell. This article discusses implementing command-line applications in Python with functionalities such as keyword arguments, flags, positional arguments, and mode selection. It also discusses how to implement the Linux head command in Python.
What is a command-line application?
A command-line application is a computer program we use from a text interface like Bash, Windows PowerShell, Zsh, Dash, etc. We can execute a command line ap ..read more
Honeybadger Developer Blog
2w ago
Hanami is a relatively new full-stack Ruby web framework. Unlike Rails, which has many default assumptions about how an app should be built, Hanami promises developer freedom by not imposing too many such defaults.
The framework is also blazingly fast due to its low memory footprint and focus on minimalism. Combine that with a focus on strict abstractions, and you get a fully-featured Ruby framework that could rival Rails for building some applications, such as APIs and micro-services.
In this tutorial, we'll learn about the framework's structure and features as we go through the steps of buil ..read more
Honeybadger Developer Blog
3w ago
There are many ways to deploy a Ruby on Rails application to the internet. Between hosting on your own hardware, renting a virtual machine, using a cloud provider, and using a platform, the opportunities are endless. The low-hassle way to host a Rails application is to use a Platform as a Service (PaaS). In this article, we'll show you how to deploy a Rails Application to Render.com, and as a bonus, monitor it with Honeybadger! You can find the final project here on Github.
Going a step further than cloud hosting and using a platform to deploy your web apps provides incredible convenience at a ..read more
Honeybadger Developer Blog
1M ago
During my recent deep dive into new technologies, I found the classic issues of integrating numerous tech tools effectively. I've written about my experiences to save you the trouble I had.
One essential component I've looked into is using Docker to implement containerization. While the initial setup takes a little longer, it significantly simplifies and optimizes your technological stack.
Prerequisites
To follow along with this tutorial, make sure you have the following:
Docker
Docker Compose
Django
Node.js
npm
We'll start a Django application and then a Preact application, containerize the ..read more
Honeybadger Developer Blog
1M ago
In recent years, the serverless paradigm has become known as a transformative approach to application development, allowing us to focus more on writing code and less on managing infrastructure. Laravel Vapor, a serverless deployment platform for Laravel applications, brings the power of the Laravel framework into the world of serverless architecture. By integrating Laravel with AWS Lambda and other AWS services, Vapor offers a simple way to build, deploy, and scale applications without the complexities of traditional server management. In this comprehensive guide, we will discuss serverless ar ..read more
Honeybadger Developer Blog
1M ago
At Honeybadger, we use Ahoy for first-party analytics in Rails. Ahoy is excellent for developers because it lives in your Rails application alongside your other data and code. Want to answer a specific question about your product or website visitors? It's just one ActiveRecord query away:
Ahoy::Event.where_event("$view", page: "/").count
Ahoy also works with Chartkick and Groupdate to visualize your data. For example, after installing the two libraries, you can add a chart of all page views to any Rails view:
<%=
line_chart Ahoy::Event.
where_event("$view", page: "/").
group ..read more
Honeybadger Developer Blog
1M ago
Reusable UI components are user interface widgets or elements that can be used in various places in a web project. These components are typically small and created for a specific functionality.
Typically, you write the code once and then import the UI components wherever needed. For example, you can create a card component that displays certain information or have a navigation bar that will appear at the top of all web pages. Such UI elements can be imported and added to your desired web page. Other examples of reusable UI components are input fields, buttons, modals, and progress bars.
There ..read more
Honeybadger Developer Blog
2M ago
In the digital age, security is of paramount importance, especially when it comes to user data and credentials. As developers, we must ensure that sensitive information, such as passwords, is stored securely to prevent unauthorized access and potential breaches. One of the key techniques employed to enhance security is password hashing, and in the realm of Node.js development, the bcrypt library stands out as a robust solution for this purpose.
In this comprehensive article, we will delve into the world of password hashing and explore how to implement it effectively using the bcrypt library in ..read more
Honeybadger Developer Blog
2M ago
The command-line interface (CLI) can be a powerful tool for developers. You can use it as part of your development workflow to add new features to your application and to perform tasks in a production environment. Laravel allows you to create "Artisan commands" to add bespoke functionality to your application. It also provides a Process facade that you can use to run OS (operating system) processes from your Laravel application to perform tasks such as running custom shell scripts.
In this article, we'll explore what Artisan commands are and provide tips and tricks for creating and testing the ..read more