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.
Selecting Hashes from an API

Selecting Hashes from an API

3
Comments
2 min read
Developer Dark Arts: Ralpha-sorting

Developer Dark Arts: Ralpha-sorting

6
Comments
4 min read
Saner apps with the Facade Pattern

Saner apps with the Facade Pattern

7
Comments
11 min read
Developer Dark Arts: React Class Components

Developer Dark Arts: React Class Components

6
Comments
5 min read
4 ways to clean ranged comparisons in Ruby conditionals

4 ways to clean ranged comparisons in Ruby conditionals

6
Comments
2 min read
Developer Dark Arts: Default Exports

Developer Dark Arts: Default Exports

9
Comments
5 min read
Developer Dark Arts: Magic Strings

Developer Dark Arts: Magic Strings

7
Comments
3 min read
Using Dictionaries to refactor

Using Dictionaries to refactor

5
Comments
2 min read
Using Factories in Ruby to Refactor if Statements

Using Factories in Ruby to Refactor if Statements

7
Comments
5 min read
Dive into an unfamiliar codebase from its edges

Dive into an unfamiliar codebase from its edges

3
Comments
5 min read
Is it up to the newer developer to pay back others' technical debt?

Is it up to the newer developer to pay back others' technical debt?

3
Comments
3 min read
Plain old PHP Object - Usability and benefits in modern PHP programming

Plain old PHP Object - Usability and benefits in modern PHP programming

13
Comments
3 min read
Focus refactoring on what matters with Hotspots Analysis

Focus refactoring on what matters with Hotspots Analysis

6
Comments 1
7 min read
5 coding exercises to practice refactoring Legacy Code

5 coding exercises to practice refactoring Legacy Code

18
Comments 1
5 min read
Code Review: Name file after exposed function

Code Review: Name file after exposed function

3
Comments
1 min read
A simple technique to do safe changes in a complex codebase

A simple technique to do safe changes in a complex codebase

117
Comments 4
5 min read
How not to make a framework for default request values in Spring

How not to make a framework for default request values in Spring

10
Comments
5 min read
Clean code in Spring ecosystem

Clean code in Spring ecosystem

9
Comments
6 min read
TypeScript Generics and Type Guards - Explained by Example

TypeScript Generics and Type Guards - Explained by Example

18
Comments
8 min read
Capture Refactoring Ideas With Annotated TODOs

Capture Refactoring Ideas With Annotated TODOs

11
Comments 3
3 min read
Refactoring: My 6 favorite patterns

Refactoring: My 6 favorite patterns

907
Comments 36
4 min read
Well-Factored Web Forms

Well-Factored Web Forms

7
Comments
5 min read
Losing my memory

Losing my memory

5
Comments 2
6 min read
A Better Way to Loop Over an Array

A Better Way to Loop Over an Array

5
Comments
2 min read
Refactoring C# code using partial classes

Refactoring C# code using partial classes

59
Comments 8
8 min read
The fight between Try-Catch and If-Else

The fight between Try-Catch and If-Else

17
Comments 11
1 min read
Technical Debt in TicTacToe (Estimating 1.5)

Technical Debt in TicTacToe (Estimating 1.5)

4
Comments
1 min read
Fastest way to create and share code in any language

Fastest way to create and share code in any language

12
Comments
2 min read
🐾 Does your microservice deserve its own database?

🐾 Does your microservice deserve its own database?

44
Comments 1
4 min read
Refactoring many OR statements like a ninja 🤘

Refactoring many OR statements like a ninja 🤘

10
Comments 1
1 min read
Nullish Coalescing in JavaScript

Nullish Coalescing in JavaScript

6
Comments
2 min read
Advanced SCSS: How Strings and Lists Can Improve Your Code

Advanced SCSS: How Strings and Lists Can Improve Your Code

13
Comments
3 min read
Semantic HTML: An Introduction

Semantic HTML: An Introduction

42
Comments
3 min read
Refactoring Code in Ruby

Refactoring Code in Ruby

9
Comments
3 min read
How to make a form handling with vuex

How to make a form handling with vuex

51
Comments 13
2 min read
Refactoring my Rails Project

Refactoring my Rails Project

9
Comments 2
2 min read
Vue.js - Cleaning up components

Vue.js - Cleaning up components

26
Comments 4
5 min read
Refactoring a Legacy Project

Refactoring a Legacy Project

18
Comments 12
1 min read
React.js with Factory Pattern ? Building Complex UI With Ease

React.js with Factory Pattern ? Building Complex UI With Ease

135
Comments 9
5 min read
Guides to Refactoring

Guides to Refactoring

89
Comments 6
1 min read
5 refactorings I use every day

5 refactorings I use every day

16
Comments
4 min read
How to Maintain Clean Code in your projects

How to Maintain Clean Code in your projects

7
Comments
5 min read
Tips on naming boolean variables - Cleaner Code

Tips on naming boolean variables - Cleaner Code

277
Comments 56
2 min read
Simpler = Better if it_gets_the_job_done

Simpler = Better if it_gets_the_job_done

34
Comments 4
2 min read
How I brought down my project's dependency tree from 36 packages to 4 packages

How I brought down my project's dependency tree from 36 packages to 4 packages

133
Comments 17
3 min read
Рефакторьте свой унаследованный PHP код (примеры из реальных проектов)

Рефакторьте свой унаследованный PHP код (примеры из реальных проектов)

7
Comments
1 min read
Two quick tips for writing legible code

Two quick tips for writing legible code

9
Comments 6
3 min read
Facades should not have Working Plumbing

Facades should not have Working Plumbing

15
Comments 5
3 min read
Angular Style Encapsulation: You're Doing It Wrong

Angular Style Encapsulation: You're Doing It Wrong

13
Comments 5
3 min read
Move Java-project to Kotlin

Move Java-project to Kotlin

10
Comments 2
1 min read
Java compiler error cascades... and fixing them

Java compiler error cascades... and fixing them

7
Comments
2 min read
Code Duplication Refactoring on Conditional Conditions

Code Duplication Refactoring on Conditional Conditions

10
Comments
1 min read
TDD and bug fixing - the duo you can't be without

TDD and bug fixing - the duo you can't be without

10
Comments
5 min read
How Do You Refactor Any Existing and Very Old Codebase?

How Do You Refactor Any Existing and Very Old Codebase?

6
Comments 6
2 min read
Impetuous Encasing

Impetuous Encasing

5
Comments
2 min read
5 easy wins to refactor even the worst legacy code

5 easy wins to refactor even the worst legacy code

67
Comments 5
3 min read
5 easy wins to refactor even the ugliest code

5 easy wins to refactor even the ugliest code

157
Comments 13
3 min read
Why do developers hate to write documentations? If not how do you document your code?

Why do developers hate to write documentations? If not how do you document your code?

5
Comments 2
1 min read
Dependency Injection in Ruby 🌈

Dependency Injection in Ruby 🌈

13
Comments
2 min read
A short example of how types can make your life easier

A short example of how types can make your life easier

35
Comments 2
4 min read
loading...