Tag Info

Hot answers tagged

70

I am both good and bad to answer this question - good, in that I've actually used it before, and bad, in that I was quite experienced with HTML/CSS/JavaScript prior to working with GWT. This left me maddened by using GWT in a way that other Java developers who don't really know DHTML may not have been. GWT does what it says - it abstracts JavaScript and to ...


59

It's not so much "fake" performance as real responsiveness. There are a number of reasons why it's popular: Internet connections are fairly reliable nowadays. The risk of an AJAX request failing is very low. The operations being performed are not really safety critical. If your emails don't get deleted on the server, the worst that happens is you have ...


51

HTML5 is not a single integrated thing. It's a collection of extensions to HTML, some of which are widely-implemented and can be used safely, some of which no-one implements yet, and a whole lot in-between. If you try to treat HTML5 as a coherent single development platform and ‘learn it all’ you will have a really difficult time. Instead what you need to ...


42

If I were to start a new HTML5 project from scratch right now I would probably do something like this: Download and use the HTML5 Boilerplate. This will give you a fresh page with most of the important things initialized and ready for testing. Also includes some nice debugging features you should be using along with firebug Look over Dive in to HTML5 to ...


31

Assuming something will work and displaying an error in case it fails on the remote side is much more user-friendly than blocking the user from doing anything else until there's a response from the server. An email client is actually a great example for this: When I have a list with 5 emails and the top one is selected I expect that when hitting DEL three ...


28

Usually the answer for the question "Should I work for free?" is NO. Here is an awesome flowchart that helps in cases like this. It's humorous but true. hey there! Who's ready to stop working for free? Hopefully you are! If you have any doubts, consult this handy chart below. Start in the middle and work your way to your answer!


27

The same origin policy is a wholly client-based restriction, and is primarily engineered to protect users, not services. All or most browsers include a command-line switch or configuration option to to turn it off. The SOP is like seat belts in a car: they protect the rider in the car, but anyone can freely choose not to use them. Certainly don't expect a ...


26

Today, in our work as in our life, it is more important know how to find information rather than know the information itself. I mean that a good developer is a person able to find documentation, network, and that share with an open mind. I am an experienced .NET developer and, believe me, for every project I work on I have to learn new things about the ...


20

We use GWT for a big eGovernment web application (SOA in the backend) which has a heavy usage. The old UI was in DHTML but we had issues with browser compatibility, performance optimization and the development process, so we looked for alternatives. Our requirements have been: client side UI layer to minimize server load browser compatibility web based ...


18

I think it would be another way of learning and as that I would embrace the opportunity. Most of the time friends will will give you something back when you do them a favour like this. And if they don't it is still a learning experience. What I would do is: Ask him to put your name (or link to your blog or linkedIn page) in the credits with a nice ...


15

Using Flash will lose them eyeballs. One of the big reasons Google trounced Yahoo, Ask Jeeves, et. al. in the search engine wars is their landing page and results appear so incredibly fast. Even in the late 90s, when Google's search results weren't really better, they were still the go-to search engine if you didn't want to waste your time. On the other ...


15

One trait of these applications: They stay on one page. SPA = Single Page App A single-page application (SPA), also known as single-page interface (SPI), is a web application or web site that fits on a single web page with the goal of providing a more fluid user experience akin to a desktop application. In an SPA, either all necessary code – HTML, ...


13

WoW -- that's astonishing. first ask yourself these questions, and if your mind yells YES for any of these -- the answer to your original question is YES. Do I need to learn HTML -- since Dreamweaver lets me create web pages anyway Do I need to learn HTTP -- since browsers handle all HTTP automatically Do I need to learn JavaScript -- since jQuery lets me ...


13

Business logic almost always has to run on a server you control, for security reasons. If by "server" you mean "web server", then I agree, it doesn't need to have almost any business logic. But you almost always need an application server with the business logic, whether that's inside a database or a web server or is separate and called by the web server. ...


13

The users don't care about what your software is doing behind the scenes: they want their actions to have visible impact, and to be able to work at their pace. If an action was successful on client side - like deleting emails - it's your job to make it successful on server side as well. Why did the deletion fail? If it's due to some kind of limitation (for ...


13

I can do it using AJAX. But I can also do it using a REST call. Um, no. Those two are completely orthogonal. If you want to update your page with data you have to get from a server, you will do it using AJAX. There is no other way. And that AJAX call can use REST, or something else. My problem is i really dont get the difference between REST and an ...


12

If technical reasons don't work, tell them that you can't use flash in the iPad or the iPhone


12

A friend of mine is a contractor in construction, but I would not tell him "Hey, this stuff is easy for you, why don't you renovate my bathroom this weekend?" This is even more true in a commercial situation. Charging for your projects builds mutual respect and an understanding of expectations. Time is money and when someone asks you for your time and ...


12

XML really is a pretty horrible way to represent structured data, but unfortunately it gets (ab)used quite a lot by a lot of developers and websites. So if you're only working with your own stuff, then by all means, stick to JSON and save yourself the hassle. But you still need to learn XML for those times when you end up having to interoperate with ...


12

Yes, because: Update panel runs the entire Page Lifecycle at server, while Page Methods or Web Services (AJAX calls) don't. Update panel sends back the entire ViewState to the server even for small communications like getting the current server date value, while Manual AJAX is in your control and you can send (transfer) less data. Update panel causes the ...


12

It depends on what you're doing and how you're doing it. If you're replacing full page loads with AJAX requests (i.e. only doing AJAX calls when a user clicks on what would have been a full page load) then AJAX will decrease server load because you're (presumably) doing less processing and returning less data. On the otherhand, if you're adding auto-update ...


10

Explain that Flash is a tool for multimedia rather then supporting an entire website. Flash does some things extremely well, but a full Flash website is cumbersome and very frontloaded to the client. Load times are increased, bandwidth goes up, and development generally slows down. Going with a HTML / JavaScript solution is better for 99% of the cases ...


9

I highly recommend WebStorm, from JetBrains (or any of their IntelliJ based products, like PHPStorm, RubyMine, PyCharm as they all support HTML). You get CSS, HTML auto completion and live (while you type) checking for correctness. Refactoring support for Javascript (something I haven't seen anywhere else), and even the ability to debug Javascript in the ...


9

We can't tell you if it will cause problems because it entirely depends on what you are putting into that div, your internet connection, and what kind of load you have on the server. But you need to ask yourself, do you really need to be polling multiple php scripts every second? Is the data actually changing every second? I suspect you probably should be ...


8

You have a few options, but before you delve in to them I'd take a very good look at the Open Web Application Security Project. OWASP has some brilliant documents and guidelines. Personally, I'd begin by conducting a full and proper code review. Rather than checking for traditional issues, take a strong look at Secure Coding practice. (Once again, OWASP has ...


7

I prefer JSON Many many libraries out there for it in all languages Doesn't require a complicated schema Usually can be converted into an associate array or language equivalent quite easily. This is what makes JSON in PHP so easy Compact: Not a lot of boilerplate Easy to use: XML is notoriously hard to work with in any language, while JSON is very easy, ...


7

Same as yours actually. No, seriously, now I prefer ASP.NET MVC over regular ASP.NET, and as AJAX lib I always use jQuery, whether it is .NET project, JSP project, or any other.


7

For the origins, see Wikipedia's XMLHttpRequest article, particularly this excerpt: The concept behind the XMLHttpRequest object was originally created by the developers of Outlook Web Access (by Microsoft) for Microsoft Exchange Server 2000. An interface called IXMLHTTPRequest was developed and implemented into the second version of the MSXML ...



Only top voted, non community-wiki answers of a minimum length are eligible