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.3k posts
 
84%
+9 −0
Q&A How to align my content to the left?

If you remove the align="left" then it works fine. My best guess is that you put those in because you didn't want the image in the text flow, affecting the vertical positioning on the text. The ea...

posted 2y ago by Peter Taylor‭  ·  edited 8mo ago by Peter Taylor‭

Answer
84%
+9 −0
Q&A Open file in script's own folder

You can use the pathlib standard module with __file__ to make things simple. from pathlib import Path scriptFolder = Path(__file__).parent with open(scriptFolder / 'data.txt') as file: dat...

posted 2y ago by Moshi‭

Answer
84%
+9 −0
Q&A Open file in script's own folder

I have a Python script that needs to access some data (or configuration) file in its very own folder. For example, say script.py does something like this: with open('data.txt') as file: data ...

2 answers  ·  posted 2y ago by J-hen‭  ·  last activity 3mo ago by Karl Knechtel‭

84%
+9 −0
Q&A Behavior of Pointer Arithmetic on the Stack

Consider the following code: #include <stdio.h> int main() { int a = 5; int b; ++*(&b + 1); printf("%d\n", a); return 0; } The output is as expected: 6 ...

4 answers  ·  posted 2y ago by Josh Hyatt‭  ·  last activity 2y ago by Alexei‭

84%
+9 −0
Q&A Understanding mutable default arguments in Python

Consider this code example: def example(param=[]): param.append('value') print(param) When example is repeatedly called with an existing list, it repeatedly appends to the list, as ...

4 answers  ·  posted 8mo ago by Karl Knechtel‭  ·  last activity 5mo ago by matthewsnyder‭

84%
+9 −0
Q&A What is the point of pipx?

Background Many Python programs now recommend installing with pipx, and there is a sense that you shouldn't install with pip anymore, you should use tools like pipx. Main Question However, what ...

3 answers  ·  posted 9mo ago by matthewsnyder‭  ·  last activity 8mo ago by tripleee‭

Question python-3 package
84%
+9 −0
Q&A What is the point of pipx?

Well, to start, it is not an alternative to pip. It's built on top of pip and exclusively deals with applications. pip is more of a development tool, while pipx is aimed at end-users (who may also ...

posted 9mo ago by Derek Elkins‭  ·  edited 8mo ago by meta user‭

Answer
84%
+9 −0
Q&A How can one import two classes with the same name in Java8?

While other JVM languages, such as Groovy, Kotlin and Scala have Python-like import aliasing, Java does not. It's not possible to 're-name' imports, however, when you call a class from a package, ...

posted 4mo ago by tarhalda‭  ·  edited 2mo ago by tmpod‭

Answer
84%
+9 −0
Q&A How to delete a remote branch in git?

With the --delete option of git-push: $ git push <remote-name> --delete <branch-name> For example: $ git push origin --delete my-branch

posted 2mo ago by Iizuki‭

Answer
84%
+9 −0
Q&A What is the point of triggering CI/CD with an empty git commit?

There's no point. It just causes unnecessary clutter and confusion. The correct way is to configure a manual way for triggering the CI/CD pipeline. In most systems there should be an API endpoint ...

posted 6mo ago by Iizuki‭

Answer
84%
+9 −0
Q&A Python Regex to parse multiple "word. word. word."

First of all, let's understand why your regex didn't work. The first part is \w+\.\s, which is "one or more alpha-numeric characters" (\w+), followed by a dot and a space (\.\s). If the regex was ...

posted 3y ago by hkotsubo‭  ·  edited 2y ago by hkotsubo‭

Answer
84%
+9 −0
Q&A What are field separators in operating-programming languages (such as Bash)?

In Bash, IFS is an internal variable and it stands for "Internal Field Separator" <- according to this link, it "determines how Bash recognizes fields, or word boundaries, when it interprets cha...

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

Answer
84%
+20 −2
Q&A Is it wrong to demand features in open-source projects?

