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
60%
+1 −0
Q&A Reusing HTML without rewriting it

I agree with other answers that a static site generator is the best approach. This is something that the original designers of HTML left as an open problem. The problem has now been "solved" by thi...

posted 2y ago by matthewsnyder‭

Answer
60%
+1 −0
Q&A Managing a dependency for a C application

I see 3 common ways to distribute such software: Statically linked binary Dynamically linked binary Source 1 means you compile everything into a standalone binary file. This bloats the file...

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

Answer
60%
+1 −0
Meta Should beginner-oriented Q&A here include basic use of a terminal (command line) for developers?

IMO we should expect questions to have a single main point. Answers should address only that point. If the answerer feels like they are introducing some new topic that the asker might not know - s...

posted 2y ago by matthewsnyder‭

Answer
60%
+1 −0
Q&A Subfolders for package-less module imports

It looks like I was confused, and the problem I am asking about does not actually exist. Perhaps it existed in an older version, or perhaps I am simply misremembering. Regardless, I've seen other p...

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

Answer
60%
+1 −0
Code Reviews GnuTLS config for my own root CA, for use on internal server

For future readers - based on input from Michael, and some research that was spurred by that improved version, this is the final config I arrived at: # https://gnutls.org/manual/html_node/certtool...

posted 2y ago by matthewsnyder‭

Answer
60%
+1 −0
Q&A PHP - Why using "global" considered bad?

Nothing in particular will go wrong. global is a valid and supported keyword, the code will work. There is no problem for the computer. The problem is for you. When something is global, it could b...

posted 2y ago by matthewsnyder‭

Answer
60%
+1 −0
Q&A What software architecture are available for developing an application with multiple business domains that only share some common aspects?

If I ignore the example and answer the title generally: You would put the common logic into a third piece of software that becomes the dependency of both domains. For example, let's say you are wr...

posted 3y ago by matthewsnyder‭

Answer
60%
+1 −0
Q&A Shortcut for inserting today's date in VS Code

Is there a way to easily insert today's date when editing a file in VS Code?

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

Question vs-code snippet
60%
+1 −0
Q&A VS Code: How to open a file and folder in a new window?

Best I could do was: cd /foo/bar && code --new-window . && code baz.txt The cd is not necessary but makes the command cleaner. I would still like to know if there's a cleaner wa...

posted 3y ago by matthewsnyder‭

Answer
60%
+1 −0
Q&A Clone .git repo into current dir, without touching files

One way to do it is to simply clone the repo elsewhere and move the .git file to the current one.

posted 3y ago by matthewsnyder‭

Answer
60%
+1 −0
Q&A git submodule foreach git pull in parallel

I use git submodule foreach git pull to update my submodules. There's quite a few and it appears that foreach is updating them one by one, instead of in parallel. How can I do it in parallel?

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

Question git git-submodule
60%
+1 −0
Q&A Can pandas be used as a database backend for persistent storage?

SQL is as good as it gets, generally speaking. The best engine for a small project is SQLite. If you need more, the next step is Postgres. Postgres is very capable and it's unlikely that you'll nee...

posted 3y ago by matthewsnyder‭

Answer
60%
+1 −0
Q&A Remove entries by two-column ID everywhere, that meet a condition somewhere

This is solved in 2 steps: Find rows matching remove conditions Do anti-left-join on the the composite key (Die, Cell) To filter out the rows: # Read in the data df = pd.read_csv("data.csv...

posted 3y ago by matthewsnyder‭

Answer
60%
+1 −0
Q&A For scripting what are the pros and cons of command line arguments versus capturing input at the start?

I largely agree with existing answers, but wanted to add this: In many cases, there is no clear answer one way or the other. Take the program wc which counts characters and lines. Should the inter...

posted 3y ago by matthewsnyder‭

Answer
60%
+1 −0
Meta Best practices for posting tabular data

Some good options to consider: SQL create table as statements. This way you can define multiple tables all in one file, that can be copy/pasted easily. It also matches a very common thing: SQL e...

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

Answer
60%
+1 −0
Q&A Why are commas not needed for modulo string formatting when printing?

% is one of the oldest Python syntaxes for interpolating strings. It basically works like: template_string % data_tuple In fact, you can literally do that: >>> s = "%d %d" >>&g...

posted 3y ago by matthewsnyder‭

Answer
58%
+5 −3
Q&A Is it wrong to demand features in open-source projects?

"Demanding features" falls under an umbrella called "design". Design work doesn't show up directly in the commits (unless you maintain a design doc) but it is work nonetheless. Suggesting features ...

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

Answer
57%
+2 −1
Q&A What actually is a pytest fixture?

Pytest uses fixtures. Their docs explain what fixtures do: https://docs.pytest.org/en/stable/explanation/fixtures.html But what actually is a fixture? Is there a definition for it? Is this a term ...

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

Question terminology testing pytest
57%
+2 −1
Q&A What is a good modern language to use for a Business Rules project?

SQL is the right tool for this job. You say the data is already in a database, probably a SQL database You don't have to deal with moving the data out of the database and "into a programming la...

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

Answer
55%
+3 −2
Q&A Git: How to clone only a few recent commits?

This is called a shallow clone and it's supported by a git-clone argument: git clone --depth 5

posted 3y ago by matthewsnyder‭

Answer
54%
+4 −3
Q&A Regex for simplifying Amazon product URLs

Amazon product URLs are often very long, but on experimentation it is revealed that the following pattern is sufficient: https://www.amazon.com/{dp|gp}/$ID ID is a 10-char string, which I'm gue...

2 answers  ·  posted 3y ago by matthewsnyder‭  ·  last activity 7mo ago by hkotsubo‭

Question regex url
50%
+0 −0
Q&A Is it a bad idea to block proxies/vpns for interacting with my app?

For contact form spam specifically, there is a more direct solution. If you use a form service like formspree.io it will already have built in spam filtering features. This isn't based around tryin...

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

Answer
50%
+0 −0
Q&A Why does Pip display "error: externally-managed-environment", and what can I do about it?

tl;dr: There's a few ways to bypass this: For all users on the machine: Get rid of /usr/lib/python3.foo/EXTERNALLY-MANAGED. To prevent your package manager from adding it back, replace it with a...

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

Answer
50%
+0 −0
Q&A How to hide files from the VS Code sidebar without pattern matching?

You could just move the files to a new folder and open that :) Alright alright here's a serious answer: I noticed that VSC automatically dereferences symlinks. So if you create a temporary new fol...

posted 2y ago by matthewsnyder‭

Answer
50%
+1 −1
Q&A What is the difference between hashing and encryption?

Hashing is lossy compression. You can't recover the input of a hash from the result. This would obviously not work as an encryption. How would you decrypt it, if half the message is destroyed :) ...

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

Answer