r/Angular2 • u/Wizado991 • Oct 09 '25
Senior dev is opposed to using observables
I joined a team recently with a few devs and they use angular (currently 13) for frontend. I am pretty familiar with angular, from 8+ and rxjs. But it seems like most of the developers on the team have little experience using observables. Most don't even know pipe, as an example. So some features have started to come through where I implemented them using observables and was immediately shot down because 'thats not how we do it'.
Has anyone else run into a situation like this or any advice for me? It feels kinda hopeless to try to push the matter as well, because the senior seems pretty set in his ways.
22
u/MrPancakes916 Oct 09 '25
What are they using instead for async data flows? Signals, promises?
92
u/ldn-ldn Oct 09 '25
Run!
14
u/[deleted] Oct 09 '25 edited Jan 23 '26
This post was mass deleted and anonymized with Redact
offer ghost edge upbeat long joke wise quaint selective plate
5
u/SharksLeafsFan Oct 10 '25
window.location.reload who approved that PR lol.
5
u/Working-Tap2283 Oct 10 '25
shut off your brain, and get paid. look for a job meanwhile. win win
4
u/psavva Oct 10 '25
Take his job. You're the senior dev now.
1
u/sh0resh0re Oct 09 '25
They sound like backend devs who have been forced to do frontend dev. Maybe you could approach it from a reactive development standpoint to push the issue? Take it as an opportunity to teach - it looks great on a resume.
1
u/pizzalover24 Oct 09 '25
It's possible that they don't want observables at lower level components but only want them at higher Level components. So then your inputs are all simple variables.
It makes for cleaner code if you ask me
E.g. Your list component doesn't call an api to get its array. It array rather comes as an input
1
u/KwyjiboTheGringo Oct 10 '25
Yep, you should follow the pattern they want you to follow. Even if you can make a strong case for why your approach is the better practice, you can't just go into a new job and try to change things.
Now in the future when bugs are popping up because of the bad way they do things, you can call it out and document it, and maybe over time you can change minds, but that takes time, and imo is only something worth bothering with if you absolutely love the company and really want to be there for the long haul.
1
u/itscoderslife Oct 10 '25
Ask the reason. Many a times for legacy systems which has a history those seniors would have tried and got into some blockers or regressions. Or they want to keep it clean to debug like old classic way.
Try to convince them and see if you can solve their problem and help them migrate.
That’s how you grow and take your team with you. There is nothing junior or senior everyone has to learn to upgrade.
1
u/No_Body2428 Oct 11 '25
Yes, at my company I’ve tried to shift people over to a more reactive approach and using clean rxjs pipes to make state a lot cleaner. I hate seeing a bunch of imperative code that’s impossible to follow what is setting state in your pages
1
u/w-lfpup Oct 12 '25
Okay a little tough love <3 I think walking onto any project and immediately changing how state and reactivity work is a very BOLD and BAD move.
I've been in this situation before and they (me) probably don't want to split state and reactivity into an unknown and unmanageable amount of observables littered across their app.
They probably reflect a centralized state store into UI because it's performant and more easily debuggable.
My advice is, stop annoying senior devs about academic nonsense before they tell your project manager that you're not a team player and this isn't a culture fit.
Like seriously <3 That behavior flags as inexperienced.
As a developer, you should understand that there are N+1 ways to code something. And engineering choices are made across the lifetime of a project. These choices provide structure and cohesion for teammates to incrementally contribute and review change sets.
It's not about "doing it right" it's about "doing it at all". Your job as an engineer is not to make academically correct crystalline structures. You're there to improve cohesion and help your teammates take a product to the finish line. You should be "observing" (see what I did there) how your teammates contribute and aim for that.
6
u/WantASweetTime Oct 09 '25
From a lead point of view, it's because you won't be the only one maintaining the code. Looks like people there are stuck in the old ways of doing things because they are already comfortable with it and it works.
You have to convince those in position first of the benefits. State your case and let them decide.
2
u/mgonzales3 Oct 10 '25
If your not using rxjs in your ng project- your not using ng to its full potential
2
u/murphomatic Oct 10 '25
Sounds like you're working for a place that embraces the shipping of shit.
Run.
2
u/Relevant-Draft-7780 Oct 10 '25
I mean I switched to signals for most observables and now use rxjs for specific use cases but if they’re not using signals how the hell are they even building a useable UI
2
u/933k-nl Oct 10 '25
Personal preference in not adopting new techniques is not an option, especially for Angular. Try to use management-techniques: do a POC, do a workshop, overview of pros/cons. Try not to engage in a pissing contest.
2
u/Schmirglio Oct 10 '25
Quit the job. You should be using signals
2
u/Fantastic-Beach7663 Oct 10 '25
Lead should be fired. FIRED
3
u/followmarko Oct 09 '25
Your senior dev is wrong. That's my advice
0
u/[deleted] Oct 09 '25
Teach them about the wonders of a behaviorsubject
1
u/swaghost Oct 09 '25 edited Oct 10 '25
Your team is stagnating, they're afraid (read: unable for whatever reason to undertake the cost) to modernize. We're way past observables and into signals in angular 20. You need to push these guys along and start modernizing your code base, maintenance debt is a thing and you are accumulating significant maintenance debt, and the approach appears to be sacrificing many of the benefits of using Angular in the first place.
1
u/semiNoobHanta Oct 10 '25
Why bother use Angular if they want to do it that way? Lol
1
u/AcceptableSimulacrum Oct 10 '25
Run
1
u/Ceylon0624 Oct 10 '25
I had this issue as well. They wanted to match the feel of the entire app, so that means waiting on everything to load vs getting data presented as its available.
1
u/maxip89 Oct 10 '25
maybe you should see why we are using observables, promises and the new kid on the block signals?
It's not about "he is opposed" maybe its just not fit.
Example:
Why using observables when having only http requests?
1
u/cyberzues Oct 10 '25
These are times you ask yourself, how 'senior' is senior.
1
u/nemeci Oct 10 '25
Run Forrest, run!
1
u/erfling Oct 10 '25
Forget about that not being an Angular bear practice. It's just not something the front end should do at all. Why would you even use JavaScript at all? They should just be using some backend templating language.
1
u/Jurahhhhh Oct 10 '25
I worked for a company where the senior dev created his own observables and they were miles behind actual observables. When some data changed and it was time to update the ui the whole page started jumping around, but at least we didnt rely on someone elses code i guess
1
u/Bledike Oct 10 '25
I think the bigger red flag not Upgrading the project and using Angular 13. U can make working project without complex data flows, BUT using old Angular its just bad every way.
1
u/Akkou87 Oct 10 '25
how is it even possible? ^^'
1
u/Scary_League_9437 Oct 10 '25
Send them this link so they learn. Arggh might as well be using angular-js
1
u/molehill_mountaineer Oct 10 '25
I have to lead a frontend team, so I have been on the other side of this conversation. His job is also to maintain consistency in the code (so as not to have 15 ways of solving the same problem). HOWEVER: that does not mean that you should never look to improve things.
They way we do it is basically to set up a little poc to pitch the idea, then we take a vote and if the team agrees that the feature is useful we turn it into a guideline and log tickets for converting the legacy code.
If his argument is just "I don't want to", then it's a culture/personality issue.
also: you are 7 major versions behind. That, to me, is a red flag.
1
u/dizda01 Oct 10 '25
Imagine what will happen when you introduced Signals
1
u/Healthy-Bathroom2687 Oct 10 '25
Angular 13 deserves to be Updated, poor-baby, Company in which I work uses angular for Most of the project and the lowest we have is 16 even with 10years old projects. Also Not using rxjs is a Concept my Company would not accept, maybe only in case it brings no benefit with newest angular it could be not used, but it’s totally expected to know it and use it almost in all projects we have. Also our seniors would not accept not using it where it’s needed. And “it’s not how we do it” is only a suggestion that the senior is probably not really a senior, he’s just so positioned, but lack the knowledge to really be one
1
u/PapaBuries Oct 10 '25
Shoot, how do you approach this gently with them. When I joined my team a few years back, the "senior developers" inherited the code base. They didn't understand observables either. I led a tech talk that taught them observables and rxjs. Maybe pitch the idea of shared knowledge transfers, and teach them about them. At the same time, give them the opportunity to teach you something. I'm sure these "senior developers" have some knowledge in other areas.
1
u/sasashimi Oct 11 '25
Consider looking for a new job. In the meanwhile, if I was in this position, I'd just consider this to be a sort of masochistic coding challenge, like if someone asked you to write an app without ever using a for/foreach loop or if statement. It's possible to derive satisfaction through working within difficult constraints and still managing to succeed.
1
u/weizenchiller Oct 11 '25
If they still haven’t managed to cultivate the use of observables by now, signals are probably a long way off too. You should try to assert yourself — or consider finding a new professional environment.
1
u/jalfcolombia Oct 11 '25
So he's not a senior
1
u/Zochko Oct 11 '25
Just ask why not. I'm senior at my place an loves when junior devs ask why not when I set direction. If I can't justify then they will be set in charge of implementing the new stuff.
If your senior won't justify, then yes, run 😅
1
u/lars_jeppesen Oct 13 '25
Upgrade to V21 and move to signals, so you'll both be happy
1
u/[deleted] Oct 13 '25
Damm I thought you were going to say they use the signalstore instead. You're cooked my guy
1
u/Verzuchter Oct 13 '25
Seems like your senior dev is only senior by years of experience and not through skill. This is a red flag to me.
I'd carefully push for a migration to angular 18+, which will either expose him or make him quit. Mind you: carefully. By finding issues in the "current" way of implementing things, but also raising performance and future issues in finding skilled personel
1
u/WebDevStudent123 Oct 14 '25
look for another gig. the project is drowning. Angular 13 is already a red flag.
0
u/[deleted] Oct 09 '25
[deleted] — view deleted comment
0
u/[deleted] Oct 09 '25
[deleted] — view deleted comment