Oh god, yeh that's ugly.
boarderstu
Posts
-
From the Museum of Ugly Code -
From the Museum of Ugly CodeFair point! In this case, it was just poor
-
From the Museum of Ugly CodeScoped vars make so much sense! They stop shitty devs just using those variables and other functions polluting them
-
From the Museum of Ugly CodeThat's nothing. I had this once in JS ` if(functionName) //that's a reference, not a call! { //Do something } else { //Some other equally poor code }` It came up at pull request that as it's a function reference, it will always be true, and thus got rejected. Anyway, the bloke went mental, telling me I couldn't reject it as I hadn't run the code to see if it worked.... He started randomly rejecting my pull requests after that.
-
Code First, do you like it?My initial question is why? What are you going to gain? Etc..
-
spam away!Good call on your stern response! This is subject that should definitely not be made into a joke...(!)
-
What is the most inappropriate thing you've ever said?I asked a guy I used to work, who has alopecia, if he lazered his head/eyebrows - not realising why they weren't there.. a blank stare back - but due to the lack of eyebrows - I could quite judge his reaction ;) (Just so I don't look a complete James Blunt, his baldness was the topic of conversation!)
-
Another "Gem" I did...Do I need to re-post it? Or is there a way to "Move" it...
-
Another "Gem" I did...Whilst knocking out a feature that I'd come back to... I did this bit of code:
public bool IsSuperUserEnabled()
{
return true;
}Whilst investigating a minor issue I had whilst testing things, I stumbled back upon it... never again!
-
Build ServersI've used CC.NET in the past at another company (using SourceGear), it appeared to work quite well, and the web dashboard worked well! TFS does bring with it Gated Check-Ins (Can be a god sent!)
-
Build ServersWe're using TFS - agreed it's more of an overall thing, but it works quite well... well it does until you want separate repos - then you need separate servers :/
-
Design PatternsIsn't DI/IoC just another way of loose coupling?
-
Web Page Colour Schemes...........oh dearSugar - I didn't see this reply this far down - and I've also just posted this link! :/
-
Web Page Colour Schemes...........oh dear--Edit I've just found the post a few above this showing of this gem..-- I can actually go one better than that.. http://www.fabricland.co.uk/[^] Because every page is different, they've account to hurt even colour (spelt correctly) blind people! P.s note the use of Comic Sans!
-
Web design: Text size vs. zoomI thought Zoom was an IE thing?! Or is it just used to fix things in IE (HasLayout for CSS!)
-
The continuing saga of bad code [modified]I disagree - I've got that crap in C# code..
-
The continuing saga of bad code [modified]Better News Corp, than News International ;)
-
Smart individualsLove it!
-
Worst excuse for not using source controlI gave up on suggesting test instances and live instances....
-
I love finding old comments....My latest...
/// <summary>
/// A collection of classes for generating Hashes
/// </summary>
public class Hash
{
/// <summary>
/// Returns a MD5 hash - DO NOT use this for encryption
/// </summary>
/// <param name="str"></param>
/// <returns></returns>
/////Using this for encryption would render you a complete tool. public string GenerateMD5Hash(string str) { } }