Discover and read the best of Twitter Threads about #Refactor

Most recents (3)

0⃣ Clean Code Series: Variables📒🧑‍💻

It's a guide to producing readable, reusable, and refactorable software in #php #ruby #javascript #python #java, etc. - Software engineering principles, from Robert C. Martin's book "Clean Code"

(code: github.com/jupeter/clean-…)

Thread (9)🧵👇 Image
1⃣ Clean Code Series: Variables📒 🧑‍💻

☑️ Use meaningful and pronounceable variable names Image
2⃣ Clean Code Series: Variables📒 🧑‍💻

☑️ Use the same vocabulary for the same type of variable Image
Read 12 tweets
A tale about refactoring code and a young boy that learned his lesson the hard way...

Big story 🧵 THREAD 🧵

#100DaysOfCode #Refactor #Lessons
Once there was a joyful jr developer full of dreams and excitement about his first deploy to production.
It was Friday in the afternoon just as he was about to close his last task of the week.
He moved the story to done and when he was about to close the IDE he saw a hidden class inside a folder from some old legacy code with the legend:
// DO NOT TOUCH. This works and it´s necessary.

"This comment is not right!" thought the young Matt..heous, mattheous right.
Read 11 tweets
question

refactoring = redesigning code without changing its behavior so that it's clearer and more easily maintained

if your code "works", and you get paid for it working, even tho it's difficult to change and understand, then what incentive do you have, to refactor?
i #refactor cus i want:

1) to make my life easier when i need to enhance or fix the code i wrote last fall

2) to share the feeling that i get when i inherit code that's a pleasure to work in cus it's easily understood, and easy to change

why do (or don't) you refactor?
Read 3 tweets

Related hashtags

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3.00/month or $30.00/year) and get exclusive features!

Become Premium

Too expensive? Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal Become our Patreon

Thank you for your support!