scottkeckwarren, to random
@scottkeckwarren@phpc.social avatar

One of the interesting parts of code is how you can refactor code and then another possible refactoring shows up, revealing another, and so on. I was able to delete 2 tests because I realized they were identical to another test once I refactored them all three times.

joachim, to random
@joachim@drupal.community avatar

New blog post: code with - http://www.noreiko.com/blog/refactoring-rector (First blog post in nearly two years!)

lig, to rust
@lig@fosstodon.org avatar

I'm working on a pet project written in Rust in my spare time.

Yesterday I've migrated it from rocket to axum.

Why?
I was doing a weird thing and rocket wasn't enough.

How much time it's taken?
2 hours.

Did I have tests?
Yes. I have unit and integration tests. One test has actually helped to catch a slight difference in the way axum works.

Takeaways

  • Refactoring in Rust is an incredibly pleasant exercise.
  • Having tests helps.

leanpub, to random
@leanpub@mastodon.social avatar

The bundle Memory Thinking for C and C++ by Dmitry Vostokov is on sale on Leanpub! Its suggested price is $98.00; get it for $49.50 with this coupon: https://leanpub.com/b/memorythinking/c/LeanpubWeeklySale2024Apr15 #CAndCpp #ComputerSecurity #Refactoring #SoftwareEngineering

leanpub, to random
@leanpub@mastodon.social avatar

The bundle Memory Thinking for C and C++ by Dmitry Vostokov is on sale on Leanpub! Its suggested price is $98.00; get it for $49.50 with this coupon: https://leanpub.com/b/memorythinking/c/LeanpubWeeklySale2024Apr08 #CAndCpp #ComputerSecurity #Refactoring #SoftwareEngineering

leanpub, to php
@leanpub@mastodon.social avatar

Rector - The Power of Automated Refactoring by Matthias Noback and Tomas Votruba is on sale on Leanpub! Its suggested price is $49.00; get it for $44.10 with this coupon: https://leanpub.com/sh/Ui7OQaXS

leanpub, to random
@leanpub@mastodon.social avatar

Memory Thinking for C and C++ https://leanpub.com/b/memorythinking by Dmitry Vostokov is the featured bundle on the Leanpub homepage! https://leanpub.com @DumpAnalysis #CAndCpp #ComputerSecurity #Refactoring #SoftwareEngineering

leanpub, to python
@leanpub@mastodon.social avatar

Clean Code Principles And Patterns by Petri Silen is on sale on Leanpub! Its suggested price is $14.90; get it for $9.69 with this coupon: https://leanpub.com/sh/65f1KBV2

leanpub, to python
@leanpub@mastodon.social avatar

Clean Code Principles And Patterns by Petri Silen is on sale on Leanpub! Its suggested price is $14.90; get it for $9.69 with this coupon: https://leanpub.com/sh/YxhbwQ0W

leanpub, to php
@leanpub@mastodon.social avatar

Rector - The Power of Automated Refactoring by Matthias Noback and Tomas Votruba is on sale on Leanpub! Its suggested price is $49.00; get it for $44.10 with this coupon: https://leanpub.com/sh/B9IdS8n4

leanpub, to python
@leanpub@mastodon.social avatar

Clean Code Principles And Patterns by Petri Silen is on sale on Leanpub! Its suggested price is $14.90; get it for $9.69 with this coupon: https://leanpub.com/sh/GWZHYJlW

leanpub, to random
@leanpub@mastodon.social avatar

Memory Thinking for C and C++ https://leanpub.com/b/memorythinking by Dmitry Vostokov is the featured bundle on the Leanpub homepage! https://leanpub.com #CAndCpp #ComputerSecurity #Refactoring #SoftwareEngineering

leanpub, to php
@leanpub@mastodon.social avatar

Rector - The Power of Automated Refactoring by Matthias Noback and Tomas Votruba is on sale on Leanpub! Its suggested price is $49.00; get it for $44.10 with this coupon: https://leanpub.com/sh/sM4JRcQc

leanpub, to php
@leanpub@mastodon.social avatar

The bundle Architecture and Decoupling by Matthias Noback is on sale on Leanpub! Its suggested price is $84.00; get it for $49.50 with this coupon: https://leanpub.com/b/architecture-and-decoupling/c/LeanpubWeeklySale2024Mar03

