Discover this podcast and so much more

Podcasts are free to enjoy without a subscription. We also offer ebooks, audiobooks, and so much more for just $11.99/month.

AiA 214: NgRx Tips & Tricks with Adrian Fâciu

AiA 214: NgRx Tips & Tricks with Adrian Fâciu

FromAdventures in Angular


AiA 214: NgRx Tips & Tricks with Adrian Fâciu

FromAdventures in Angular

ratings:
Length:
62 minutes
Released:
Nov 6, 2018
Format:
Podcast episode

Description

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!

1:35 – Chuck.

1:36 – Guest.

1:47 – Chuck: The market is so global. I have talked with many different guests from different parts of the world – it’s really neat! It’s this global phenomenon.

2:12 – Guest: It’s a great thing!

2:23 – Chuck: They have an office where you live?

2:31 – Yes.

2:37 – Chuck: How are you guys using Angular over there?

2:47 – Guest: We have several different products. We customize using them with internalized tools.

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?

3:41 – Guest: Sure! The short story of the article is I saw people doing things the hard way. And after I figured out some things, people encouraged me to write about my experience.

4:37 – Chuck: John Papa just signed-in!

4:53 – Guest: Yes NgRx is...

5:02 – Chuck: You used classes for all actions what do you mean by that?

5:05 – Guest answers the question into detail.

6:31 – Chuck: Let’s say we have a class that uses a log error...

6:42 – Guest: For example you have actions that...

7:02 – Chuck: When you use the reducer...

7:10 – Guest: There are other tricks we can use like keeping all of them in the same file...

8:00 – Guest talks about the union type.

8:24 – Chuck: You learned this by doing things wrong – what happens when you do these things wrong?

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...

10:02 – Chuck: If you import user actions then does it import all of the other types?

10:08 – Guest: Import everything from that file.

10:17 – Chuck: If you have any questions, John, feel free to chime-in!

10:29 – John: Yeah I am scanning through this.

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?

11:12 – Guest: I didn’t want to write all of this code! That’s what I wanted to avoid.

11:44 – John: I wrote them, didn’t like them, I went back to them...

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.

12:49 – Guest: Yes. Sometimes I would forget this or that. I’d have to figure out what I did wrong. I went back and created classes for a lot of things. I like the benefits.

13:19 – John: I like your ideas and your tips in your blog.

How do you feel about the NAMES of those actions?

13:55 – Guest.

14:51 – John: Important part is the naming of the string inside of it – that’s the value...

So you can see the actions that are being displayed.

15:25 – Guest: If you didn’t do it right that’s where the problem would be.

15:38 – John: To me it’s a love/hate relationship b/c there is so much code to it. I usually copy and paste which means that I usually forget to change something. I agree, but I don’t’ like creating it.

16:05 – Guest: I’ve been trying to figure out a solution for it eventually I gave up.

16:23 – John: Moving onto effects – inside that happens inside of the Redux cycle – if you want to do
Released:
Nov 6, 2018
Format:
Podcast episode

Titles in the series (100)

All Angular podcasts produced by Devchat.tv: - Adventures in Angular - My Angular Story - Angular Rants