As you have worded it, for most open source project, particularly small ones, I would say "yes", it is "wrong" to demand features. Or rather, it's extremely rude. Most of the time open source soft...

posted 3y ago by Derek Elkins‭

Answer
84%
+9 −0
Meta How does the community feel about resource requests?

I think these kinds of questions are fine, but I am just one person. open source product I have been using appears to be poorly-documented is an extremely common problem. I have actually seen the p...

posted 3y ago by manassehkatz‭

Answer
84%
+9 −0
Q&A Generate SIGSEGV without undefined behaviour.

SIGSEGV is defined in the C header signal.h. To generate the signal, it should be sufficient to just do raise(SIGSEGV);. As far as I know, this is well-defined behavior.

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

Answer
84%
+9 −0
Q&A How to override default string formatter?

It is possible to create a new formatter class by subclassing string.Formatter class and then to use it like myformatter.format("{foo:customformat}", foo=foo). It's not super-convenient though, and...

1 answer  ·  posted 3y ago by luser‭  ·  edited 3y ago by Alexei‭

84%
+9 −0
Meta Do we need the fullstack tag?

To whether the tag is useful: no. It's useful for tagging people ("this person does frontend and backend") but not questions. I don't see the point of adding "do not use": just delete the tag, whi...

posted 3y ago by Peter Taylor‭

Answer
84%
+9 −0
Meta Growing software.codidact

Speaking personally (not as a Codidact admin): One low-key way to promote this community there is to cite it in answers. If you see a question there that you want to answer, see if it's here too....

posted 3y ago by Monica Cellio‭

Answer
84%
+9 −0
Q&A Is there a naming convention for table aliases?

This can depend on both your flavor of SQL and your personal preference - I've seen a number of schemes in use. For MySQL, the most common scheme I've seen used (and the scheme that my editor uses ...

posted 3y ago by ArtOfCode‭

Answer
84%
+9 −0
Meta Meet the Codidact Team!

As we start on building a new community here together, we're bound to find some sticking points. Those might be bugs, new features you need, things you need support with... whatever they are, the C...

0 answers  ·  posted 4y ago by ArtOfCode‭  ·  edited 4y ago by ArtOfCode‭

84%
+9 −0
Q&A Why don't format specifiers work with lists, dictionaries and other objects?

When I want to print a number or a string, I can use f-strings (Python >= 3.6) or str.format, and I can use just the variable between braces, or use format specifiers. Ex: num, text = 10, 'abc' ...

1 answer  ·  posted 3y ago by hkotsubo‭  ·  edited 3y ago by sth‭

84%
+9 −0
Q&A What's the correct way to merge a branch and its dependent branch back to master?

I think a branch is a set of commits and a commit is a set of deltas, so my concern is that merging feature-B to master would reflect only the work that is unique to feature-B Not quite: a bra...

posted 3y ago by meriton‭

Answer
84%
+9 −0
Meta Using Software Codidact as a private community within a company

You can, in a sense, do I believe even better than using Stack Overflow's hosted, proprietary service. You can run your very own instance of the Codidact software (that is, QPixel) locally, on a s...

posted 3y ago by Canina‭

Answer
84%
+9 −0
Q&A What is a good modern language to use for a Business Rules project?

This is a rather vague question, but I'm trying to solve a specific problem and I'm inexperienced in most of the potential solutions, so please forgive the inherent ambiguity. I have access to a d...

3 answers  ·  posted 3y ago by Sigma‭  ·  last activity 11mo ago by matthewsnyder‭

Question business-rules
84%
+9 −0
Q&A How to properly deal with impersonation in a Web application? (security vs. usefulness for tech support)

If you've poked around the mod tools here a bit, you may have noticed that QPixel has an impersonation feature, live on prod. It's there for much the same reasons: so that developers can test and i...

posted 3y ago by ArtOfCode‭

Answer