daily-email: add 2023-07-27
Stick to conventions
This commit is contained in:
		
							parent
							
								
									1beaf67fc8
								
							
						
					
					
						commit
						3bcc6a76dc
					
				
					 1 changed files with 23 additions and 0 deletions
				
			
		
							
								
								
									
										23
									
								
								src/content/daily-email/2023-07-27.md
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										23
									
								
								src/content/daily-email/2023-07-27.md
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,23 @@ | |||
| --- | ||||
| title: > | ||||
|   Stick to conventions | ||||
| pubDate: 2023-07-27 | ||||
| permalink: > | ||||
|   archive/2023/07/27/stick-to-conventions | ||||
| tags: | ||||
|   - software-development | ||||
| --- | ||||
| 
 | ||||
| If you're performing a task as there's already a convention on how to do it, stick to it. | ||||
| 
 | ||||
| If the codebase follows a particular coding standard, use it. | ||||
| 
 | ||||
| If a project uses repository classes instead of interacting directly with a database, do that with your code too. | ||||
| 
 | ||||
| If you use a framework with a service container and uses dependency injection, do that instead of manually creating classes. | ||||
| 
 | ||||
| If you need additional functionality for a Drupal project and there's an established and well-known module that adds it, use it. Unless it doesn't meet your needs, in which case, document why that's the case and why you used a different module or wrote a custom implementation. | ||||
| 
 | ||||
| If you need to create a content listing page, use the Views module, which is a standard approach. If not, document why and then explore other solutions. | ||||
| 
 | ||||
| If you don't follow a convention, it will be harder for you or others to work on it in the future. | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue