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 Michaelâ€
Type | On... | Excerpt | Status | Date |
---|---|---|---|---|
Comment | Post #292140 |
Haha. And I forgot that if you omit the branch name, it just assumes you mean your `HEAD`. Good reminder! (more) |
— | 2 days ago |
Comment | Post #292140 |
I would 100% use the syntax from the top of this answer, but it *is* possible to generalize it.
```sh
git merge branch_name@{u}
``` (more) |
— | 4 days ago |
Edit | Post #292979 |
Post edited: Markdown formatting |
— | about 1 month ago |
Suggested Edit | Post #292979 |
Suggested edit: Markdown formatting (more) |
helpful | about 1 month ago |
Edit | Post #292900 |
Post edited: JetBrains has different tools than I remember |
— | about 2 months ago |
Edit | Post #292900 | Initial revision | — | about 2 months ago |
Answer | — |
A: C#: Performance hit from using calculated property instead of get-only property with initializer? You're right about the recalculation, as you can see from some easy experimentation by rigging two (dynamic) properties and logging what each one gives you. ```csharp public long TimeStamp1 { get; } = DateTime.Now.Ticks; public long TimeStamp2 => DateTime.Now.Ticks; Console.Log(Foo.TimeStamp1... (more) |
— | about 2 months ago |
Comment | Post #291131 |
I ran across [this blog post](https://shazow.net/posts/how-to-maintain-a-successful-open-source-project/) from the maintainer of Python's `urllib3`. I may summarize it into an answer at some point, but you can read the original post in the meantime. (more) |
— | 2 months ago |
Comment | Post #292814 |
As of this writing, Spacy doesn't have [a pip package](https://pypi.org/project/spacy/) for Python 3.13. (more) |
— | 2 months ago |
Comment | Post #292707 |
My personal suspicion is that ReSharper thinks most people _meant_ to have dynamic resolution of the property getter. ReSharper would then expect people to be _surprised_ to discover that the initial value is never changed. (I can submit this as an answer if that's useful.) (more) |
— | 3 months ago |
Comment | Post #292707 |
Try it with dynamic values and see what happens. Then you can answer your own question.
```csharp
public long TimeStamp1 { get; } = DateTime.Now.Ticks;
public long TimeStamp2 => DateTime.Now.Ticks;
Console.Log(Foo.TimeStamp1);
Console.Log(Foo.TimeStamp2);
Thread.Sleep(3000);
Console.Log(Fo... (more) |
— | 3 months ago |
Edit | Post #292619 |
Post edited: Markdown formatting. Minor grammar help. |
— | 3 months ago |
Suggested Edit | Post #292619 |
Suggested edit: Markdown formatting. Minor grammar help. (more) |
helpful | 3 months ago |
Edit | Post #291977 |
Post edited: Fix broken image |
— | 3 months ago |
Edit | Post #291211 |
Post edited: Quote the doc directly, for clarity |
— | 3 months ago |
Edit | Post #292472 |
Post edited: Clarifications. |
— | 4 months ago |
Suggested Edit | Post #292472 |
Suggested edit: Clarifications. (more) |
helpful | 4 months ago |
Edit | Post #292393 | Initial revision | — | 4 months ago |
Answer | — |
A: Turn all changes after latest origin/main into a branch First you want to make your new branch at `HEAD` (current `main`). Then you want to point `main` back to `origin/main`. ```sh Create new branch git branch newbranchname Point main back at origin git reset --hard origin/main ``` (more) |
— | 4 months ago |
Edit | Post #292163 |
Post edited: Inline links. |
— | 5 months ago |
Edit | Post #292170 |
Post edited: Link more configuration. Add some more explainer in a footnote. |
— | 5 months ago |
Comment | Post #292170 |
The `ini` prettyprint language should have a `\b` marker in whatever they're doing at the end of `on` so `only` doesn't match. (more) |
— | 5 months ago |
Edit | Post #292170 | Initial revision | — | 5 months ago |
Answer | — |
A: After git fetch, how to fast forward my branch? The answer by hkotsubo is correct. But just in case you're being very specific about fast-forwarding, it's worth stressing that you can use `--ff-only` as an option on the merge to abort if it requires a merge commit. ```sh git merge --ff-only origin/branchname ``` Where is this useful? I hav... (more) |
— | 5 months ago |
Edit | Post #292163 | Initial revision | — | 5 months ago |
Answer | — |
A: How to establish a relationship between HTML elements (tags)? (i.e., how can one element refer to another one) I'm not sure how much this helps or inspires you, but there's an XML schema for the US Code and for bills and amendments to change it. See xml.house.gov and the GitHub repository for United States Legislative Markup. They may already have XSLT transformations to HTML for current-version and/or diff m... (more) |
— | 5 months ago |
Comment | Post #292135 |
> Git is specifically a versioning system for code repositories, so it 100% belongs on Software Development.
Agreed
> Git questions should all be banned for every community other than this one,
Meh. I think that's a little too far, but if there's broad consensus I'll take that into considera... (more) |
— | 5 months ago |
Suggested Edit | Post #292082 |
Suggested edit: Grammar (more) |
helpful | 5 months ago |
Comment | Post #291978 |
Apparently, there is [already a project](https://github.com/spyder-ide/pysyntect) for Syntect bindings in Python. (more) |
— | 5 months ago |
Edit | Post #291970 |
Post edited: Nest the workflow summary |
— | 5 months ago |
Edit | Post #291970 |
Post edited: Downgrade headings to reserve h1 for system use |
— | 5 months ago |
Edit | Post #290587 |
Post edited: Downgrade headings to reserve h1 for system use |
— | 5 months ago |
Edit | Post #290490 |
Post edited: Downgrade headings to reserve h1 for system use. |
— | 5 months ago |
Comment | Post #291970 |
I'll give you that squashing is optional, but it's important if you make use of ReReRe, so that the pre-image and merge outcome are bound together. Otherwise, you have to do all those fixups again. (more) |
— | 5 months ago |
Comment | Post #291978 |
That I do not know. You should be able to make Python bindings for a Rust project with [`py03`](https://github.com/PyO3/pyo3), but I haven't done this, and I don't know whether streaming would work there... (more) |
— | 5 months ago |
Edit | Post #291970 |
Post edited: Rebase docs links |
— | 5 months ago |
Edit | Post #291970 |
Post edited: Rectify commit SHA. Mention `squash` alternative. |
— | 5 months ago |
Edit | Post #291970 |
Post edited: --rebase-merges and summary section |
— | 5 months ago |
Edit | Post #291970 |
Post edited: Link sources. |
— | 5 months ago |
Comment | Post #291977 |
I don't actually use `bat` very much, but I use [`delta`](https://github.com/dandavison/delta) for syntax-highlighting diff contents in the terminal pretty much every day. They use the same syntax highlighting library. (more) |
— | 6 months ago |
Edit | Post #291978 | Initial revision | — | 6 months ago |
Answer | — |
A: Can you have syntax highlighting for streaming text in Python? Does `bat` work for this, as well as for your other question? I see you have tagged your question as Python, but I'm not sure I understand how it's relevant. Sources: this issue comment and also that one. (more) |
— | 6 months ago |
Edit | Post #291977 | Initial revision | — | 6 months ago |
Answer | — |
A: How to format Markdown in terminal This is not exactly what you're asking for, but you could use `bat`, which has source code syntax highlighting and just use the raw Markdown. ![Screenshot][] (more) |
— | 6 months ago |
Edit | Post #291970 |
Post edited: Sample interactive rebase |
— | 6 months ago |
Comment | Post #291972 |
> That, and `--interactive` is very nice on the rare occasions that justify it for me.
I mostly use a local GUI for that now, but I did a lot of `rebase -i HEAD^^^` stuff in the past.
> I really wish all these GitHubs would add an interactive rebase UI for the PRs, it would be so useful.
The... (more) |
— | 6 months ago |
Edit | Post #291970 |
Post edited: CLI cleanup |
— | 6 months ago |
Comment | Post #291972 |
The three-argument `git rebase --onto` changed my life. I still have to look up how to do it every time, but moving an accidental _second_ feature branch back onto `main` has been transformational. (more) |
— | 6 months ago |
Edit | Post #291970 |
Post edited: Expand on interactive rebase. |
— | 6 months ago |
Edit | Post #291970 |
Post edited: Add commands, as requested. |
— | 6 months ago |