Day #14-#20 of 100DaysOfCode

25 April to 1st May

Yepp, you got it right.
I’m back, as matter of fact I never broke my streak just ups and downs as usual.

While making the shopping cart app I realized that I need to learn React router in greater detail so I followed my gut that…


This content originally appeared on DEV Community and was authored by atulit023

25 April to 1st May

Yepp, you got it right.
I'm back, as matter of fact I never broke my streak just ups and downs as usual.

While making the shopping cart app I realized that I need to learn React router in greater detail so I followed my gut that led me to start another course. Making apps with Flux and React.
Despite the fact that Flux is super cool to use, I learned that
the separation of concerns is a pretty big deal in the world of programming.

Flux is nothing but a simple library provided by Facebook to implement retrieving and loading of data effectively.
It's a sum total of four things

  • Action
  • Dispatcher
  • Store
  • React UI

They literally do the same task as their name suggests.

Anyway, that's not the main part, here the main thing is that we use flux in order to separate manipulation of data and rendering a component based on that data.
That's not it, we also separate our component into two parts

  • Dumb component
  • Smart component

A dumb component as the name suggests is dumb, i.e it contains the real markup (JSX) that is going to be rendered.

Whereas a smart component is a bridge that asks the Store for data via the Flux API and then pass it down to its dumb child so that it may render it.

And there you go separation of concerns at a whole new level.

I just wanna put it here that we don't need flux at all but it just provides us with an interface and since it's all about declarative programming why be a B about it.

With that said, now I'll work using these new tools that I just earned. ?

I chose Django for the back end. I also installed ruby on rails on my computer as well but still meh.

I don't even know how to make a loop in ruby why to learn a new language when ruby on rails is just 0.7% faster than Django.

Although I could use some advice about which database I should learn first. Considering I have never even touched a soul till now.
I have installed PostgreSQL and Mongo on my pc but IDK, not sure.
See where it takes me.

If any one of you smart people would like to help me out, I'd really appreciate that.

That's how I spent my last couple of days.
Let me know if there is anything that I can do better in the comments or anything literally. Always happy to receive comments.

Thanks for joining me.?
Have a wonderful day.?


This content originally appeared on DEV Community and was authored by atulit023


Print Share Comment Cite Upload Translate Updates
APA

atulit023 | Sciencx (2021-05-01T14:58:10+00:00) Day #14-#20 of 100DaysOfCode. Retrieved from https://www.scien.cx/2021/05/01/day-14-20-of-100daysofcode/

MLA
" » Day #14-#20 of 100DaysOfCode." atulit023 | Sciencx - Saturday May 1, 2021, https://www.scien.cx/2021/05/01/day-14-20-of-100daysofcode/
HARVARD
atulit023 | Sciencx Saturday May 1, 2021 » Day #14-#20 of 100DaysOfCode., viewed ,<https://www.scien.cx/2021/05/01/day-14-20-of-100daysofcode/>
VANCOUVER
atulit023 | Sciencx - » Day #14-#20 of 100DaysOfCode. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2021/05/01/day-14-20-of-100daysofcode/
CHICAGO
" » Day #14-#20 of 100DaysOfCode." atulit023 | Sciencx - Accessed . https://www.scien.cx/2021/05/01/day-14-20-of-100daysofcode/
IEEE
" » Day #14-#20 of 100DaysOfCode." atulit023 | Sciencx [Online]. Available: https://www.scien.cx/2021/05/01/day-14-20-of-100daysofcode/. [Accessed: ]
rf:citation
» Day #14-#20 of 100DaysOfCode | atulit023 | Sciencx | https://www.scien.cx/2021/05/01/day-14-20-of-100daysofcode/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.