- Use strongly typed interfaces and classes to define data models.
- Leverage Angular's dependency injection system for better modularity and testability.
- Organize components, services, and modules using a feature-based folder structure.
- Apply the Reactive Forms approach for form handling when dealing with complex forms.
- Use RxJS operators to manage asynchronous data streams effectively.
- Prefer
async/awaitsyntax for better readability in asynchronous code. - Follow Angular's naming conventions for components, directives, and services.
- Use Angular's built-in
HttpClientfor API communication.
- Use final variables wherever possible. -p
- Favor functional programming approaches when working with Java to leverage its modern capabilities. -p
- Include clear and meaningful comments in your code to improve readability and maintainability.
- Maximize cohesion by encapsulating related behavior and state within the same class.
- Use the service pattern for modular business logic.
- Apply the repository pattern for data persistence.
- Use the builder pattern for classes with more than seven attributes.
- Utilize the DTO pattern (Data Transfer Object) for handling data in request and response layers.
- Opt for Java records whenever they are suitable to simplify data representation.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| mkdir c:\github | |
| winget install --id=Git.Git -e --accept-package-agreements --accept-source-agreements | |
| winget install --id=Microsoft.VisualStudioCode -e | |
| winget install --id=AgileBits.1Password -e | |
| winget install --id=7zip.7zip -e | |
| winget install --id=Twilio.Authy -e | |
| winget install --id=Bethesda.Launcher -e | |
| winget install --id=Microsoft.Bicep -e | |
| winget install --id=Microsoft.bitsmanager -e | |
| winget install --id=BrutalChess.BrutalChess -e |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using namespace System.Management.Automation | |
| using namespace System.Management.Automation.Language | |
| if ($host.Name -eq 'ConsoleHost') | |
| { | |
| Import-Module PSReadLine | |
| } | |
| #Import-Module PSColors | |
| #Import-Module posh-git | |
| Import-Module -Name Terminal-Icons |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [push] | |
| followTags = true | |
| [core] | |
| editor = code --wait | |
| [alias] | |
| c = !git add --all && git commit -m | |
| amend = !git add --all && git commit --amend --no-edit | |
| s = !git status -s | |
| l = !git log --pretty=format:'%C(blue)[%h] %C(red)%d %C(white)%s - %C(cyan)%cn, %C(green)%cr' | |
| lg = !git log --graph --decorate --all --pretty=format:'%C(auto)%h%d %s %C(black)%C(bold)%cr%Creset %C(dim white)- %an%Creset' |
In Hibernate 5+ a change was made that requires an alternative naming strategy otherwise the name attribute on the Column annotation is ignored.
See
spring-projects/spring-boot#6264 (comment) https://stackoverflow.com/a/38875123/378151
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Adicione um novo remote; pode chamá-lo de "upstream": | |
| git remote add upstream https://github.com/usuario/projeto.git | |
| # Obtenha todos os branches deste novo remote, | |
| # como o upstream/master por exemplo: | |
| git fetch upstream |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| git branch -a | |
| git remote prune origin --dry-run | |
| git remote prune origin | |
| git branch -a |