Bad Developer Advice
@DeveloperAdvice
Your daily dose of tips, tricks, and suggestions for what !to do when programming.
You might like
Half of the fun of programming is letting the people reading your program guess what everything does.
Querying inside a loop may put more strain on your database, but the same is true of working out. You’re just helping it get stronger.
When in doubt, wrap the whole thing in a try block.
When estimating tasks, take your best guess and double it. That way, you can spend half that time slacking off and still get everything done
If you’re an apple fanboy, enable MAC filtering on your router. That way, no Windows machines will be able to connect.
If a function works even though you think it shouldn’t, it’s best not to ask questions.
Who is this JaSON guy, and why is everyone always parsing his data?
You shouldn’t need to assert in your test classes. If it makes it through all the code, it should be fine.
Documentation is not cool. You’re a programmer not J.R.R. Tolkien.
There is no reason you can’t make your site compatible with every version of IE.
If you’re manually expanding array sizes, just increase by one when you run out of room. Chances are you won’t need THAT much more space.
Object-oriented is not good-programming oriented.
Functions are lame. If you can’t consolidate all of your code into one, you’re doing it wrong.
Never delete code; comment it out. A program should contain every version of itself at all times.
Bounds checking is a waste of time. If the user wants to overflow the stack, let him overflow the stack!
Any if/else tree should be able to be (and should be) replaced by nested ternary statements.
Save your code only when you’re done writing the program. Saving throughout the day is a waste of time.
When pair programming, always try to be right. When driving, don't take suggestions. When observing, have a hissy fit until you get your way
Dependencies are great. Why wouldn’t you want super solid and connected code?
United States Trends
- 1. INCOGNITO 4,234 posts
- 2. Cynthia 83.6K posts
- 3. #WorldKindnessDay 12.5K posts
- 4. #NXXT_EarningReport N/A
- 5. Massie 85.4K posts
- 6. Larry Brooks 2,532 posts
- 7. Katie Couric 2,880 posts
- 8. GRABFOOD LOVES LINGORM 934K posts
- 9. Encyclopedia Galactica 3,520 posts
- 10. #thursdayvibes 3,768 posts
- 11. #LoveDesignEP7 92.4K posts
- 12. Bonhoeffer 1,922 posts
- 13. RIN AOKBAB BEGIN AGAIN 91.6K posts
- 14. Good Thursday 38.2K posts
- 15. Tommy James N/A
- 16. Michael Burry 11.5K posts
- 17. $NXXT 1,268 posts
- 18. #SwiftDay N/A
- 19. Bongino 7,749 posts
- 20. RIP Brooksie 1,417 posts
You might like
Something went wrong.
Something went wrong.