Most programming languages contain good and bad parts, but JavaScript has more than its share of the bad, having been developed and released in a hurry before it could be refined. This authoritative book scrapes away these bad features to reveal a subset of JavaScript that's more reliable, readable, and maintainable than the language as a whole-a subset you can use to create truly extensible and efficient code. Considered the JavaScript expert by many people in the development community, author Douglas Crockford identifies the abundance of good ideas that make JavaScript an outstanding object-oriented programming language-ideas such as functions, loose typing, dynamic objects, and an expressive object literal notation. Unfortunately, these good ideas are mixed in with bad and downright awful ideas, like a programming model based on global variables. When Java applets failed, JavaScript became the language of the Web by default, making its popularity almost completely independent of its qualities as a programming language. In JavaScript: The Good Parts, Crockford finally digs through the steaming pile of good intentions and blunders to give you a detailed look at all the genuinely elegant parts of JavaScript, including:Syntax Objects Functions Inheritance Arrays Regular expressions Methods Style Beautiful features The real beauty? As you move ahead with the subset of JavaScript that this book presents, you'll also sidestep the need to unlearn all the bad parts. Of course, …
@TimStone I believe it cost me about $0.30 in energy costs ... and about $6 tops in materials, cos you see, I believe firmly in letting Betty and Hormel do the cooking, at the expense of sodium
@drachenstern The NSA machines sitting on every tier 1 backbone slurping up all the text don't know context! The local authorities have been contacted so that you can be sentenced to 10 times more prison time than if you had run someone over with your car.
@GeorgeMarian The recipe. Instead of just mayo they use mayo, mustard and vinegar, or somethin'. I don't know but it tastes good and grocery stores in PA sell it
> Invitations come from your peers. We’ll give members a few invites to distribute to programmers they know and trust. Or, contribute to Stack Overflow (and our other sites), get voted up by a lot of smart people, and you may get an automatic invite.
Congrats on getting the Epic badge, it is a really hard badge to get!
There are many little subtleties going on that I should explain.
Badges look at current rep levels in the DB
There are certain edge cases where rep levels in the DB do not match the rep report. The rep report show what you...
Someone just started a support chat with me to get help using some other website. "They don't have any support and you do, so I thought you'd help"... ...
whenever we write the program using malloc , calloc and realloc where does the varies go and sit, i.e in which part of the memory do they go and reside.
also whether the variables (in all cases) are allotted a contiguous space or the variables go and sit wherever the space is available
Often when I vote to close, I want to go back and check the comments on the question, to see if it's been improved, to comment further, or to answer the question.
It would be helpful to add a bit of a trail so I can find those questions again. I'm suggesting adding an event to the Activity page ...
It's difficult to determine whether a suggested edit that consists of only modifications to tags is reasonable without the context of the question. For instance, today I saw this suggested edit and had to click through to the question to determine whether it was worth approving or rejecting.
Why...
@Moshe weelll, it's not exactly jquery, it's just trying to navigate through a slightly ambiguous DOM :)
@Moshe, take this page, for example (meta.stackoverflow.com/questions/80320/…). from the answer comment box I'd like to get the answer user id, and from the question comment box, I'd like to get the question user id
Simple, except that there are two post-signatures on the question, because waffles edited it...
@Benjol I think I did this in some fashion in SEModifications if that doesn't work for you. Otherwise I can check if I decide trying to sleep isn't working :P
Ah. I didnt get that. My query gets only non-owner signatures
Well iirc find will return some empty value, perhaps null, if it finds nothing. Check for an owner sig. If that returns nothing, you can try my query. (I didn't test it)
@Benjol, I have to get to sleep but basically, another tip. jQuery's find() takes valid CSS selectors. Google the "not" operator for CSS and use that for your fallback. Btw, when does a post not have an owner sig? Deletion? Cw?
Well I just fixed this an slew of similar requests.
If you would like to edit a post that has a pending edit and can not wait, you can click the "improve" button.
This button allows you to "edit the edit", add tags and whatnot.
At the end of the process when you submit the edit, the communi...
Screenshot
About
Stack Fiddle is a Google Chrome extension that updates the code blocks on Stack Exchange sites. Each code block gets a header with links that allow you to set its type. Click the code type (HTML / JavaScript / CSS) of the blocks you want to include and then press the 'Se...
@JeffAtwood. Sorry. that screenshot is for comments on low-quality posts. Nothing to do with suggested edits. I should have marked it as 'new topic'...
The problem is that when I flag stuff, I generally like to say 'something', especially for new users who won't understand. Until now I'd been copy-pasting. This is just to make it easier. Sorry for the misunderstanding.
Stack Overflow is so large now that I don't think we have time to help the bad users so much. I don't want to be rude to them, but basically they need to go away.
@JeffAtwood, from your point of view, maybe. But from the point of view of a single reviewer, it doesn't make much difference. I personally can't handle the 3000 questions per day anyway, comments or not.
Get people into the habit of voting so that it becomes more a part of regular usage of the site that continues after earning the badge(s) rather than just wham/bam/done.
Personally, rep never really comes into my mind when voting. I just tend not to think of voting unless I think a question is interesting, or an answer is good. A naff question is more likely to get a close vote from me...
General voting, voting up good questions, voting down bad questions, voting up good answers, voting down bad answers, voting down posts rather than flagging when that's appropriate, etc.
Using firebug, how do I work out what the code for a given event on a given element is? so far, I've managed to click through to something which looks like all the javascript for the whole page concatenated into a big blob..
@MarcGravell: and @Benjol: peoples creating chat rooms, for instance i am able to see chat rooms for iphone, again people creating a room for iphone, is there any restriction for creating duplicate chat rooms, or how i can take this action to moderators
@SankarGanesh, dunno to be honest. Maybe you could flag a message to draw attention to the room. Maybe you could start by pointing people to the pre-existing room(s)...
@RebeccaChernoff: Pls see there are two rooms Iphone is a old room and now you cna click created tab and see iphone/ipad room is created yesterday
@RebeccaChernoff:pls see it, already we have objective c , iphone room , now yesterday a new room created in the name of iphone/ipad , pls check it now
@RebeccaChernoff: click chat in your proile , then you can chat rooms, in that pls chosse created tabs , then you can able to see newly created rooms , in that i saw a new room called iphone/ipad,i was wonder, why a new room created in the name of Iphone/ipad because we already have a iphone room, that's why am i asking this question here
ie, I just entered "iPhone" as the name for a new room and I got the 2 iPhone rooms but not the obj-c room, which has iPhone in the description, not title.
but if they're putting that in and checking the box on the dupe check...not sure what else could be done
seems like both those 2 rooms have been around and are just about equally active in terms of messages/wk
@SankarGanesh create a new room and put iPhone in as the title and go forward - you'll see the dupe page. Obviously don't override that but if people are doing that what else can be done really? (;
@SankarGanesh, the interesting thing I am noticing here is that you aren't in any of these rooms. Nor do you show as frequently being in any of them. You seem to have a vested interest though?
@Reno: and @RebeccaChernoff: no , i am guy who doesnot want malpratice, i love android , iphone and blackberry and symbin, i m very working on android , but i m giving my time to spend in iphone too start learning that too
There's a long list of languages proposal on Area51, varying from an all encompassing language site to a focus one language site like the successful English Language & Usage.
When I say they vary, I do mean that.
As I just said, there's a site to contain all the languages question, whether...