Refreshing the Stack Overflow home page is giving me an alert('false');
.
6 Answers
This one was my fault.
UPDATE: Our 5 Why Assessment of the situation
Problem: there is an alert on every page of Stack Overflow
- Why? Because Matt deployed a version of the Careers ad code with a debugging line in it
- Why? Because he forgot to remove it before pushing his change
- Why? Because he did not eat a nutritious breakfast, which studies have proven improves school performance
- Why? Because he moved recently and was preoccupied worrying about his upcoming commute
- Why? Because he got a great deal on an apartment
- (bonus!) Why? http://projects.nytimes.com/crime/homicides/map (see: Bedford Stuyvesant)
Beatings will be administered after lunch.
Matt got a badge!
-
-
16
-
4Aww. I wanted to administer my beating before lunch. Commented Dec 9, 2010 at 16:34
-
3
-
40Honestly, it's irresponsible to deploy code that does not check for ninjas.– Matt Sherman StaffCommented Dec 9, 2010 at 16:35
-
4Beatings for everybody!!! I want to see the SO office smack down at lunch. How much are tickets?– Dillie-OCommented Dec 9, 2010 at 16:48
-
-
4@Dillie-O @thephpdeveloper I updated the post to include a picture of me with my beating gloves on Commented Dec 9, 2010 at 17:00
-
@David Fullerton Yeah! Looks like a good old fashioned street fight!– Dillie-OCommented Dec 9, 2010 at 19:01
-
2Wouldn't that assessment make the correct solution be "reduce crime in New York so there are no more great deals on apartments"? Commented Dec 9, 2010 at 19:42
-
2At first I was going to yell at SO for playing the blame game, but good to be transparent, Matt (it's ok if it's you confessing, but the team confessing for a dev is always crappy). /n We've all been there, I speak on behalf of the community when I say we forgive you. Commented Dec 9, 2010 at 20:16
-
5
-
1That is a bronze badge - and rightly so, after all it was a minor thing. The silver and gold badges are reserved for really bad cock-ups!– PekkaCommented Dec 10, 2010 at 15:49
-
17@Felix we decided Gold would only be awarded for actually breaking the site, rather than just making it very annoying to use (as in this case). Commented Dec 10, 2010 at 15:54
-
3How we got to the end of this discussion without someone renaming the network Smack Exchange is beyond me.– Andrew BCommented Aug 13, 2014 at 14:41
-
11
-
5
-
1Yeah. A bug that exists for 20 minutes doesn't need 11 duplicate questions pointing it out. (Plus, I think you get your close votes back. Don't quote me on that.)– mmyersCommented Dec 9, 2010 at 16:57
-
3@Michael They do not return. They stick around, such as for the unlikely event that the question gets undeleted then your vote sticks around. There has been a request, though, to refund close votes after a question gets deleted. This one for self-deletion, but I imagine that mod deletion can also be appropriate. Commented Dec 9, 2010 at 17:19
-
3@GraceNote - To paraphrase you,
Micheal your close votes return false. They stick around...
;-)– MosheCommented Dec 9, 2010 at 22:52 -
3
-
I'm seeing this too. It appears to be due to the following:
<div>
<script type="text/javascript">
(function(){var g="http://careers.stackoverflow.com/Ad/js",c=location.search=="?golarge",a=location.hash.indexOf("#ninjas")>-1,b="Pretty";(function(){var b="min-height:248px;margin:15px 0",c=$("<div>").addClass("hireme").attr("style",b),a=$("<div>").html(c);document.write(a.html())})();$(function(){alert(a);a&&$("#adzerk1").html("").append($("<div>").attr("id","herebeninjas")).attr("id","stop-adzerk");setTimeout(i,1200);setTimeout(h,300)});var h=function(){c=c||e();a=a||d();b=c?"Large":b;f()},i=function(){var a=$("div.hireme");a.each(function(){$(this).html().replace(" ","").length==0&&$(this).remove()})},e=function(){return $("#careersadsdoublehigh").length>0},d=function(){return $("#herebeninjas").length>0},f=function(){var a=$("<script>").attr("src",j()).attr("type","text/javascript");$("body").append(a)},j=function(){return g+"?style="+b+"&gobanner="+a.toString()}})();
</script>
</div>
-
9
I wonder if this is the new form of hiring new employees. Put some random bug/feature into the site and see how fast somebody:
- tracks it down
- offers a workaround
- offers a fix
- offers a cool hackish trick that you can do with it.
- all of the above
Too bad I was late to the game seeing it was related to careers! 8^D
-
I already thought of that. However, it doesn't appear to lead anywhere.– SLaksCommented Dec 9, 2010 at 15:40
-
8I thought so too, but then I realized that I don't want to work for employers that intentionally annoy me. So I didn't investigate further. Commented Dec 9, 2010 at 15:40
-
-
-
@drachenstern, @Mark: Sorry,
e
, notπ
. npr.org/templates/story/story.php?storyId=3916173– SLaksCommented Dec 9, 2010 at 16:52 -
and did you manage to repro the bug you were looking for? Commented Oct 11, 2011 at 13:34
-
@MarcGravell Sadly no. I thought I found a glitch on SO, but when I tried to reproduce it here, I couldn't. Sheesh, and here I thought I could go to an old answer of mine and nobody would notice 8^D– Dillie-OCommented Oct 11, 2011 at 14:09
Extrapolating on @Rejoice rejoice kbd is back's comment:
(function(x) {
var is_user_awesome = function(y) {
return check_user_skillz(y) ? 'You Rock!' : 'false';
};
alert(is_user_awesome(x));
})(ninjas);
If you were looking for something less facetious to add to the five whys, it might involve the fact that JSLint can be set to warn you that you've left alerts() in code before you push to your servers...
alert(false);
, notalert('false');
DOH!
crown.true
.alert(a)
anda
just happens to befalse
because there are no#ninjas
(or they are less than0
). If there were#ninjas
and said#ninjas
were greater than-1
... well, I think we all know what that means.console.debug()
is forgotten much easier, and then breaks in all kind of browsers...