DEV Community

Refactor it!

Help someone refactor their code, submit some code you want help to be refactored, or show how you refactored something.

Posts

👋 Sign in for the ability to sort posts by relevant, latest, or top.
The guiding light of a North Star - Bringing long-term vision to our Frontend transformation at Hotjar

The guiding light of a North Star - Bringing long-term vision to our Frontend transformation at Hotjar

2
Comments
9 min read
Practical Experience: Integrating Over 50 Neural Networks Into One Open-Source Project

Practical Experience: Integrating Over 50 Neural Networks Into One Open-Source Project

10
Comments
10 min read
Automating Code Refactoring in Laravel with Rector

Automating Code Refactoring in Laravel with Rector

1
Comments
3 min read
Mastering Form Error Handling in Angular: Mapping Errors to User-Friendly Messages

Mastering Form Error Handling in Angular: Mapping Errors to User-Friendly Messages

4
Comments
9 min read
Refactoring: How to improve legacy code one step at a time. Starting with "if statements".

Refactoring: How to improve legacy code one step at a time. Starting with "if statements".

Comments
4 min read
Refactoring ReadmeGenie

Refactoring ReadmeGenie

Comments
5 min read
Refactoring GENEREADME

Refactoring GENEREADME

1
Comments
3 min read
Refactoring conditionals: The first steps to cleaner code.

Refactoring conditionals: The first steps to cleaner code.

Comments 1
4 min read
Tetris Game Development – Seeking Coding Advice and Feedback

Tetris Game Development – Seeking Coding Advice and Feedback

1
Comments
1 min read
How To Refactor Your Codebase

How To Refactor Your Codebase

Comments
19 min read
How To Refactor Your Codebase

How To Refactor Your Codebase

1
Comments
19 min read
Understanding Observers in Ruby on Rails

Understanding Observers in Ruby on Rails

7
Comments 3
3 min read
Why and How to Migrate Your React App from CRA to Vite

Why and How to Migrate Your React App from CRA to Vite

6
Comments
8 min read
When traits conflict

When traits conflict

Comments
1 min read
Refactoring Rails Helpers from static to dynamic rendering

Refactoring Rails Helpers from static to dynamic rendering

Comments
5 min read
Extract Method Refactoring Technique in C# – What You Need To Know

Extract Method Refactoring Technique in C# – What You Need To Know

Comments
5 min read
Refactoring C# Code – 4 Essential Techniques Simplified

Refactoring C# Code – 4 Essential Techniques Simplified

1
Comments
10 min read
Rendering PDF from URLs and HTML input using express js

Rendering PDF from URLs and HTML input using express js

8
Comments
5 min read
OO to Elixir: Clean Code With Pattern Matching

OO to Elixir: Clean Code With Pattern Matching

4
Comments 2
3 min read
When Should Code Be Refactored? What You Need To Know

When Should Code Be Refactored? What You Need To Know

1
Comments
8 min read
The cost of refactoring

The cost of refactoring

Comments
6 min read
Last Week of Hacktoberfest

Last Week of Hacktoberfest

Comments
4 min read
Make Vue's template refs clean & simple

Make Vue's template refs clean & simple

10
Comments
2 min read
From Chaos to Clarity: The Power of Git Rebase

From Chaos to Clarity: The Power of Git Rebase

3
Comments
6 min read
Git Rebase: Learn2Blog Refactor

Git Rebase: Learn2Blog Refactor

1
Comments
5 min read
How to convert a Java pojo class to Record fastly

How to convert a Java pojo class to Record fastly

3
Comments
3 min read
JavaScript refactoring best practices.

JavaScript refactoring best practices.

5
Comments
2 min read
Code smell | Hardcoded fake data in tests

Code smell | Hardcoded fake data in tests

6
Comments
3 min read
Refactoring: The Key to Keeping Your Codebase Clean and Maintainable

Refactoring: The Key to Keeping Your Codebase Clean and Maintainable

