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 hkotsubo‭

Type On... Excerpt Status Date
Edit Post #296285 Initial revision 3 months ago
Question Improve the search mechanism to find answers to questions with specific tag
I was searching for all of my answers in questions tagged with the `git` tag. So I used `tag:git user:53078 posttype:2` as the search terms, and it found zero posts. I removed the post type (`tag:git user:53078`), and it found only questions. The only way to find the answers was by removing...
(more)
3 months ago
Edit Post #296013 Post edited:
Rewording
5 months ago
Suggested Edit Post #296013 Suggested edit:
Rewording
(more)
helpful 5 months ago
Comment Post #295816 > *it is done by scraping sites like SO* Exactly. --- The strict rules that the OP (and many people) complain about helped to create the high quality content that was used for AI training. Therefore, we can ironically say that currently the purpose of QA sites (with all their hard-to-...
(more)
6 months ago
Edit Post #295751 Post edited:
6 months ago
Edit Post #295751 Initial revision 6 months ago
Answer A: How do I split a feature branch into two?
The `rebase` solution proposed in the other answer is the most straightforward way (and the one I'd use as well). Just to provide an alternative, you can also use `cherry-pick`. First, let's create branch `feature-2` from `main`, and switch to it: ```bash git switch --create feature-2 m...
(more)
6 months ago
Edit Post #295638 Initial revision 6 months ago
Answer A: What questions are we most urgently missing?
I'd like to see more language-agnostic questions about general programming-related concepts. > I've already tried to do that with a recent Q&A pair: What are the criteria to define if a programming language is compiled or interpreted?. More suggestions Unicode related questions. I ...
(more)
6 months ago
Edit Post #295608 Post edited:
6 months ago
Edit Post #295608 Post edited:
6 months ago
Edit Post #295608 Initial revision 6 months ago
Answer A: What are the criteria to define if a programming language is compiled or interpreted?
First of all, let's recap two basic concepts: specification and implementation. The classic analogy is that a specification is like a cake recipe, and implementation is the actual cake. The spec only tells you what to do (it might say how some steps can be done, but it's not always the case). And...
(more)
6 months ago
Edit Post #295607 Initial revision 6 months ago
Question What are the criteria to define if a programming language is compiled or interpreted?
Often I hear people saying that some language is either compiled or interpreted. Examples: "Java is compiled" or "JavaScript is interpreted" and so on. What are the criteria to define languages as such?
(more)
6 months ago
Edit Post #295565 Initial revision 7 months ago
Answer A: Regex for simplifying Amazon product URLs
Actually, an Amazon product URL can also include a product title and have extra params after the ASIN. Example: ```none https://www.amazon.com/Hitchhikers-Guide-Galaxy/dp/B0009JKV9W/ref=sr11?crid=13ECWetc..... ^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ...
(more)
7 months ago
Edit Post #283058 Post edited:
8 months ago
Edit Post #295279 Post edited:
8 months ago
Edit Post #295279 Post edited:
8 months ago
Edit Post #295279 Post edited:
8 months ago
Edit Post #295279 Post edited:
8 months ago
Edit Post #295279 Initial revision 8 months ago
Answer A: Python-compatible regex for Markdown tables
For an arbitrary number of rows and columns, a single regex won't work. You'll need to loop through all cells, replacing them as they are found. Something like this: ```python import re markdown = """| Syntax | Description | | ----------- | ----------- | | Header | Title ...
(more)
8 months ago
Edit Post #294977 Post edited:
added tag / minor fixes
10 months ago
Suggested Edit Post #294977 Suggested edit:
added tag / minor fixes
(more)
helpful 10 months ago
Edit Post #294989 Post edited:
10 months ago
Edit Post #294989 Initial revision 10 months ago
Answer A: java.time.ZonedDateTime missing seconds in output
Although it might look strange, this behaviour is - kinda - documented. But it's not so straighforward to figure out. In `ZonedDateTime::toString` docs) it says: > The format consists of the `LocalDateTime` followed by the `ZoneOffset`. Therefore, we must check the docs for `LocalDateTim...
(more)
10 months ago
Edit Post #294813 Post edited:
force syntax highlight to Java + minor fixes
11 months ago
Edit Post #294826 Post edited:
11 months ago
Edit Post #294826 Post edited:
11 months ago
Suggested Edit Post #294813 Suggested edit:
force syntax highlight to Java + minor fixes
(more)
helpful 11 months ago
Edit Post #294826 Post edited:
11 months ago
Edit Post #294826 Post edited:
11 months ago
Edit Post #294826 Initial revision 11 months ago
Answer A: Java generics, how to work around type erasure?
I'm afraid there's no straighforward way to do that. Due to type erasure, we don't have enough information to create the array directly. Therefore, this information must be provided somehow. Alternative 1: `Class` object informed in the constructor You could force all instances of `ExampleC...
(more)
11 months ago
Edit Post #293974 Post edited:
over 1 year ago
Comment Post #293974 @#53890 Done: https://meta.codidact.com/posts/293975
(more)
over 1 year ago
Edit Post #293974 Initial revision over 1 year ago
Question Implement a way to sort posts by recent comments, to make it easier to moderate them
Rationale Today I flagged an answer that was clearly spam. Then I decided to check the spammer's profile to see if there were more. And indeed, I found a comment that was also spam. One detail that surprised me is that the comment was made 2 months ago, and nobody noticed. It was made in a ...
(more)
over 1 year ago
Comment Post #293864 Have you considered using `tput` instead? ```bash echo "$var$(tput setab 1)NOTE$(tput sgr0)" ``` Or, to make it clearer (IMO): ```bash BG_RED=$(tput setab 1) RESET=$(tput sgr0) echo "$var${BG_RED}NOTE${RESET}" ```
(more)
over 1 year ago
Edit Post #293660 Post edited:
some formatting improvements
over 1 year ago
Suggested Edit Post #293660 Suggested edit:
some formatting improvements
(more)
helpful over 1 year ago
Edit Post #293663 Post edited:
over 1 year ago
Edit Post #293663 Post edited:
over 1 year ago
Edit Post #293663 Post edited:
over 1 year ago
Comment Post #293657 If you dig into the code, you'll see that `PlainDate.from` calls another method, which calls another, and so on. In the end, it calls `Object.create`, which is a method that creates an instance without using the constructor. According to the [documentation](https://developer.mozilla.org/en-US/doc...
(more)
over 1 year ago
Edit Post #293663 Post edited:
over 1 year ago