The abstraction tag has no wiki summary.
1
vote
0answers
60 views
Is this over-abstraction? (And is there a name for it?)
I work on a large Django application that uses CouchDB as a database and couchdbkit for mapping CouchDB documents to objects in Python, similar to Django's default ORM. It has dozens of model classes ...
4
votes
2answers
279 views
Is there a name for being able to quickly find the relevant code?
I notice that a property of codebases that I like hacking on is that it's quick to find the relevant code for some feature, without knowing much about the code base at all. For example, searching for ...
7
votes
5answers
656 views
Why does Java use so many middlemen?
For example to read data from a website we do:
HttpResponse httpResponse = httpClient.execute(httpPost);
HttpEntity httpEntity = httpResponse.getEntity();
is = ...
1
vote
1answer
89 views
Using a DAO to abstract our ORM from the rest of the application
We're using MySQL with Sequelize.js as the ORM.
What we're wondering is whether a DOA layer of abstraction is worthwhile. Here are our options:
To use the Sequelize models throughout the ...
-5
votes
1answer
118 views
An Abstractionist that seeks to become an implementationst [closed]
I'm an abstractionist (I suppose), I am not very fond of implementing things unless they pose some challenges other than Do-It-Fast, rather I very much enjoy refactoring the code, viewing it from some ...
10
votes
6answers
507 views
What changes are too big to be made easy by proper design?
This is a rather vague question, but it's something I've never felt has been answered in a satisfactory way when reading about proper design.
Generally, when learning about Object Oriented ...
19
votes
6answers
1k views
Do frameworks put too much abstraction?
I've been programming for a little under a year and have some experience writing systems applications, web apps, and scripts for businesses/organizations. However, one thing I've never really done is ...
8
votes
11answers
3k views
Why do “data types” in computers exist, if it's really all just bits? [closed]
I am confused with the wide array of ways to implement existing data types in hardware as it all seems a bit illusory.
For example:
There's no such thing as a software stack or a hardware stack; a ...
7
votes
3answers
98 views
Rules about the concreteness of method parameter types, return types and property types
Some time ago I read a kind of "rule of thumb" about the concreteness of method parameter types, return types and property types, but I just do not remember it.
It said something about keep your ...
2
votes
1answer
219 views
What kind of abstraction/SoC should I use here?
I am starting a new project, and I want to follow the separation of concerns pattern, and I have been reading on the topic, and now I am in doubt of how I should go about this.
Here is how I ...
5
votes
2answers
178 views
How does strengthening of pre conditions and weakening of post conditions violate Liskov Substitution principle?
I read that Liskov substitution principle is violated if :
Pre conditions are strengthened .
Post conditions are eased out.
But I don't get fully yet how these two points would violate Liskov ...
-1
votes
3answers
196 views
How flexible can hardware get? [closed]
This subject is long time in the making for me and it particularly took off when I was researching bootloaders for computers and consumer electronics, which, I will note, differ drastically. I've ...
8
votes
4answers
340 views
Should database queries be abstracted out of the page itself?
When writing page generation in PHP, I often find myself writing a set of files littered with database queries. For example, I might have a query to fetch some data about a post directly from the ...
12
votes
1answer
373 views
Why doesn't Haskell have type-level lambda abstractions?
Are there some theoretical reasons for that (like that the type checking or type inference would become undecidable), or practical reasons (too difficult to implement properly)?
Currently, we can ...
5
votes
1answer
227 views
Abstract Factory Method and Polymorphism
Being a PHP programmer for the last couple of years, I'm just starting to get into advanced programming styles and using polymorphic patterns. I was watching a video on polymorphism the other day, and ...