|
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.
|
|
|
|
|
My first encountered with duct-typing, I though was bad idea. Now switching back to code in C#, I actually miss the duct-type and the ability of adding property on the go as in JavaScript.
No you are not the only weirdo.
|
|
|
|
|
|
Aless Alessio wrote: you'll deal with my XAML and i ll take your javascript duties
No way! I'm not touching that mess!
Marc
|
|
|
|
|
How about you do my CSS and I'll fix whatever problems you have (car, marriage, kids, anything is more fixable than CSS)
|
|
|
|
|
Of course that is not really Javascript's problem. I see plenty of stupid errors in Visual Studio. Sometimes when you have a mistake that means that a project does not compile there are a ton of others. Then there was the time that I had a WPF UserControl and the code behind did not see the names in the XAML. I would love to blame Javascript for this problem since I am not fond of the language for a number or reasons, but in this case I cannot.
|
|
|
|
|
Clifford Nelson wrote: I see plenty of stupid errors in Visual Studio.
True - the ones that are worst are Linq errors - those errors messages usually have nothing to do with the actual error.
Marc
|
|
|
|
|
use some codechecker like jslint. It may suck sometimes, but it also helps.
Do you know Swift?
Press F1 for help or google it.
Greetings from Germany
|
|
|
|
|
KarstenK wrote: use some codechecker like jslint. It may suck sometimes, but it also helps.
I can only imagine the thousands of warning and errors produced by this project, which is built around Django and Backbone.
KarstenK wrote: Do you know Swift?
Nope -- I take it it has obscure error messages too?
Marc
|
|
|
|
|
9 out of 10 hates JavaScript. But if you have the right tools (debugging/diagnostics) then you should be fine
PS: I also hate JS. Thanks to TypeScript for making my life less stressed!
modified 17-Aug-16 11:29am.
|
|
|
|
|
Vincent Maverick Durano wrote: Thanks to TypeScript for making my life less stressed!
Why do I not believe you?
Marc
|
|
|
|
|
Marc Clifton wrote: Why do I not believe you?
Because you hate JavaScript.
|
|
|
|
|
Jeremy Falcon
|
|
|
|
|
10 minutes is fast to find that. I'm serious. I've had a single missing comma cost me over an hour.
Painful.
|
|
|
|
|
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
|
|
|
|
|
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 wife had a missing period that cost me 22 years.
|
|
|
|
|
Marc man, what are you using for an IDE? function is a keyword and should be highlighted. You're making this hard on yourself man.
Jeremy Falcon
|
|
|
|
|
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
|
|
|
|
|
I use Sublime also. It supports syntax highlighting. You having a rough day? You need a hug? I can code one up for ya in JavaScript.
Jeremy Falcon
|
|
|
|
|
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...
|
|
|
|
|
Be mindful of the dark side...
|
|
|
|
|
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
Luckily I now know the problem is JavaScript, not me
I find JavaScript doable nowadays, but only when I don't have to deal with other people's code.
|
|
|
|
|
Be glad that you hate it. A couple of my coworkers are full on Stockholm syndrome.
|
|
|
|
|