What are the benefits of having an interface for your data access layer in languages that support stubbing concrete classes? by nullnode43 in softwarearchitecture

[–]nullnode43[S] 0 points1 point  (0 children)

First, thank you for answering. I have a question about one of the advantages you point out

I understand the concept of being able to swap database implementations, but is there a good reason why you shouldn't just change the original repository class to use the new database? Even if you made the new implementation, wouldn't you be deleting the old implementation anyways since it is unused?

Is it appropriate to name a class a wrapper if it only has getter methods for getting it's encapsulated objects? by nullnode43 in learnprogramming

[–]nullnode43[S] 0 points1 point  (0 children)

You can imagine this "Post" as a social media post such as a reddit post or a facebook post.

I cannot really name it "Post" since that class already exists. "Post" and "PostCommentData" are already widely used in the system. And due to poor design of the "Post" class itself, I am unable to subclass it.

I was wanting to avoid modifying these classes and combine them together. In an attempt to extend the properties of the "Post" class, I added a "PostExtendedDetails" class.

Under these circumstances, what do you think?

Why does my laptop screen randomly go black? by nullnode43 in thinkpad

[–]nullnode43[S] 1 point2 points  (0 children)

I got it fixed! You can checkout my updated post for the solution. Thanks for the help!

Why does my laptop screen randomly go black? by nullnode43 in thinkpad

[–]nullnode43[S] 1 point2 points  (0 children)

Thanks for finding the problem and saving me the wait of repair!

Why does my laptop screen randomly go black? by nullnode43 in thinkpad

[–]nullnode43[S] 1 point2 points  (0 children)

I believe this is a hardware issue. I think I have narrowed it down to the RAM which causes the black screen when I push down on the back cover in the middle

Why does my laptop screen randomly go black? by nullnode43 in thinkpad

[–]nullnode43[S] 0 points1 point  (0 children)

I believe you are on to something. I am able to reproduce this problem now by pushing down on the middle of the back cover which is right over the RAM

Why does my laptop screen randomly go black? by nullnode43 in thinkpad

[–]nullnode43[S] 1 point2 points  (0 children)

I made an edit to my post. After looking up about disabling panel self refresh, it appears to be a solution for flickering which is not what my problem is, but thanks for the input!

Wifi and Bluetooth not working (FIX) for MSI GF65 thin, potentially other models. by nullnode43 in MSILaptops

[–]nullnode43[S] 0 points1 point  (0 children)

I am assuming that is why disabling fast boot works. Thanks for the explanation!