- Apr 2024
-
gitimmersion.com gitimmersion.com
-
it is a really good idea to check the status before doing an add .
maybefore, but check mainly AFTER indexing new files !
Tags
Annotators
URL
-
- Aug 2023
-
github.com github.com
-
I think the problem with after_destroy is that it is triggered before the database commits. This means the change may not yet be seen by other processes querying the database; it also means the change could be rolled back, and never actually commited. Since shrine deletes the attachment in this hook, that would mean it might delete the attachment prematurely, or even delete the attachment when the record never ends up destroyed in the database at all (in case of rollback), which would be bad. For shrine's logic to work as expected here, it really does need to be triggered only after the DB commit in which the model destroy is committed.
-
- Nov 2022
-
raphael-leger.medium.com raphael-leger.medium.com
-
It is handy to manually generate the diagram from times to times using the previously created command: npm run db:diagram:generate. Though, getting the diagram to update itself on its own automatically without a developer interaction would ensure that it the diagram is never obsolete. There are several ways of doing this.You could use a pre-commit git hook or even better simply configure your CI/CD pipeline(s) to run the npm script whenever something gets merged into the main branch 🙂
-
-
gitlab.com gitlab.com
-
Good commit hygiene is considered a best practice. GitLab should encourage and enable these kinds of best practices. This feature currently creates a problem and requires workarounds that remove information, or significant manual work.
-
- Feb 2022
-
blog.codinghorror.com blog.codinghorror.com
-
Can't annotate the comments for some reason, so I am copying the below:
The Jerk talked about getting hit by a bus, etc. I said who cares about code if a guy’s in hospital or there’s a war, we’ve got better things to worry about than a few days of lost code.
I feel the pain. I do. I understand. I get scared. I want to check in early and often, but source control isn’t your personal unlimited undo. When I look at history I don’t want to see rubbish. I want to see snapshots of working code.
Don’t hold back, and don’t go dark, but use your f’ing head. It’s far better to locally integrate multiple times per day and merge back after a few days because guess what, no surprises.
-
- Jul 2021
-
mitelman.engineering mitelman.engineering
-
The goal of this tutorial is to describe Python development ecosystem.
tl;dr:
INSTALLATION:
- Install Python through pyenv (don't use python.org)
- Install dependencies with Poetry (miniconda3 is also fine for some cases)
TESTING:
- Write tests with pytest (default testing framework for Poetry)
- Check test coverage with pytest-cov plugin
- Use pre-commit for automatic checks before git commiting (for example, for automatic code refactoring)
REFACTORING:
- Lint your code with flake8 to easily find bugs (it is not as strict as pylint)
- Format your code with Black so that it looks the same in every project (is consistent)
- Sort imports with isort (so that they are nicely organised: standard library, third party, local)
-
- Jun 2021
-
blog.viktoradam.net blog.viktoradam.net
-
We also get a hook to alter commit messages so that they include a common suffix. We can then use this to set up a server-side hook that refuses changes that don’t have this in their messages.
-
- Mar 2021
-
gitlab.gnome.org gitlab.gnome.org
-
The commit message should always have some explanation, see https://wiki.gnome.org/Git/CommitMessages.
-
- Dec 2020
-
hacks.mozilla.org hacks.mozilla.org
-
Better community building: At the moment, MDN content edits are published instantly, and then reverted if they are not suitable. This is really bad for community relations. With a PR model, we can review edits and provide feedback, actually having conversations with contributors, building relationships with them, and helping them learn.
Tags
- relationship (people)
- community (for a project or product)
- community building
- opportunity to improve/fix something
- reverting a previous decision/change/commit
- online community
- pull request workflow
- open source community
- wiki model
- opportunity
- helping others to learn
- reverting: creates negative experience
- receiving feedback
- helping others
- encouraging feedback
- community relations
Annotators
URL
-
- Nov 2020
-
github.com github.com
-
There are a few intentional behavioral differences between Dart Sass and Ruby Sass. These are generally places where Ruby Sass has an undesired behavior, and it's substantially easier to implement the correct behavior than it would be to implement compatible behavior. These should all have tracking bugs against Ruby Sass to update the reference behavior.
Tags
- learn from your mistakes
- don't let previous decisions/work constrain you
- get back on course
- intentional/well-considered decisions
- reference implementation
- reverting a previous decision/change/commit
- intentionally doing it differently / _not_ emulating/copying the way someone else did it
- intentional
- reversible decisions
Annotators
URL
-
- Oct 2020
-
-
just saying that if you're going to try to go with a markup approach, at least go all the way, instead of the frankenstein that is JSX
-
- Sep 2020
-
www.changelogs.md www.changelogs.md
-
Move svelte into dependencies, as it was accidentally stuck in peerDependencies
"accidentally stuck in": well, not really accidentally; it's in the change log so I assume it was intentional
-
- Jul 2020
-
amp.dev amp.dev
-
If you can, use AMP like any other JavaScript library to build your site and forget about the canonical linking. Using AMP to build a whole website dramatically reduces your maintenance burden.
-
- Jun 2020
-
ljvmiranda921.github.io ljvmiranda921.github.io
-
Automate Python workflow using pre-commits: black and flake8
Super helpful how-to-guide for git pre-commit hooks.
-
- May 2020
-
gitlab.com gitlab.com
-
I encourage people to write good commit messages, with a good description that explains what it does.
-
Personally I enjoy writing commit messages
-
It seems weird to me that we are trying to enforce commit messages when they are not really visible or used in the GitLab workflow at all. This is what you see most of the time when interacting with the commit list. I've taken time to compose a nice descriptive body and it is hidden by default:
-
which might or might not be useful depending on what is the content of the commit.
-
One way of encouraging users to create good commit message would be to have a better integration with the content of commit message in GitLab itself,
-
This also ties in the "Single Source Of Truth", where even if I craft descriptive commit messages I will probably have to describe what I did in the MR comments anyways, so that feels like duplicate work.
-
I never understood why we enforce The commit body must not contain more than 72 characters per line.
-
It is considerably harder to write proper sentences when you have to insert an enter every now and then just to follow the rule.
-
These two are in my opinion the most problematic — the basically go against each other. Typically, I try to work in increments over a feature and commit when I reach whatever techinical milestone I want to "checkpoint" at. It can also be out of the need to expose some idea or architecture and push it.
-
With single-commit MRs I often can copy the commit message directly into the MR description, which is convenient.
Tags
- description
- useful
- commits
- I have this problem
- duplication of work/effort
- commits: when/how often to commit
- hard work unappreciated / wasted / done for nothing
- this could be improved
- arbitrary limitations
- commit messages
- duplication
- GitLab
- balance
- arbitrary rules/policies
- annoying restrictions
- it depends
- iterative process
- line length
- single-commit merge request
- fun
- good commit messages
Annotators
URL
-
- Apr 2020
-
-
While these particular indictments refer to credit card data, the laws do also reference authentication features. Two of the key points here are knowingly and with intent to defraud.
-
I could have released this data anonymously like everyone else does but why should I have to? I clearly have no criminal intent here. It is beyond all reason that any researcher, student, or journalist have to be afraid of law enforcement agencies that are supposed to be protecting us instead of trying to find ways to use the laws against us.
-
For now the laws are on my side because there has to be intent to commit or facilitate a crime
Tags
- journalist rights
- fear of prosecution/legal harassment
- intent to commit/facilitate a crime
- laws/law enforcement agencies are supposed to be protecting us
- a government for the people?
- don't turn innocent people into criminals (through bad laws)
- researcher rights
- absurd
- good intentions
Annotators
URL
-
- Nov 2019
-
about.gitlab.com about.gitlab.com
-
You should not only say what you did, but also why you did it. It’s even more useful if you explain why you did this over any other options.
-