|
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.
|
|
|
|
|
|
If you think that's bad - you should try missing a semicolon after a class definition in C++
|
|
|
|
|
|
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() {};
|
|
|
|
|
[joke] pro tip: don't program in notepad [/joke]
Just use vscode[^]
Elephant elephant elephant, sunshine sunshine sunshine
|
|
|
|
|
I know the math is sketchy as hell but I love this any way.
Answer
| 0 0 | = | 100 - 100 100 - 100 | | 0 0 | = | (10*10) - (10*10) (10*10) - (10*10) | | 0 0 | = | 102 - 102 10 * (10 - 10) | |
| 0 0 | = | (10 + 10)(10 - 10) 10 * (10 - 10) | | 0 0 | = | (10 + 10) 10 | | 0 0 | = | 20 10 | | 0 0 | = | 2 | PROVED |
Not my work but I couldn't find a good copy of the original image.
I had to type all the HTML by hand, sigh. Works on Firefox.
if (Object.DividedByZero == true) { Universe.Implode(); }
Meus ratio ex fortis machina. Simplicitatis de formae ac munus. -Foothill, 2016
|
|
|
|
|
You cannot factorize or simplify anything once you have a zero somewhere in a multiplication.
(10 + 10) x (10 - 10) = (1 + 45687) x (10 - 10) = (21321 + 765461364165) x (10 - 10)
The whole reasoning is therefore biased.
You always obtain more by being rather polite and armed than polite only.
|
|
|
|
|
I know but it makes most people do a double take and think about it for a bit.
if (Object.DividedByZero == true) { Universe.Implode(); }
Meus ratio ex fortis machina. Simplicitatis de formae ac munus. -Foothill, 2016
|
|
|
|
|
phil.o wrote: (10 + 10) x (10 - 10) = (1 + 45687) x (10 - 10) = (21321 + 765461364165) x (10 - 10)
10+10 = 20
10-10 = 0
20x0 = 0?
Rules for the FOSW ![ ^]
if(this.signature != "")
{
MessageBox.Show("This is my signature: " + Environment.NewLine + signature);
}
else
{
MessageBox.Show("404-Signature not found");
}
|
|
|
|