Skip to content
Naman on GitHub Naman on Twitter

CS 371p Spring 2024: Naman Arora

Naman Arora

What did you do this past week?

This week I worked on the IDB project with my team for my SWE class. I also worked on the Voting project for my OOP class.

What's in your way?

I have been putting off work recently and as a result I have fallen a bit behind. I also have some exams coming up, so I need to study for those.

What will you do next week?

Since I have fallen a bit behind, this week I will work towards finishing my work. I will continue working on the IDB project for SWE and the begin project 3 for OOP. I also plan to study for my tests.

What did you think of Paper #5. The Single Responsibility Principle?

The Single Responsibility Principle ensures that each part of the code has its own specific job, programmers can make their code easier to understand, modify, and maintain. For example, if a part of the code is responsible for handling user input, it should focus solely on that task without also managing data storage or displaying output. This principle helps prevent code from becoming tangled and makes it more efficient, ultimately saving time and reducing errors in software development.

What did you think of arrays, equal(), and reverse()?

In C++, arrays are fundamental data structures used to store a collection of elements of the same type in contiguous memory locations. They offer efficiency in accessing elements using indices, but their size is fixed at compile time, meaning they cannot dynamically resize.

The equal() function in C++ is used to compare the equality of elements in two ranges. It takes two pairs of iterators representing the beginning and end of the ranges to compare. The function returns true if the elements in both ranges are equal, otherwise false.

The reverse() function in C++ reverses the order of elements in a range. It takes two iterators representing the beginning and end of the range and rearranges the elements so that they appear in reverse order. This function can be applied to arrays as well as other containers like vectors and lists.

What made you happy this week?

This week, I visited home, which made me happy.

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

This week, OpenAI introduced Sora, a text-to-video generator, showcasing its ability to create short videos based on written commands using generative ai. While similar technology exists, analysts commend the high quality of Sora's videos, marking a significant advancement in text-to-video generation. Despite its potential, concerns about ethical and societal implications, particularly in areas like politics and misinformation, loom large.

Sora is ChatGPT maker OpenAI’s new text-to-video generator