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‭

91 posts
66%
+2 −0
Meta Should I post a link to the Github repo for code reviews?

If it's so large that you must link the repo rather than reposting code, I think it is too large to reasonably expect anyone to review. Bored people will read a couple dozen lines, and point out a ...

posted 11mo ago by matthewsnyder‭  ·  edited 11mo ago by matthewsnyder‭

Answer
66%
+2 −0
Q&A How to prevent Visual Studio Code from opening an extra blank window?

I was able to fix this by deleting the ~/.config/VSCode/Workspaces folder. To figure this out, I: Backed up my VSCode folder to /var/tmp Deleted ~/.config/VSCode, after this VS Code stopped ...

posted 11mo ago by matthewsnyder‭

Answer
66%
+2 −0
Q&A VS code - stop reopening old tabs

When I open VS Code inside a project dir, it reopens all the tabs that were open last time, and re-expands all the folders that were unfolded last time. I find this annoying. Usually, when I close...

0 answers  ·  posted 1mo ago by matthewsnyder‭

66%
+2 −0
Q&A Does Snowflake NATURAL JOIN support outer-style join?

I like using NATURAL JOIN in Snowflake, because I find it more elegant than explicit join clauses. However, it appears that the natural join behaves similar to an inner join, in that null values o...

1 answer  ·  posted 10mo ago by matthewsnyder‭  ·  edited 10mo ago by matthewsnyder‭

Question sql join snowflake
66%
+2 −0
Q&A "Move symbol" refactor for Python in Visual Studio Codium

Is there a way to add support for "move symbol" in Python code for VS Codium? PyCharm can do this, but I am looking for a VSC solution. PyLance can do this, but PyLance itself is closed source, a...

0 answers  ·  posted 10mo ago by matthewsnyder‭  ·  edited 10mo ago by matthewsnyder‭

66%
+4 −1
Meta Should we disallow ChatGPT-User crawler (and others) from scraping Software Codidact?

robots.txt amounts to politely asking people to please not crawl you, so I wouldn't expect it to do much. At the same time, you might as well ask politely, to avoid giving the impression that you ...

posted 10mo ago by matthewsnyder‭

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

I have git repo where the .git is deleted. I didn't realize it until after I made some changes to the code. I want to re-create the .git by cloning. However I don't want it to touch the files that...

1 answer  ·  posted 9mo ago by matthewsnyder‭  ·  last activity 9mo ago by matthewsnyder‭

Question git-clone
62%
+3 −1
Q&A Building a language model completely from scratch

This is not feasible as described. To learn LLMs, you can look at models like 3B WizardLM. These are open source and should be possible to just train and run as is. The build may be very complex, ...

posted 3mo 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 11mo 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 2mo ago by matthewsnyder‭

Answer
60%
+1 −0
Q&A Why is global evil?

A global variable or object is in scope everywhere. That means it's possible to modify it from any part of your program. Imagine a mature program, made up of thousands of lines of code and dozens ...

posted 2mo 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 2mo 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 7mo 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 8mo ago by matthewsnyder‭  ·  last activity 8mo 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 8mo 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 9mo 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 10mo ago by matthewsnyder‭  ·  last activity 8mo 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 11mo 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 11mo 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 11mo 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 11mo ago by matthewsnyder‭  ·  edited 11mo ago by matthewsnyder‭

Answer
57%
+2 −1
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 9mo ago by matthewsnyder‭  ·  edited 9mo ago by matthewsnyder‭

Answer
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 11mo ago by matthewsnyder‭  ·  edited 11mo 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 9mo ago by matthewsnyder‭

Answer
50%
+3 −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...

1 answer  ·  posted 8mo ago by matthewsnyder‭  ·  last activity 8mo ago by mr Tsjolder‭

Question regex url