It's been a question since long time. Everytime code goes for review   there are different opinion from different senior   developers/coders/QA. And every other person fights for its own   opinion.      Here are some of "Code review":         There should be single HTML identifier.CSS Selector, id, name, xpath or whatever, but choose only one across the project   It should be xpath only across the project   Use name and id only, as they are fast and readable   You can use whatever is easily available i.e. sometimes use xpath, and then sometimes use Css selector etc etc         Which one is best practice in terms of speedy execution of Automation   tests and managing Object repositories? Plus you can point in Code   Review meetings that this is why I am using it.      If it depends which tools you are using, as of now I am using WATIR   (Ruby+cucumber) and previously I was using JAVA.   This question was earlier posted by me on Code Review SE but there it got closed due to off-topic, not so sure where to post so posting here.
56637
I'm pretty sure this isn't the right place to ask this. I'm not aware of a stack site out there where this question would fit. If someone could point me to the right place it would be awesome.     The question I was going to ask is:       I am incorporating a blogging feature into my car enthusiast site. I want each user to be able to have their own blog and be able to browse other people's blogs. What blog engine would be best for this scenario?      I am using ASP MVC 4 and found  to look promising; however, I am a bit confused at the setup. This seems to be a blog set up for a personal site and not a "Nest of blogs" type of system. I've never done a blog before so I'm fresh meat here.
76068
It happens to me rather often that I look at a question such as "How to do whatever with Collections" and while that's what I'm looking for in Java, it's useless if the question refers to, for instance, C#.  So, this is purely a UI thing: how about putting the tags right under the question title, rather than arbitrarily far under the question text itself?  EDIT: here's what I mean
65275
Possible Duplicate:          Which Stack Exchange site is best for code review?  Suppose I have a question like:     Is the following code a proper solution to &lt;my problem>?   &lt;Code&gt;  On which (if any) Stack Exchange site would this question be most appropriately asked? Is it wrong to ask code-review type questions like this?
15626
In another  I asked if  is useful in practice. As I didn't get any answers that satisfy me, I want to check the current tools myself. So I need an overview about current existing mutation-test-frameworks. Which of them are most usable and why?   I program in Java, so I would prefer Java-tools, but I would risk a look at interesting frameworks for different languages. I want to integrate in an automatic build-process, so I would prefer tools that can be executed through command-line.
22110
I have an Internet Explorer only web application.  I'm exploring what we can do to automate the testing.   Selenium looks like a good tool, but to be able to activate links etc. I need to tell it where they are. The application wasn't built with this kind of testing in mind, so there generally aren't id attributes on the key elements.  No problem, I think, I can use XPath expressions. But finding the correct XPath for, say, a button, is a royal pain if done by inspecting the source of the page.  With Firefox / Firebug, I can select the element then use "Copy XPath" to get the expression.  I have the IE Developer Toolbar and it's frustratingly close. I can click to select the element of interest and display all sorts of information about it. but I can't see any convenient way of determining the XPath for it.  So is there any way of doing this with IE?
32885
I have some html like this:  &lt;div id="1"&gt;     &lt;p&gt;         Volume = &lt;input type="text" /&gt;         &lt;button rel="3.93e-6" class="1" type="button"&gt;Check answer&lt;/button&gt;     &lt;/p&gt;     &lt;div&gt;&lt;/div&gt; &lt;/div&gt;   and some JS like this:  $("button").click(function () {     var buttonNo = $(this).attr('class');     var correct = Number($(this).attr('rel'));      validate (Number($("#"+buttonNo+" input").val()),correct);     $("#"+buttonNo+" div").html(feedback); });   What I'd really like is if I didn't have to have the class="1" on the button (I know numeric classes aren't valid, but this is a WIP!), so I could determine buttonNo based on the id of the parent div. In real life there are multiple sections looking like this.   How do I find the id of the div parenting the button. What would be a more semantic way to store the answer in the button code. I want to make this as foolproof as possible for a non programmer to copy and paste without breaking things!
1273
I noticed that sometimes my code gets highlighted in different colors when rendered.   What is syntax highlighting? How does it work? Why isn't my code being highlighted correctly? How do I report a bug or request a new language? How do I use syntax highlighting? What languages are currently available on Stack Exchange?
3930
It seems to be the  that tables should not be used for layout in HTML.   Why?  I have never (or rarely to be honest) seen good arguments for this. The usual answers are:   It's good to But this is a fallacious argument; . I guess it's true that using the table element for layout has little to do with tabular data. So what? Does my boss care? Do my users care?Perhaps me or my fellow developers who have to maintain a web page care... Is a table less maintainable? I think using a table is  than using divs and CSS.By the way... why is using a div or a span good separation of content from layout and a table not? Getting a good layout with only divs often requires a lot of nested divs. Readability of the codeI think it's the other way around. Most people understand HTML, few understand CSS. It's better for SEO not to use tablesWhy? Can anybody show some evidence that it is? Or a statement from Google that tables are discouraged from an SEO perspective? Tables are slower.An extra tbody element has to be inserted. This is peanuts for modern web browsers. Show me some benchmarks where the use of a table significantly slows down a page. A layout overhaul is easier without tables, see .Most web sites that need an upgrade need new content (HTML) as well. Scenarios where a new version of a web site only needs a new CSS file are not very likely. Zen Garden is a nice web site, but a bit theoretical. Not to mention its  of CSS.   I am really interested in good arguments to use divs + CSS instead of tables.
5552
This is terrible . I understand that the motivation behind "Review your question" is quality control, but if there is nothing for me to review, why can't the question be submitted in a single click?  Instead the page jumps back, to draw my attention to possibly this:    But it doesn't stand out in the UI, and if you didn't read that the button said "Review your question", it's hard to see why the page just jarringly jumped back instead of posting the question.  Is it really important for me to know that the automated system didn't find any way to improve my question?  Does Stack&nbsp;Exchange have metrics to see how often the question passes the quality check in the first go?  To add a minor point, as a veteran Stack&nbsp;Exchange user, the system doesn't have any reviews most of the time (in fact, the only time it had one is today while posting this question where it reminded me that one of feature-request, bug, .. tags were required).
36076
I have done some reviews of new user's questions recently,  and I noticed that most of these posts do not use inline code spans (e.g., "the main() method", "the HelloWorld class") - the things formatted with backticks (`).  Does SO have a page/question where you can redirect someone to explain what the inline code spans are, and how they should be used (preferably with examples)?  I found this question:  There is a good answer there which says that  inline code spans should be used for "code and code-like artifacts". However, that question is about a different thing, and many people may still wonder what a code-like artifact is. For instance, file names or fragments of a log file are often formatted as inline code spans, but they, probably, cannot be called "code-like artifacts". There are other examples that may look confusing.  In other words, many programming books have a typographical conventions section which explains how the book uses special text styles. Does SO have something similar which explains the use of the inline code spans?
6602
Reading the help center article on syntax highlighting, one of the paragraphs within it reads:     You can use either , like lang-cpp or lang-sql, or you can specify a tag, and the syntax highlighting language associated with this tag will be used:   Note the link in there, which goes to .  Problem is, a long time ago we removed the list of options from several questions/answers across meta Stack Exchange because it was a pain trying to keep all of them updated. It makes a lot more sense to just have one list that we keep updated, and the most logical place for that list was in the , which is where it now resides.  Can the link in the help center be updated to point directly to the list, rather than to a post that explains that the list has been moved?
107657
I am looking for most universal, up to date, open source, selenium framework for test automation. Or at least a number of frameworks for different languages. I am surprised as how every company and every test automation developer is building his own framework. It feels like  over and over again. Even Dave Haeffner  about how everyone wants to build their own. Yet in the links provided in the video by him, the framework collection seems poor (one framework per language) and, at least for java, out of date (2 years old), only with 6 contributors, and seems to be copyrighted. In test automation community so many things seem to be de facto standard. Why not pull it all together and have a repository, actvively maintained by test automation developers. As for this question to not seem too much opinion based: Please provide links for Java-Selenium-JUnit frameworks you know and use and believe in.
70880
Motivated by .  We currently have a rather rich subset of end-to-end tests for our AngularJS applications. And, we do get a lot of visual/layout/design issues on every single development iteration. Usually, we do not cover this kind of issues with end-to-end tests and testing the fixes manually. The reasoning was always - too hard, too fragile, too expensive to automate.  In some cases though, a style of an element or block on a page is really critical for an end-user and it would make sense to have an automated end-to-end test checking it. We try to check the colors, font styles and other CSS properties inside our Protractor tests, but it is still checking only these specific things and not an element or part of a page as a whole. Plus, the assertions themselves are not readable and easy to break, for example:  expect(somePage.someElement.getCssValue("background-color")).toEqual("rgba(255, 211, 205, 1)");     We are thinking of adding some sort of a visual component to our tests. Ideally, comparing screenshots of what we expect an element to look like and how it actually looks. But, there are a lot of open questions at this point:   how reliable can it be - would it depend on the browser, resolution and other parameters of the test machine setup? is it possible to integrate with our existing Protractor test codebase or we need a separate specialized tool for that? test result reporting - how would we present the test results?   Have you done something similar and how did you address the above mentioned issues? Was it worth the cost of maintenance?
102771
I came across a  where a comprehensive example would be very useful. So I wrote an example program showing one way to solve their problem.  My problem is that when I was done creating it, and testing to make sure it worked, it was over 400 lines in 18 files. My example included source code, header files, and scripts for building the example in a variety of circumstances.   It's a working and tested, so it's of huge value to illustrate the tricky solution, but because it's all there, my response was huge! Is there a better way of posting my code dump?  Edit:  I guess there isn't a current "best way" to include a large chunk of code, so I made this a feature request and tried to add some ideas.  Perhaps code entries that are longer then a certain number of lines, or ones that have been specifically marked could initially be displayed as "collapsed", and someone could expand them if they want to see them?  Or maybe, like attaching images, users with enough reputation could attach an archive of files. They could be displayed as "attached code" (initially collapsed also).  Some problems have simple answers that unfortunately touch disproportionately large parts of the program, or can be solved in slightly different ways depending on the environment. I feel that stackoverflow needs a way of capturing these large solutions. Sometimes, they're large chunks of code. In my case, the code was small, but there were many files.  Using github or a similar code repository is great, but we risk linkrot (even for big guys like github) and loose the community editing, commenting, and voting abilities.  I understand the problems that could come from with people dumping whole "I can't get this to work" packages, but surely we already have a solution for that in moderation.  Edit again:  I'm starting to see that this may have been already addressed in posts like    , and    If you feel this a dupe, I'm open to having it "closed as already addressed"
66229
It seems syntax highlighting is not enabled on every SE site, but later on turns out to be rather advantageous. As an example,  may not have sounded like needing it, yet there is , and I think it's justified since many answers have code in them, e.g. JS for InDesign scripts, some GREP-regex and (rather obviously) HTML and CSS. While I'd appreciate having syntax highlighting activate on that specific site (so please upvote ), this question is more general about two points:   Why is syntax highlighting disabled on some sites at all? Are the additional resource costs really so high? Couldn't caching improve that then? How to actually proceed when it should become activated on a specific site? It seems feature requests on the specific meta site are not exactly handled quickly (the request mentioned above is from 2013!), and also appear overkill for a simple "please switch that site's config bool for syntax highlighting".
66795
In several scenarios, including two today ( and ), we have had bugs set to  simply because the fix has been checked in. Just because the code portion has been completed does not mean the work is done, and this can be confusing for users who come across the same problem. Until then it really is  or maybe a tag that doesn't yet exist (status-checked-in?).  Particularly in times like this week, where the stability of the system is a priority, I don't think this status should be set merely because the code has been checked in - it should happen when the code is actually deployed and verified. Currently the devs are being very good about telling us that the code is done but they're not sure when it will be deployed, but I think that is because of the stability issue.
24574
I would like to know when I should include external scripts or write them inline with the html code, in terms of performance and ease of maintenance.  What is the general practice for this?  Real-world-scenario - I have several html pages that need client-side form validation. For this I use a jQuery plugin that I include on all these pages. But the question is, do I:   write the bits of code that configure this script inline? include all bits in one file that's share among all these html pages? include each bit in a separate external file, one for each html page?   Thanks.