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.

Activity for Karl Knechtel‭

Type On... Excerpt Status Date
Comment Post #289488 It's hard to address the part where you "also heard that its 2-argument function signature is flawed" because we do not know **where** you heard it, and therefore we cannot possibly know *what argument* was being presented. This doesn't add anything to the post as it stands; if there *is* a flaw, the...
(more)
9 months ago
Edit Post #289481 Post edited:
mention specific point when the error-message improvement was added
9 months ago
Edit Post #289481 Post edited:
9 months ago
Edit Post #289481 Initial revision 9 months ago
Answer A: How can I properly type-hint methods in different files that would lead to circular imports?
Import modules rather than names first to avoid a circular reference in the `import` statements; then use forward declarations, as before, to avoid a circular reference in the type annotations - like so: ``` process.py import helpers class Process: def dosomething(self, helper: "helper...
(more)
9 months ago
Edit Post #289386 Post edited:
remove noise, fix formatting, add link for lesser-known third-party library, improve grammar
9 months ago
Comment Post #289386 I couldn't understand the explanation of what you tried. For example "assign_coords is not an inplace operation" doesn't say what to try, it only describes a problem. If that was the title of a post on Stack Overflow, it's not useful to just show that; we should have the links as well. Aside from tha...
(more)
9 months ago
Suggested Edit Post #289386 Suggested edit:
remove noise, fix formatting, add link for lesser-known third-party library, improve grammar
(more)
helpful 9 months ago
Edit Post #289346 Post edited:
improve title: fix grammar, indicate the specific context
9 months ago
Suggested Edit Post #289346 Suggested edit:
improve title: fix grammar, indicate the specific context
(more)
helpful 9 months ago
Comment Post #289289 If the way it works inconveniences you, it shouldn't be hard to make a simple wrapper - checkout a target branch, run a normal merge command, then checkout the original branch again. [Since 2.22, the current branch name can be found with `git branch --show-current`](https://stackoverflow.com/question...
(more)
9 months ago
Edit Post #289299 Initial revision 10 months ago
Answer A: Why is git merge from rather than to?
> I struggle to think of any use cases for merging from. Why was the merge command designed this way? The model here is that many developers on the same project are using branches to develop features independently; someone has to be in charge, and that is the person responsible for the `master` (r...
(more)
10 months ago
Comment Post #289275 It seems like you're looking for something that happens *after* `onbeforeunload`, not before. Wouldn't that just be... `onunload`?
(more)
10 months ago
Edit Post #289278 Post edited:
10 months ago
Edit Post #289252 Post edited:
organize chronologically; add references for when features were added; label sections with brief guidance (and edit details to avoid repetition)
10 months ago
Edit Post #289252 Post edited:
Avoid repeating the main examples within the details
10 months ago
Edit Post #289252 Post edited:
fix formatting typo; improve wording a bit more
10 months ago
Edit Post #289252 Post edited:
Consistently show errors from 3.11; improve section warnings
10 months ago
Edit Post #289251 Post edited:
fix error message as shown in contemporary versions; add note about how it looks in older versions
10 months ago
Edit Post #289251 Post edited:
edit example to match the changes in my answer (to shorten it and avoid line-wraps)
10 months ago
Edit Post #289252 Post edited:
fix wording (the Template example requires instantiating a library class, so not a one-liner)
10 months ago
Edit Post #289252 Post edited:
Oops, that wasn't quite short enough
10 months ago
Edit Post #289252 Post edited:
Shorten the main example to avoid ugly wrapping on summary headers
10 months ago
Edit Post #289252 Post edited:
Add warnings/advice to the top based on my old Stack Overflow answer https://stackoverflow.com/a/73658493; hide details for each approach with a direct code example; fix references `spam_cans` -> `count` in examples
10 months ago
Edit Post #289278 Post edited:
10 months ago
Edit Post #289278 Initial revision 10 months ago
Answer A: Do we want a wiki (or similar) alongside Q&A?
I think the framing of this question (and the prior discussion) is wrong, and I think that conditions have evolved since it was originally asked - in particular, we can now see how articles have turned out for other communities. Rather than try to define "wiki" or consider ways to implement that stra...
(more)
10 months ago
Edit Post #289252 Post edited:
Add inline-code formatting for details-section labels (refer: https://meta.codidact.com/posts/289271)
10 months ago
Edit Post #289252 Post edited:
Fix header for %-style formatting, including relevant doc link
10 months ago
Edit Post #289252 Post edited:
Even more detail, reorganization and polishing
10 months ago
Edit Post #289252 Post edited:
10 months ago
Edit Post #289252 Post edited:
Rearrange some points to exploit the labelled-example format more consistently
10 months ago
Edit Post #289252 Post edited:
update and enhance information about f-string syntax limitations
10 months ago
Comment Post #289251 Regarding research and "readily accessible" information, please see [this meta question](https://software.codidact.com/posts/284979), where I put quite a bit of effort into explaining my own stance, as well as [my thoughts on how to grow the community](https://software.codidact.com/posts/285035/28917...
(more)
10 months ago
Edit Post #289252 Post edited:
10 months ago
Edit Post #289252 Post edited:
tweak some wording to try to limit section headers to one line
10 months ago
Edit Post #289252 Post edited:
More consistent formatting: establishing a style for the use of shaded <section>s
10 months ago
Comment Post #289255 Quick update: the new Q&A is [now live](https://software.codidact.com/posts/289264).
(more)
10 months ago
Edit Post #289265 Post edited:
10 months ago
Edit Post #289265 Initial revision 10 months ago
Answer A: How can I output / display multiple values, with controlled spacing, without building a string?
Using the `write` method The `write` method of a file offers a much more limited interface. It only accepts one argument - a string, for a file opened in text mode - and outputs just what it's given. Any additional desired spacing must be specified explicitly. Sometimes, this makes it practical...
(more)
10 months ago
Edit Post #289264 Initial revision 10 months ago
Question How can I output / display multiple values, with controlled spacing, without building a string?
I know that I can display a single string in the terminal window like `print("example")` (or similarly with a string in a variable), and I know how to open text files and write to them. I also know that I can create a "formatted" string, that contains multiple pieces of information, in a variety o...
(more)
10 months ago
Comment Post #289170 When I'm answering questions about code nowadays, I tend to have way more prose than actual code. If there's a lot of code, it's because there are a lot of trivial examples that can't really be useful for others as-is. So I'm happy to stick with -BY license versions. Maybe this doesn't work for every...
(more)
10 months ago
Edit Post #289252 Post edited:
Whoops, totally forgot about string.Template the first time.
10 months ago
Comment Post #289255 In the (artificial) question here I intended specifically to distinguish the case of creating a new string (that could then be used within the program for other purposes). It's true that many people who need this kind of information are just trying to display something on screen; but I intended to po...
(more)
10 months ago
Edit Post #289253 Initial revision 10 months ago
Question On self-answered questions, is it inappropriate to mark my own answer "Works for me" immediately?
Would it discourage others from posting answers, if they saw that a question had an answer with a "works for me" indication applied immediately? (More so than just seeing an immediate, comprehensive answer?) Could that ever be desirable? Or would it cause hurt feelings etc.?
(more)
10 months ago
Comment Post #289170 In re "I wish the terms of the site could be changed, to make it specifically forbidden to use this data for model training without permission." Adding this sort of restriction explicitly is not possible using Creative Commons licenses, and the necessary *legal* work to create modified versions is...
(more)
10 months ago