Skip to main content

Questions tagged [coding]

Coding is an alternative way to describe programming.

0 votes
1 answer
83 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 ...
msm's user avatar
  • 109
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 ...
simonp2207's user avatar
2 votes
4 answers
398 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 ...
Gail's user avatar
  • 137
0 votes
1 answer
190 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 ...
KarlZ's user avatar
  • 29
4 votes
6 answers
6k views

What are programming languages written in?

This is my first question so be nice lol... Think of it this way. Python is written in C, which is written in an older C compiler, which is written in an even older C compiler, which is written in B, ...
fartgeek's user avatar
  • 165
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=...
Kalpish Singhal's user avatar
-4 votes
1 answer
78 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 ...
Koh PIN WAI's user avatar
1 vote
1 answer
472 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 ...
8ask714's user avatar
  • 23
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?
vyap56's user avatar
  • 175
1 vote
2 answers
388 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 ...
stormtrooper's user avatar
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 ...
RUL's user avatar
  • 361
0 votes
1 answer
139 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 ...
krubix's user avatar
  • 19
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 ...
Frank Puffer's user avatar
  • 6,459
-1 votes
1 answer
196 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; ++...
Stacky's user avatar
  • 113
0 votes
2 answers
156 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 ...
php_nub_qq's user avatar
  • 2,234

15 30 50 per page
1
2 3 4 5
7