i'm a cakephp programmer and dont give a damn about the video's content, just find them funny... u ppl should stop taking it so seriously. we're all making money out of our favorite framework/language... (if you're not, then you should be angry)
dynamic typing would mean that the type is chosen dynamically(e.g. at runtime). Which is pointless in any language even ruby. var a = 5; would be type inference. The type is chosen at compile time. Ruby on the other hand, correct me if I'm wrong, does not type variables.In the same function you can have:
a = "5"
puts a
a = 5
puts a
a = [5, 5, 5]
puts a
Which means that a points to three different types depending at point of access. This is wouldn't be type inference or dynamic typing.
By the way I like Ruby/RoR, but this is not a good comparison. I do agree the M$ is trying to copy or simulate things that dynamic languages are doing. Especially in C# 4.0.
Strongly typed variables are merely the first unit test of the system. It simply tells you if you are making a mistake by assigning an object to an int. The same rules and practices apply if you are doing dynamic or not, just dynamic allows you to shoot yourself in the foot is all.
Firstly, static typing is superior. Secondly, C# now has real dynamic typing. Thirdly, neither this video or the other Ruby on Rails vs .Net video shows any dimension of superiority to ASP.net.
All it did for me was give me a laugh and make me more of an ASP.net fan.
Idiots. "var a = 5" is NOT dynamic typing, it is sytactic sugar that maintains the speed and type safety of a statically typed language, while Ruby is stuck with ONLY pure dynamic typing. In C# (.net) you can do "dynamic a = 5" and then later assign anything, even a COM object to a because it is now a truly dynamically typed variable. Of course it is crazy slow depending on the kind of object you're assigning.
So C# lets you have the best of dynamic, with the efficiency of var.
:) Am i the only one that noticed that Ruby on Rails didnt say anything about the Python Framework? :) And well it's Windows :P they are going to sue anyone for doing something better then them. If you dont believe this check out the Microsoft Halloween Papers...
Type inference : all the performance advantages of static typing, easy refactoring + code completion that work well. Not the same at all as dynamic typing.
Now, .NET 4 DOES support real dynamic typing. Not used much, but in some place like COM interop or ViewData, or where you'd use reflection, it fit the job well. Amazing how .NET let me choose the right kind of tool for the job.
I neither love C# nor Ruby on Rails. But, isn't comparing a language framework like C# with a webdevelopment framework a bit stupid? I mean, I can imagine writing a webserver in C#, can Ruby on Rails do that? I think you're comparing pineapples and airplanes here.
RoR is for Web Development. .net is for everything that run CLI, desktops, mobile devices, web servers, robots, you name it! CLI is a open standard and the Mono project is moving FAST, they are also a Microsoft Gold Partner. So there's only a matter of time until there's no vendor lock-in.
RoR is tailored for the web. .NET is a universal framework.
Ok. VAR keyword (dynamic typing ) was introduced to make LINQ possible . If you don't know what that is , you should research a little . Of course .Net has its faults (as every language does ) but LINQ is one of the most amazing things i've seen in the IT world in the last few years. There are even ports for Php and other languages. Also .... how many Ruby programmers do you know ?
dynamic typing leads to slopy code if its the fucking standard.
having an optional duck type is the only reasonable use what so ever!
and even then i never use it!
and im not stanger of dynamic typing i code in C syntax basic delphi and javascript (c/lisp hybrid with prototypal inheritance)
everything ruby on rails has .net has in spades when we want something microsoft serves it to us on a silver plate and if we dont like it the language is so well writen that writen.....
@ZerqTM that writing something like an ORM framwork is childesplay... ok so a very complex childrens game but still...
rubys syntax is just messy! and ugly!
and if you must code ruby you can do that under .net as well.
C# is the best syntax ever consived (ok so i wouldent mind having prototypal inheritance as an option... that would be fun... but over all it kicks anything elses ass by a mile!!!
@raydeen2k Python has ONLY dynamic typing, which means it's insanely slow. I couldn't imagine using the "dynamic" keyword for every declaration in my app, it would slow things down so effing bad.
C# (and VB.NET) have "var" which is syntactical sugar that makes your code smaller and easier to read, but the type is still known at compile time. It ALSO has the "dynamic" keyword for truly dynamic variables which can be assigned anything at runtime, even COM objects. C# rules them all.
@hammerboi87 The SBCL compiler beats C# only when effectively turning off dynamic type checking, by telling the compiler to trust the declared types.
I wasn't 'boasting' about COM objects, just saying the thing that's pointed to can be interacted with in the same way regardless where the object exists, or its form.
As if dynamic typing gave my life new meaning - as if .net/ruby/java/framework topics could make my heart beat raise because of anything else than fustration. I like it type-safe, feels more secure ... others may not.
The video was fun though - i'll give it a 3 star :).
Another dumb one. I mean, let's see: C# now lets you choose if you want to declare types explicitly or not. Ruby lets you use any typing model you want, so long as it's dynamic typing. It's sort of hard to see a lack of a feature as a good thing (and -- this may come as a surprise to some -- but some programmers actually prefer static typing; it can make coding errors easier to catch).
@ZerqTM When you've mercy killed the rotting carcass of php and taken its place i might consider ruby..
Damn i hate that rotten stinking unholy unicode murdering american idiot made acsii bullshit language piece of rotting shit langauge...(php) (phail programing (as ph = f))
God almighty, all these videos achieve is making ruby programmers look like assholes. Trust me, this arrogance is limited to the rails community and I personally despise it.
I just used the code from my C# asp web app in a windows application with no changes works nice. can you show me how to do this in ruby? If you can show me then I will show you how I run the same app on a linux machine.
Python can declare variables without var even. U need just to write i=5 and it's int, i=5.0 and it's float(double), i='awqee' or i="affew" and it's char(smart string obviously)
Yes which is actually not a good thing basing it on ECMAScript's same "feature". When doing it like that you are declaring the variable global if you don't remove it from memory it is stored and can crash your function next time if you have option parameters.
Yes it does make it a bit easier but it's also bad programming practice. But I'd say ruby is better then python based on syntax, as for power I use C++/PHP for my development so I wouldn't know but from my knowledge there about the same but python is more practical for oop.
Hey, you dont even know what you are talking about in this video. "var" keyword is not for dynamic variables - it's for ANONYMOUS variables. You can declare dynamic variables in c#4.0 using "dynamic" keyword. So.. either you dont know what dynamic is or you are critizising a platform which you dont know well. Moreover, you could invert this situation and mock Ruby because it has no static typing! The best comment for this video is: EPIC FAIL!
1. Adding language bloat when Ruby has it for free is a good thing?
2. Ruby is strongly and dynamically typed. It should be obvious to anyone that Ruby is not statically typed since it runs in an interpreter(ie runtime). It doesn't have a compiler so how could it be staticly typed.?
Then why is it Java or C# could not produce anything as slick as Rails?
You can make a rails-like framework in Java, but it will be cludgy and clunky.
The dynamic features of ruby makes it possible to have model classes that don't need to know the methods to access table columns before hand. They can be created at runtime. The metaprogramming and DSL features of Ruby puts it miles ahead of anything unless it is named smalltalk, lisp or python.
@mcintyre321 touché, you are right, I just verified the comparison of dynamic and var. However, bobdoer was being rude and said that dynamic typing didn't exist in C#. Thanks for the response. I'm wanting to learn to develop Silverlight Apps one day (I mostly program in AS3 today), so hopefully I will become more knowledgeable of C# one day.
@tropicallanterns even worse, he was right at the time! the dynamic keyword didn't come in until .net 4 (2010). he was however also being a bit rude, i'll grant you that!
@bobdoer Actually They Do Have Implementation For Dynamic Typing. As Of 3.0, Although Admittedly It Sucks. Ive Used It Once Or Twice. Compare To The Languages Built For Dynamic Type Casting It Is Sluggish And Pretty Much Worthless, But It Does Exist
A better example of dynamic typing would be how a static type program chokes on a var that's an unexpected type.
Actually, PHP is more flexible than Ruby...
but since when is that considered a language feature? Static typing is fine, it's like database constraints. It required you to pay more attention and can show flaws that a dynamically typed language might let pass.
Ruby's duck typing and coercion is probably the best, it's a bit more explicit than PHP but still flexible.
"var" ?? Dynamic typing? Does he even know what hez talkin about?
For some standard reference,
here i quote, Herb Sutter himself saying that on his blog,
var sb = new StringBuilder(256);
var e = new UTF8Encoding();
var md5 = new MD5CryptoServiceProvider();
It's not dynamic typing, per se; C# is still very much a statically typed language. It's more of a compiler trick, a baby step toward a world of Static Typing Where Possible, and Dynamic Typing When Needed.
This video reminded me of IE 7 tab browsing feature. when you press ctr+t in IE7 it opens a new tab and says welcome to tab browsing. It's like IE is the first application that introduced tab browsing lol
Real programmers try many languages and select the most appropriate "tool" for the application.
Weenie programmers learn jAVA or potNet in school and then whine at all other alternatives.
I just rewrote a application whose purpose was post processing of text files and someone wrote it in Java LOL! It was 50 source code files. I rewrote it in Perl (the proper language for the task) and it came out to 5 files (and no they were not huge obfuscated files, weenies).
This is stupid. MS hardly mentioned dynamic typing. It's an incredibly minor new feature of visual studio 2008. They never claimed they were 'new' with it.
Dynamic typing is a good way to introduce bugs that the compiler cannot help you catch. Just because it's a new feature does not mean you guys should rush to use it.
What's so great about dynamic typing? Does it not tend to make you to introduce subtle, hard-to-spot bugs into your code. That's one thing I like about java - it encourages good coding practices.
so sick of the Mac v PC commercial rips. Enough already.. make it stop. Why is the guy representing the "superior" product always the less likeable dooosh bag in these commercials. Smug and pretentious are not desirable qualities.
actually AFAIK what C# 3.0 has is type inference. the type information is still determined and checked at compile time, there's just less superfluous type information present.
this is what languages like ML have had for the last 30 years. mainstream languages give static typing a bad name.
you are right, its type inference not dynamic typing. It's funny how they don't mention the actual dynamic feature, the DLR. oh wait.. because it hosts all kinds of "dynamic languages" Ruby, python,vb,javscript etc.
Microsoft has good stuff and shit. .NET is the good stuff. RoR is bitchin though.
i'm a cakephp programmer and dont give a damn about the video's content, just find them funny... u ppl should stop taking it so seriously. we're all making money out of our favorite framework/language... (if you're not, then you should be angry)
froggprod 2 weeks ago
Some of your guys have to lighten up. They're pretty funny videos lol.
yukimushu 2 weeks ago
dynamic typing would mean that the type is chosen dynamically(e.g. at runtime). Which is pointless in any language even ruby. var a = 5; would be type inference. The type is chosen at compile time. Ruby on the other hand, correct me if I'm wrong, does not type variables.In the same function you can have:
a = "5"
puts a
a = 5
puts a
a = [5, 5, 5]
puts a
Which means that a points to three different types depending at point of access. This is wouldn't be type inference or dynamic typing.
Omego2K 3 weeks ago
By the way I like Ruby/RoR, but this is not a good comparison. I do agree the M$ is trying to copy or simulate things that dynamic languages are doing. Especially in C# 4.0.
Omego2K 3 weeks ago
Why does everyone take these videos so damn serious?
complicatedfiend 3 weeks ago
0/10
acidmeat 1 month ago
.net/c# is fucking lovely.
diwr 1 month ago
This debate is rather heated, I don't think you understand the seriousness of the topic at hand. This is life of death shit.
ryanthomaskendall 2 months ago 2
These guys don't know what their talking about.
"var a = 5;" in c# is not dynamic typing. It is called Type Inference.
Dynamic is done differently. You're just making your self a fool trolling the internet.
johnnyalibuyog 2 months ago 4
Strongly typed variables are merely the first unit test of the system. It simply tells you if you are making a mistake by assigning an object to an int. The same rules and practices apply if you are doing dynamic or not, just dynamic allows you to shoot yourself in the foot is all.
bluefootedpig 3 months ago
Furthermore, I don't think they're real developers. They must be actors or something like that. :)
IMO, as developers they are good actors :) lol
clauromero1976 3 months ago
This video is not comparing NET vs Rails, it only compares what 2 coders can do in 2 different programming languages.
You can write crappy code in any language, including Ruby On Rails.
What's the next video? Rails vs Assembler? Rails vs C?
These guys are funny.
These 2 guys should go back to school. They may learn something about programming.
clauromero1976 3 months ago 2
This is totally idiotic
clauromero1976 3 months ago
Excuse me?
clauromero1976 3 months ago
Dumbest video ever created!
gabefuller 3 months ago
RoR is great. So why do guys make everyone else hate it?
knugie 3 months ago
This has been flagged as spam show
get ALL the gems!
Geokido 4 months ago
Good video
memoivoila 4 months ago
It's only me that finds dynamic typing more of a problem than a solution? I mean, why shouldn't I be able to choose the type of my variables?
I get that it makes things easier to code, but why dynamic typing usually completely disables the ability of specific type decleration?
loupax 4 months ago
You guys are good, well done.
notinheritable 4 months ago
Firstly, static typing is superior. Secondly, C# now has real dynamic typing. Thirdly, neither this video or the other Ruby on Rails vs .Net video shows any dimension of superiority to ASP.net.
All it did for me was give me a laugh and make me more of an ASP.net fan.
Hiei102493 5 months ago
Idiots. "var a = 5" is NOT dynamic typing, it is sytactic sugar that maintains the speed and type safety of a statically typed language, while Ruby is stuck with ONLY pure dynamic typing. In C# (.net) you can do "dynamic a = 5" and then later assign anything, even a COM object to a because it is now a truly dynamically typed variable. Of course it is crazy slow depending on the kind of object you're assigning.
So C# lets you have the best of dynamic, with the efficiency of var.
Christobanistan 5 months ago
Even though they made themselves look like asses -- some of these were pretty funny. Got to admit that,
BacklTrack 5 months ago
:) Am i the only one that noticed that Ruby on Rails didnt say anything about the Python Framework? :) And well it's Windows :P they are going to sue anyone for doing something better then them. If you dont believe this check out the Microsoft Halloween Papers...
darkdiabolica 5 months ago
Type inference : all the performance advantages of static typing, easy refactoring + code completion that work well. Not the same at all as dynamic typing.
Now, .NET 4 DOES support real dynamic typing. Not used much, but in some place like COM interop or ViewData, or where you'd use reflection, it fit the job well. Amazing how .NET let me choose the right kind of tool for the job.
Kalemine1 6 months ago 2
Srsly? You are pointing out dynamic typing as an advantage...?
slosd 6 months ago
i dont know why but these commercials really really make me angry
Terminigga 6 months ago
haha suing you for everything you have
expectomas 7 months ago
Well, Ruby has no static typing. (How do they refactoring?)
einrealist 7 months ago
I neither love C# nor Ruby on Rails. But, isn't comparing a language framework like C# with a webdevelopment framework a bit stupid? I mean, I can imagine writing a webserver in C#, can Ruby on Rails do that? I think you're comparing pineapples and airplanes here.
psygate 8 months ago 5
dynamic typing is for .....
ilikechess1 9 months ago
RoR is for Web Development. .net is for everything that run CLI, desktops, mobile devices, web servers, robots, you name it! CLI is a open standard and the Mono project is moving FAST, they are also a Microsoft Gold Partner. So there's only a matter of time until there's no vendor lock-in.
RoR is tailored for the web. .NET is a universal framework.
Gabbsmo 10 months ago 4
very funny :)
aman1ca 10 months ago
Wow, this series somehow managed to piss off ALL the programmers out there...
Zotov13 10 months ago 46
@Zotov13
Worng.
I'm laughing my ass of.
DeadSteal 6 minutes ago
Lol....you couldn't pay me a million dollars to do that whack ass dance he did at the end of the video! xD
Lol at a feature called "sue you for all you have."
Ravenex2 10 months ago
@Ravenex2 OK that was funny. LOL
midarkmind 6 months ago
I don't care about C# or any other click oriented language, but that was an *epic fail* my friend.
fugitivodoinferno 10 months ago
Type inference & dynamic typing are both bad programming practices. It makes your code harder to read and thus harder to maintain.
cplusplus84 10 months ago
oh man... this one was awesome. Freakin' hilarious :D
torment3d 11 months ago
I lol'ed hard at the "rubies and gems" hahahaha
dgoponciano 11 months ago
haha, these guys are awesome! I read nothing but .net developers crying on here..
2potatocakes 11 months ago
Ok. VAR keyword (dynamic typing ) was introduced to make LINQ possible . If you don't know what that is , you should research a little . Of course .Net has its faults (as every language does ) but LINQ is one of the most amazing things i've seen in the IT world in the last few years. There are even ports for Php and other languages. Also .... how many Ruby programmers do you know ?
waly666 1 year ago
That was EPIC. :D .NET SUCKS! C# and the rest of M$ languages have to be so complex to cover cosmic holes in basic libraries functionality.
kurrator1 1 year ago
*EPIC FAIL*
Since when is type inference the same as dynamic typing?
You better know what you are talking about, before you make fun about it or you look like total fools.
d34d10ck 1 year ago
You should do one Scala on Lift Vs Ruby on Rails and have Ruby on Rails be a fat guy racing a Scala on Lift, a professional runner.
drumma5 1 year ago
Oh my god that laugh is fucking priceless!!! xD haha. Funniest thing I've heard all day :)
mrbinkidoo 1 year ago
Lame!
dynamic typing leads to slopy code if its the fucking standard.
having an optional duck type is the only reasonable use what so ever!
and even then i never use it!
and im not stanger of dynamic typing i code in C syntax basic delphi and javascript (c/lisp hybrid with prototypal inheritance)
everything ruby on rails has .net has in spades when we want something microsoft serves it to us on a silver plate and if we dont like it the language is so well writen that writen.....
ZerqTM 1 year ago
@ZerqTM that writing something like an ORM framwork is childesplay... ok so a very complex childrens game but still...
rubys syntax is just messy! and ugly!
and if you must code ruby you can do that under .net as well.
C# is the best syntax ever consived (ok so i wouldent mind having prototypal inheritance as an option... that would be fun... but over all it kicks anything elses ass by a mile!!!
ZerqTM 1 year ago
"oh I forgot to tell you about this other new feature we have, it's called suing you for everything you have", lol'd hard.
supadox 1 year ago 3
Well these seem funny to non-programmers. :O
Novusium 1 year ago
What?! Hahahaha!
jvdanilo 1 year ago
But this one is really good, better than "vs CF"
zharcos 1 year ago
And I'm Python and I laugh at both of you. Had all this for years.
raydeen2k 1 year ago
@raydeen2k Yes, and the Django vid never said what RoR had over Django!
Novusium 1 year ago
@raydeen2k Python has ONLY dynamic typing, which means it's insanely slow. I couldn't imagine using the "dynamic" keyword for every declaration in my app, it would slow things down so effing bad.
C# (and VB.NET) have "var" which is syntactical sugar that makes your code smaller and easier to read, but the type is still known at compile time. It ALSO has the "dynamic" keyword for truly dynamic variables which can be assigned anything at runtime, even COM objects. C# rules them all.
Christobanistan 5 months ago
@Christobanistan
You do realize that Common Lisp is dynamically typed, and the SBCL compiler beats C# quite handily at the speed benchmarks, right?
And if you think "even COM objects" is some great boast, you have never used lisp.
hammerboi87 4 months ago
@hammerboi87 The SBCL compiler beats C# only when effectively turning off dynamic type checking, by telling the compiler to trust the declared types.
I wasn't 'boasting' about COM objects, just saying the thing that's pointed to can be interacted with in the same way regardless where the object exists, or its form.
Christobanistan 4 months ago
Congratulations, you just made total asses of yourselves in front of the entire internet.
inopiaaardbei 1 year ago 93
As if dynamic typing gave my life new meaning - as if .net/ruby/java/framework topics could make my heart beat raise because of anything else than fustration. I like it type-safe, feels more secure ... others may not.
The video was fun though - i'll give it a 3 star :).
Duranak 1 year ago
Another dumb one. I mean, let's see: C# now lets you choose if you want to declare types explicitly or not. Ruby lets you use any typing model you want, so long as it's dynamic typing. It's sort of hard to see a lack of a feature as a good thing (and -- this may come as a surprise to some -- but some programmers actually prefer static typing; it can make coding errors easier to catch).
n5jrn 1 year ago 2
lol, I cracked up at "we're going to take your rubys and gems" xD
tropicallanterns 1 year ago
I don't know what they're smoking, but I want some too!
nathan7tube 1 year ago
hmm.. actualy considering your canibalizing the php user base...
Is that a good thing... everyone knows php...
I.e some of the world worst and slopiest programmers undisiplined programmers...
I pitty you.... seriously.. i pitty you...
Your getting the worlds worst, sloppiest and undisiplined programmers!
people who dont care if they mess up a site for half of europe and leave security holes you can drive a buss through
ZerqTM 1 year ago 3
Also i notice you havent made a video of .Nets MVC framework....
Your being kinda quitet.... *grasshopper sound*
I mean seriously who are the envous ones...
ZerqTM 1 year ago
Oh booo hoooo hooo.. lool typing who cares!
anyway loos typing only leads to slopy messy code!
its for retards! fuck you!
Ruby has nothing of intrest its.
now if you had prototypal inheritance then you might have soemthing at least... but you dont so fuck you
anytime microsoft gives us more toys from your toybox you gloat...
but your missing the point we have more toys then you...
We have better toys then you...
And our toys are used in the vast majority of webhotells...
ZerqTM 1 year ago
@ZerqTM When you've mercy killed the rotting carcass of php and taken its place i might consider ruby..
Damn i hate that rotten stinking unholy unicode murdering american idiot made acsii bullshit language piece of rotting shit langauge...(php) (phail programing (as ph = f))
ZerqTM 1 year ago
God almighty, all these videos achieve is making ruby programmers look like assholes. Trust me, this arrogance is limited to the rails community and I personally despise it.
MrRubiez 1 year ago 3
I guess it's true that M$ developers don't have a sense of humor ;)
Stop taking yourself so seriously folks.
megamarsvin 1 year ago
I just used the code from my C# asp web app in a windows application with no changes works nice. can you show me how to do this in ruby? If you can show me then I will show you how I run the same app on a linux machine.
singerdave2001 1 year ago
Because static typing is sooo hard and time consuming. Observe the following:
n = 8
vs
int n = 8
oh no! 4 extra keystrokes
jastat 1 year ago
@jastat that's not the point, the point is that n = 8 can become n = "string" later in the code, while int n = 8 can't.
wackyman 1 year ago
Comment removed
Ballero0 1 year ago
C# -- Dynamic, implicit, and explicit typing
Ruby -- Dynamic typing
Guess which language is more flexible type-wise?
MalcolmCarmen 1 year ago
"we are gonna take all your rubies and gems" hahahahha ... amazing ...
suvirj 1 year ago 4
this one is actually funny
T0mmyAngel0 1 year ago 5
Python can declare variables without var even. U need just to write i=5 and it's int, i=5.0 and it's float(double), i='awqee' or i="affew" and it's char(smart string obviously)
aliancemd 1 year ago
Yes which is actually not a good thing basing it on ECMAScript's same "feature". When doing it like that you are declaring the variable global if you don't remove it from memory it is stored and can crash your function next time if you have option parameters.
SomaVIII 1 year ago
@SomaVIII Yes, from this point of view but in ease of use... That makes it even easier to learn...
aliancemd 1 year ago
Yes it does make it a bit easier but it's also bad programming practice. But I'd say ruby is better then python based on syntax, as for power I use C++/PHP for my development so I wouldn't know but from my knowledge there about the same but python is more practical for oop.
SomaVIII 1 year ago
C# doesnt have dynamic typing until v4.0. C# 3 has implicit typing, which is just a compiler trick.
voodoocigam 2 years ago
@voodoocigam True.
4K4K1K0 1 year ago
Who really cares if ruby has dynamic typing? Dynamic typing is actually slower than static typing.
b1narycoder 2 years ago
The irony is the makers of these videos are ridiculing themselves and their toy framework, not Microsoft!
LAnonHubbard 2 years ago
Lawl, Stolen from PHP. :D No idea where PHP got it from, but PHP had it before Ruby. ;]
vaccutter 2 years ago
@vaccutter Cough ECMAScript (aka Javascript) I think they had it first.
FrozenIceCweam 2 years ago
Ok. I knew PHP was not the first one, but I damn well know Ruby wasn't so no clue why they made a commercial about it..
vaccutter 2 years ago
@FrozenIceCweam Nope, PHP had it first PHP was designed in 1995 while JavaScript was developed in 1996 - ironic isn't it?
Of course back then PHP was a lot less functional.
b1narycoder 2 years ago
@b1narycoder Ever heard of LISP?
4K4K1K0 1 year ago
@FrozenIceCweam Nope, there have been much, much older programming languages with dynamic typing.
4K4K1K0 1 year ago
Hey, you dont even know what you are talking about in this video. "var" keyword is not for dynamic variables - it's for ANONYMOUS variables. You can declare dynamic variables in c#4.0 using "dynamic" keyword. So.. either you dont know what dynamic is or you are critizising a platform which you dont know well. Moreover, you could invert this situation and mock Ruby because it has no static typing! The best comment for this video is: EPIC FAIL!
MoroJesha 2 years ago 6
Actually, the var keyword is also used for type inference.
dimituri 2 years ago
LOL
1. Adding language bloat when Ruby has it for free is a good thing?
2. Ruby is strongly and dynamically typed. It should be obvious to anyone that Ruby is not statically typed since it runs in an interpreter(ie runtime). It doesn't have a compiler so how could it be staticly typed.?
Lilinye 2 years ago
RUBBISH
pharmajoe990 2 years ago
lol @ sue every you have
sunnz 2 years ago
i think that was actually kinda funny
Gernsback 2 years ago 3
ruby has the worst haircut ever
ekeko79 2 years ago 3
we gonna take all your rubies and gems! lol!
73217123 2 years ago 3
wow... .NET acts more like a dick than Ruby looks like in this vid
Not saying i don't like ruby or these commercials tho ^^
00iCrazy00 2 years ago
dynamic typing is for lames.
RACOS666 2 years ago
gem install linq ? :(|)
vinnymale 2 years ago
i like the microsoft mormon look.
aenygma 2 years ago 3
!before you were java ,php, .net and so on.
What about next ? a looser vs Ruby on fails oh tails i mean rails.
what2search 2 years ago
the ruby guy is a dick.
MasterMind300 2 years ago
hes meant to be on
deathly94 2 years ago
class rubyonrails extends crapLanguageLibrary{ public function __construct(){ makeSomeCrap(); return "Somthing random"; }
}
Phprs 2 years ago 5
Dude, you just reminded me how ugly PHP syntax is. Please stop it.
meskyanichi 2 years ago
var ruby = "sucks";
Seems to work well enough :-)
JamesHardingVideos 3 years ago 9
Ruby sucks. .NET is worse but that doesn't make Ruby good.
liquidthex 3 years ago 4
I've actually heard the best way to learn rails is to not know any Ruby.
TheRealFallenDemon 3 years ago
You can learn reals without learning ruby, because Rails is a DSL written in Ruby: it is its own language.
However, to get the most out of rails you need to understand Ruby.
Lilinye 2 years ago
hahaha, var a = 5 hahaha, i'm not fan of a particular languaje, but dynamic typing r0xz! better, simplier, faster.
tejedaAlex 3 years ago
cant agree with you more Byte.
Dynamic typing is for losers I think Ruby would definatly amaze all the Java and VB fans.
musashikyo 3 years ago
Static typing is clearly superior. Ruby = lose.
ByteSmasher 3 years ago
Clearly?
Then why is it Java or C# could not produce anything as slick as Rails?
You can make a rails-like framework in Java, but it will be cludgy and clunky.
The dynamic features of ruby makes it possible to have model classes that don't need to know the methods to access table columns before hand. They can be created at runtime. The metaprogramming and DSL features of Ruby puts it miles ahead of anything unless it is named smalltalk, lisp or python.
Lilinye 2 years ago
@Lilinye because it would handle 1 request per hour
ThinkLearnSolve 1 year ago
oh, shit! you geeky nerds cant even laugh about such a funny commercial... i feel truely sorry for you.
elluca123 3 years ago 2
hahahah the ruby guy actually looked pissed!! lmao C sharp had all the fun lol
what an antithesis of the original add.
fanClassicRock 3 years ago
C# uses type inference, not dynamic typing. What are you ruby fuckers smoking?
bobdoer 3 years ago 148
@bobdoer umm, should I ask what 'you're' smoking? of course c# 2010 uses dynamic types--are you trying to say that, var i = 3; wouldn't work?
tropicallanterns 1 year ago
@tropicallanterns that would be type inference. if you want dynamic types you'd write dynamic i = 3;
mcintyre321 1 year ago
@mcintyre321 touché, you are right, I just verified the comparison of dynamic and var. However, bobdoer was being rude and said that dynamic typing didn't exist in C#. Thanks for the response. I'm wanting to learn to develop Silverlight Apps one day (I mostly program in AS3 today), so hopefully I will become more knowledgeable of C# one day.
tropicallanterns 1 year ago
@tropicallanterns even worse, he was right at the time! the dynamic keyword didn't come in until .net 4 (2010). he was however also being a bit rude, i'll grant you that!
mcintyre321 1 year ago
@tropicallanterns LOL. I wouldt touch Silverlight if i were you. Silverlight requires expensive server license to host it.
kurrator1 1 year ago
@bobdoer and for what type inference for?
kickassdj 1 year ago
@bobdoer skeet owned them ruby fuckers
sevki 1 year ago
@bobdoer dude .. ruby programmers have nothing to do with it .. ask the video makers -.-
q8sauod 1 year ago
@bobdoer Actually They Do Have Implementation For Dynamic Typing. As Of 3.0, Although Admittedly It Sucks. Ive Used It Once Or Twice. Compare To The Languages Built For Dynamic Type Casting It Is Sluggish And Pretty Much Worthless, But It Does Exist
Iam4balance 1 year ago
@bobdoer to bad csharp sux
stanmarshk 10 months ago
A better example of dynamic typing would be how a static type program chokes on a var that's an unexpected type.
Actually, PHP is more flexible than Ruby...
but since when is that considered a language feature? Static typing is fine, it's like database constraints. It required you to pay more attention and can show flaws that a dynamically typed language might let pass.
Ruby's duck typing and coercion is probably the best, it's a bit more explicit than PHP but still flexible.
alfredogangsta 3 years ago 5
"var" ?? Dynamic typing? Does he even know what hez talkin about?
For some standard reference,
here i quote, Herb Sutter himself saying that on his blog,
var sb = new StringBuilder(256);
var e = new UTF8Encoding();
var md5 = new MD5CryptoServiceProvider();
It's not dynamic typing, per se; C# is still very much a statically typed language. It's more of a compiler trick, a baby step toward a world of Static Typing Where Possible, and Dynamic Typing When Needed.
bk12bk 3 years ago 6
this is great
sirpentedo 3 years ago
This video reminded me of IE 7 tab browsing feature. when you press ctr+t in IE7 it opens a new tab and says welcome to tab browsing. It's like IE is the first application that introduced tab browsing lol
mohimohi1983 3 years ago 2
IntelliSense > Ruby
benwholl 3 years ago
omg these commercials are just too funny!
kalalit 3 years ago 3
... all your rubies and gems! LOL, I love it!
amyw423 3 years ago 3
lol funny
flyboy5500 3 years ago
Regardless of what it says/who's right, it's not very funny.
saites2001 3 years ago 2
this is funny as! more please!
seriously wats with all the negativity?
Fushinbi 3 years ago 2
OK! Seriously - ENJOY THE VIDEO. These guys are hilarious.
Who cares what language does what, I thought the initial mind frame was - I have an objective and I would like to achieve it.
Does it matter what stepping stone is used?
ExtraSalad 3 years ago
Doing a dumb Mac vs. PC series of commercials for ROR seems very fitting.
FYI, Type inferencing != dynamic typing.
Hint: Type inferencing is still static typing. ;)
smgoguen 3 years ago
Real programmers try many languages and select the most appropriate "tool" for the application.
Weenie programmers learn jAVA or potNet in school and then whine at all other alternatives.
I just rewrote a application whose purpose was post processing of text files and someone wrote it in Java LOL! It was 50 source code files. I rewrote it in Perl (the proper language for the task) and it came out to 5 files (and no they were not huge obfuscated files, weenies).
crapman9876 3 years ago 7
and whats so bad about java?
mrynit 3 years ago
the M$ guy is funny
jansquared 3 years ago
This is stupid. MS hardly mentioned dynamic typing. It's an incredibly minor new feature of visual studio 2008. They never claimed they were 'new' with it.
gerbenrampaart2 3 years ago
ya, I'm sticking to MS...
TheBlokeDude 4 years ago
lol was great
Hellnari 4 years ago
Dynamic typing is a good way to introduce bugs that the compiler cannot help you catch. Just because it's a new feature does not mean you guys should rush to use it.
gamccoy 4 years ago
The mediocrity of this is overwhelming. This just convinced me never to use ruby on rails even for a home project.
goomba000 4 years ago
What's so great about dynamic typing? Does it not tend to make you to introduce subtle, hard-to-spot bugs into your code. That's one thing I like about java - it encourages good coding practices.
greenManilishi 4 years ago
Hard typing doesn't make code with less errors. All it makes are a lot of abstraction layers.
Bug-free code should be written by writing tests. Ever wondered why JUnit was born?
arturaz 4 years ago
Lads, stop hating MS
If it wasn't for MS we wouldn't have all those jokes.
nebel82 4 years ago 2
The old M$ is evil trick...nothing new and NOT FUNNY AT ALL
korayem 4 years ago
LOL gonna go get ma gems
herbalbath 4 years ago
so sick of the Mac v PC commercial rips. Enough already.. make it stop. Why is the guy representing the "superior" product always the less likeable dooosh bag in these commercials. Smug and pretentious are not desirable qualities.
cyberprunes 4 years ago 38
Yes because Mac and ROR are superior to Microsoft......../sarcasm
patio87 3 years ago
this series of ads may have been good if they hadn't got such a friggin weiner to be the ruby guy
stevesnz 4 years ago 3
agreed
fox220 4 years ago
Very funny. Kudos to you all
crosebelle 4 years ago
Those who "hate on" microsoft are just mad because their programming and language products are more popular... jeje! Go Microsoft!
TeleTio 4 years ago
actually AFAIK what C# 3.0 has is type inference. the type information is still determined and checked at compile time, there's just less superfluous type information present.
this is what languages like ML have had for the last 30 years. mainstream languages give static typing a bad name.
lispified 4 years ago 3
you are right, its type inference not dynamic typing. It's funny how they don't mention the actual dynamic feature, the DLR. oh wait.. because it hosts all kinds of "dynamic languages" Ruby, python,vb,javscript etc.
Microsoft has good stuff and shit. .NET is the good stuff. RoR is bitchin though.
cyberprunes 4 years ago 4
lol microsoft sucks
diegoev 4 years ago
Not bad actually.
cbmeeks 4 years ago 2