Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

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.

Filter by
Sorted by
Tagged with
-4 votes
1 answer
98 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, ...
user avatar
1 vote
3 answers
144 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 ...
user avatar
  • 2,363
1 vote
3 answers
162 views

How to track temporary fixes

Whenever I do temporary fix I want it to really be temporary. However, there is no way to come back to it later, as the fix might be a part of a bigger issue. Let's imagine that we have for some ...
user avatar
2 votes
2 answers
269 views

Is there evidence that programming will die/not-die because of LowCode/NoCode? [closed]

I have to do a presentation of Convertigo, a LowCode/NoCode platform, for my IT class. I did a lot of research on it. What do developers think about a platform that permits to everyone to create an ...
user avatar
  • 31
1 vote
4 answers
286 views

Why Java, C# and the like needs to be managed code

As far as I know the big argument for C#, Java and other high level languages having to be memory managed by a runtime environment is that the programmer does not take care of garbage collection or ...
user avatar
  • 215
-2 votes
1 answer
119 views

What counts as disclosing source for software licenses? [closed]

MPL v2, GPL v3 and other licenses alike require giving users access to source code. For desktop applications - does access have to be provided through the user interface (GUI)? Or can it just be ...
user avatar
2 votes
1 answer
361 views

How to setup our codebase for efficient code sharing and development?

Our situation At first, our company had 1 product. Custom hardware with firmware we wrote ourselves. Now more projects are starting to be added. Many can reuse most of the components of our first ...
user avatar
  • 95
5 votes
2 answers
501 views

How to prove that given binary files are compiled from provided source code?

Let's assume I want to use an open-source software, the developer says that the software is open-source and provides the source code. Now my question is, how can I be 100% sure that the given binary ...
user avatar
  • 61
2 votes
0 answers
113 views

Minimizing infrastructure code surface for NodeJS microservices and libraries

My company has about 200 repos for microservices and libraries that we share. It's largely been great, but it's hard to keep DRY at the organizational level. We'll often have a large amount of package....
user avatar
-2 votes
2 answers
35 views

Tracking stories and code to be released after its tested and out of the sprint

We will finish a sprint with stories tested and "Done" and thereby closed in Jira. They often sit in a branch somewhere until someone remembers we have code waiting to be pushed live. Or worse, we go ...
user avatar
  • 91
0 votes
2 answers
65 views

How to store legacy source texts snapshots with FTS (full text search) all through their history?

we have a legacy project, on Windows. It goes on from 1990-s. Until very recently it was not backed by any version control, today it is moved into Git. The question is all the prior snapshots. As of ...
user avatar
  • 117
2 votes
2 answers
188 views

Git work flow with pull requests

I have come across a small issue with the git work flow in the team. When starting to work on a user story, we create a feature branch from the develop branch. Once the user story is finished, a ...
user avatar
  • 129
3 votes
2 answers
193 views

Does removing unused features from libraries through compiler flags increase or reduce security risks?

Software libraries targetting resource constrained environments like embedded systems use conditional compilation to allow consumers to shave space and thus increase performance by removing unused ...
user avatar
  • 435
7 votes
2 answers
317 views

How does conditional compilation impact product quality, security and code complexity? [closed]

Software libraries targetting resource constrained environments like embedded systems use conditional compilation to allow consumers to shave space by removing unused features from the final binaries ...
user avatar
  • 435
4 votes
4 answers
331 views

Measuring the success of coding dojos

I'm interested in starting coding dojos at the company I work at (during or after working hours). I think it will help to spread knowledge on how to write clean, concise and consistent code. I've been ...
user avatar
  • 85
2 votes
2 answers
144 views

Organization of C++ source code for reusable components

I'm implementing a custom templated container as part of a learning project in C++. The container makes use of different components like serialization, memory management, iterators. I am wondering ...
user avatar
  • 31
-1 votes
1 answer
53 views

Automated code navigation for finding all types of exceptions thrown?

