Comment by Schwern on Merging my branch into the test branch and then merging...
Did you mean to say you git pull origin test twice?
View ArticleComment by Schwern on Merging my branch into the test branch and then merging...
Gir Flow is great if you need multiple simultanous releases, but for simple projects it's too complex. I'd start with the feature branch workflow, then upgrade to Git Flow if needed. They share concepts.
View ArticleComment by Schwern on Is this a goroutine Leak using Timer?
@pmoubed If it's just one routine, as in your question, it's not a leak any more than anything else allocated in main. If you're creating lots of them, then it's probably a leak. Like Volker said, "it...
View ArticleComment by Schwern on Merging my branch into the test branch and then merging...
@AakashYadav Yes, exactly. Branches are super cheap in Git. Your interns should be capable of creating their own branches. git branch some-name. I like to use the pattern git branch issue/123 where 123...
View ArticleComment by Schwern on Keep branch structure during git rebase
You can take the opportunity to also update featureB. It's simpler. git rebase main featureA; git rebase featureA featureB.
View ArticleComment by Schwern on Keep branch structure during git rebase
If you take the opportunity to also update featureB, make its parent H', it's simpler.
View ArticleAnswer by Schwern for Any way to resolve type mismatches between...
This error is new since moving to ESLint v9...A point change from v8 to v9 indicates breaking changes, so it's expected your v8 code might not work. Does anything in the v9 migration guide help?This...
View ArticleHow can I repair a git repository with a missing object?
My development repository at some point lost an object.$ git fsckfatal: failed to read object 2dddc84156fa30e4614a7ea5a1895885011b8db8: Invalid argument$ git cat-file -t...
View ArticleAnswer by Schwern for How to efficiently handle large JSON files in Python...
Rather than trying to decode the whole document then work with the data, you need to use a streaming decoder. This looks at the JSON as a "stream" of data and you work on each piece of the data at a...
View ArticleComment by Schwern on Git Rebase Feature Branch to Main - Conflict
git log --decorate --graph --oneline --all will show the true history of your repository and if there's any important changes in main. Clearly there are changes in main.
View ArticleComment by Schwern on How can I query a SQL Server table with large amounts...
Either there's something wrong with your SQL Server, or your connection to the server is extremely slow and it's taking a long time to fetch the data, or something is locking the table. Probably that...
View ArticleComment by Schwern on Checkout only one file from one remote revision...
Is it ok for a Github specific solution?
View ArticleComment by Schwern on Is importing a third-party module pure?
"Reading in from a file is not pure because of interaction with the outside environment" This is not the whole story. I think you're looking at this from the POV of a dynamic language where the runtime...
View ArticleComment by Schwern on Is there any Git system that allows basic auth?
To be sure we understand, you want to be able to download a private Git repo (ie. what is normally done with git clone) without git? That doesn't make much sense. Or do you mean you want to be able to...
View ArticleComment by Schwern on INSTR function SQL how to split a string into 4...
@hle00001 You'd need to write and run a Python program. No IDE is required to do that, or anything really, but it helps. It sounds like you've never programmed before, so this might not be the solution...
View ArticleAnswer by Schwern for Git Rebase Feature Branch to Main - Conflict
Q: Are the two code snippets above diff's between two versions of main ?No. The conflict indicates both main and 23-fft-channelizer changed the same piece of code. From the conflict we see that...
View ArticleAnswer by Schwern for Struct field with multiple const types
You can do this with a union interface and generics.// Declare a type which is both cats and dogstype pettype interface { cattype | dogtype}// Declare AnimalCount using the union type.type...
View ArticleAnswer by Schwern for Issues with vs code - beginner
You may have only ever used programs like Jupyter Notebook or Python web editors where you just type code in individual windows and it execute it and returns the last expression. This is fine for small...
View ArticleAnswer by Schwern for Integration Test: Should test order matter?
Can get_user_api depend on create_user_api?Yes, this is an integration test. It tests the integration of units.Even in a unit test, a "unit" is not restricted to one method nor even one class but one...
View ArticleComment by Schwern on What's the standard Go approach to mapping values from...
@PiyushJain Oh good, thanks for the extra info! I'd still recommend considering using GORM to query Clickhouse. The focus of the question is on how best to go from "User wants columns x, y, and z" to a...
View Article