Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »

Welcome to Software Development on Codidact!

Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.

Search

Advanced Search Options

To further refine your search, you can use additional qualifiers such as score:>0.5. For example, the search score:>=0.5 created:<1y grammar would return only posts mentioning "grammar" that have a score >= 0.5 and were created less than a year ago.

Further help with searching is available in the help center.

Quick hints: tag:tagname, user:xxx, "exact phrase", post_type:xxx, created:<N{d,w,mo,y}, score:>=0.5

Filters
2.6k posts
 
71%
+3 −0
Q&A Load site based on cookie value in PHP

I need to load a site based on a cookie. I wrote code to validate that, like this. if(!isset($_COOKIE['cookie'])){ $domain = $_SERVER['SERVER_NAME']; setcookie('cookie', $cookie, time() ...

1 answer  ·  posted 3y ago by hajakutbudeen‭  ·  last activity 1y ago by keyang‭

71%
+3 −0
Q&A Best practices in setting up a development & production environments

As a baseline, here's what we did in my last company: For tests, we used an in-memory database, whose schema was initialized by our object-relational mapper, with initial data loaded either from...

posted 3y ago by meriton‭

Answer
71%
+3 −0
Q&A Why object-oriented instead of class-oriented?

I understand that in object oriented programming, an object is an instance of a class. Not necessarily. JavaScript famously supported object-oriented programming but did not support classes un...

posted 3y ago by Peter Taylor‭

Answer
71%
+3 −0
Q&A Why object-oriented instead of class-oriented?

As with anything computer science-related that dates back to the 1960s and 70s, things just happened at a whim. Everything was new and highly experimental back then. Nobody knew how to write or des...

posted 3y ago by Lundin‭

Answer
71%
+3 −0
Q&A C Language Standard Linking Specifications

The standard does not talk about object files and/or linking, but it does talk about translation units. In typical compilers, a single translation unit translates into a single object file. Obviou...

posted 3y ago by celtschk‭

Answer
71%
+3 −0
Q&A Tracking what users are searching in a content management system

Server-side solution If you can customize the server-side search functionality, you could add some logging information there. The advantages in this case are: store the data in a useful format ...

posted 3y ago by Alexei‭

Answer
71%
+3 −0
Q&A Question regarding an error message in my compiler to do with my code on linked list.

To use the identifier Node without typing struct Node, you must use a typedef: typedef struct Node{ // this here is a stuct tag int data; struct Node* next; // this has to be struct Node...

posted 3y ago by Lundin‭  ·  edited 3y ago by Lundin‭

Answer
71%
+3 −0
Q&A Manipulate a web browser to hide a certain HTML element in a certain website by a single action

Following Alexei's comment I tried the following code which worked: window.addEventListener('keydown', function(event) { if (event.ctrlKey && event.altKey && event.key === 'l') ...

posted 3y ago by deleted user

Answer
71%
+3 −0
Q&A How to dynamically change panel of ItemsControl?

This isn't the cleanest approach but at least it works. One can define two different templates (each of them contains ItemsControl with single difference in ItemsPanelTemplate) and switch between ...

posted 3y ago by FoggyFinder‭

Answer
71%
+3 −0
Q&A What are the disadvantages of using auto mapper libraries?

Based on my experience auto-mapping has some drawbacks: "find all references" not working as expected - anyone relying on the "find all references" functionality or similar will miss the impli...

posted 3y ago by Alexei‭

Answer
71%
+3 −0
Q&A Transferring files from a legacy project to an existing one as varbinary

The approach I would take given the constraints you've stated is to make much simpler and safer changes to Project A. Namely, 1) provide an API endpoint for fetching a file, and 2) provide an API e...

posted 3y ago by Derek Elkins‭

Answer
71%
+3 −0
Q&A Transferring files from a legacy project to an existing one as varbinary

Our team is currently transferring all functionality (+ some changes) from small and very old project A (almost code freeze) to project B (actively developed). As part of the data migration, there ...

1 answer  ·  posted 3y ago by Alexei‭  ·  last activity 3y ago by Derek Elkins‭

71%
+3 −0
Q&A What are the disadvantages of using auto mapper libraries?

It's fairly obvious, but the greater the difference between the input object and the mapped output, the less valuable auto mapping becomes. The configuration and fluent syntax for the exception...

posted 3y ago by jmathew‭  ·  edited 3y ago by jmathew‭

Answer
71%
+3 −0
Meta Reaction comment doesn't appear if previous comment for retracted reaction was deleted

On this answer I just reacted with “works for me” with comment, but then retracted it because of what finally turned out to be a mistake on my end, and deleted also the comment (and thus the commen...

1 answer  ·  posted 2y ago by celtschk‭  ·  last activity 2y ago by Monica Cellio‭

71%
+3 −0
Q&A How to write a macro that discards the const qualifier, for any type?

How to write a macro that discards the const qualifier, for any type? I hope some combination of typeof and a cast will do, but haven't found the combination. I tried this, without luck: #define...

2 answers  ·  posted 2y ago by alx‭  ·  last activity 2y ago by alx‭

71%
+3 −0
Q&A Explaining the result of an arithmetic expression in JavaScript

Now, (x != 42) which is false yields 0 OK so far. so I have expected to get in console "-42" No. As you say, the expression evolves: (x == 42) * -1 + (x != 42) * x (1) * -1 + (0) * x...

posted 2y ago by Olin Lathrop‭  ·  edited 2y ago by Olin Lathrop‭

Answer
71%
+3 −0
Q&A How to define custom configurations in new-style .csproj?

I decided to tackle this again via the route of creating a new solution project-by-project, and this time the configuration manager actually did something useful. Specifically, it added a property ...

posted 2y ago by Peter Taylor‭

Answer
71%
+8 −2
Q&A How to align my content to the left?

Misconception This isn't so much an issue of left/right alignment, as the browser beginning the rendering of each consecutive block wherever the content of the preceding block ends, instead of pas...

posted 3y ago by Canina‭  ·  edited 1y ago by meta user‭

Answer
71%
+3 −0
Q&A What is the difference between a decoupled, Headless and RESTful content management system?

Since you ask if a CMS necessarily must be implemented using all three, the answer clearly becomes a theoretical "no" if a CMS can be implemented with anything less than all three, and a practical ...

posted 3y ago by Canina‭  ·  edited 3y ago by Canina‭

Answer
71%
+3 −0
Q&A document.open() and the DOM tree of the loaded (closed) browser window on which it works

If I execute in browser console: document.write("Hello"); A new DOM document with the text Hello appears in the same browser window. From MDN documentation: Note: Because document.write() w...

1 answer  ·  posted 3y ago by deleted user  ·  edited 3y ago by Alexei‭

Question javascript dom
71%
+3 −0
Meta Community feedback: What type of questions can I ask here?

I propose that we add the following: Off-topic Questions about code golf, programming puzzles and challenges. Please use Code Golf instead.

posted 3y ago by Lundin‭

Answer
71%
+3 −0
Q&A Disable import of Android SDK/Support Libraries

I am trying to re-build an unpacked apk, because it was unpacked the required libraries are already included, deleting the prepacked libraries would be feasible if it weren't for the fact that some...

0 answers  ·  posted 3y ago by Aidan‭

71%
+3 −0
Q&A Hash sign as a path component in a user script's @match command prevents the script from running

I try to exactly match a login page in a website, for a user script manager (USM) script, which I run with Tampermonkey. This pattern didn't work: // @match https://example.com/#/login ...

1 answer  ·  posted 3y ago by deleted user  ·  edited 3y ago by Alexei‭

71%
+3 −0
Q&A Is `-isystem` a POSIX cc option?

To use this StackExchange answer as a starting point, the latest POSIX standard does not specify a cc command at all: POSIX 1003.1-2001 (Single Unix v3) specifies c99 instead of c89, to use an u...

posted 2y ago by deleted user

Answer
71%
+3 −0
Q&A How to delete contents of a specific field, if it matches a pattern and there is nothing else in the field

For the regular expression to only match a full field of hyphens, you have, as others already have explained, to put the ^ anchor at the begin of the regular expression and the $ anchor at the end ...

posted 2y ago by Dirk Herrmann‭

Answer