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
75%
+4 −0
Q&A How and where does Python code start running? How can I control that?

Files with .py extension are scripts. You run them with python myscript.py. Python is an imperative language, so executing a file will run each line one by one, starting from the top, and exit whe...

posted 25d ago by matthewsnyder‭

Answer
71%
+3 −0
Q&A Privilege escalation from Python like from systemd

When you try to do a privileged systemd operation without the privilege, you get an escalation prompt: $ systemctl stop docker ==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-units ==== ...

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

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‭

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
75%
+4 −0
Q&A Why is global evil?

Many languages discourage global variables. Why is this?

3 answers  ·  posted 2mo ago by matthewsnyder‭  ·  last activity 2mo ago by mavavilj‭

77%
+5 −0
Q&A What is a reasonable minimum for making a FOSS project inviting to contributors?

I don't actually know the answer to this, but I'll post a provisional one while we wait for someone wiser than me to chime in. I think this is a small subset of the real answer. Don't forget the...

posted 2mo ago by matthewsnyder‭

Answer
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 2mo ago by matthewsnyder‭  ·  closed 2mo ago by Alexei‭

Question open-source
75%
+4 −0
Q&A What is a reasonable minimum for making a FOSS project inviting to contributors?

A lot of people who maintain FOSS projects would like to get more contributions. What can the maintainer do to ensure that potential contributors are converted into actual contributors? There are...

2 answers  ·  posted 2mo ago by matthewsnyder‭  ·  last activity 2mo ago by Michael‭

66%
+2 −0
Q&A How to group a flat list of attributes into a nested lists?

The obvious way would be to simply start with an empty list of lists, loop through the input, and for each item decide which sublist to put it in. It's not super dev-friendly to remember which lis...

posted 2mo ago by matthewsnyder‭

Answer
80%
+6 −0
Meta Is software system design on topic here?

Is software system design on topic for the software development site? For what I mean by system design, consider the "system design interview" commonly held these days when recruiting software eng...

1 answer  ·  posted 2mo ago by matthewsnyder‭  ·  last activity 2mo ago by Lundin‭

Question discussion scope
30%
+2 −7
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 ...

2 answers  ·  posted 2mo ago by matthewsnyder‭  ·  last activity 2mo ago by Karl Knechtel‭

71%
+3 −0
Code Reviews GnuTLS config for my own root CA, for use on internal server

I am trying to generate my own root CA certificate. Context My goal is to sign an intermediate CA with this certificate, and then install the intermediate CA on my own client machines. The interm...

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

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 3mo 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 3mo ago by matthewsnyder‭  ·  edited 3mo ago by matthewsnyder‭

Answer
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
66%
+2 −0
Q&A How to troubleshoot ModuleNotFoundError?

ModuleNotFoundError means that in running your program, Python attempted to import some module xyz but it was not present on your system. It could be that you forgot to install the module (forgot ...

posted 4mo ago by matthewsnyder‭  ·  edited 4mo ago by Karl Knechtel‭

Answer
75%
+4 −0
Q&A How to troubleshoot ModuleNotFoundError?

I ran some Python code and it crashed with ModuleNotFoundError. What is the general approach for dealing with these situations?

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

Question import python-3
77%
+5 −0
Q&A Are "strong passwords" at all meaningful?

The assumption of 1k attempts/s is wishful thinking, as is the idea that a hacker will go on mail.google.com and try to guess your login (they would get a captcha after like 5 failed attempts). Pa...

posted 4mo ago by matthewsnyder‭  ·  edited 25d ago by matthewsnyder‭

Answer
66%
+2 −0
Q&A Does Python have a "ternary operator" (conditional evaluation operator like "?:" in other languages)?

The Python ternary "operator" is if and else: x = 1 if some_condition else 0 In Python, this is called a "conditional expression" rather than an operator, and the documentation explains it: htt...

posted 6mo ago by matthewsnyder‭

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

Answer
71%
+3 −0
Q&A PEP20 on namespaces: What exactly is it saying to do?

PEP20 aka the Zen of Python has a statement: Namespaces are one honking great idea -- let's do more of those! What exactly are we supposed to "do" according to this? Is it saying we should h...

1 answer  ·  posted 6mo ago by matthewsnyder‭  ·  last activity 10d ago by BlckKnght‭

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 6mo ago by matthewsnyder‭  ·  edited 6mo ago by matthewsnyder‭

Answer
66%
+2 −0
Q&A Get list of all variables from Jinja template

Suppose you have a jinja template like this: I am going to {{ foo }} to get some {{ bar }}. I hope I can find: {% for i in baz %} - {{i}} {% endfor %} This template will require you to pass ...

0 answers  ·  posted 7mo ago by matthewsnyder‭  ·  edited 7mo ago by Karl Knechtel‭