I've been fiddling a lot lately with ngrx/store and managed to successfully implement it into a side project I've been working on. This post is just meant to be a refresher for me on how to take a boilerplate Angular project and add in state management with ngrx/store in case I need to this again (and ngrx/store is so awesome that I'm pretty sure I will be using it again. haha). Since this page is just publicly out there for anyone to see and you just so happened to stumble upon it, I guess you can use this post to add ngrx/store to your project too!
0 Comments
I'm about a month late on this, but this morning I just watched the video of David Nolan's "Now What?" talk from the EuroClojure 2016 conference. I've been working a lot with classic JavaScript and also TypeScript recently, but he really got me excited again about ClojureScript, React, and functional programming. Definitely watch the video for yourself, but just for your own information I've distilled what I think are the key takeaways below.
It seems a little crazy to think about an application as just a reflection of the data, but I believe it is actually true. I've been building front-end browser applications for a long time, but it wasn't until I started getting into Clojure and ClojureScript (which was pretty recently) that the lightbulb went off for me.
I've been working on a few small AngularJS applications at work, and the last one I would say was a relatively small-medium one. The concept is how you should store the data and state of your webapp is something that can help you down the line or screw you over. "When you use regular two-way data binding with an object reference, when some data changes you don't know what changed it".
I've been thinking a lot about state and how to store data in Angular applications. Yesterday I gave a talk about unit testing in AngularJS and Angular 2. The people there are really liked the talk, but afterwards I learned that at the company whose office I was at (AWeber) they were creating all their new applications with React. I had seen a few high profile job postings mention React so even though I love Angular I wanted to not look like a fool in an interview. Also, I was curious how React components were similar and different from Angular components. And finally, I see the advanced Angular devs getting really excited about Redux so I wanted to figure out 1. what was so great about it, 2) why I would even want to use it in Angular, and 3) what the code looks like to actually use it! This post is just me getting my thoughts out as I try to understand React and Redux better. Maybe it could help you understand them better as well.
|
AuthorThe posts on this site are written and maintained by Jim Lynch. About Jim...
Categories
All
Archives
March 2023
|