scripting languages are good for providing the glue between high level components created in proper programming languages
- Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
- Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!
Reply to: Learning Javascript
Collapse
You are not logged in or you do not have permission to access this page. This could be due to one of several reasons:
- You are not logged in. If you are already registered, fill in the form below to log in, or follow the "Sign Up" link to register a new account.
- You may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
- If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.
Logging in...
Previously on "Learning Javascript"
Collapse
-
-
Originally posted by Sysman View PostThere's a very good reason for hating brackets, and that is non-English keyboards. My Swiss keyboards for example require various combinations of Alt, Alt Gr and Alt + Shift to get at curly or square brackets, the pipe symbol and so on (and of course with subtle differences between laptops and external keyboards, Apple and PC keyboards... I bought a US keyboard to get around that.
Leave a comment:
-
Originally posted by NickFitz View PostWhich also proves his complete ignorance of both.
Leave a comment:
-
Originally posted by VectraMan View PostI never said either were crap, just equally horrible. They're both scripting languages, and scripting languages are good for providing the glue between high level components created in proper programming languages. The problem is people have started to think these scripting languages can be used for proper programming, which whilst technically is true, doesn't mean that it's a good idea to do so.
Python seems to be based on the premise that there are some people for whom brackets and semicolons are terrifying, and whilst I can kind of understand why some people might think like that, that doesn't mean it's a better language than all the C-syntax based alternatives. And like all these scripting languages, the real killer is the lack of static types. I've had to maintain bits of complicated Python, and I can't understand why anybody thinks it's a good idea to use a language where you can't work out what anything is. I suppose at least it has classes (Javascript's equivalent is ludicrous), but without static types you lose 90% of the benefit.
Which brings us back to ECMAScript4 / ActionScript or whatever you want to call it, which had proper classes and static typing (like most of us have been doing for 20 years), as well as scripting style dynamic properties for when that's appropriate. And it was being produced by the official standards bodies ready to go into all the browsers and become a proper powerful modern object-oriented language for the web. But no, Apple and co (okay so it wasn't just Apple, but it seems appropriate to blame them) decided that it was too powerful and useful.
And the double irony is that all the recent Javascript engine speed hype (I was reading something today about IE10's improved JS performance) largely centres on clever techniques to detect the use of classes and object oriented programming at runtime (because all the analysis shows this is how serious programmers work) and convert the dynamic types back to static ones. If they'd just built it into the language a) it'd work much better, and b) it would have saved a whole lot of effort.
But as somebody who's written a JS interpreter, and integrated Microsoft's, Google's and QT's JS engines into not-a-browser applications, and done a load of JS programming for Flash, I'm probably just showing my ignorance. Sorry.
Leave a comment:
-
Originally posted by VectraMan View PostI never said either were crap, just equally horrible. They're both scripting languages, and scripting languages are good for providing the glue between high level components created in proper programming languages. The problem is people have started to think these scripting languages can be used for proper programming, which whilst technically is true, doesn't mean that it's a good idea to do so.
However Increased hardware performance and an attitude that "good enough" will do has decreased emphasis on performance and robustness.
PHP is another example here. Late last year I was seeing concerted attacks on Wordpress and I thought to myself
- Do I need to run the risk?
- Do I need the hassle of monitoring it and keeping it up to date, all for the sake of a blog where weeks can go by without me writing a single post?
I found A plea for baked weblogs (which ironically took ages to load for me today), and New publishing system / tour of my head.
One item in the second link appealed to me in particular: because you have the static HTML sitting on your laptop/desktop, you can index it and use your favourite search tools.
The popular PHP based CMS products out there have limitations in their search engines and it's sometimes a real pain to find something you yourself have written via the inbuilt search tool. For example vBulletin won't search for anything less than 4 characters and I had to use a circuitous method to dig out my earlier link to a post on LUA.
Originally posted by VectraMan View PostPython seems to be based on the premise that there are some people for whom brackets and semicolons are terrifying, and whilst I can kind of understand why some people might think like that, that doesn't mean it's a better language than all the C-syntax based alternatives.Last edited by Sysman; 16 June 2012, 13:30.
Leave a comment:
-
Originally posted by NickFitz View PostWhich also proves his complete ignorance of both.
Python seems to be based on the premise that there are some people for whom brackets and semicolons are terrifying, and whilst I can kind of understand why some people might think like that, that doesn't mean it's a better language than all the C-syntax based alternatives. And like all these scripting languages, the real killer is the lack of static types. I've had to maintain bits of complicated Python, and I can't understand why anybody thinks it's a good idea to use a language where you can't work out what anything is. I suppose at least it has classes (Javascript's equivalent is ludicrous), but without static types you lose 90% of the benefit.
Which brings us back to ECMAScript4 / ActionScript or whatever you want to call it, which had proper classes and static typing (like most of us have been doing for 20 years), as well as scripting style dynamic properties for when that's appropriate. And it was being produced by the official standards bodies ready to go into all the browsers and become a proper powerful modern object-oriented language for the web. But no, Apple and co (okay so it wasn't just Apple, but it seems appropriate to blame them) decided that it was too powerful and useful.
And the double irony is that all the recent Javascript engine speed hype (I was reading something today about IE10's improved JS performance) largely centres on clever techniques to detect the use of classes and object oriented programming at runtime (because all the analysis shows this is how serious programmers work) and convert the dynamic types back to static ones. If they'd just built it into the language a) it'd work much better, and b) it would have saved a whole lot of effort.
But as somebody who's written a JS interpreter, and integrated Microsoft's, Google's and QT's JS engines into not-a-browser applications, and done a load of JS programming for Flash, I'm probably just showing my ignorance. Sorry.
Leave a comment:
-
Originally posted by fullyautomatix View PostJavascript is pretty powerful as a language but its limitation is that it runs on the browser.
Leave a comment:
-
Originally posted by d000hg View PostOr you can just run JS outside the browser anyway. Though it seems a weird choice to me.Last edited by Durbs; 15 June 2012, 12:12.
Leave a comment:
-
Or you can just run JS outside the browser anyway. Though it seems a weird choice to me.
Leave a comment:
-
Originally posted by fullyautomatix View PostJavascript is pretty powerful as a language but its limitation is that it runs on the browser.
It looks extremely similar to JavaScript (which it pre-dates) - in fact, most of the example code snippets on the Wikipedia page would be valid JS with the addition of nothing more than ()s, {}s and ;s and would function identically, particularly the ones relating to closures and lambdas.
Leave a comment:
-
Originally posted by d000hg View PostJS and webby stuff may be in vogue but is ugly and there are a gazillion code-monkeys out there who can do it. It's the one area I've always stayed away from where possible.
Leave a comment:
-
Javascript is pretty powerful as a language but its limitation is that it runs on the browser. But as a dynamic language it can get really powerful if you know how to use it. Book wise try to read Secrets of the Javascript Ninja by John Resig.
Leave a comment:
- Home
- News & Features
- First Timers
- IR35 / S660 / BN66
- Employee Benefit Trusts
- Agency Workers Regulations
- MSC Legislation
- Limited Companies
- Dividends
- Umbrella Company
- VAT / Flat Rate VAT
- Job News & Guides
- Money News & Guides
- Guide to Contracts
- Successful Contracting
- Contracting Overseas
- Contractor Calculators
- MVL
- Contractor Expenses
Advertisers
Contractor Services
CUK News
- Streamline Your Retirement with iSIPP: A Solution for Contractor Pensions Sep 1 09:13
- Making the most of pension lump sums: overview for contractors Sep 1 08:36
- Umbrella company tribunal cases are opening up; are your wages subject to unlawful deductions, too? Aug 31 08:38
- Contractors, relabelling 'labour' as 'services' to appear 'fully contracted out' won't dupe IR35 inspectors Aug 31 08:30
- How often does HMRC check tax returns? Aug 30 08:27
- Work-life balance as an IT contractor: 5 top tips from a tech recruiter Aug 30 08:20
- Autumn Statement 2023 tipped to prioritise mental health, in a boost for UK workplaces Aug 29 08:33
- Final reminder for contractors to respond to the umbrella consultation (closing today) Aug 29 08:09
- Top 5 most in demand cyber security contract roles Aug 25 08:38
- Changes to the right to request flexible working are incoming, but how will contractors be affected? Aug 24 08:25
Leave a comment: