473,394 Members | 1,932 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Strongly Typed Language to JavaScript

Hi,

I just started writing a lot of script code in JavaScript (accessing
browser DOM basically) and coming from the C#-VS.Net background, I
just hate it. There is no true class definition support and no
code-editor support for code-completion, not to mention debugging and
stuff.

Do you guys know of any good code-editor that might make my life
easier - with code completion support, etc.?

What would be much better is if I can write code in C# (with my class
definitions and stuff, and aginst a library that mimics the DOM types)
in VS.Net (with all the awesome editor support), compile it - to catch
all errors and then convert it to JavaScript! Is there some such C# to
JavaScript tool available? If not, wouldn't that be a good idea?

-Praveen
Jul 23 '05 #1
2 2325
rp******@yahoo.com (Praveen Ramesh) wrote in message news:<4f*************************@posting.google.c om>...
Hi,

I just started writing a lot of script code in JavaScript (accessing
browser DOM basically) and coming from the C#-VS.Net background, I
just hate it. There is no true class definition support and no
code-editor support for code-completion, not to mention debugging and
stuff. What would be much better is if I can write code in C# (with my class
definitions and stuff, and aginst a library that mimics the DOM types)
in VS.Net (with all the awesome editor support), compile it - to catch
all errors and then convert it to JavaScript!


Most of the DOM is character data, so what would type checking find
anyway? Another way of looking at it is that Javascript avoids all
these problems by dynamic typing. I have programmed alot in langages
with dynamic typing and have not missed having to declare things. I
have almost come to the conclusion that declaring variables adds
another place for program errors. Getting rid of declarations gets rid
of a lot of errors.

Javascript default to a global declaration is bad and a source of
problems. Whould be nice if Javascript had some feature to force all
variables to be declared.

You may wish to try programming in Firefox. It has better error
messages and a DOM inspector.

You can do OO programming in Javascript.

Perhaps you need to learn more about Javascript. This is a good
reference:

javascript: Definitive Guide
by David Flanagan
Jul 23 '05 #2
rp******@yahoo.com (Praveen Ramesh) wrote in message
There is no true class definition support See the section on OOP in this link:

http://www.crockford.com/javascript/javascript.html
not to mention debugging and stuff.


A gecko based web browser like Firefox is a good browser under which
to write javascript. Firefox has:
-- the dom inspector
-- javascript consol
-- venkman debugger. See http://www.mozilla.org/projects/venkman/
-- error message having the correct line in error when you use
includes
Robert
Jul 23 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Bill Cohagan | last post by:
I'm trying to figure out the "best" way to implement a strongly typed ArrayList. Using inheritance is one approach. It has the advantage that I only have to write overrides for the Add method and...
1
by: Job Lot | last post by:
I am confused how strongly typed dataset is different from un-typed dataset. Is there any good link explaining pros and cons of both? Which one should be used preferably?
2
by: Mark | last post by:
Just wanted to confirm that my understanding of a strongly typed language is correct: 1. .NET is a strongly typed language because each variable / field must be declared a specific type (String,...
1
by: HardBap | last post by:
I've created a strongly typed DataSet (Customers.xsd) using the xsd.exe tool. I want to be able to access fields using ds.Customer.CompanyName. The problem is when I return this DataSet from a...
2
by: Ian Gore | last post by:
Hi, I'm relatively new to VB.NET so I'd be grateful if someone could point out what I don't understand here... 1) Creating a strongly typed collection by inheriting CollectionBase. This is...
20
by: Dennis | last post by:
I use the following code for a strongly typed arraylist and it works great. However, I was wondering if this is the proper way to do it. I realize that if I want to implement sorting of the...
4
by: Boris Yeltsin | last post by:
OK, on my Master Page I have a control: <a id="hypTabAccount" href="#" runat="server">Account</a> Now, in the code-behind (Root.master.vb) I can refer to it simply thus: ...
1
by: Code Monkey | last post by:
Silly question maybe, but I've been doing the following for far too long now: public static DataTable myDataTable() { string sql = @"SELECT column1, column2, column3, column4 FROM...
4
by: Rachana | last post by:
Hi, I have understood Data Sets but what is meant by typed/untyped/ strongly typed datasets. Can any one explain me or suggest any site/ article, to get these concepts (and their ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.