Skipping the getter/setter dance for POJOs and just using public fields.
Ask HN: What horrible things do you do in your own code when no one is watching?
11–20 of 40 posts
Re: Ask HN: What horrible things do you do in your own code when no one is watching?
#12Profanity. It can look like a key party got out of hand in there. Use g for a string variable at least once.
Re: Ask HN: What horrible things do you do in your own code when no one is watching?
#13Premature optimization. Cause it's fun.
I have a severe case of this. So few personal projects even get started because I get caught up in scalability and what not.
Re: Ask HN: What horrible things do you do in your own code when no one is watching?
#14Minimal comments and documentation. Why should I comment or document if no one else will ever see it maintain it?
Re: Ask HN: What horrible things do you do in your own code when no one is watching?
#15Debugging by writing variables and intermediate steps to the console.
Re: Ask HN: What horrible things do you do in your own code when no one is watching?
#16I'll write tests when the product makes money.
Re: Ask HN: What horrible things do you do in your own code when no one is watching?
#17Minimal comments and documentation. Why should I comment or document if no one else will ever see it maintain it?
I'm guilty of the exact opposite - sometimes I comment too much, to the point that the code becomes LESS readable...
or a huge block of comments at the head of my main file, with all the TODOs...
Also, not using version control, and only switching to it when the project is already a considerable size...
Re: Ask HN: What horrible things do you do in your own code when no one is watching?
#18[deleted]
Re: Ask HN: What horrible things do you do in your own code when no one is watching?
#19[deleted]
Re: Ask HN: What horrible things do you do in your own code when no one is watching?
#20I'll write tests when the product makes money.
At least write test on payment stuff, I learned the hard way by screwing up payment system when user emailed me why he can't go through payment.