Questions tagged [source-code]
Source code is any collection of computer instructions (possibly with comments) written using some human-readable computer language, usually as text.
275 questions
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, ...
-1
votes
2
answers
224
views
Best thing to do by private developers in case of impending death or plans to cease development on a personal private project
Suppose I have a personal private code project.
What should the developer do with the code in case of impending death or plans to cease development on their personal private project.
Suppose, they do ...
4
votes
1
answer
168
views
Should the ability to locate where code is being used be a consideration?
I was modifying a class whose job is to load other classes from the same directory. Basically, everytime a new class is added you need to add a new CommandClass; statement to this class for it to be ...
2
votes
3
answers
488
views
What is vertically coupled alignment in source code?
Formatting multiline statements is an arcane art that most auto formatters and style guides can't help you with. One habit I picked up is to ensure renaming things wont cause multiple lines to need to ...
0
votes
3
answers
374
views
Number of lines of code executed per line of code: Are there significant differences per language? [closed]
Having fewer lines of code per feature is typically better as it increases the developer productivity. Did anyone ever measure the number of code lines executions per line of code across multiple ...
0
votes
2
answers
318
views
How can I purge c++ source code?
Suppose there is a C++ source code base of millions of lines composed of several hundred *.cpp and *.h files.
There is also a driver program main.cpp that uses several header files from the above ...
1
vote
3
answers
225
views
Handling a Refactoring Project with Limited Access to Source Code
I recently finished an interview with a company as a web developer. I'm the first and only developer that is about to be hired in this company.
They have a web application that was created by a ...
-1
votes
1
answer
537
views
Right using monorepo for ts-node scripts
I have a repository with various tools/scripts written with ts-node and used in many projects.
Initially, it contained several automation/analytics scripts, one package.json file at the root, and one ...
4
votes
5
answers
676
views
Practices for navigating and changing "long" code files?
Many a times I have to deal with code files which are quite long - about 5 screen pages at the minimum. Almost always there is something towards the top/bottom that I need to refer when I'm at the ...
7
votes
7
answers
1k
views
Fighting the half-life of code
I am building a small application that supports a research project. My goal is to make the code to be painlessly executable and readable on as many operating systems as long as possible.
My reasoning ...
1
vote
5
answers
167
views
Should docs of extended methods include documentation of the base method?
Let's say some method of a parent class is reimplemented in a child class.
This child method is intended to do the same that the parent method, with a minor change.
In this case, in the documentation ...
2
votes
4
answers
3k
views
What is the operational benefit to separating database migrations and code deployments?
Should Database migrations be in included in the same deployment project as the code?
If they are not included in the same deployment, the Database deployment package and the Code deployment package ...
4
votes
1
answer
2k
views
Maintain two different versions of similar code [duplicate]
I'm working on a special project where I need to create a new application with a similar but restricted functionality of an original application (basically a type of free application with limited ...
-4
votes
1
answer
267
views
Can answers of a test which is an exe file be viewed? [closed]
is it possible to view behind the scenes of an exe file once its executed? to find the answers of a test questions?
For example if someone clicks on F12 on a website the code is viewable to the user, ...
1
vote
3
answers
427
views
How to best present alternative ways to write a piece of code (in a slideshow)?
I'm working on a 'slideshow'-type presentation (e.g. using LO Impress) which involves me showing people different alternatives for writing some pieces of software code.
We're not talking about large ...