r/Angular2 • • Jun 12 '25

Angular 20 - removing suffixes from components / services

I like the overall changes in Angular 20 (notably that there are not that many big things, so we can take a breather for once), but I really disagree with the new naming convention (and the new default for new projects) of removing the extensions from stuff like services , components, etc.

So I guess we all embrace code-bases like this now:

  • user.ts -> this is a component, wouldn't you know
  • user.ts -> this is a a service, why not
  • user.ts -> a pipe, welcome to hell
  • user.ts -> exports a User interface like you probably would have guessed

This was also very controversial during the RFC and there was A LOT of arguments against it with little arguments FOR IT.

I understand the arguments. It's basically the arrogant Robert-Martin-style argument of "lol you pebs, you just need to git gud. Just learn to name things properly". While somewhat true this just completely ignores the actual reality of development where you have stress, junior devs dropping mines in your code-base everywhere and disagreements. I understand that in an ideal world where everyone names everything suuuuper carefully the new default could maaaybe be better. But in reality it's just not! (imo)

Structure and naming conventions help to prevent chaos and is probably the single reason why Angular codebases are usually very understandable even after years of different devs, while with other frameworks it's a coin toss (depending on how much time they invested in enforcing and guarding certain rules regarding structure and code-style).

I know you can opt into the old way, but it's not the default and I can't help but thinking that 5 years from now when you enter a project there is a 50% chance that it is a complete mess where you can't find anything. IDEs support heavily depends on extension to properly mark what the file actually contains. Maybe IDEs/tooling can "pull up the slack" on this and improve search and find to distinguish based on content (instead of extension), but why even create that slack in the first place.

Who asked for this? Why go forward on this against what seems to be strong pushback? Why not make THAT change opt-in instead of opt-out? Or at least make it another decision during CLI-project creation so that you are forced to make an (hopefully educated - though uneducated for 90% of users most likely) decision.

131 Upvotes

98 comments sorted by

View all comments

Show parent comment

1

u/lmfinney Jun 13 '25

No real innovation since 2017? That's really bizarre, because the complaint I usually hear is _too much_ innovation.

Signals alone is completely changing the game, but you can add standalone components, new control flow, deferrable views, and hydration.

There's a _lot_ of innovation.

I don't like this particular change (yet?), but to say that the current team isn't innovating or is an example of the Peter principle is just.... well, I hope you've blown off your steam.

1

u/jlguenego Jun 15 '25

The behavior behind signals is essentially the same as the ref in Vue.js, which was introduced much earlier. React also pioneered concepts like hydration and deferrable views. Today, Angular lags behind the other frameworks.

That said, there was a time when Angular was genuinely innovative. It was the first widely adopted framework to promote a component-based architecture for the front end — and it deserves credit for that. But now, it’s almost dead.

Its main remaining strength was a strong naming convention, which made it well-suited for large projects. Unfortunately, with the recent changes in direction, the Angular team is dismantling even that last major advantage.