abstraction
Objective-C: how to prevent abstraction leaks
I gather that in Obje开发者_Python百科ctive-C I must declare instance variables as part of the interface of my class even if these variables are implementation details and have private access.[详细]
2022-12-24 08:44 分类:问答Generic function pointers in C
I have a function which takes a block of data and the size of the block and a function pointer as argument. Then it iterates over the data and performes a calculation on each element of the data block[详细]
2022-12-22 22:54 分类:问答Binary tree traversal abstraction
I\'m trying to explain to non-computer science major student with many questions. (1)What traverses tree? Is it just logic or actu开发者_如何学运维al on off switch generates 1s and 0s traveling the c[详细]
2022-12-22 12:49 分类:问答C++ inheritance, base functions still being called when overriden
I have the following two classes, one inherits from the other Class A{ void print(){cout << \"A\" << endl;}[详细]
2022-12-22 06:03 分类:问答Connect to a samba share with python in a platform independent manner?
Is there an abstraction that will allow me to 开发者_JAVA百科connect to a samba share in python regardless of my platform?[详细]
2022-12-21 20:13 分类:问答How to create a "genuinely extensible" class
I have read a lot of articles on developing classes (I am using php), with the tag lines : \'scalable, robu开发者_开发知识库st, maintainable and extensible\'.[详细]
2022-12-21 18:21 分类:问答When is abstraction and modularization a bad practice in programming?
just saw this comment in a \"what JS lib do you use\" poll \"@Xanti - yes, yes, modularization and abstraction in programming is a terrible practice. Functions that call other functions? Wasteful.\"[详细]
2022-12-21 13:05 分类:问答Using generics in abstract classes
I\'m working on an abstract class where the implementing class needs to implement a list of T. The problem is that this doesn\'t work:[详细]
2022-12-21 10:30 分类:问答Using Entity Framework with repository pattern in WinForms MDI
We are about to start up a new project similar to a previous one. I could just copy the old design but I am not all too satisified with the old design.[详细]
2022-12-21 05:01 分类:问答When do you need to create abstractions in the form of interfaces?
When do you encourage programming against an interface and not directly to a concrete class? A guideline that I follow is to create abstractions whenever code requires to cross a logical/physical bou[详细]
2022-12-20 20:44 分类:问答