All Questions
Tagged with source-code design
7 questions
-3
votes
1
answer
430
views
Is throwing exceptions in Debug mode a bad idea? [closed]
I am working in an iOS project which have two schemes enabled from configurations,
Release
Debug
As you know Debug scheme is used for developers while developing features and testing etc. However, ...
0
votes
1
answer
126
views
Is there a way to use and ignore blocks of code, caused by events during runtime?
I'm working in C++14 and trying to figure out a way to put two classes (with the same name) inside the same header file. In this scenario one class would always be ignored as a result of something ...
11
votes
9
answers
3k
views
Did Dijkstra intend for code modularization, when he wrote about separation of concerns?
First, I read an excerpt Edsger W. Dijkstra's 1974 paper "On the role of scientific thought":
Let me try to explain to you, what to my taste is characteristic for all intelligent thinking. It is, ...
98
votes
6
answers
29k
views
Why are some C programs written in one huge source file?
For example, the SysInternals tool "FileMon" from the past has a kernel-mode driver whose source code is entirely in one 4,000-line file. The same for the first ever ping program ever written (~2,000 ...
3
votes
3
answers
2k
views
PHP Code base design: Single "queries.php" file, or spread queries across different php files/classes? [closed]
When I create PHP projects, is it better to put all database (e.g. MySql) queries in a single file (i.e. "queries.php")? Or is it better to place the respective queries in any "model" classes (i.e. ...
5
votes
7
answers
523
views
What should be the "depth of design"? [closed]
We all know that the process of creating a design and the whole architecture of the software is very important before writing the code. But how deep should be dive into the design stuff - should we ...
14
votes
7
answers
2k
views
Development Approach: User Interface In or Domain Model Out?
While I've never delivered anything using Smalltalk, my brief time playing with it has definitely left its mark. The only way to describe the experience is MVC the way it was meant to be. ...