Addressing Memory Issues and Optimizing Code for Efficiency: Glide Case

Memory management issues and optimizing code for efficiency are critical aspects of software development, especially in resource-constrained environments like mobile devices.

Glide stands out as a remarkable library tailored for efficiently displaying images on Android devices and beyond. With its robust caching mechanism, handling caching to disk or memory becomes almost effortless. Our ongoing project, Guzel Board, endeavors to deliver a straightforward and cost-effective digital signage solution. Designed to operate seamlessly on HDMI Android TVs or TV sticks like Chromecast and Amazon Fire TV sticks, Guzel Board confronts the challenge of limited memory resources inherent in such devices.

Why Keep Variables Private?

It’s suggested that no variable should be public in OOD. If you make your variable private, in order to access the data for reading or updating, you need getters and setters, but this seems nonsense at first since you are still able to access it with additional bureaucracy.

I would like to give an example to explain. Let's say you have a month variable which is an integer. This month variable should hold a value between 1 and 12 inclusively, right?

Dangling Pointer in C++

It's not always easy to understand some concept at first. However, a good analogy can always help you to grasp it and keep remembering it. 

A dangling pointer is one of those concepts. Let me demonstrate with code first, then explain after that with an analogy.