0% found this document useful (0 votes)
7 views2 pages

Random Notes

Uploaded by

Keshav Kumar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views2 pages

Random Notes

Uploaded by

Keshav Kumar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Random Notes

- Always initialize variables before use.

- Don't forget to handle exceptions.

- Use list comprehensions for cleaner code in Python.

- Keep functions short and focused on a single task.

- Regularly commit your code with meaningful messages.

- Test your code often and automate tests if possible.

- Comment complex logic but avoid obvious comments.

- Prefer immutable data structures when possible.

Page 1
Random Notes

- Algorithms matter, but data structures are often the key.

- Understand the trade-offs between different sorting algorithms.

- Use version control systems like Git effectively.

- Learn to debug efficiently with proper tools.

- Optimize only when necessary; premature optimization is harmful.

- Practice coding problems regularly to stay sharp.

- Read other people's code to learn different styles and tricks.

- Write documentation as if the reader knows nothing about your code.

Page 2

You might also like