Let's ruin your Angular interview
Magic words & phrases that can ruin your Angular interview
Heey lovely devs đ
You might be interested why this guy made a post about interviewing, recruitment, etc. đ¤Ź
Well, Iâve been attending quite a lot interviews, from both perspectives - I was being interviewed, I was an interviewer. Turns out a lot of âPROâ devs say things making me thinking
⨠WHATâS GOING ON BRUH â¨
Letâs go to the examples - Iâm 100% sure it will help you avoid such bullshit đŠ
Disclaimerâď¸
Itâs not about beginners, interns, juniors or mids. Itâs 100% fine when they make mistakes â¤ď¸
âď¸ However if youâre self-entitled Senior Pro Angular Motherfucker⌠sorry, not today
(I) Which projects/apps would you use Angular for?
âI think⌠for every project? I love Angular â¤ď¸
Yes, I love it too, however, you cannot pick whatever you want for EVERY project
⨠ooh câmon man, thatâs too easy â¨
Ok. You can. But it doesnât work. Answer for this question is - ⨠it depends â¨
âOn what?
LISTEN It depends on project complexity, scalability, features you need⌠etc. In addition - if youâre working for a client - itâd be lovely to use companyâs primary tech. They couldâve already solved a lot of problems, so you can avoid them đ
âGive me an example
Sure. Using Angular for a simple landing page equals overkill â ď¸
Iâd also love to pick whatever I want, however reality is different. Personal preferences => personal projects
(II) Letâs go to the JavaScript questions section
âFirstly, Iâm Angular developer, so thereâs a chance I donât know JavaScript well
HOW DARE YOU đ it was going so well and now⌠eh đŠ
FIRSTLY - thatâs not an excuse. SECONDLY - thatâs bullshit. THIRDLY - how can you understand any framework?
Sorry, but itâs like youâre a hydraulic, but donât really know how the water comes from in the pipes. đŞ
END OF THREAD
(III) Donât you mind a bigger final bundle because TS types are there?
âNo, thatâs fine
No, thatâs not fine, even if I set a small trap here, itâs still really important to know, that TypeScript transpiles to JavaScript. It doesnât have any types as I remember.
Youâre not running TypeScript in the browser (yet), your TypeScript is transpiled to JavaScript, and thatâs what browser is being fed of đ
In case of the question I also like to ask about the difference between class & interface
Thatâs the difference đ
(IV) Whatâs the difference between Promise and Observable (RxJS)
âActually, we have to use Observables in Angular, Promises in others
Yep, thatâs lovely that we have such tool as the whole RxJS accessible/integrated so easy. However thatâs not a difference. Observables are lazy, cancellable, deliver values over time, provide data manipulation, etc. Promises not
In other words (itâs about Observables):
- theyâll not emit until subscribed
- if some result of the request is not needed anymore - it can be cancelled
- we modify the whole stream by excluding not needed elements, changing itâs structure etc.
P.S. You can use Promises in Angular
(V) Would you use one, big shared module to provide common stuff?
âYes, itâs easy to use when I have to import once and have everything
Bro, do you know what could be the biggest problem here? I can bet $1M (just kidding, Iâm poor) that youâll have more stuff there.
And this ⨠more stuff â¨will be always unnecessarily imported. Whenever you want only 20 of 100 things, whatâs the purpose of loading another 80? đ¤Ş
EXAMPLE: shared âmaterial moduleâ
Wrapping up
So⌠what do YOU think? đ¤ P.S. You can use the âCommentâ button đ
â Your truly
Got thoughts? Drop them below