Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.

Questions tagged [coding]

Coding is an alternative way to describe programming.

Filter by
Sorted by
Tagged with
0 votes
1 answer
88 views

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

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
449 views

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
203 views

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
5 votes
6 answers
6k views

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 ...
fartgeek's user avatar
  • 175
0 votes
1 answer
2k views

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
89 views

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
515 views

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

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
408 views

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

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
146 views

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

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
206 views

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
170 views

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,240
22 votes
9 answers
3k views

Some people have this problem that they cannot think without words. And writing down their thoughts and decisions is the most effective way to proceed. So - is it normal and acceptable that I write ...
TomR's user avatar
  • 1,029
1 vote
1 answer
998 views

My Controller code: ObjectMapper objectMapper = new ObjectMapper(); objectMapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); ObjectReader objectReader = objectMapper.reader(...
Amit Pal's user avatar
  • 113
1 vote
2 answers
517 views

Scenario: I'm working in an Agile environment. The dev environment has not been configured yet, and I'm told to code a piece of an application. I code the module and write appropriate unit tests for ...
Mohammad Najar's user avatar
3 votes
0 answers
540 views

I work at a high needs school in which there are several classes that plan their work through Excel spread sheets grading and tracking student progress. We have come to the conclusion that this ...
Dane Alexander James's user avatar
0 votes
2 answers
242 views

I always wonder if there is any benefit of publishing programming/code related articles/tips either on ones own website or coding sites? I think it has a benefit that a programmer can have a record of ...
duckduckgo's user avatar
1 vote
3 answers
106 views

Is there a way we can write a function for Dijkstra to determine which node to enqueue and which to discard. This is for a navigation solution for people with disabilities where path to stairs may be ...
Jason6916's user avatar
  • 113
0 votes
2 answers
177 views

I apologize if this question is a duplicate but I am having trouble phrasing my question. I am a beginner and for the last months I have been working on a Java program. Sometimes I work on the go from ...
Lucas Alanis's user avatar
0 votes
5 answers
2k views

I have an upcoming internship interview with Microsoft and, although I rarely use break in my own code, it does simplify things a lot of times and bring me to a solution faster when coding on the ...
helloworld's user avatar
2 votes
1 answer
689 views

Below is a sample code i captured from android doc Per service instance onCreate will be called only once. Ref: here and here The synchronization and singleton doesn't make any sense to me in this ...
Saran's user avatar
  • 407
3 votes
1 answer
252 views

The content below is from the Android developer site: According to the phrase it is expecting the developer to store this info in his head. Shouldn't this be simple if they kept only setDataAndType ...
Saran's user avatar
  • 407
0 votes
3 answers
1k views

Let's say we have two ifs that depend on each other: if var exists { if var is array { //Do stuff with var } else { //Resolve the problem } } else { //Resolve the ...
Mikayla Maki's user avatar
4 votes
4 answers
405 views

I have been dealing with programming for several years now (I am still a student but with a lot of internships). Mostly working with C++, Python and MATLAB, I noticed that whenever I download an SDK ...
Mehdi's user avatar
  • 141
1 vote
1 answer
134 views

I have a 2D array filled with a simple class: class Tile { boolean N,E,S,W; } I also have a tilesheet representing all possible outcomes except all false (12 + crossroad). Now i need to reference ...
Madmenyo's user avatar
  • 125
0 votes
1 answer
136 views

I have a summary tool written in python that reads input files, and writes them into a summary file. I have the following stipulations: No duplicates. If it exists, add a count to it. Is it better / ...
Jeff's user avatar
  • 1,874
3 votes
2 answers
2k views

I have moved to a new job and code base (been doing C#, .NET, Windows Forms, etc. for last four years) and I have been on this for three months until today. During these three months I caught up with ...
DevWannaBe's user avatar
-1 votes
2 answers
236 views

the title says it all. I'm still a university student studying IT. Whenever I'm doing coding, I will frequently look back on codes that I've done before or looking for codes online or on reference ...
ShienXIII's user avatar
10 votes
9 answers
35k views

How important is it to initialize variables? Does proper initializing avoid memory leaks or have performance advantages?
Vivek's user avatar
  • 135
5 votes
4 answers
3k views

I have seen many frameworks and modules and their standard they follow is like this UserInterface which have some predefined methods AbstractUserClass which implements userInterface Then ...
user26's user avatar
  • 201
0 votes
2 answers
318 views

I have one idea that I want to make an app for iPhone, I have recently bought a mac for the same purpose. I want to make small app and build on it in later versions. I work in in a small company and ...
Suhit Patil's user avatar
-2 votes
4 answers
716 views

I would like to know if I am expected to memorize coding in a workspace or am I allow to fall into references whenever I am unsure. In a week of non-stop self learning, I feel I can understand the ...
Lawrence S's user avatar
3 votes
1 answer
1k views

Since a few days I am fighting my way through implementing arithmetic coding. I found a really great source of information which made me understand how it should work. Long story short, it implements ...
Robin92's user avatar
  • 133
2 votes
3 answers
542 views

Recently we have had some turnaround in the shop I work in, because of this comments in our source code were made hastily and explained very little. We have started working on the departments first ...
Michael P.'s user avatar
1 vote
4 answers
3k views

I want to better write code with pen and paper. Whether it'll be in pseudocode or real code, doesn't matter. Could you kindly advise me sources for this?
dhblah's user avatar
  • 1,381
4 votes
2 answers
752 views

When subdividing intervals for arithmetic coding, the worst case scenario is that the final interval will have size 2^(1-n), where n is the number of unique symbols you are encoding. This will reach ...
Xophmeister's user avatar
3 votes
2 answers
1k views

I have been reading up on arithmetic coding and, while I understand how it works, all the guides and instructions I've read start with something like: Set up your intervals based upon the frequency ...
Xophmeister's user avatar
-1 votes
2 answers
589 views

Been teaching myself how to code over the past four months or so -- mainly in JavaScript, but just started Python -- and had a revelation today. I can write in JavaScript pretty well, but I don't ...
Tom Maxwell's user avatar
18 votes
3 answers
3k views

When under a particularly strict programming deadline (like an hour), if I panic at all, my tendency is to jump into coding without a real plan and hope I figure it out as I go along. Given enough ...
GlenPeterson's user avatar
1 vote
5 answers
925 views

I have this doubt many years. I am wring some code to achieve some functionality. For example I am writing 20 lines of code to achieve the functionality and my co worker writing the code for the same ...
Ayyappan Anbalagan's user avatar
16 votes
8 answers
2k views

I work for a large humanitarian organisation, on a project building software that could help save lives in emergencies by speeding up the distribution of food. Many NGOs desperately need our software ...
Shroatmeister's user avatar
1 vote
7 answers
3k views

While working on existing code base, I usually come across procedures that contain Abusive use of IF and Switch statements. The procedures consist of overwhelming code, which I think require re-...
Sumeet's user avatar
  • 121
0 votes
5 answers
544 views

I am looking for coding guidelines developers should follow while writing C#/ASPX/SQL code, so that merging into other branches is smooth if not seamless.
Rashmin Sejpal's user avatar
60 votes
18 answers
31k views

I have hardly a year's experience in coding. After I started working, most of the time I would be working on someone else's code, either adding new features over the existing ones or modifying the ...
2 votes
5 answers
827 views

I've just started informatics university and I'm attending a programming course about C(++). The programming professor prefers to connect every topic with a type of programming design that is similar ...
sh03's user avatar
  • 691
7 votes
14 answers
9k views

I make a lot of typing mistakes when I program. I have a good keyboard writing speed but I try to write faster and in the process end up making typos. I want to type faster, but make less errors. Can ...
treecoder's user avatar
  • 9,495
14 votes
2 answers
3k views

I was looking at Code Complete on the shelf, thinking, "Outside of the Mythical Man Month, this may be one of the few mass market Software Engineering books to stand the test of time." For this ...
MathAttack's user avatar
  • 2,786