r/angular • u/Huge-Bear-556 • Mar 23 '26
Got rejected after Senior Angular task — what did I miss?
Hey everyone,
I recently completed a take-home technical assessment for a Senior Angular position and decided to share my solution to get some feedback.
I received the task on Friday and submitted it on Monday, so I spent the weekend working on it. Unfortunately, I was rejected after the review, and I’m trying to understand what I could have done better.
There were issues with API, public free websocket data is not consistent but i did built mock for it.
My goal wasn’t just to complete the requirements, but also to demonstrate architecture decisions and overall code quality — so I’d really appreciate honest, senior-level feedback.
Task (simplified):
- Build a small Angular app that displays stock data for up to 4 companies
- Load initial data via HTTP (public API)
Implement real-time price updates using:
- a custom WebSocket server (backend)
- and a mocked implementation in Angular
- Allow toggling updates per stock card (enable/disable)
- Reflect price changes visually (increase/decrease/disabled states)
- Create a responsive UI (desktop + mobile)
Repo:
https://github.com/shizzystical/stock-app
I’ve removed/changed anything that could be tied to the original company or task.
Any feedback is appreciated
Thanks 🙌
65
u/TheLambda89 Mar 23 '26
This is, without a doubt, better than how I would have solved it, even as a "senior" myself (by years, not by virtue).
I can think of three possible scenarios
16
u/sinthorius Mar 23 '26
Dude you commited your .env files with secret.
10
u/[deleted] Mar 23 '26 edited Mar 23 '26
Did you use an AI to help you ?
You submited a project with 2 dependencies flagged as "highly vulnerable".
You commited the API key on a public repository.
5
u/bighappy1970 Mar 23 '26
I suggest you refuse to interview with companies that refuse to provide feedback post-technical assessment. It’s not acceptable.
I know they are concerned about litigation, and that’s no excuse. There are ways to provide helpful feedback without creating undue lawsuit risk.
7
u/eddy14u Mar 23 '26
Where are the tests?
26
u/Purple_Employment_74 Mar 23 '26
- you committed secret in environment.ts
- magic strings in `stock-card.ts`
- in my opinion excessive usage of barrel files
- questionable abstract interface for a class with single implementation
- I'd separate data and domain models to keep them in different files
You could:
- write unit tests, e2e, goldens
Nothing critial tho, code looks very good.
Well lessons learned, never do take home assignment. I recall my own disappointment after burning 120h on a project and getting rated 4/10 by some junior xd
6
u/tsteuwer Mar 23 '26
Here's a couple of things I can think of:
4
u/Ok-Alfalfa288 Mar 23 '26
Did they not provide you with any feedback?
1
u/HorrificFlorist Mar 23 '26
Can I have permission to fork your app for study purposes?
3
u/SkyZeroZx Mar 23 '26
Well structured (a bit of over-engineering, sure, but I get that it’s kind of the goal of these technical challenges).
This looks much better than most “senior” challenges I’ve seen lately. I only notice quite a few barrel files, which could affect the bundle depending on how they’re used.
We could maybe have avoided using a DI Token by using the abstract class directly as the DI.
On the other hand, avoid using `NgClass` now , it’s recommended to use the `[class]` input instead.
As others mentioned, A11Y and unit or E2E tests would be really good to have, at least the basics expected for a senior role.
3
u/Mael5trom Mar 23 '26
One thing I haven't seen mentioned that would be a red flag for me, the use of mostly only div/span elements in the cards component html. Should throw in some semantic html, even if it wasn't asked for, it shows you know how to use appropriate html elements. Header tag(s), maybe a dl using dt/dd for associated data. Small things like that are a clue also that you may know a bit about accessibility and that you consider that as you're building something, so it isn't going to be something that has to be patched in later after an audit.
The other related thing, unless asked for, is I would not put forward BEM SCSS styling in 2026. First, Angular already encapsulates styles unless you disable it, so it's unnecessary and to me, would indicate a lack of that knowledge. Not saying you should use Tailwind or something, just standard class names and styles without the BEM stuff. Heck, don't use SCSS and show you know about CSS nesting and that SCSS is not necessary anymore.
Others have touched on some of the other things I'd call out (cough barrel files, ugh, among other things, like just add tests). Not being mean, but based on this sample though I wouldn't put your skill level at senior as it relates to Angular (or maybe a senior transfer from React but not a lot of ton of Angular experience yet) and I see a number of things I would need to try to adjust if you were to join a team I was leading.
None of it would necessarily be disqualifying, overall it's generally good. It would depend on the level being looked for, your aptitude with other things, interview answers, etc. But if all I had was a couple emails and that code example, it would be hard to recommend next steps towards a senior position. That is one of the issues with early code assignments on the interview process for both sides. Very little context.for both sides.
Hopefully that feedback is helpful, from someone who has been on the evaluation side of the table multiple times.
2
u/BigFluffyMcPuff Mar 23 '26
Your code is fine, but with AI now being in the realm, you need to add E2E and unit tests to validate your work, and have adversarial tests. They may have been looking to see if you were going to added any core system state stores if an authentication token was used, and possibly Fascade patterns to abstract out your API provider. You may want to look at something as “I may not use this provider in the future for this task, so how can I abstract it from the system”; which is where the beginning of hexagonal architecture begins.
When you build at a higher level, you think forward and not for the moment; like what can I do now that will prevent the future from sucking.
3
u/Big_Comfortable4256 Mar 23 '26
I'd say your biggest mistake here was committing `environment.ts` with an API key in there.
Seriously, doing this while applying for a senior dev role would put you immediately in the rejection folder.
2
u/Technical_Egg_6500 Mar 23 '26
I do not see any issue with your code. I do not know if I have enough knowledge to judge your code, either you mess with an assignment, or you are better than the current seniors there.
1
u/NabokovGrey Mar 23 '26
I think it looks pretty solid. Only things I would have done differently are very specific.
- I would break your models directory up into directories to communicate responses amd models. Mainly because you mix purposes in your model.ts file. Some of those are application side objects, but the responses are mimicking coming from a third-party system.
- Your model file has interfaces bundles into a single file. I would have expected 1 type per a file. You do this everywhere else, so it caught my eye you didn't do it here.
- the file and directory called models. You have interfaces in it, which is pretty standard. But your naming bounces around. This specific section seems less organized and lacks the clear boundaries of responsibility and purpose compared to other parts of the app.
- You use stockquote and stockmetric as a return type in your mapper. The issue here is there is nothing that signifies if all their properties are required or not. If things are required, use a class and use a class and interface to communicate this. If not, you can use a interface like you did. The issue is if any property is missing in the template the page will crash. While you did produce the service thats emitting the data, the template could be more defensive.
I interview guys all the time in angular and this is a solid project. EVen the stuff I mentioned is not a big deal. I wouldn't take the rejection personal, sometimes a rejection is nothing more than cultural fit and technical skills have nothing to do with it.
1
u/trane20 Mar 23 '26
They got a free project out of you lol. But jokes aside most of the time they just found someone that they think is a better fit
1
u/cyberdyme Mar 23 '26
Okay a few comments (the code looks good) - you should have written tests and used signals (this would have pushed it up an extra level for me)
1
u/nafts1 Mar 23 '26
The client user has access to the token, too. You need to hide it.
1
u/lajtowo Mar 23 '26
Welcome to software development, where you have to prove on 10 ways on each of your 10 job applications, that you know how to code... Funny thing is a doctor does not solve a test when is being recruited in a hospital.
1
u/Jotunheim36 Mar 23 '26
Since you used AI to help you (no shame in it) you ought to have asked it to review its own code and question whether the code is of “senior dev” quality . I asked Claude and it found a few things it wasn’t happy about, such as you putting the API key in the repo. No tests. No CI/CD etc. it considered the repo “mid level with good instincts”
1
u/United-Ad6246 Mar 26 '26
Danke, dass du deine Erfahrung und deinen Code geteilt hast. Grundsätzlich ist es schwierig zu beurteilen, was genau nicht gepasst hat. Tests zu schreiben – idealerweise im Sinne von TDD – wird in vielen Teams ohnehin erwartet und muss nicht eigens angefordert werden. Für die Zukunft empfehle ich Folgendes:
• Hole dir im Vorfeld eine ausdrückliche Zustimmung, dass du von einer fachkundigen Person ein sinnvolles Feedback bekommst (mindestens 30 Minuten).
• Kläre vorab, wie viele Stunden für die Aufgabe vorgesehen sind, und plane maximal +10 % mehr ein. Falls der Aufwand darüber hinausgeht, investiere keine zusätzliche Zeit und erkläre, dass es sich zeitlich nicht ausgegangen ist. Nach dem Motto PM hat falsch geschätzt.
• Am besten sollte man vorab klären ob im Fall einer Nicht-Anstellung eine angemessene Vergütung für deine aufgewendete Zeit vorgesehen ist bzw. das verlangen.
1
u/vishnu8242 Mar 28 '26
404 error
1
u/Easy-Pirate-2393 Apr 12 '26
I have question may be not completely related But it has been years I gave interviews, so my question may sound stupid
But are you allowed to use internet ? Or you need to write everything without internet and under video proctored ?
0
u/[deleted] Mar 23 '26
[deleted] — view deleted comment