1
Comments
2 min read
Take Your Code to The Other Side

Take Your Code to The Other Side

101
Comments 27
11 min read
Improving your React Native code using Path Aliases

Improving your React Native code using Path Aliases

Comments
1 min read
Porting from RequireJS to ES6

Porting from RequireJS to ES6

8
Comments 4
6 min read
Developer Meetup - How to Refactor Legacy Code?

Developer Meetup - How to Refactor Legacy Code?

Comments
4 min read
Refactoring. RegExp.

Refactoring. RegExp.

1
Comments
2 min read
Refactoring. From 6 to 180 lines.

Refactoring. From 6 to 180 lines.

5
Comments 3
4 min read
Refactoring Tools: Transformation Priority Premise

Refactoring Tools: Transformation Priority Premise

7
Comments 2
4 min read
Refactoring Tools: Fewer Errors with Declarative Style

Refactoring Tools: Fewer Errors with Declarative Style

2
Comments
3 min read
Refactoring Tools: Module Contracts for Lower Coupling

Refactoring Tools: Module Contracts for Lower Coupling

5
Comments
4 min read
Refactoring Tools: Pure Functions and Referential Transparency

Refactoring Tools: Pure Functions and Referential Transparency

8
Comments
5 min read
Refactoring Tools: Early Return for Flatter Conditions

Refactoring Tools: Early Return for Flatter Conditions

7
Comments
5 min read
Refactoring Tools: Tactic Git for Smoother Refactoring

Refactoring Tools: Tactic Git for Smoother Refactoring

6
Comments
3 min read
Refactoring Tools: How to Search for Bad Code

Refactoring Tools: How to Search for Bad Code

10
Comments
3 min read
Design Patterns - 1 - Strategy (C#)

Design Patterns - 1 - Strategy (C#)

3
Comments
2 min read
Refactor Like a Superhero: Introducing a New Online Book!

Refactor Like a Superhero: Introducing a New Online Book!

6
Comments 2
6 min read
How would you refactor this code? (tennis-3-modern)

How would you refactor this code? (tennis-3-modern)

4
Comments
1 min read
Code Smell | Magic Numbers

Code Smell | Magic Numbers

11
Comments 2
1 min read
The most important code smells every developer has to know

The most important code smells every developer has to know

9
Comments 4
1 min read
Make Yourself Accessible: Legacy Rails Applications

Make Yourself Accessible: Legacy Rails Applications

1
Comments
13 min read
Clean Code - How I'm Refactoring My First Project

Clean Code - How I'm Refactoring My First Project

5
Comments
5 min read
How to add React to Angular app with PubSub.

How to add React to Angular app with PubSub.

3
Comments
5 min read
Java 8 to Kotlin, Clojure and Java 17 - Part 2 Kotlin

Java 8 to Kotlin, Clojure and Java 17 - Part 2 Kotlin

6
Comments
1 min read
6 tips for refactoring code

6 tips for refactoring code

11
Comments
2 min read
Refactoring 006 - Rename Result Variables

Refactoring 006 - Rename Result Variables

8
Comments
1 min read
If let shorthand project wide refactoring using Xcode regex search & replace.

If let shorthand project wide refactoring using Xcode regex search & replace.

6
Comments
1 min read
Refactoring 005 - Replace Comment with Function Name

Refactoring 005 - Replace Comment with Function Name

15
Comments
1 min read
Dynamically sorting an IQueryable

Dynamically sorting an IQueryable

10
Comments 2
4 min read
Code smell Katas — Graceful exception handling

Code smell Katas — Graceful exception handling

5
Comments
5 min read
Code Smell | Data Clumps

Code Smell | Data Clumps

12
Comments
2 min read
How do I refactor IF_ELSE condition

How do I refactor IF_ELSE condition

5
Comments
2 min read
💧🧠 Elixir: Reduzindo a complexidade ciclomática

💧🧠 Elixir: Reduzindo a complexidade ciclomática

18
Comments 2
5 min read
loading...