CREATE TABLE orders (
id SERIAL PRIMARY KEY,
customer_id INTEGER REFERENCES customers(id)
);
Git conflicts occur when multiple developers make changes to the same parts of a file, and Git cannot automatically determine which changes to keep. This guide will help you understand and resolve common conflict scenarios in your Python/FastAPI backend and Vite frontend projects.
- Two or more developers modify the same line(s) in a file
This is a document which tries to collect common Pitfalls that developers fall into when learning React for the first time.
This is usually caused by misunderstanding the component lifecycle. Components in React render synchronously, which means that the first time a component renders it will often have no data, or empty data.
Example:
When setting up Language Server Protocol on Neovim, what plugins do what can be pretty confusing. So this table is a list of the most common plugins people use and what they are and why they are.
Plugin | Role | Why? |
---|---|---|
lspconfig | Configuring the language servers | You can use neovim's built in vim.lsp.start() function, but often we don't know all the command line arguments and options needed to pass to that function, so lspconfig is really just a database of a bunch of configurations for lsps |
mason | Installing language servers | Mason will automatically download and install the actual language server programs. This is optional because if you install an LSP server in your $PATH manually you don't necessarily need this |
mason-lspconfig | Automatically setting up lsps when you install them | This glues lspconfig and mason together, So when an lsp is configured the setup function for it will be automatically called, not necessary if you want to manage your LSPs manually |
This is my curated list of the neovim plugins I can't live without
Note: if you are just starting out, check out kickstart.nvim
- Lazy.nvim - The plugin manager I use. Not to be confused with LazyVim the neovim distribution.
- lspconfig - The must have plugin for configuring LSP support in neovim.
- nvim-cmp - Completion engine for neovim. Without this you won't get autocomplete for anything
- oil.nvim - A magical plugin which lets you browse and edit your files and folders like they are in an editor buffer