There is a java code base based on the Spring Boot framework. As an activity I want to navigate the code path of every API method to check for the checked exceptions that are thrown at different ...
user avatar
21 votes
10 answers
11k views

What are the benefits of multi-file programming? [closed]

I have been told by another fellow C programmer to write large applications in several different .c and .h files, and then compile them together. They say it will run faster. Does a multifile ...
user avatar
-3 votes
1 answer
65 views

Protecting research source from spyware/data mining

My question is simple: What steps should you take to protect research from the vast amount of spyware or insecure applications on a given device? Background: I do research into developing new models ...
user avatar
0 votes
2 answers
209 views

Effective method of estimation when dealing with large code bases

Got a largish legacy Java code base at my hands: ~100k LoC ~1100 classes monolithic and cohesive (no "modules" or so) many OOP abstraction layers almost no comments, etc. The task is to produce time ...
user avatar
  • 211
1 vote
2 answers
179 views

Should i accept that a client adds changes to sourcecode on an ongoing development?

I'm currently in a situation (i'm a technical lead) where the client has modified on his own the source code, and i'm being told to accept the changes and keep working on that version. Technically he ...
user avatar
  • 53
-2 votes
1 answer
728 views

What is the meaning of 'code vetting' in Software Engineering? [closed]

I saw the term code vetting for the first time in a gerrit review page. What does it mean? The line I came across: "No XYZ check was done. However, if this project is intended to be shipped in ...
user avatar
  • 113
-1 votes
1 answer
123 views

Should one create code review for an incomplete unfinished change? [duplicate]

Had this happened: A developer make a new feature, but not working, since last year, total code change is 100+files and 10k lines. Until recently, with help of another developer, get it to work. ...
user avatar
  • 193
3 votes
2 answers
738 views

Summing cyclomatic complexity of function or files

Is the sum of the cyclomatic complexity of all section in a file the total cyclomatic complexity for this file? If it is, is the sum of a set of related files the total cyclomatic complexity for this ...
user avatar
  • 73
0 votes
1 answer
393 views

What is an interim version in Source Control?

I've been working on an open source project recently and have been checking out Core Infrastructure's best practices checklist. One of the items pertaining the "Change Control" checklist is as ...
user avatar
  • 335
0 votes
2 answers
148 views

Can a service provider proof it is running a particular open source product? [closed]

Part of our project includes an open source GO server that we have open sourced for transparency. How can we prove that we havent made any alterations to the code before we deployed it?
user avatar
  • 119
2 votes
0 answers
89 views

Can one copy their own code from a different company? [duplicate]

Lets say someone has written code for multiple companies that have then copyrighted you work. Another company gives them a similar project to one they have worked on previously. Would it be legal for ...
user avatar
0 votes
3 answers
368 views

Protect Part of the Code

My company works with different developers from different studios, always sharing the code to everyone aboard. At the moment, we need to protect a part of the code, not from theft but from some ...
user avatar
-1 votes
2 answers
151 views

Are executable requirements the most advanced form of declarative code?

The more declarative code is, the less explicit technical details it contains and the closer it gets to requirements expressed in domain language. In the extreme case, there is no more difference ...
user avatar
  • 6,351
-3 votes
3 answers
628 views

Ken thompson's compiler hack [duplicate]

I have gone through ken thompson's compiler hack paper, can't we just go through the complier's source code and check for any backdoor, what was the article's point? https://www.archive.ece.cmu.edu/~...
user avatar
-1 votes
1 answer
139 views

static, dynamic analysis - what mistakes were made in the code?

A software company develops software packages for commercial animal farming. A special function in C calculates the daily amount of feed for different kind of animals dependent on their bodyweight....
user avatar
  • 285
1 vote
2 answers
226 views

How to find already existing code | How to arrange code in a way it can be found again [closed]

I'm refactoring the framework of our company, trying to fix the issues we had in the past. We're a team of 6 developers, and we have various needs and issues in regards to tidying up our framework. ...
user avatar
  • 2,113
