mastodon.ar.al is one of the many independent Mastodon servers you can use to participate in the fediverse.
This is my personal fediverse server.

Administered by:

Server stats:

1
active users

#refactor

1 post1 participant0 posts today

This might be the most obvious of #linktuesday links in ages, but really, I've recently been helped a lot by #rector. So yes, I'm sharing Rector today: getrector.com

If you have not worked with it before, it may seem intimidating, but take some time to get used to it, because it can really make your life a lot easier, especially when working with #legacy code

getrector.comWe'll Speed Up Your Development Process by 300% | Rector - Automated Way to Instantly Upgrade and Refactor any PHP codeRector - Automated Way to Instantly Upgrade and Refactor any PHP code
Continued thread

TDD is a great _technique_ for guiding you and helping you discover unclear code or designs that could be improved, but you, the developer, have to not only pay attention, you also have to know how to #Refactor and know what better design is so you can refactor in that direction.

Many people say that #Rust is very hard to #prototype with or to #refactor. This couldn't be further from the truth! It is the exact opposite!

Let me share with you one of the most profound experiences I had with #RustLang on a casual sunday - a thread 🧵

I'm currently rewriting my #transpiler from #nom to #chumsky and until now everything has turned out great so far, until I've hit the following road block:
Implementing parsers by using #parser functions that have indirect #recursion.

1/11

Replied in thread

@natpryce @westghost Interesting. From the first workshop we learnt that people could uncover the clear design from the clear code. Equivalents to wikipedia discussions could be:
- commit comments (I experimented with a pre-commit hook that forced eg. '#test' '#refactor' etc. prefixes. it shows a kind of trail in git log --oneline of the kind of work and gives a feel for the cadence)
- Architecture Decision Records in the code base / repository 1/2 #ADR #stigmergy