Time to preparation V

This was an interesting week because I could finish important topics. I finished the project using Redux-toolkit in React. I saw the differences between this way to use Redux and the old named Redux-core. Also, I practiced functions Asynchronous to call data from a Database, in this case, I used Firebase. I tried to build my own service with a SQL database, but I had some difficulties managing Database programs. Finally, I studied Java language to make some applications of the theory and Data structure course that I have taken.

Training Activities

This week I continued my course in basics in Java. I learned methods for String. I decided to make some excercises from 100 exercises for Java Strings I did some of them just to put into practice what I learned. I stopped at number 33 because it needed recursion. I left that problem for the next week because I'm learning about Algorithms in my Data Structure course. I want to know the theory and then I'll use that exercise as a practice to think of a solution.
This is the link for the word document where I'm saving my solutions for the problems that I'm resolving. Link for made excercises in Java

I finished my project on React to learn API requests and Redux. In the last project of ApprenticeUniverse, I used redux-core to store the data between my components. I learned at that moment that sometimes when the app starts the data is empty and we need to make sure that doesn't brake our deployment of components. Now, with this small project of practice, I learned that Redux core is updated in Redux toolkit. This is recommended because configured Redux-core is more complicated. It has an approach to simplify the application's code. Start Project React-Redux

Main differences I realiced using Redux-Toolkit VS Redux-Core

With toolkit you should build your slices and store them in configurationStore() function. With the selector you can choose wich one you need in the component.

With redux-core in ApprenticeUniverse, I used just an index of reduces that is colled in createStore() function.

Store folder

I feel that the toolkit is more helpful because the Slices make it easy to read actions, logic, and initialization. If someone is new to the project, I feel they can get used to it faster.

Slice UI

You can call an action with the dispatch from Redux. It can be in a component or in a file with functions(Action Creators) If the app is big, I feel the action creators are more useful. It would be something that I would have used in ApprenticeUniverse if I would have known. In the ApprenticeUniverse, I called the dispatch in the components where I need to update the data with a use effect to call the API on a change.

Actions
Those are the main differences that I found between the old configuration and the new one. I found them really useful and I'm excited to use them in my next project where I'll have my own service.

Back to the Top

Moreover

Pausing development of SERVICE

I decided to pause my project to make a service because I feel I need to fix some problems with the Database connection. I see that the connection is made, but when I did the code to make a table, an error came.
React project is made to save the Cart of my e-commerce app, but, I want my service to have all the logic of the program. Because the React project is just to practice API requests and Redux, I feel I should redesign the service to have models of products, receipts, returns, and sales. I want to make dad for a complited project. I first I'm gaining the tools to make my frontEnd with React and then I'll continue with my service.
To accomplish that goal, I'm learning Java full Stack so I can see how I'm going to integrate my Data base. While I'm doing it, I'll continue with my React tools.

What is comming...

For next week, I'm planing to send you some excercises where I'm using Data structure in Algorithms. My Data structure course has given me really good knowlegde to put in practice. Then, this week (2nd May- 5th May), I'm taking practice with some code interview questions where I should apply Data structure to resolve the logic. In my next report, I'll explaint how I resolved some problems.

Back to the Top