Tagged Questions
6
votes
4answers
810 views
Looking for a real-world example illustrating that composition can be superior to inheritance
I watched a bunch of lectures on Clojure and functional programming by Rich Hickey as well as some of the SICP lectures, and I am sold on many concepts of functional programming. I incorporated some ...
5
votes
3answers
404 views
Multiple sites with the same codebase in Python
I am trying to run a large amount of sites which share about 90% of their code. They are simply designed to query an API and return the results. They will have a common userbase / database but will be ...
4
votes
1answer
516 views
How should I architect a personal schedule manager that runs 24/7? [closed]
I've developed an ADHD management system for myself that's attempting to change multiple habits at once. I know this is counter to conventional wisdom, but I've tried the conventional for years & ...
4
votes
1answer
646 views
How to design a composite pattern in Python?
The concept
I'm programming an interface over pygame as a personal project, to make the creation of games easier for me.
So far I managed to design an architecture that behaves like this :
Objects ...
4
votes
4answers
483 views
Architecting Python application consisting of many small scripts
I am building an application which, at the moment, consists of many small Python scripts.
Each Python script processes items from one Amazon SQS queue. Emails come into an initial queue and are ...
3
votes
2answers
2k views
What is the way to go to extract data from websites?
I've been thinking about a side project that envolves web data scraping.
Ok, I read the Getting data from a webpage in a stable and efficient way question and the discussion gave me some insights.
...
2
votes
1answer
388 views
Python simulation-scripts architecture
Situation:
I've some scripts that simulate user-activity on desktop. Therefore I've defined a few cases (workflows) and implemented them in Python. I've also written some classes for interacting with ...
0
votes
2answers
701 views
Model-View-Controller — Where does a factory class go?
I'm working (slowly) on a small Flask project. One of my models is a class called Post, which is a lightweight namedtuple. Post objects are created by a PostFactory, because creating a Post involves ...
0
votes
2answers
543 views
How my website should use its own API?
Im building small web-service which will provide my users with data through API.
Also, some data will be available right on my website.
The question is about how to use my own API? Should my website ...
0
votes
1answer
237 views
Scientific software design [closed]
I asked this question over at stackoverflow and it was suggested a tighter form be posted here.
Many early career numerical researchers face the prospect of having to create performance critical ...
0
votes
5answers
594 views
What is the most effective approach to learn an unfamiliar complex program? [duplicate]
Possible Duplicate:
How do you dive into large code bases?
I have quite a bit of experience with different programming languages and writing small and functional programs for a variety of ...
0
votes
2answers
228 views
DDD - Domain Driven Design, which development order should be applied?
1 - Design my entities, ie (in python):
class Account:
def __init__(name, author):
self.name = name
self.email = email
2 - Design my repositories: (as interface)
class ...
0
votes
1answer
294 views
Front-end structure of large scale Django project
Few days ago, I started to work in new company. Before me, all front-end and backend code was written by one man (oh my...).
As you know, Django app contains two main directories for front-end: ...