Originally posted by fullyautomatix
View Post
- 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!
Learning Javascript
Collapse
X
-
-
Originally posted by d000hg View PostPerhaps re-read his post and you'll spot he never suggested any similarity except they were both crap.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.Will work inside IR35. Or for food.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.Behold the warranty -- the bold print giveth and the fine print taketh away.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.Comment
-
Originally posted by NickFitz View PostWhich also proves his complete ignorance of both.Originally posted by MaryPoppinsI'd still not breastfeed a naziOriginally posted by vetranUrine is quite nourishingComment
-
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.Will work inside IR35. Or for food.Comment
-
Originally posted by VectraMan View PostI have to admit in my (slightly drunken) rant the other night I hadn't considered the Swiss.
It isn't just the Swiss. Almost every non-English keyboard I've come across suffers from this affliction.Behold the warranty -- the bold print giveth and the fine print taketh away.Comment
-
scripting languages are good for providing the glue between high level components created in proper programming languagesbloggoth
If everything isn't black and white, I say, 'Why the hell not?'
John Wayne (My guru, not to be confused with my beloved prophet Jeremy Clarkson)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
Comment