theotherguy
Newbie
- Joined
- Jul 5, 2003
- Messages
- 5,107
- Reaction score
- 1
Yes, I am a nerd:
http://www.youtube.com/watch?v=DV88jF3YVcw
http://www.youtube.com/watch?v=DV88jF3YVcw
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: this_feature_currently_requires_accessing_site_using_safari
I don't have time to watch the whole thing, but a compressor effect filter would do the spoken audio wonders
Nice job, some stuff though:
- The goal of a compiler is not to check code for errors but rather to turn high-level code into machine code (or bytecode in the case of Java). If the code contains errors, then the compiler often can't continue.
- Java is not slow. It's a label that it got in its early days and somehow it never got rid of it. It's not as finely grained as C/C++ in the sense that you get less control over your memory management (which has the benefit that there's much less hassle with that) but that doesn't make it "slow". I don't know for certain but I believe that in the early days of Java that the bytecode was interpreted instead of compiled into machine code like it is now. Today, Java programs are no slower than a program written in C/C++ other than the fact that it gives you less control over memory.
- From the video it wasn't clear why Java is able to run cross-platform. Perhaps that's because it's the first introduction, but it's not because it runs on a virtual machine, but rather because it's compiled into a universal intermediate language called bytecode instead of vendor-specific machine code, that the (vendor specific) virtual machine then compiles into the vendor specific machine code.
toasters! Toasters.
And Also Good Video<3<3
(toasters<3)
Hehe, nice one. Wanted to shout at you for typing Class, but it turns out it was all a trick! Curse you!
I think you jumped into the actual programming a little too fast though, unless you intend to explain the theory behind it in the next video. Analogies always work nicely, try an analogy of a car for OOP. Like: a car is described by build plans (the class), the build plans can be turned into a working car (the object as the instance of a class) which has functions like drive and turn (methods) and members (door objects). This can also be used to explain inheritance.
hey what video capture software are you using ? .
These are awesome. I'll be following them, because I feel like a complete n00b only knowing GameMaker's GML and some basic Python.
Does the main class have an instance of itself created automatically or something? Because I noiced that you had to create an instance of DemoMath to use its methods, but the main class exectued automatically.
And a method is just a function that's defined inside a class, right?
toasters! TOASTERS.
And also good video<3<3
(toasters<3)
Okay so I'm starting to watch these beyond the first one now, and in the second one it really hit me just how similar the syntax in C# is with Java. I guess that's one of the areas they heavily drew from when they said a large part of it is based off Java.
I was thinking, wtf, this is exactly like C#! Other than the screen printing method of course.
Java syntax is almost identical to C# in every way. Learning either if you know the other will be extremely easy.
Syntax: yes.
Programming conventions: not as much.
I've been using C# professionally for a couple of weeks now, and when I started a guy told me "forget everything you know about Java" and he's completely right. Syntactically, it's very similar although I think C# has Java easily beat:
- It has ref and out for multiple return values.
- Properties instead of methods for getters and setters (which turns the Java obj.setValue(e.getValue() + 1) into obj.Value = e.Value + 1, much more natural and readable, with all the functionality of a method).
- Everything inherits from the baseclass Object: there are no primitives, just a distinction between value types and object types
- It supports struct as a sort of lightweight "class"
- It has delegate for wrapping methods
- Has an unsafe keyword which you can use to program with pointers and stuff
- Operator overloading
- You can access any collection as if it were an array, so list[index] instead of list.get(index)
But for writing a console application, this isn't hard to learn. The biggest difference is in the libraries, .NET is nothing like the standard Java library. Building a Swing application is completely different from building a Windows Forms application. The event model in C# is very different (and better) from Java. There is also no such thing as databinding in Java as far as I know. For building an application, you really do need to forget everything about Java except the syntax that you already know, but syntax is easy to learn.
All in all, I must say I easily prefer C# and the .NET framework over Java, it seems like it's a language that has learned from Java. Just a shame I don't like Visual Studio compared to Eclipse.
Syntax: yes.
Programming conventions: not as much.
I've been using C# professionally for a couple of weeks now, and when I started a guy told me "forget everything you know about Java" and he's completely right. Syntactically, it's very similar although I think C# has Java easily beat:
- It has ref and out for multiple return values.
- Properties instead of methods for getters and setters (which turns the Java obj.setValue(e.getValue() + 1) into obj.Value = e.Value + 1, much more natural and readable, with all the functionality of a method).
- Everything inherits from the baseclass Object: there are no primitives, just a distinction between value types and object types
- It supports struct as a sort of lightweight "class"
- It has delegate for wrapping methods
- Has an unsafe keyword which you can use to program with pointers and stuff
- Operator overloading
- You can access any collection as if it were an array, so list[index] instead of list.get(index)
But for writing a console application, this isn't hard to learn. The biggest difference is in the libraries, .NET is nothing like the standard Java library. Building a Swing application is completely different from building a Windows Forms application. The event model in C# is very different (and better) from Java. There is also no such thing as databinding in Java as far as I know. For building an application, you really do need to forget everything about Java except the syntax that you already know, but syntax is easy to learn.
All in all, I must say I easily prefer C# and the .NET framework over Java, it seems like it's a language that has learned from Java. Just a shame I don't like Visual Studio compared to Eclipse.
Good to hear you into C#(I didn't read your entire post... I won't be able to do that until I put my glasses on...). I mention it because I vaguely remember you knocking on C# not too long ago, so it's great to see such a turnaround.
I also could be remembering false things. I just woke up and am going to lay back down, so maybe I'm wrong.
Sorry, for some reason that was sticking in my head.
Anyways, what don't you like about Visual Studio?
And you're not bound to them, there are others out there.
DoSomething(obj);