From the mouth of the Javascript developer
-
When I read that Swift to JavaScript comparison[^]... I had quite a big laugh!
Apple wanted a language that would be modern, fast and safe. To anyone who has done a bit of Objective-C in the past, hearing the term “modern” should be music to his or her ears. Apple has delivered in that regard, with adding plenty of syntactic sugar onto the language. It is evident that they were inspired by modern scripting languages such as Ruby, Python, Groovy and of course JavaScript.
Well, if that if where they get their inspiration for a "modern" language, I can be forgiven for ignoring Swift then, I guess! :laugh: ;P (PS: I do Xamarin, long live C# :-D )
A new .NET Serializer All in one Menu-Ribbon Bar Taking over the world since 1371!
-
When I read that Swift to JavaScript comparison[^]... I had quite a big laugh!
Apple wanted a language that would be modern, fast and safe. To anyone who has done a bit of Objective-C in the past, hearing the term “modern” should be music to his or her ears. Apple has delivered in that regard, with adding plenty of syntactic sugar onto the language. It is evident that they were inspired by modern scripting languages such as Ruby, Python, Groovy and of course JavaScript.
Well, if that if where they get their inspiration for a "modern" language, I can be forgiven for ignoring Swift then, I guess! :laugh: ;P (PS: I do Xamarin, long live C# :-D )
A new .NET Serializer All in one Menu-Ribbon Bar Taking over the world since 1371!
I am not a Swift fan, but it has some advantages as I learned in the recent WWDC Videos as great type safety, optimization while compiling and linking and purity by coding. So Swift isnt really a scripting language but the successor of Objective-C. I have written some C# for years and it is fine, but never Xamarin. But I think cant do all iOS stuff on Xamarin and the performance isnt too great. Code in Swift has often only few lines of code: that scaries me.:~
Press F1 for help or google it. Greetings from Germany
-
When I read that Swift to JavaScript comparison[^]... I had quite a big laugh!
Apple wanted a language that would be modern, fast and safe. To anyone who has done a bit of Objective-C in the past, hearing the term “modern” should be music to his or her ears. Apple has delivered in that regard, with adding plenty of syntactic sugar onto the language. It is evident that they were inspired by modern scripting languages such as Ruby, Python, Groovy and of course JavaScript.
Well, if that if where they get their inspiration for a "modern" language, I can be forgiven for ignoring Swift then, I guess! :laugh: ;P (PS: I do Xamarin, long live C# :-D )
A new .NET Serializer All in one Menu-Ribbon Bar Taking over the world since 1371!
I like how "the bad" isn't actually bad, but how a proper language should work. Like type-safety and none of that weird (and unpredictable) truthy falsey stuff :D Edsger Dijkstra once said "It is practically impossible to teach good programming to students that have had a prior exposure to BASIC: as potential programmers they are mentally mutilated beyond hope of regeneration." I guess the same is true for JavaScript :sigh:
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
-
When I read that Swift to JavaScript comparison[^]... I had quite a big laugh!
Apple wanted a language that would be modern, fast and safe. To anyone who has done a bit of Objective-C in the past, hearing the term “modern” should be music to his or her ears. Apple has delivered in that regard, with adding plenty of syntactic sugar onto the language. It is evident that they were inspired by modern scripting languages such as Ruby, Python, Groovy and of course JavaScript.
Well, if that if where they get their inspiration for a "modern" language, I can be forgiven for ignoring Swift then, I guess! :laugh: ;P (PS: I do Xamarin, long live C# :-D )
A new .NET Serializer All in one Menu-Ribbon Bar Taking over the world since 1371!
Not hard to beat JavaScript. One of the worse languages developed. Too many weird things that have to be understood. Looks like C but not anything like any other C style syntax language. Then it is used for Web stuff, and it became more ridiculous. Does not play nice with XML and yet different. If it had played nice with HTML I would have said fine. By that I mean being able to just put code in the middle and not having to do any special formatting fixing to make it work. We have been stuck with this abomination way to long.
-
I like how "the bad" isn't actually bad, but how a proper language should work. Like type-safety and none of that weird (and unpredictable) truthy falsey stuff :D Edsger Dijkstra once said "It is practically impossible to teach good programming to students that have had a prior exposure to BASIC: as potential programmers they are mentally mutilated beyond hope of regeneration." I guess the same is true for JavaScript :sigh:
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
I particularly liked his example of something "bad":
var myValue = "FOO";
myValue = 5; // Compile-time error
WTF - why would you do that?
"If you don't fail at least 90 percent of the time, you're not aiming high enough." Alan Kay.
-
I particularly liked his example of something "bad":
var myValue = "FOO";
myValue = 5; // Compile-time error
WTF - why would you do that?
"If you don't fail at least 90 percent of the time, you're not aiming high enough." Alan Kay.
I had a JavaScript function (concocted by some coworkers) that I had to use. It was quite a big function and I wasn't very familiar with the domain, so I looked up a usage example, applied that to my own code, inspected the return value, processed it and tested some more. So after weeks of development my code suddenly broke. I had hit an edge case where the function suddenly returned something completely different (most of the time it would return an object with some values, but this time an array with completely other objects was returned) :wtf: WHYYYYY!?!?!?!? :((
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
-
I had a JavaScript function (concocted by some coworkers) that I had to use. It was quite a big function and I wasn't very familiar with the domain, so I looked up a usage example, applied that to my own code, inspected the return value, processed it and tested some more. So after weeks of development my code suddenly broke. I had hit an edge case where the function suddenly returned something completely different (most of the time it would return an object with some values, but this time an array with completely other objects was returned) :wtf: WHYYYYY!?!?!?!? :((
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
Those cow-orkers were complete idiots. And JavaScript is a back-asswards language that needs to be replaced with something that actually makes sense.
What do you get when you cross a joke with a rhetorical question? The metaphorical solid rear-end expulsions have impacted the metaphorical motorized bladed rotating air movement mechanism. Do questions with multiple question marks annoy you???