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 Darwin 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 finish Darwin in OOP. I also plan to study for my tests.
What did you think of Paper #10. Why getter and setter methods are evil?
Getters and setters themselves aren't inherently evil, but they can be misused in ways that undermine good object-oriented design. Here's why they need to be used judiciously:
- Broken Encapsulation: A core principle in object-oriented programming (OOP) is encapsulation, which hides an object's internal data and exposes only controlled ways to interact with it. Getters and setters, if used excessively, can expose everything, breaking this barrier and making your code less secure and maintainable.
- Data Holder Anti-Pattern: Sometimes, programmers create classes that simply hold data with getters and setters for each piece. This approach treats objects like data structures, which goes against the idea of objects having behaviors and responsibilities.
What did you think of cross join, theta join, and natural join?
Cross join, theta join, and natural join are ways of combining data from multiple tables.
- Cross Join: It combines every single row from one table with every single row from the other table, regardless of any matching criteria.
- Theta Join: It combines rows from two tables based on a specific condition. This condition is expressed using a comparison operator (like
=,<,>) and involves columns from both tables. - Natural Join: A simplified version of a theta join focusing on matching column names. It combines rows from two tables where columns with the same name and data type have equal values. Duplicate matching columns are removed from the result.
What made you happy this week?
This week, I went out with my friends since it was one of my close friend's birthday, and as a result made some good college memories.
What’s your pick-of-the-week or tip-of-the-week?
This week, a malicious backdoor was discovered in the widely used Linux utility xz Utils. The backdoor was inserted by one of the main developers and affected versions 5.6.0 and 5.6.1. It broke SSH authentication by injecting code during the login process. While no major Linux distributions were affected in stable releases, some beta and testing versions were compromised. The backdoor was caught early thanks to a developer investigating performance issues. It could have enabled remote access to systems running the vulnerable versions if not discovered. Backdoor found in widely used Linux utility breaks encrypted SSH connections | Ars Technica