CS373 Spring 2021: Blog 5

Jiaxi Chen
3 min readFeb 28, 2021

What did you do this past week?

In the previous week, our team has several meeting during which we finalized our project, decided which API we gonna to use, and divided the workload among the group members. As for me, I’m getting familiar with JavaScript and React, especially the components in React. Also, I have done some work trying to retrieve information from GitLab API. For now, I almost figured out how to use JavaScript to request the number of commits and issues for each person in our team.

What’s in your way?

The most difficult thing I encounter this week is how to create a React project. Initially, I was trying to use some web interface to for that, like CodePen or CodeSandbox. Each of them has some drawbacks. For example, for CodePen, I can’t find a way to save the code to my local machine. Also, the configuration is complex for me. Maybe there are some easy ways I didn’t notice. At last, I installed the node.js and React modules to my computer and start writing code with my own editor. Now, everything works fine!

What will you do next week?

For next week, our team would focus on the Phrase I of the project. We’ll get a domain name, write the user stories and create the RESTful API. As for me, I would further dive in the GitLab API and try to make something in About page of our project.

If you read it, what did you think of the Single Responsibility Principle?

I think it’s a super interesting article that offers me some great ideas. Previously, I have never carefully thought about the responsibility of each class. The class was created just because I thought it will make the code more organized and straightforward. The article does give some hint about how to dividing classes. Still, I’m not able to fully understand it, since the responsibility of each class is hard to determine.

What was your experience of IDB1 and reduce?

I think reduce is super powerful tool in Python, because sometimes we can replace the traditional for loops with reduce, which will make our code more clear. I tend to regard reduce as an operation on an iterable collections. Also, reduce provide the flexibility to define your own function and apply it to the reduce.

How did you fare in the storm?

I should say I’m so lucky that my apartment has power and water. Also, I’m so happy to see the power is going back and everything seems become better!

What made you happy this week?

I just finished my math test this Friday. Though I didn’t know my grade right now, it’s still make me happy because I don’t have to worry about that test until next month!

What’s your pick-of-the-week or tip-of-the-week?

I use sublime text a lot for Python. Now, I’m trying to use it for React. It works fine with normal JavaScript code, but behaves odd for React-related syntax. So, I fond this package in sublime text that can do syntax highlight for my React App! The link is https://packagecontrol.io/packages/Naomi. Hope it helps!

--

--