-3 votes
1 answer
247 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, ...
user avatar
0 votes
2 answers
203 views

How can I figure out where the code starts for a complex software project? [duplicate]

Say I want to (try to) read through and understand a fairly complex piece of code (for example the free software Coreboot firmware code, which can be found here). How can I figure out where the code ...
user avatar
  • 163
-1 votes
2 answers
440 views

What to name a class that acts as a container for a collection but isn't a collection itself? [closed]

I have an object that acts as nothing more complicated than a data store for a collection of items. I do this because it lets me bind the data to a single object, which I can store in the Unity (game ...
user avatar
0 votes
1 answer
115 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 ...
user avatar
1 vote
2 answers
90 views

SVN / Git How to administer branches

I'm the technical lead for a small company (6 developers). We currently use SVN and we're slowly porting over to Git, after everyone gets their training. Currently our clients are the ones who "pull ...
user avatar
1 vote
2 answers
223 views

Unit testing similar wrappers - or single unit test is enough?

I'm working on a service which has a lots of dependencies. The way how I call them is I'm wrapping each service client around an Adapter. Like this (I'm using Java): public abstract class AdapterBase&...
user avatar
  • 111
9 votes
6 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, ...
user avatar
  • 8,021
-3 votes
1 answer
209 views

I want to sell web app and share source code but not to be redistributed. How do I do that?

I want to sell web app to be hosted internally and share source code with that specific client but not to be redistributed(commercially or non-commercially) to outside the office. They can edit and ...
user avatar
  • 109
7 votes
2 answers
4k views

Monorepo vs multi repo for large project with multiple partial deliveries

I am looking into options for smoothing out our deliver and release pipeline, and would appreciate some advice on the best way to structure the source code. This is a pretty large project, which ...
user avatar
4 votes
1 answer
644 views

How to deal with large source codes?

Maybe this answer already exists here, but I do not know if there is any technical term for that. I'm starting to develop in C ++ and as the program grows in size, it gets harder to move through the ...
user avatar
3 votes
0 answers
166 views

Best practices for understanding/resurrecting old technical code?

Recently, I've been in a few situations where I needed to quickly come up to speed on old code and fix it sufficiently for people to be able to use it again. The code I've worked on tends to have the ...
user avatar
  • 41
220 votes
11 answers
29k views

Why do we need so many classes in design patterns?

I am junior developer among seniors and am struggling a lot with understanding their thinking, reasoning. I am reading Domain-Driven Design (DDD) and can't understand why we need to create so many ...
user avatar
  • 1,697
-2 votes
1 answer
89 views

Which data structure should I use for implementing a code indexer

I need to write a basic code indexer, which needs to be fast. Should I use an embedded SQLite database for this or should rather rely on a custom data structure, or even flat files as used by ctags? ...
user avatar
2 votes
4 answers
1k 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 ...
user avatar
1 vote
2 answers
274 views

Solution to growing code footprint

I have this conondrum I have to deal with. We have this already pretty big application which main purpose can be classified into 2 main functions: Core data (deals with a pretty complex data ...
user avatar
  • 499
1 vote
2 answers
362 views

Overhead of using big singleton with all files includes

I have several subsystem managers for various uses, for example: AudioManager CollisionManager InputManager etc. At first I wanted them to be all singletons, however now want to make the ...
user avatar
  • 201
1 vote
3 answers
1k views

Difference between 'system code' and 'application code'

I'm reading Code Complete (2nd Edition) and in Chapter 21 the author mentions the terms system code and application code in the context of formal inspections, saying that system code has to be handled ...
user avatar
0 votes
2 answers
152 views

Should I use unknown code from a third party? [closed]

I am looking to build and host a website for a client. Their existing site has a facility that allows customers to make donations and they want the new site to have it too. My manager has told them ...
user avatar
  • 255

1
2 3 4 5 6