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
 
71%
+3 −0
Meta Can we migrate office suite related questions to the Power Users community?

My vote is also for moving such Qs. Main arguments: PU already contains some Qs related to office suite and they're OnTopic there. This kind of Qs doesn't fit well to software development. So i...

posted 4y ago by FoggyFinder‭  ·  edited 4y ago by FoggyFinder‭

Answer
71%
+3 −0
Q&A How to create a MySQL generated column that uses a join in a concat?

I don't think this is possible in MySQL due to its computed columns limitations: Literals, deterministic built-in functions, and operators are permitted. A function is deterministic if, given th...

posted 4y ago by Alexei‭

Answer
71%
+3 −0
Q&A How to retain a service's data between components in Angular 8 ?

I would like to maintain a log that is available to several modules in my Angular 8 system. So I created the following service: @Injectable({ providedIn: 'root' }) export class LogService { ...

1 answer  ·  posted 4y ago by nelson777‭  ·  last activity 4y ago by nelson777‭

Question javascript angular angular-services
71%
+3 −0
Q&A How to generate multi-line completions (code generation) with OpenAI?

I have reached OpenAI's support and one way to generate more accurate multiline responses is to use a clear separator between each question and answer block of text. My final working code is the fo...

posted 4y ago by Alexei‭  ·  edited 4y ago by Alexei‭

Answer
71%
+3 −0
Q&A What are disadvantages of static functions (ie functions with internal linkage) in C?

Besides what Olin already said, I guess too many people were taught C using K&R book, which was great at the time, but it completely neglects modern SW engineering best practices (encapsulation...

posted 2y ago by Lorenzo Donati‭

Answer
71%
+3 −0
Q&A When using the compare function in Array.prototype.sort, how to avoid an element to be processed more than once?

Create a hash map and precalculate the sort key in it: // Set up: Create mock input let u = ['4', '16', '8', '2', '6']; function expensive_key_fn(x) { console.log("Doing expensive operation...

posted 2y ago by matthewsnyder‭

Answer
71%
+3 −0
Q&A Program freezing in `post_comments_to_lemmy` function due to potential infinite loop

There is no infinite loop. If the dictionary is a string, it is simply skipped. If all dictionaries are strings, than all elements of the finite list are skipped, and the function returns without...

posted 2y ago by __blackjack__‭

Answer
71%
+3 −0
Q&A How to use function composition for applying a function to first elements of a list?

The quick fix is: map (subtract 1) . take n $ l When I put your function in my own Haskell compiler, I get: Possible cause: ‘take’ is applied to too many arguments Remember that in Haskell,...

posted 2y ago by FractionalRadix‭  ·  edited 2y ago by FractionalRadix‭

Answer
71%
+3 −0
Q&A How to solve the "Cannot call from this context" error?

Temporary notice: this is part of an ongoing project of transferring and splitting my canonical from Stack Overflow on common errors in Google Apps Script. As soon as the Q&As are finalized, ...

1 answer  ·  posted 1y ago by Oleg Valter‭  ·  last activity 1y ago by Oleg Valter‭

Question google-apps-script
71%
+3 −0
Q&A How to resolve the mypy error "Returning Any from function declared to return 'Dict[str, Any]'" in Python?

I have a function that loads JSON data and is declared to return a dictionary with string keys and values of any type (Dict[str, Any]). However, mypy is raising an error stating that I am returning...

1 answer  ·  posted 1y ago by ShadowsRanger‭  ·  last activity 1y ago by Moshi‭

Question python mypy
71%
+3 −0
Q&A Problems with Google Apps Script API JavaScript "How to... Execute function"

As this is the first question about Google Apps Script, here is a very brief description: it is a platform that helps people easily get programmatic access to Google apps data like Gmail messages, ...

1 answer  ·  posted 2y ago by Wicket‭  ·  last activity 2y ago by Wicket‭

Question javascript google-apps-script google-cloud-platform
71%
+3 −0
Q&A What are disadvantages of static functions (ie functions with internal linkage) in C?

There are some reasons why a function would intentionally not be declared static. (In the following I use the term 'module', but in contrast to others, I use it not to describe a file or translati...

posted 2y ago by Dirk Herrmann‭  ·  edited 2y ago by Dirk Herrmann‭

Answer
71%
+3 −0
Q&A How can I output / display multiple values, with controlled spacing, without building a string?

Using the write method The write method of a file offers a much more limited interface. It only accepts one argument - a string, for a file opened in text mode - and outputs just what it's given. ...

posted 1y ago by Karl Knechtel‭  ·  edited 1y ago by Karl Knechtel‭

Answer
71%
+3 −0
Q&A How to resolve a "ValueError: dimension 't' already exists as a scalar variable" arising when I am using xarray.Dataset.assign_coords()?

It seems like what you want to do can be achieved by using data.assign_coords(t=[0.123]) The error message is extremely confusing in this respect, but it seems like the new value for the coordi...

posted 1y ago by mr Tsjolder‭

Answer
71%
+3 −0
Q&A How do I serialize a const generic length array with Serde?

I have the following code: use serde::{Deserialize, Serialize}; #[derive(Sereialize, Deserialize)] struct Container<const SIZE: usize> { contents: [String; SIZE] } But I'm getti...

0 answers  ·  posted 1y ago by mousetail‭

Question rust serde
71%
+3 −0
Q&A Terms for types of functions with respect to side effects

I know that 1 is sometimes called a pure function - although apparently a pure function must also not vary when the input is constant. By negation, the other kind are called impure functions, alth...

posted 1y ago by matthewsnyder‭  ·  edited 1y ago by matthewsnyder‭

Answer
71%
+3 −0
Q&A How can I output / display multiple values, with controlled spacing, without building a string?

I know that I can display a single string in the terminal window like print("example") (or similarly with a string in a variable), and I know how to open text files and write to them. I also know ...

1 answer  ·  posted 1y ago by Karl Knechtel‭  ·  last activity 1y ago by Karl Knechtel‭

Question python format output
71%
+3 −0
Q&A Automatically install all packages needed

A compromise exists between automatically inferring package names (unreliable and potentially dangerous) and writing out an explicit separate requirements.txt file: script-running tools such as pip...

posted 1y ago by Karl Knechtel‭  ·  edited 1y ago by Karl Knechtel‭

Answer
71%
+3 −0
Q&A How do you insert a struct into a hive table column using HiveRunner?

Figured it out. It should be a List. The data type of the list should be object, but the individual objects in the list should be compatible with the data type of the fields of the struct. For ex...

posted 2y ago by Abbas Gadhia‭

Answer
71%
+3 −0
Q&A How do you insert a struct into a hive table column using HiveRunner?

If my struct column has the data type of struct<string, integer> then what should be the equivalent java object that should be inserted into that struct column? I'm trying the following code...

1 answer  ·  posted 2y ago by Abbas Gadhia‭  ·  last activity 2y ago by Abbas Gadhia‭

Question hive hiverunner
71%
+3 −0
Meta Closed Question Too Generic, Reason Unhelpful

This response is about closure in general, not any specific question. (A moderator has already addressed the specific case.) The close notice also includes the following text (emphasis mine): ...

posted 2y ago by Monica Cellio‭

Answer
71%
+3 −0
Code Reviews Implement translatable UI in a Single Page Application when working with ngRx

I am currently working on an Angular SPA that supports multiple languages and relies on ngRx for state management. Although the application state is handled by ngRx, the current language is stored...

0 answers  ·  posted 2y ago by Alexei‭

Question angular ngrx state-management i18n
71%
+3 −0
Q&A Why does my code show an error at deriving (eq)? (SOLVED) NEW ERROR: At SimpleEnigma & SteckeredEnigma constructors which I need help on :")

Eq is a type class, and type class names are capitalized (like types and constructors). Changing eq to Eq should get you past that error. Conversely, in SimpleEnigma = SimpleEnigma rotor1 rotor...

posted 2y ago by r~~‭

Answer
71%
+3 −0
Q&A highlight.js 3rd party plugin error: Cannot read properties of undefined

Highlight.js version: 11.6.0 Node version: v18.12.0 npm version: 8.19.12 When I provide a plugin with the following code to highlightjs (full code is at github): /* Language: BQN Requires: A...

1 answer  ·  posted 2y ago by Razetime‭  ·  last activity 2y ago by Razetime‭

Question javascript node.js highlightjs
71%
+3 −0
Q&A Why is boolean value f (false) defined as a parsing-word while t (true) is not in Factor?

I noticed when attempting to generate random booleans that t and f are not treated in the same way: t random ! Error f random ! returns a value In the factor 0.98 and 0.99 documentation, t is ...

1 answer  ·  posted 2y ago by Razetime‭  ·  edited 2y ago by Alexei‭

Question factor boolean