André Amorim

Crafting Web Experiences

// All My Notes

  • Fixing WordPress Search for Good with ElasticPress

    Default WordPress search is slow and ranks nothing. ElasticPress replaces it with Elasticsearch while keeping WP_Query intact. We go through the whole plugin and look closely at Post Search, Did You Mean, Filters, Related Posts, Custom Search Results, Autosuggest and the WooCommerce integration, with the settings and PHP hooks you’ll actually use.

  • What Elasticsearch Actually Does: A Practical Introduction

    Elasticsearch powers search on some of the biggest sites on the web, but most explanations either stay too vague or dive straight into cluster tuning. This guide sits in the middle: how documents are indexed, why the inverted index makes it fast, how to write queries that rank results properly, and what aggregations, suggesters and…

  • Why Every Web Developer Needs a Sandbox Playground (and How to Maintain One)

    Discover why a dedicated developer sandbox is essential for risk-free experimentation, faster debugging, and skill growth, plus practical tips to keep yours clean and efficient.

  • Headless vs. Monolithic Architecture: Which is Right for Your Web Project?

    Choosing between headless and monolithic web architecture can define your project’s technical success and budget efficiency. Here is a practical guide tailored for small-to-medium web projects.

  • Custom Block Development in Modern WordPress: Dynamic Blocks vs. React-Based Components

    Unsure whether to build dynamic blocks or React-based static blocks for your WordPress site? Learn the key differences, performance trade-offs, and how to choose the right approach for your project.

  • Building Lightweight REST APIs with Node.js & Express Without the Overhead

    Learn how to build blazing-fast, minimal REST APIs using Node.js and Express without the bloat. Discover practical strategies to optimize performance and keep your backend lean.

  • Why Every Web Developer Needs a Sandbox Playground (and How to Maintain One)

    Discover why having a safe sandbox environment is essential for web developers to experiment, debug, and learn without risking production sites, plus practical tips on maintaining one efficiently.

  • Headless vs. Monolith: Choosing the Right Web Architecture for Small-to-Medium Projects

    Deciding between a traditional monolithic web architecture and a modern headless setup can make or break your site’s performance and budget. Here is how small-to-medium projects can choose the right tech stack.

  • Is Vibe-Coding Just a Trend? Unpacking the Hype and Substance

    Vibe-coding has taken the coding world by storm, but is it more than just a fleeting trend? We dive into the world of vibe-coding to separate the hype from the substance.

  • Setting Up NextCloud: A Step-by-Step Guide to Private Cloud Storage

    Take control of your data with NextCloud, a self-hosted cloud storage solution. Learn how to set up NextCloud on your own server for secure and private file sharing.

  • Manually analyze for Malware with VS Code (it’s a tedious job)

    Press Ctrl+Shift+F (or Cmd+Shift+F on Mac). Click the .* button on the right side of the search box to enable regex mode— this is important because most of these patterns are regex. Also useful: the “files to include” field at the bottom. Use *.php to limit to PHP files, or *.{php,js} for both. The “files to exclude” field helps too — put **/libraries/**, **/libs/**, **/vendor/**, **/node_modules/** there to skip third-party code. Tier…

  • WordPress Block JS Code Standard (Prettier)

    Installation Install the module $ npm install @wordpress/prettier-config –save-dev Note: This package requires Node.js version with long-term support status (check Active LTS or Maintenance LTS releases). It is not compatible with older versions. Usage Add this to your package.json file: “prettier”: “@wordpress/prettier-config” Alternatively, add this to .prettierrc file: “@wordpress/prettier-config” Or add this to .prettierrc.js file: module.exports = require( ‘@wordpress/prettier-config’ );

  • Gutenberg Instructions/Documentation

    How to create a block? npx @wordpress/create-block@latest <block-name> Generate .pot file for block translation: After translating with Poedit or the Loco Translate plugin (better sync), you need to generate the .json files for the translations to take effect in the block editor: How to create a block? Default Components: Default Blocks Repo: https://github.com/WordPress/gutenberg…ibrary/src How to Extend the…

  • How to get posts from REST API for a Gutenberg Block

    Examples:  https://ryanwelcher.com/2021/08/18/req…tyrecords https://permanenttourist.ch/2023/01/us…-rest-api