Weekend project: A place to post crappy code. HatePaste
1–10 of 33 posts
Re: Weekend project: A place to post crappy code. HatePaste
#2I love social coding, because there is so much hate.
Re: Weekend project: A place to post crappy code. HatePaste
#3Very cool indeed...
Re: Weekend project: A place to post crappy code. HatePaste
#4love it. small typo: "Oh no! there is nothign here!" on the not found page.
Although, given the nature of the site, you might as well leave it as is.
Re: Weekend project: A place to post crappy code. HatePaste
#5Given the events of this weekend, I couldn't help myself...
Re: Weekend project: A place to post crappy code. HatePaste
#6I actually love this. What would be a great feature is the ability to "add to clipboard". I found myself wanting to share one, and it was a bit of a bitch to copy and paste it (the structure on the page just doesnt lend well to highlight and copy)
Re: Weekend project: A place to post crappy code. HatePaste
#7[deleted]
Re: Weekend project: A place to post crappy code. HatePaste
#8I gave it a whirl. Entered some ruby and clicked post with no title entered. Nothing happened. Just back to /post...
Re: Weekend project: A place to post crappy code. HatePaste
#9please hate it http://hatepaste.com/paste/155205ac
Re: Weekend project: A place to post crappy code. HatePaste
#10It's interesting that this is one of the most hated (http://hatepaste.com/paste/f5da3584):
if (someBoolean == true) {
doSomething();
}
I got into the habit of doing this since it's immediately obvious that the value you're comparing is expected to be a boolean and not something like an integer, which could cause subtle bugs later on if what you thought was a boolean gets negated. More commonly, it's of the form: if (someValue == false) ...
rather than: if (!someValue) ...
to distinguish this from: if (someValue == 0) ...
It only takes an extra fraction of a second of typing and increases clarity for the next developer, or for you six months later. Anyone else do this too?