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 |
---|---|---|---|---|
Edit | Post #292979 |
Post edited: Markdown formatting |
— | 6 days ago |
Suggested Edit | Post #292979 |
Suggested edit: Markdown formatting (more) |
helpful | 6 days ago |
Edit | Post #292900 |
Post edited: JetBrains has different tools than I remember |
— | 24 days ago |
Edit | Post #292900 | Initial revision | — | 24 days 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) |
— | 24 days 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) |
— | about 1 month 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) |
— | about 1 month 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) |
— | about 2 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) |
— | about 2 months ago |
Edit | Post #292619 |
Post edited: Markdown formatting. Minor grammar help. |
— | 2 months ago |
Suggested Edit | Post #292619 |
Suggested edit: Markdown formatting. Minor grammar help. (more) |
helpful | 2 months ago |
Edit | Post #291977 |
Post edited: Fix broken image |
— | 2 months ago |
Edit | Post #291211 |
Post edited: Quote the doc directly, for clarity |
— | 2 months ago |
Edit | Post #292472 |
Post edited: Clarifications. |
— | 3 months ago |
Suggested Edit | Post #292472 |
Suggested edit: Clarifications. (more) |
helpful | 3 months ago |
Edit | Post #292393 | Initial revision | — | 3 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) |
— | 3 months ago |
Edit | Post #292163 |
Post edited: Inline links. |
— | 4 months ago |
Edit | Post #292170 |
Post edited: Link more configuration. Add some more explainer in a footnote. |
— | 4 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) |
— | 4 months ago |
Edit | Post #292170 | Initial revision | — | 4 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) |
— | 4 months ago |
Edit | Post #292163 | Initial revision | — | 4 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) |
— | 4 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) |
— | 4 months ago |
Suggested Edit | Post #292082 |
Suggested edit: Grammar (more) |
helpful | 4 months ago |
Comment | Post #291978 |
Apparently, there is [already a project](https://github.com/spyder-ide/pysyntect) for Syntect bindings in Python. (more) |
— | 4 months ago |
Edit | Post #291970 |
Post edited: Nest the workflow summary |
— | 4 months ago |
Edit | Post #291970 |
Post edited: Downgrade headings to reserve h1 for system use |
— | 4 months ago |
Edit | Post #290587 |
Post edited: Downgrade headings to reserve h1 for system use |
— | 4 months ago |
Edit | Post #290490 |
Post edited: Downgrade headings to reserve h1 for system use. |
— | 4 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) |
— | 4 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) |
— | 4 months ago |
Edit | Post #291970 |
Post edited: Rebase docs links |
— | 4 months ago |
Edit | Post #291970 |
Post edited: Rectify commit SHA. Mention `squash` alternative. |
— | 4 months ago |
Edit | Post #291970 |
Post edited: --rebase-merges and summary section |
— | 4 months ago |
Edit | Post #291970 |
Post edited: Link sources. |
— | 4 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) |
— | 4 months ago |
Edit | Post #291978 | Initial revision | — | 4 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) |
— | 4 months ago |
Edit | Post #291977 | Initial revision | — | 4 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) |
— | 4 months ago |
Edit | Post #291970 |
Post edited: Sample interactive rebase |
— | 4 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) |
— | 4 months ago |
Edit | Post #291970 |
Post edited: CLI cleanup |
— | 4 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) |
— | 4 months ago |
Edit | Post #291970 |
Post edited: Expand on interactive rebase. |
— | 5 months ago |
Edit | Post #291970 |
Post edited: Add commands, as requested. |
— | 5 months ago |
Edit | Post #291970 |
Post edited: |
— | 5 months ago |
Edit | Post #291970 |
Post edited: Fix non-word-breaking "/" |
— | 5 months ago |