dtanzer, to random
@dtanzer@social.devteams.at avatar

Heared something today that triggered a pet peeve ("Words don't mean what they don't mean", h/t @davenicolette ), and in my someone-is-wrong-on-the-internet-moment that I'm having right now, I've got to say:

is changing the structure of a program WITHOUT changing it's behavior. If you are not feature-to-feature AND bug-to-bug compatible -> not refactoring.

Term I heard: "Refactoring to feature parity" - not wrong, but could be from the department-of-redundancy-department

mjgardner, to programming
@mjgardner@social.sdf.org avatar

There’s nothing more permanent than a temporary fix that works.

mjgardner,
@mjgardner@social.sdf.org avatar

@mctwist My vice is other team members’ code when reviewing their merge requests, especially when they’re making a small fix to some grotty . (Spoiler: it’s all grotty legacy code)

qcoding, to random
@qcoding@iosdev.space avatar

tip:
See code that looks similar?
First, make them identical.

leanpub, to php
@leanpub@mastodon.social avatar

Static Analysis and Automated Refactoring https://leanpub.com/b/static-analysis-and-automated-refactoring by Matthias Noback and Tomas Votruba is the featured bundle on the Leanpub homepage! https://leanpub.com

fm_volker, to homeassistant
@fm_volker@mastodon.social avatar

is rejecting pull-requests that touch config options on projects that still use the old configuration.yaml-way, insisting on a first.

Ii will be interesting to see how this is going to play out for them long-term. That's probably the only way to muster the required effort for refactoring the codebase, but I wonder how many necessary updates won't get done.

I'm trying to recall if we ever had something similar in the ports-tree...don't think so. 1/n

jitterted, to random
@jitterted@sfba.social avatar

I keep hearing/seeing things like this when justifying not writing a lot of automated tests: "tests often end up needing to be rewritten because the implementation changed."

And that's just not my experience at all. Though it does depend on how the word "rewritten" is interpreted. Do I have to restructure tests? Sure, if, for example, I wrap a long inside of a PlayerId class, then I'm going to have to change any test that uses/expects a long [to now use a PlayerId].

However, refactoring techniques (at least in Java with IntelliJ IDEA) can make this straightforward, often with no manual code changes.

Does anyone have concrete examples of where tests had to be rewritten because of implementation changes?

kanekotic, to random

Did you know that in Extreme Programming (XP), refactoring is not just cleaning up code, but a core practice to boost agility? It's about evolving design organically, embracing change for the ultimate efficiency! 👨‍💻🔄

leanpub, to python
@leanpub@mastodon.social avatar

Clean Code Principles And Patterns by Petri Silen is on sale on Leanpub! Its suggested price is $14.90; get it for $9.69 with this coupon: https://leanpub.com/sh/CDRg3Hbc

leanpub, to php
@leanpub@mastodon.social avatar

Rector - The Power of Automated Refactoring by Matthias Noback and Tomas Votruba is on sale on Leanpub! Its suggested price is $49.00; get it for $44.10 with this coupon: https://leanpub.com/sh/Kgy4Rztl

leanpub, to php
@leanpub@mastodon.social avatar

Recipes for Decoupling by Matthias Noback is on sale on Leanpub! Its suggested price is $49.00; get it for $35.10 with this coupon: https://leanpub.com/sh/drOAAOlU

leanpub, to php
@leanpub@mastodon.social avatar

Rector - The Power of Automated Refactoring by Matthias Noback and Tomas Votruba is on sale on Leanpub! Its suggested price is $49.00; get it for $44.10 with this coupon: https://leanpub.com/sh/kx0Jkk2E

  • All
  • Subscribed
  • Moderated
  • Favorites
  • megavids
  • InstantRegret
  • rosin
  • modclub
  • Youngstown
  • khanakhh
  • Durango
  • slotface
  • mdbf
  • cubers
  • GTA5RPClips
  • kavyap
  • DreamBathrooms
  • ngwrru68w68
  • JUstTest
  • magazineikmin
  • osvaldo12
  • tester
  • tacticalgear
  • ethstaker
  • Leos
  • thenastyranch
  • everett
  • normalnudes
  • anitta
  • provamag3
  • cisconetworking
  • lostlight
  • All magazines