phpc.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
A server for PHP programmers & friends. Join us for discussions on the PHP programming language, frameworks, packages, tools, open source, tech, life, and more.

Administered by:

Server stats:

800
active users

Larry Garfield

One of the advantages of an IDE with good refactoring capability is that, when you're not sure what a class should properly be named, you can just give it a stupid, obviously temporary name. Then when you are done redesigning it and know what it should actually be called, it's just a simple `Rename` refactor command to update across the whole codebase.

@Crell i would not know, that feature is usually locked a paywall like with intelliphense lol

@Crell Hell yeah,
And the same goes for these questions:
- Where should I put this?
- What's the proper interface?
- Should "this" still go in this class?

They all can wait, just finish your thought :P It feels like a lot of new comer gets interrupted and stuck at start because they want to code "clean" but cannot yet decide. Little they know that these questions won't be much easier later either :D

@Crell totally true, in our team we sometimes have a merge request where the code is good but we discuss about the name of a class. (Most of the time that is also a question in the MR for input)

Going forward with a temporary name and rename it before merge is powerful and prevent you from stopping during the process.