ProgrammingAdvices - Channel
34.5K subscribers
260 photos
61 videos
54 files
453 links
Programming Advices Official Channel
Download Telegram
السلام عليكم، هل يوجد اي احد يواجه مشكلة في المنصة؟ خصوصا مشكلة انه الكورس ما بفتح وبيعطي صفحة بيضاء، ارجو تجربة الدخول للكورس قبل الرد على هذه الرساله لانه اللي لسا بواجه مشكلة بدي ايميله على على المنصة واسم الكورس علشان اتابع مع فريق الدعم .
100👍22💯4👏1
111👍25😢22🫡5🤣2
161👍7🔥3
السلام عليكم، راح اطلع لايف بعد نص ساعه أسئله واجوبه
130🔥15👍14
بخصوص الجدل الحاصل على انه الoop لها علاقة بالsecurity او لا:
58👍1
ProgrammingAdvices - Channel
بخصوص الجدل الحاصل على انه الoop لها علاقة بالsecurity او لا:
من منظور الsecurity المطلق كلامك صح 100% ، لكن...
هي فعلا الopp تساعد في حماية الوصول للكود الغير مرغوب للوصول له من قبل المبرمجين ، هنا الsecurity ليس مقصود فيها الsecurity المطلقة من تشفير وغيره
يعني مثلا عن طريق الabstraction انت بتقدر تستخدم private علشان ما حد يوصل للميثود تبعتك (وهنا نعني المبرمج المستخدم للclass )
هل انت هون بتكون حميت المثود بشكل مطلق؟ اكيد لا، لكن بتكون منعت الوصول لها بسهوله من قبل المبرمج وهو المطلوب، وفي هذه الحالة انت حققت درجة من درجات الحماية.
مثلا انت لو عندك string object بتلاحظ انه يوجد ميثودز بتقدر توصلها وميثودز ما بتشوفها اصلا بتكون مستخدمه داخليا.
Object-Oriented Programming (OOP) can enhance security in software development through its fundamental principles and features. Here are some of the key ways OOP increases security:
Encapsulation: OOP allows the bundling of data with the methods that operate on that data within objects. This means that an object's internal state cannot be accessed directly from outside; it can only be modified through its methods (functions). This principle ensures that the object's state is hidden (data hiding) and protected from unauthorized access, allowing for controlled access to sensitive information.
Abstraction: This principle allows developers to hide complex implementation details and expose only the necessary parts of an object to the outside world. By providing a simplified interface, abstraction minimizes the exposure of sensitive data and implementation details, reducing the risk of security vulnerabilities.
Inheritance: Inheritance enables new objects to take on properties of existing objects, making it easier to create and maintain a secure system. It promotes code reuse, which can lead to more reliable and tested security measures being consistently applied across different parts of an application. However, it's crucial to manage inheritance properly to avoid exposing sensitive methods or data that could be exploited if a subclass is not securely designed.
Polymorphism: This allows objects to be treated as instances of their parent class rather than their actual class. The use of polymorphism can make it easier to implement security features such as role-based access control or to substitute objects with secure alternatives without changing the code structure significantly.
Strong Typing: Many OOP languages are strongly typed, meaning that the compiler ensures type correctness. Strong typing can prevent a variety of security issues, such as buffer overflows and type mismatches, which can lead to vulnerabilities.
Modularity: OOP promotes the development of modular code, which can be easier to test and validate for security vulnerabilities. Modular applications allow for isolating components, making it easier to apply security patches, perform security reviews, and understand the impact of changes.
While OOP can enhance security, it is essential to note that security is not automatic or guaranteed by simply using OOP. Security depends on the design, implementation, and ongoing management of the application. Developers need to apply security best practices, such as input validation, output encoding, and the principle of least privilege, regardless of the programming paradigm used.
113👍30
انا طالع لايف على اليوتيوب الان بخصوص الذكاء الاصطناعي
87🔥8👍6
راح اطلع لايف كمان شوي انشالله
107👍29❤‍🔥8🔥7