Comments
yourfanat wrote: I am using another tool for Oracle developers - dbForge Studio for Oracle. This IDE has lots of usefull features, among them: oracle designer, code competion and formatter, query builder, debugger, profiler, erxport/import, reports and many others. The latest version supports Oracle 12C. More information here.

The increasing integration of Adobe and former Mac...


ADS BY GOOGLE
Blog-N-Play.com
Anytime a feature of a framework gives me something for free that I don't need to manually implement I'm a happy camper. One such feature of ASP.NET MVC 2 is jQuery client-side validation. The
Flex Top Links You Must Click On !


Java Is Better Than JavaScript
I had a working program and decided to add the JavaScript handler function

Tоday I was participating in a discussion on one Java forum – the question was if Java is an easy or difficult programming language to learn. IMO, Java is not difficult to learn, to teach, and to use. It’s a strongly typed compiled language with tools that help you identify most of the errors before you even run the program.

While participating in this discussion I was writing code in a different programming language called JavaScript, which gave me a chance to illustrate a lot of things the Java developer takes for granted, while there are people who work in a more hostile environment called JavaScript.

I had a working program, and decided to add a JavaScript handler function to illustrate HTML form submission with jQuery for our upcoming book. I’ve been writing this code in Eclipse-based IDE called Aptana. I’ve added this handler for the submit event to a Donation form:

$('#donate-form-container').submit(function(){
var formData = $(this).serialize();

console.log("The Donation form is serialized: " + formData);

returm false;
});

Ran the program – it rendered the Web page, HTML looks fins, but nothing worked. IDE didn’t give any errors. Started a browser debugger – Firebug. Now I’ll going to put a breakpoint in this newly added function and find the problem. How hard could it be? I’ve added just this little fragment to a working program. Easy Peasy.

Oops. Where is my main.js? Nowhere to be found. Only jQuery script is available.

s1

Was my main.js even downloaded? Let’s check the Network tab. Yes, it’s here:

s2

After applying deductive reasoning (as in Sherlock Holmes stories) I figured out that the script has arrived to the browser, which instead of adding it to the DOM, showed a middle finger without explaining why. As any normal person, I started to to find who someone else to blame. May be this Firebug is buggy and just doesn’t want to show my nice script? Tried Chrome with Developer Tools – same story. The script arrived, got the finger and I have nothing to debug.

Well, there is no one else to blame. Let me just re-read my own code. Man, I misspelled the word return and wrote “returm false;” instead, which deserves a capital punishment. Changing m to n did the trick, and now both Chrome and Firefox are happy to add my JavaScript code to DOM.

What’s the moral of this story:

  1. Java developers should know that they take lots of things for granted and should not complain that their life is difficult!
  2. The fact that it takes less code to write Hello World program in JavaScript doesn’t mean that it’s an easy programming language. Don’t trust me? Watch this.

Read the original blog entry...

About Yakov Fain
Yakov Fain is a Java Champion and a co-founder of the IT consultancy Farata Systems and the product company SuranceBay. He wrote a thousand blogs (http://yakovfain.com) and several books about software development. Yakov authored and co-authored such books as "Angular 2 Development with TypeScript", "Java 24-Hour Trainer", and "Enterprise Web Development". His Twitter tag is @yfain

  Subscribe to our RSS feeds now and receive the next article instantly!
In It? Reprint It! Contact advertising(at)sys-con.com to order your reprints!
Featured White Papers
Latest Flex Stories & Posts
'Scene7 has done a great job developing a sophisticated system that underpins the online delivery of high-fidelity imagery and dynamic assets,' said John Loiacono, senior vice president of Creative Solutions at Adobe.
Apple polished its reputation as a contrarian Tuesday when the news broke because of an SEC filing that it had hired Adobe’s CTO Kevin Lynch to be VP of technology and reportedly coordinate its hardware and software teams. Adobe confirmed his departure effective Friday, March 22. He ...
Companies that need to improve application performance, for example, in server virtualization or VDI environments, frequently come to the conclusion that flash is the best strategy. SSD technology is becoming the "go to" solution for enhancing the performance of these kinds of critical...
If you’ll ask me what would be a job that you always wanted but never got, I’d answered a Technical Evangelist for a large corporation. I know how to do it, I like travel, I like meeting new people, and I can convince that the software I believe in is good for you. But. I [...
Tоday I was participating in a discussion on one Java forum – the question was if Java is easy or difficult programming language to learn. IMO, Java is not difficult to lear, to teach, and to use. It’s a strongly-typed compiled language with tools that help you out to identify most of ...
Online learning company Lynda.com has gotten $103 million in funding from Accel Partners and equity investor Spectrum Equity. Meritech Capital Partners also participated. It’s the first money Lynda has taken from the outside and is meant to push the 17-year-old company into the inter...
Subscribe to the World's Most Powerful Newsletters

Developer Links You Must Click On !
'Scene7 has done a great job developing a sophisti...
Apple polished its reputation as a contrarian Tues...
Companies that need to improve application perform...
If you’ll ask me what would be a job that yo...
Tоday I was participating in a discussion on one J...
Online learning company Lynda.com has gotten $103 ...
Anyone who ever monitored or analyzed an applicati...
Wikibon produced an interesting material (looks li...
I hear people talking about how Solid State Device...
The International Trade Commission decided Wednesd...
Violin Memory, the high-speed flash memory array m...
In the past I have had Photoshop loaded on my comp...
Adobe Systems Incorporated has reported financial ...
We’re starting to writing a book for O’Reilly that...
Yesterday I had to record a 2-hour long webinar. T...
I’m a partner in two companies – an IT consu...
People are accustomed to buying goods online. If a...
Oh, the ignominy of it. A UK judge has told Apple ...
World IPv6 Launch: June 6: The Internet Society, a...
I’ve been using Firefox on my Mac as my defa...
ADS BY GOOGLE

Product Reviews
In the past I have had Photoshop loaded on my computer, but I rarely used it unless it was to use the autocorrection features. Each year I have a ton of vacation pic...
If you still can not adopt reading books from your computer screen, or do not like to waste your laptop battery charge for just reading a book, then I think Amazon K...
This article is the first of two that will look at some of the challenges faced by developers and non-developers who work with PDF technologies and who are curious a...
The goal of this article is to give you a brief overview of some of the objects from clear.swc, which is a part of the open source Clear Toolkit Flex framework avail...
Live Cycle Data Services is an excellent solution for building scalable RIA, but it’s not cheap. For those who don’t have a budget for LCDS, Adobe has released open...