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.

Posts by matthewsnyder‭

115 posts
50%
+1 −1
Q&A Understanding mutable default arguments in Python

Everything you put on the line with def is global (global to the file, not as in the global keyword), so the (initially empty) list you create with param=[] persists and gets reused between calls t...

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

Answer
50%
+1 −1
Q&A Is there a text version of pickle?

Is there a Python serialization format that has capabilities similar to Pickle, but is text based? The problem I always have with pickle is that it's binary, so I can't manually view or edit the d...

0 answers  ·  posted 3y ago by matthewsnyder‭

Question python serialization
50%
+0 −0
Q&A What is the point of pipx?

Dependency conflicts are the problem pipx aims to solve, in the context of installing CLI programs. When you install a Python package, by default pip will also install their dependent packages so ...

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

Answer
50%
+0 −0
Q&A Queries to count points lying on arbitrary line

Since you didn't mention memory, I'll assume O(N^2) is acceptable. Setup pseudocode: for every p1, p2: ln = line(p1, p2) points_on_line[ln.m, ln.c] += [p1, p2] If there are at least ...

posted 3y ago by matthewsnyder‭

Answer
50%
+1 −1
Q&A How to migrate after SQLalchemy schema changes?

When I set up my object mappings with SQLalchemy, everything works well enough. It even creates the tables for me if they don't exist. However, if I decide to add/remove columns (aka fields) from ...

0 answers  ·  posted 3y ago by matthewsnyder‭  ·  edited 3y ago by Alexei‭

Question orm testing python-3 sqlalchemy
46%
+4 −5
Meta Questions easily answered by studying a beginner-level book

Beginner questions are not a "huge problem" for StackOverflow. They are the main reason SO got big at all. During what I would call its "peak", the joke going around was that the best documentation...

posted 3y ago by matthewsnyder‭

Answer
42%
+1 −2
Q&A Listen for key events in a CLI app

I have a Python program like this: done = False while u and not done: i = u.pop() print(f"Processing {i}") do_big_task(i) finish_up() Since this takes a long time, the user m...

1 answer  ·  posted 3y ago by matthewsnyder‭  ·  last activity 3y ago by mr Tsjolder‭

Question python-3 command-line-interface interactive
40%
+0 −1
Q&A Determine which script is slowing the page down in Firefox [closed]

A page is very slow and laggy in Firefox. I am certain it's one of the many Javascripts slowing it down. Out of curiosity, I'd like to figure out which script is creating the heaviest load. Note t...

0 answers  ·  posted 3y ago by matthewsnyder‭  ·  closed 3y ago by Alexei‭

Question javascript firefox profiler
40%
+0 −1
Meta How should I organize material about text encoding in Python into questions?

Much of this is already covered in various sources like https://docs.python.org/3/howto/unicode.html. Although there are issues with relying on links, I figure official documentation is probably fa...

posted 3y ago by matthewsnyder‭

Answer
37%
+4 −8
Meta Don't close questions for lack of detail/confusion

tl;dr: When a question is unclear, don't close right away, especially if it's possible to discern what they are trying to ask. Instead, use comments and edit suggestions to work with the asker and ...

4 answers  ·  posted 2y ago by matthewsnyder‭  ·  last activity 2y ago by John C‭

Question discussion moderators content-quality
36%
+2 −5
Q&A What makes people able but unwilling to contribute to FOSS projects? [closed]

Suppose someone has the requisite knowledge and skillset to contribute to a FOSS project, they have the free time to do so and they are aware of the project. Yet, they decide not to contribute. Thi...

0 answers  ·  posted 2y ago by matthewsnyder‭  ·  closed 2y ago by Alexei‭

Question open-source
36%
+2 −5
Q&A What is the point of triggering CI/CD with an empty git commit?

The reason this practice exists is because CIs suck. The frameworks/services themselves suck, and the way people write the configs also suck, and the two combine to create a mega-suck. A CI is sup...

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

Answer
33%
+1 −4
Meta Suggested special feature: Clinic/case study

We have special features/sections on Codidact, so maybe this is a nice use for them. What if we had a section named something like "clinic" or "case study" or "debugging"? (name suggestions welcom...

0 answers  ·  posted 3y ago by matthewsnyder‭  ·  edited 3y ago by matthewsnyder‭

Question discussion feature-request
33%
+2 −6
Q&A How do I use an existing AI model to classify pornographic images? [closed]

In the last few months, AI has advanced considerably, notably in the area of generating images. We now have powerful models like DALL-E, Stable Diffusion, etc. These are quite competent at generati...

0 answers  ·  posted 3y ago by matthewsnyder‭  ·  closed 3y ago by Alexei‭

Question openai python-3 artificial-intelligence image-classification system-design
25%
+0 −4
Meta Closing self-answered question due to not being clear enough

Closing questions should be a last resort. Closed question are wasted opportunities to get more interesting and useful content, and potentially wasted opportunities to gain a new contributing user....

posted 2y ago by matthewsnyder‭

Answer