Show notes
Panel:
Charles Max Wood
John Papa
Special Guest: Adrian Faciu
In this episode, Chuck talks with Adrian Faciu who is a developer for Visma and is a blogger. The panel talks to Adrian about his blog titled, “NgRx Tips & Tricks.” They ask Adrian in-depth questions about NgRx, among many other topics. Listen to today’s episode for more details!
Show Topics:
0:00 – Advertisement: AngularBootCamp.Com
0:55 – Chuck: Hi! Our guest is Adrian Faciu.
1:10 – Guest: Hello! I am Adrian and I am a developer who works for a Norwegian company, but I live in Romania!
3:04 – Chuck: Real quick let’s talk about your blog post. I will admit I am not that familiar with NgRx, so I will ask newbie questions. Now do you want to explain what this is?
5:05 – Guest answers the question into detail.
8:30 – Guest: If you don’t put all of your classes in the right file then you end up with a lot of files. If you don’t create hero types then you’d have to...
The negative I hear a lot of through actions, it’s cause we create constants – the action class creators, it seems to cause an undue amount of stress. How much actual code do you actually have to write – how do you feel about that?
It wasn’t just that I created a new action I had to create the constant and other things – also the place you do the union type, I’d forget to do the union type at the end! If you don’t have all of those things then it won’t work. Even on a simple project I’d have 120 lines of code for a simple task.
13:19 – John: I like your ideas and your tips in your blog.
How do you feel about the NAMES of those actions?
So you can see the actions that are being displayed.
17: 20 – Guest: It makes my components cleaner. I have seen projects that DON’T use it and it’s not the best.
(I am using my hands and nobody can see me!)
It’s weird to me to NOT use the effects!
John asks a question.
20:23 – Guest answers the question.
21:26 – John’s question.
You said implement the 2-payload method – that doesn’t make sense?
If you get an error on it it’s done. I was trying to explain there that...do it on another stream. Try it on another stream and handle it. What happened to me – I did it on the action state and I got an error and then everything will stop.
26:50 – John: You have to provide your services somewhere. The old way was you could go into the...
What do you do?
28:25 – Chuck: I love deleting code!
29:10 – Advertisement: Get A Coder Job!
How to keep them simple...
Not all of the actions have to go to the reducer.
34:09 – Guest answers the question.
Guest goes into more detail.
36:17 – Chuck: ...is that something I should have done before – or does it call effects and the effects load the information into the state and the reducer pulls it out for the action?
John will give a hypothetical scenario.
It’s a little magical, honestly. I just know here is my selector and here is my data!
Looking at your code here, Adrian...
The store object itself is a reference to the NgRx store. That means you have to...
To me I don’t want my app to know that NgRx is involved. I started to do this...I was creating an Angular service, which...
Have you done this before?
Search for my name and you will find me, b/c I have the same handler on all the places.
54:30 – Chuck is talking about future episodes and potential topics.
You can vote stuff up on Trello on NgRx so we can go deeper on this topic.
55:40 – Advertisement – Fresh Books!
1:02:00 – Advertisement – Cache Fly!
Links:
Vue
jQuery
Angular
C#
Chuck’s Twitter
John Papa’s Twitter
Adrian’s Medium
Adrian’s Twitter
Adrian’s GitHub
Adrian’s Blog Post
Adrian’s Article: Testing NgRx Effects
Sponsors:
Angular Boot Camp
Fresh Books
Get a Coder Job Course
Cache Fly
Picks:
John
NgRx Data
Conferences - Don’t feel mofo
Charles
Discord App
Adrain
Angular In-depth Doc
Wallaby

