Questions tagged [coding]
Coding is an alternative way to describe programming.
92 questions
0
votes
1
answer
88
views
Practical Advice for rapidly changing code maintainability [closed]
This question may get closed quickly, but I'll appreciate any advice I can get and all the resources I can find online about this topic aren't quite relevant to my case.
I am a Math PhD student doing ...
42
votes
10
answers
7k
views
What is the most efficient way to continue developing a piece of software in the long-term?
For my job, I work on multiple different scientific software projects, as well as general administrative tasks that go hand-in-hand with any 'office' job. Thus, any given working week could involve ...
2
votes
4
answers
456
views
Looking for a sanity check, do you alphabetize your code? Is that even a thing? [closed]
I'm currently working with a group of developers (as outside contractors) on an existing codebase (in kotlin) and the lead dev (the client) is blocking merging of pull requests (GitHub) because ...
0
votes
1
answer
205
views
How to execute code "under the hood" in my no-code platform
As a learning project I started looking into how to mimic some basic features of a no-code platform. I usually code in Java/Python, have good knowledge over Javascript/HTML, but wanted to use this to ...
5
votes
6
answers
6k
views
What are programming languages written in?
Python is written in C, which is written in a C with an older compiler, which is written in a C with an even older compiler, which is written in B, which is written in BCPL. Presumably there is an ...
0
votes
1
answer
2k
views
Efficient way to find Xor of pairs with given target X in a range 0 to K
I came across a problem: given an array (can be huge 10^8) and an integer, K, find the count of pairs in the array whose Xor equal to each value in the range 0 to K.
eg:
Arr = 1 2 3
K = 2
since K=...
-4
votes
1
answer
89
views
Question about the tutorial purgatory in coding path
Dear all the programmers and overflow friend,
First, I want to say thank you to stack overflow users for helping me finish 20% of my PhD project since last year (using python to draw some technical ...
1
vote
1
answer
517
views
How should I approach the comparison of two BMP images?
I am currently writing a Python program that retrieves the pixels from two BMP files and finds the percent difference between them (without using the Pillow library for the purpose of learning). I can ...
4
votes
7
answers
1k
views
How do you know where you stopped in your codes after a 2-week break? [closed]
I just had a more than 2-week long vacation/business trip and I couldn't remember actually what was I working in my coding and where I stopped. Could someone recommend a best practice to solve this?
1
vote
2
answers
409
views
Is it better to write the whole feature and then debug or do it incrementally? [closed]
Suppose there is a reasonably sized programming task(500 lines of code). Which is better?
1/Code the whole task from start to finish without running the code and debug later.
2/Code some small ...
25
votes
8
answers
6k
views
On a once a day user action: 24 Hours Reset vs. Midnight Reset [closed]
When a user is able to perform an action only once a day, for example getting a free ticket for a competition, there are two possibilities I came across in my experience.
1) 24 Hours Reset
If he ...
0
votes
1
answer
146
views
Is Dependency Injection A Standard in PHP and Laravel?
Or in actuality, how to tell if a certain technique has became a standard in certain language / framework?
As I understood from my readings so far, PHP supports DI in PSR-11 while Laravel uses it out ...
5
votes
7
answers
1k
views
How can we effectively manage software projects without killing creativity?
I am convinced that software development is essentially a creative process. I also believe that this is the case for all levels, from architecture to coding.
What makes me think so? To put it very ...
-1
votes
1
answer
206
views
Rotate a matrix in place, moving elements? (How to write a part of flow/logic after understanding the problem?)
Following is a java solution of the classic question of rotating a nxn matrix in place clockwise by 90 degrees.
public void rotate(int[][] matrix, int n) {
for (int layer = 0; layer < n / 2; ++...
0
votes
2
answers
170
views
Combine if blocks with repetitive code
I have this piece of code
if (!expr1) {
codeblock1;
} elseif (expr2) {
codeblock2;
codeblock1;
}
It is pissing the hell out of me because I am trying to refactor it in such a way that ...