Software Alternatives, Accelerators & Startups

Prettier VS BEM

Compare Prettier VS BEM and see what are their differences

Prettier logo Prettier

An opinionated code formatter

BEM logo BEM

BEM — Block Element Modifier is a methodology, that helps you to achieve reusable components and code sharing in the front-end.
  • Prettier Landing page
    Landing page //
    2022-06-27
  • BEM Landing page
    Landing page //
    2022-11-21

Prettier videos

Code Formatting with Prettier in Visual Studio Code

More videos:

  • Review - ESLint + Prettier + VS Code — The Perfect Setup
  • Review - Miranda Lambert -- Only Prettier [REVIEW/RATING]

BEM videos

BEM REVIEW! is Bem worth watching?

More videos:

  • Review - BEM - First Impressions
  • Review - Bem Episode 1 Discussion/ Review BEM HAS THE MUSIC!!!!!

Category Popularity

0-100% (relative to Prettier and BEM)
Code Coverage
100 100%
0% 0
Developer Tools
87 87%
13% 13
Code Analysis
100 100%
0% 0
Design Tools
0 0%
100% 100

User comments

Share your experience with using Prettier and BEM. For example, how are they different and which one is better?
Log in or Post with

Social recommendations and mentions

Based on our record, Prettier should be more popular than BEM. It has been mentiond 257 times since March 2021. We are tracking product recommendations and mentions on various public social media platforms and blogs. They can help you identify which product is more popular and what people think of it.

Prettier mentions (257)

  • How to prevent Prettier putting a full stop on a new line after a link
    Do you use Prettier? Have your configuration settings caused weird HTML rendering issues by adding extra whitespace where you didn't want it? Perhaps after an anchor link at the end of a paragraph? Me, too. Here's what's happening and how you might be able to fix it. - Source: dev.to / 7 days ago
  • Mastering Code Quality: Setting Up ESLint with Standard JS in TypeScript Projects
    In this post, I also use ESLint + Standard JS as my code formatting tools. Formatting JS/TS code by using ESLint is also subjective and opinionated, arguably most people would rather use Prettier instead, which provides more configurable options. - Source: dev.to / 15 days ago
  • To Review or Not to Review: The Debate on Mandatory Code Reviews
    Automating code checks with static code analysis allows us to enforce code styling effectively. By integrating tools into our workflow, we can identify errors at an early stage, while coding instead of blocking us at the end. For instance, flake8 checks Python code for style and errors, eslint performs similar checks for JavaScript, and prettier automatically formats code to maintain consistency. - Source: dev.to / 28 days ago
  • Setting up Doom Emacs for Astro Development
    So anyways, I wanted to hook up Emacs with Astro support. For now, I've just been roughing it out there and running Prettier by itself and turning off save on format and auto-complete. It's been scary. - Source: dev.to / 28 days ago
  • Biome.js : Prettier+ESLint killer ?
    If you're a developer, you're surely familiar with Prettier and ESLint. With over 8 years of existence, they have established themselves as references in the JavaScript ecosystem. - Source: dev.to / about 1 month ago
View more

BEM mentions (45)

  • SASS, CSS, or Tailwind: Which One Should You Choose?
    Keep in mind you also have to use BEM. If you use just SASS, there are little to no advantages compared with CSS. I am going to cover BEM in a separate article, but for your understanding, BEM is a methodology for writing good CSS. - Source: dev.to / 5 days ago
  • Darling, I converted our perfectly fine SPA application into SSR: Part 2
    Most of our headaches stemmed from styled-components. Despite the merits of this CSS-in-JS library, it doesn’t mesh as seamlessly with server components. Traditional CSS methodologies, such as BEM (Block, Element, Modifier), CSS modules, or even utility-first frameworks like Tailwind, would have alleviated many of our difficulties. This lesson is a key takeaway that we plan to carry forward into our future projects. - Source: dev.to / 7 days ago
  • Earth rescue - A CSS only game
    After I had created space, the code was as spaghetti as it can get. I decided to switch to SCSS and finally read into the BEM Pattern for CSS and after wasting another 4 hours, I decided that I could not decide wether the HUD is an element of the game and the button is an element of the HUD and the text is an element of the button and someone else also thought about this and called it the BEM grandchildren... - Source: dev.to / 25 days ago
  • Upgrading and Refactoring a Slightly Outdated Web Project
    There are some conceptual requirements to clean code that I always found hard to achieve in a traditional web project, but that's one more reason to use tools like static site generators and follow design patterns like Atomic Design, (A)BEM CSS, and a modular file structure. - Source: dev.to / about 1 year ago
  • 21 Resources to Learn And Practice Your CSS Skills
    BEM is a methodology for organizing and naming CSS classes in a scalable and maintainable way. Learning the principles of BEM can improve the structure of your stylesheets drastically. - Source: dev.to / 5 months ago
View more

What are some alternatives?

When comparing Prettier and BEM, you can also consider the following products

ESLint - The fully pluggable JavaScript code quality tool

Sass - Syntatically Awesome Style Sheets

SonarQube - SonarQube, a core component of the Sonar solution, is an open source, self-managed tool that systematically helps developers and organizations deliver Clean Code.

Tailwind CSS - A utility-first CSS framework for rapidly building custom user interfaces.

styled-components - styled-components is a visual primitive for the component age that also helps the user to use the ES6 and CSS to style apps.

Next.js - A small framework for server-rendered universal JavaScript apps