I hate JavaScript
-
Jeremy Falcon wrote:
Marc man, what are you using for an IDE?
I'm using Sublime. I suppose I could try VS Code, but then I have to figure out how to set it up to FTP saves over to the Ubuntu VM running the app. (Editing in Ubuntu sucks, one of many reasons being that the numeric keypad cursor keys don't work, and using the "T" is not something I ever got used to and cramps my fingers.) Marc
Imperative to Functional Programming Succinctly Contributors Wanted for Higher Order Programming Project! Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny
I use Sublime also. It supports syntax highlighting. You having a rough day? :laugh: You need a hug? I can code one up for ya in JavaScript.
Jeremy Falcon
-
:^) oh man ... am i the only weirdo who likes coding in Javascript ?!?
I am one that don't dislike javascript anymore, although I used to. In fact we just finished a quite complex system in which javascript plays a major role in both the server side and client side (see my signature) and it works quite well. As a matter of fact, I am feeling that the javascript codes we produced are more readable than the C# counter part (some of the equivalent logic were were realized in C# before) due to its functional style of representation
Find more in 1-NET: connects your resources anywhere[^]. Email searcher Email Aggregation Manager[^].
-
raddevus wrote:
I've had a single missing comma cost me over an hour.
Same here. It took forever to actually realize it even wanted a comma. That was in my n00b days working with Backbone. Sort of trial by fire, was asked to implement a bunch of pages on existing project, never used Backbone before. Marc
Imperative to Functional Programming Succinctly Contributors Wanted for Higher Order Programming Project! Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny
Marc Clifton wrote:
It took forever to actually realize it even wanted a comma. That was in my n00b days working with...
AngularJS (1.x) Exact same experience, just a different JS library. :) Hilarious!! and/or Terrible!! All for the lack of a decent compiler and good warnings.
My book, Launch Your Android App, is available at Amazon.com.
-
Took me 10 minutes to find the error:
onProceed: funtion() {
And of course, the only error I get isUncaught SyntaxError: Unexpected token {
So of course I wonder, where did I have a mismatched curly brace??? Wrong wonderment. X| MarcImperative to Functional Programming Succinctly Contributors Wanted for Higher Order Programming Project! Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny
If that didn't make your half program red, you use the wrong IDE. In fact a simple editor that highlight keywords would detect that (Why is the "funtion" not highlighted?). When people used notepad (not notepad++) for programming they had all these problems with typos and semicolons. Those were difficult ancient times...
-
Took me 10 minutes to find the error:
onProceed: funtion() {
And of course, the only error I get isUncaught SyntaxError: Unexpected token {
So of course I wonder, where did I have a mismatched curly brace??? Wrong wonderment. X| MarcImperative to Functional Programming Succinctly Contributors Wanted for Higher Order Programming Project! Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny
Be mindful of the dark side...
-
let's make an agreement, mate: you'll deal with my XAML and i ll take your javascript duties
How about you do my CSS and I'll fix whatever problems you have (car, marriage, kids, anything is more fixable than CSS) X|
Read my (free) ebook Object-Oriented Programming in C# Succinctly. Visit my blog at Sander's bits - Writing the code you need. Or read my articles here on CodeProject.
Simplicity is prerequisite for reliability. — Edsger W. Dijkstra
Regards, Sander
-
Took me 10 minutes to find the error:
onProceed: funtion() {
And of course, the only error I get isUncaught SyntaxError: Unexpected token {
So of course I wonder, where did I have a mismatched curly brace??? Wrong wonderment. X| MarcImperative to Functional Programming Succinctly Contributors Wanted for Higher Order Programming Project! Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny
-
Took me 10 minutes to find the error:
onProceed: funtion() {
And of course, the only error I get isUncaught SyntaxError: Unexpected token {
So of course I wonder, where did I have a mismatched curly brace??? Wrong wonderment. X| MarcImperative to Functional Programming Succinctly Contributors Wanted for Higher Order Programming Project! Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny
I once spend 15 minutes trying to write a simple Hello World in JavaScript. I had pretty much the same problem. Boy, do you feel stupid when you have years of experience and fail at Hello World :laugh: Luckily I now know the problem is JavaScript, not me :D I find JavaScript doable nowadays, but only when I don't have to deal with other people's code.
Read my (free) ebook Object-Oriented Programming in C# Succinctly. Visit my blog at Sander's bits - Writing the code you need. Or read my articles here on CodeProject.
Simplicity is prerequisite for reliability. — Edsger W. Dijkstra
Regards, Sander
-
Took me 10 minutes to find the error:
onProceed: funtion() {
And of course, the only error I get isUncaught SyntaxError: Unexpected token {
So of course I wonder, where did I have a mismatched curly brace??? Wrong wonderment. X| MarcImperative to Functional Programming Succinctly Contributors Wanted for Higher Order Programming Project! Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny
If you think that's bad - you should try missing a semicolon after a class definition in C++
-
:-D come ooooooooooooon With the relatively new "ECMA6", writing in Javascript is pretty much like writing in C# ECMAScript 6: New Features: Overview and Comparison[^]
goddam right! :thumbsup:
-
:-D come ooooooooooooon With the relatively new "ECMA6", writing in Javascript is pretty much like writing in C# ECMAScript 6: New Features: Overview and Comparison[^]
That's fine if you control the environment. If you're writing a website, it's going to be 10+ years before you can safely use those features without a "transpiler" to convert them back to ES5. And even then, you'll still have users on IE6 complaining that your site is broken. :rolleyes:
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
-
Took me 10 minutes to find the error:
onProceed: funtion() {
And of course, the only error I get isUncaught SyntaxError: Unexpected token {
So of course I wonder, where did I have a mismatched curly brace??? Wrong wonderment. X| MarcImperative to Functional Programming Succinctly Contributors Wanted for Higher Order Programming Project! Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny
Yeah, Cobol was easier!
-
:^) oh man ... am i the only weirdo who likes coding in Javascript ?!?
Nope. Takes a little getting used to when you usually code in C# or something but it's just another language you can do some interesting things with.
-
Took me 10 minutes to find the error:
onProceed: funtion() {
And of course, the only error I get isUncaught SyntaxError: Unexpected token {
So of course I wonder, where did I have a mismatched curly brace??? Wrong wonderment. X| MarcImperative to Functional Programming Succinctly Contributors Wanted for Higher Order Programming Project! Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny
Really? No syntax hilighting? `function` is blue and `funtion` is grey. Or you're using the wrong editor. Otherwise, prepend this to all your javascript:
var funtion = function(){ throw new Error("you typed _funtion_ instead of _function_"); };
var x = funtion() {}; -
Took me 10 minutes to find the error:
onProceed: funtion() {
And of course, the only error I get isUncaught SyntaxError: Unexpected token {
So of course I wonder, where did I have a mismatched curly brace??? Wrong wonderment. X| MarcImperative to Functional Programming Succinctly Contributors Wanted for Higher Order Programming Project! Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny
-
That's fine if you control the environment. If you're writing a website, it's going to be 10+ years before you can safely use those features without a "transpiler" to convert them back to ES5. And even then, you'll still have users on IE6 complaining that your site is broken. :rolleyes:
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
That's the thing! If you look at this link ECMAScript 6 compatibility table[^] you ll see that almost every browser is now ECMA6 compatible. The only and only exception is IE. So, let's move those old IE aficionados to Edge then
-
Yes.
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
There was a time when I frequently used Javascipt to knock of quick and dirty batches. Then along came powershell and I was reformed. Hallelujah!
We're philosophical about power outages here. A.C. come, A.C. go.
-
That's the thing! If you look at this link ECMAScript 6 compatibility table[^] you ll see that almost every browser is now ECMA6 compatible. The only and only exception is IE. So, let's move those old IE aficionados to Edge then
Edge has 2 use cases: 1) Downloading Chrome 2) Amazement that they made it so much faster while making it feel like it's just broke!
-
:^) oh man ... am i the only weirdo who likes coding in Javascript ?!?