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.
What is the system supposed to do?

What is the system supposed to do?

5
Comments
2 min read
Code Refactoring: Meaning, Benefits and Best Practices

Code Refactoring: Meaning, Benefits and Best Practices

7
Comments
11 min read
Code Smell | Shotgun surgery

Code Smell | Shotgun surgery

16
Comments 2
2 min read
Eight (Groups of) Lodash Functions I Reach for the Most

Eight (Groups of) Lodash Functions I Reach for the Most

6
Comments
5 min read
Why TypeScripts never type is super useful

Why TypeScripts never type is super useful

6
Comments
4 min read
Code Smell | Divergent change

Code Smell | Divergent change

12
Comments
1 min read
Improve Product Quality by focusing on Developer Experience

Improve Product Quality by focusing on Developer Experience

4
Comments
2 min read
Docker - Run/Refactor PHP code from a web interface

Docker - Run/Refactor PHP code from a web interface

13
Comments 1
2 min read
Code Smell | Primitive Obsession

Code Smell | Primitive Obsession

17
Comments
4 min read
Refactoring?!

Refactoring?!

6
Comments
2 min read
Migrating our scripts to Node.js v16 using codemod

Migrating our scripts to Node.js v16 using codemod

14
Comments
3 min read
Basic Software Architecture Principles (except SOLID)

Basic Software Architecture Principles (except SOLID)

7
Comments 3
3 min read
Make readable string formatting

Make readable string formatting

4
Comments
1 min read
Functional Programming in Java? Refactoring if/else logic with the help of Functional Interfaces.

Functional Programming in Java? Refactoring if/else logic with the help of Functional Interfaces.

15
Comments 1
4 min read
Exploring Functional Programming in Java - Functional Interface

Exploring Functional Programming in Java - Functional Interface

8
Comments
6 min read
I refactored all my articles

I refactored all my articles

11
Comments
3 min read
React refactor code #1

React refactor code #1

2
Comments 2
1 min read
How to code better and faster: lessons from research into Google developers

How to code better and faster: lessons from research into Google developers

3
Comments
2 min read
Table Driven Unit Tests in Go

Table Driven Unit Tests in Go

40
Comments 2
4 min read
#Creating an Application to Give Current Urgent Care Wait Times

#Creating an Application to Give Current Urgent Care Wait Times

2
Comments
2 min read
Refactoring the Pomodoro Timer: Components

Refactoring the Pomodoro Timer: Components

7
Comments 1
2 min read
7 Tricks I Use To Rewrite JavaScript Code From My Early Days

7 Tricks I Use To Rewrite JavaScript Code From My Early Days

21
Comments 8
1 min read
Converting My Vanilla JavaScript Project into React

Converting My Vanilla JavaScript Project into React

14
Comments
4 min read
Vue 3 Options to Composition API Migration

Vue 3 Options to Composition API Migration

17
Comments 5
3 min read
How I use a Hash Instead of Case Statement in Ruby

How I use a Hash Instead of Case Statement in Ruby

6
Comments
2 min read
Laravel: Refactoring Opportunity

Laravel: Refactoring Opportunity

4
Comments
3 min read
A Walk Through the Gilded Rose Kata — Pt 5: Open to extension, closed to modification

A Walk Through the Gilded Rose Kata — Pt 5: Open to extension, closed to modification

5
Comments
3 min read
A Walk Through the Gilded Rose Kata — Pt 4: Discovering what GildedRose really is

A Walk Through the Gilded Rose Kata — Pt 4: Discovering what GildedRose really is

5
Comments
4 min read
A Walk Through the Gilded Rose Kata — Pt 3: From Faux-O to OO

A Walk Through the Gilded Rose Kata — Pt 3: From Faux-O to OO

7
Comments
6 min read
A Walk Through the Gilded Rose Kata — Pt 2: Duplication is your friend (at first)

A Walk Through the Gilded Rose Kata — Pt 2: Duplication is your friend (at first)

5
Comments
6 min read
A Walk Through the Gilded Rose Kata — Pt 1: Do not break anything

A Walk Through the Gilded Rose Kata — Pt 1: Do not break anything

12
Comments
7 min read
Are Default Params in JavaScript bad? (Snack pack #4)

Are Default Params in JavaScript bad? (Snack pack #4)

5
Comments
1 min read
Refactoring a horrible function - thought processes

Refactoring a horrible function - thought processes

2
Comments
6 min read
What is the D.R.Y Principle?

What is the D.R.Y Principle?

5
Comments
4 min read
Refactor to success!

Refactor to success!

4
Comments
3 min read
Does refactoring Legacy Code pay off in your career?

Does refactoring Legacy Code pay off in your career?

7
Comments 2
7 min read
Use the new Enum type in Ecto 3.5

Use the new Enum type in Ecto 3.5

7
Comments 2
4 min read
Converting a React Class Component with Connect to a Functional Component using React Hooks

Converting a React Class Component with Connect to a Functional Component using React Hooks

7
Comments
6 min read
Why deciding when to refactor can be complicated and convoluted

Why deciding when to refactor can be complicated and convoluted

2
Comments
13 min read
Refactoring my first Go code

Refactoring my first Go code

9
Comments
3 min read
Refactoring or: How We Learned to Stop Worrying and Live with Chaos

Refactoring or: How We Learned to Stop Worrying and Live with Chaos

9
Comments
6 min read
When is it the best time to refactor?

When is it the best time to refactor?

4
Comments 2
3 min read
How would I do it in Haskell?

How would I do it in Haskell?

6
Comments
3 min read
How I saved 4 months of work on a code base migration with Codemod ✨

How I saved 4 months of work on a code base migration with Codemod ✨

6
Comments
4 min read
Developer Diaries : Refactor Code!! Noooo.. :'(

Developer Diaries : Refactor Code!! Noooo.. :'(

4
Comments 1
2 min read
The best way to start testing untested code

The best way to start testing untested code

2
Comments
5 min read
Refactor to Reduce Repetitive Code

Refactor to Reduce Repetitive Code

11
Comments 1
2 min read
Top 10 practices I hate in C++

Top 10 practices I hate in C++

7
Comments
13 min read
Migrating to Typescript: Keeping it smooth & steady

Migrating to Typescript: Keeping it smooth & steady

22
Comments 2
4 min read
Refactors y Migraciones: Pros... Y más pros!

Refactors y Migraciones: Pros... Y más pros!

2
Comments
2 min read
4 developers working their way through Legacy Code

4 developers working their way through Legacy Code

2
Comments
3 min read
How can I refactor this code snippet?

How can I refactor this code snippet?

8
Comments 4
1 min read
Where should you put the documentation?

Where should you put the documentation?

10
Comments 4
4 min read
State-driven development of user interface components

State-driven development of user interface components

5
Comments
2 min read
Writing If Statements with the Ternary Operator

Writing If Statements with the Ternary Operator

28
Comments 13
2 min read
💫 Learn how to refactor an existing app with Vertical Slice Architecture 💫

💫 Learn how to refactor an existing app with Vertical Slice Architecture 💫

1
Comments
1 min read
What Is Refactoring

What Is Refactoring

5
Comments
3 min read
When Should You Refactor Your Code?

When Should You Refactor Your Code?

6
Comments 1
4 min read
Which Class? Puts it in?

Which Class? Puts it in?

3
Comments
3 min read
Coding basics: DRY programming

Coding basics: DRY programming

5
Comments 2
5 min read
loading...