File size: 732 Bytes
c8a63e9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# Code Output Guidelines

## Code Style

- Write clean, efficient code
- Use proper indentation
- Add necessary imports at the top
- Use meaningful variable names

## Language-Specific Conventions

### Python
```python
def function_name(params):
    """Docstring if needed."""
    # Code here
    return result
```

### JavaScript/TypeScript
```javascript
const functionName = (params) => {
  // Code here
  return result;
};
```

### React
```jsx
function ComponentName({ props }) {
  return (
    <JSX />
  );
}
```

## Error Handling

- Handle exceptions appropriately
- Usetry/catch for risky operations
- Validate inputs

## Security

- Sanitize user inputs
- Avoideval() when possible
- Use parameterized queries for databases