These are chat archives for learnclang/general

30th
Dec 2015
Nysuatro
@Nysuatro
Dec 30 2015 01:49
Ow yes, I am planning on watching it a second time. One of the best intro to CS classes I have seen
We live in a golden time with such great free resources
Udacity is killing it with the awesome CS courses
and EDX has been amazing on WPF for me
Marcus Ottosson
@mottosso
Dec 30 2015 07:00

We live in a golden time with such great free resources

Here here!

and EDX has been amazing on WPF for me

What do you think of WPF so far? Have you also worked with Qt, perhaps QML and could offer some insights about differences?

Nysuatro
@Nysuatro
Dec 30 2015 13:56
I am loving it so far. I might not be the one to compare as I came from 3ds max before as I am using WPF to make tools in Maya. WPF is very powerfull and awesome once your tools start to become bigger.
Nysuatro
@Nysuatro
Dec 30 2015 14:10
For us it was just a more logical answer to user WPF as we are using this for most of our tools. Even outside of Maya
Marcus Ottosson
@mottosso
Dec 30 2015 14:10
Ah, 3ds is using C#?
Nysuatro
@Nysuatro
Dec 30 2015 14:10
and using C# in VS with the plugins Entrian and Resharper is pure goodness
nowp, Maya
we are using maya now
Marcus Ottosson
@mottosso
Dec 30 2015 14:11
Ah, with WPF?
Nysuatro
@Nysuatro
Dec 30 2015 14:11
yep
there is the Maya API .NET library
works well
Marcus Ottosson
@mottosso
Dec 30 2015 14:11
Ah yes, there is, I remember reading about that a while ago
Nysuatro
@Nysuatro
Dec 30 2015 14:12
and a lot of good examples
Marcus Ottosson
@mottosso
Dec 30 2015 14:12
Didn't hear much about it after that, assumed it didn't work out
That's very interesting
Do you know if one can access maya.cmds or anything similar?
Nysuatro
@Nysuatro
Dec 30 2015 14:12
yep
its just the c++ api
but in C#
Marcus Ottosson
@mottosso
Dec 30 2015 14:13
Interesting
Nysuatro
@Nysuatro
Dec 30 2015 14:13
but you get a lot of c# goodness with it
like Lambda's
and all the enumerators
Marcus Ottosson
@mottosso
Dec 30 2015 14:13
Did you say you had also used Python and Qt?
Before, I mean
Nysuatro
@Nysuatro
Dec 30 2015 14:13
i only debug it as we got a lot of old tools
Marcus Ottosson
@mottosso
Dec 30 2015 14:14
Ah
What about Linux and OSX?
Nysuatro
@Nysuatro
Dec 30 2015 14:14
we are trying to convert old tools we still use in C#
only windows
we make games
Marcus Ottosson
@mottosso
Dec 30 2015 14:14
C# doesn't do Linux at all?
Nysuatro
@Nysuatro
Dec 30 2015 14:14
to be honest, no idea
Marcus Ottosson
@mottosso
Dec 30 2015 14:14
I guess WPF is Windows-only
Nysuatro
@Nysuatro
Dec 30 2015 14:14
I have never worked with linux before
yeah, I would not be suprised
Marcus Ottosson
@mottosso
Dec 30 2015 14:15
But C# might depend on .NET which seems Windows-only as well
Nysuatro
@Nysuatro
Dec 30 2015 14:15
and the new WPF
is windows 10
Marcus Ottosson
@mottosso
Dec 30 2015 14:15
Aah
Nysuatro
@Nysuatro
Dec 30 2015 14:15
we are still on windows 7
so we dont have all new geatures
but they pushed xaml ( wpf ) a lot for the multiplatform sollution
on edx you have several uwp tutoriaks
Marcus Ottosson
@mottosso
Dec 30 2015 14:16
Yeah, I glanced over those.
Nysuatro
@Nysuatro
Dec 30 2015 14:16
they are really awesome
its one of the better wpf resources
Marcus Ottosson
@mottosso
Dec 30 2015 14:16
The only thing I would be less fond of is the Windows-only aspect, as I work a lot with Linux workstations
Nysuatro
@Nysuatro
Dec 30 2015 14:16
they also have c# introduction
yeah, I am afraid I dont know much about it
Marcus Ottosson
@mottosso
Dec 30 2015 14:17
I know WPF is an alternative to QML, which is what I've been using so far
Where QML is similar to JSON, and WPF is similar to XML
But otherwise share a lot of goals, as I understand it
Nysuatro
@Nysuatro
Dec 30 2015 14:27
is QML using the MVVM pattern ?
Marcus Ottosson
@mottosso
Dec 30 2015 14:39
Hm, I don't think I fully understand the difference between MVVM and MVC, but it's standard Qt in that most of its provided helper classes facilitate a MVC architecture
Do you know how I can tell whether it is MVC or MVVM?
Nysuatro
@Nysuatro
Dec 30 2015 14:43
in MVVM you have a view + model + viewmodel
the model is where all the data and functionality comes from
for example, all the maya code for creating and deleting ndoes
Marcus Ottosson
@mottosso
Dec 30 2015 14:43
functionality is coming from the model?
Nysuatro
@Nysuatro
Dec 30 2015 14:43
yep
then this functionality gets called from the viewmodel
you normally encapsulate it in a command or delegate
Marcus Ottosson
@mottosso
Dec 30 2015 14:44
Ah, where does the View come in?
Nysuatro
@Nysuatro
Dec 30 2015 14:44
this is where you bind to the commands or properties
so imagine the model is your backend
Marcus Ottosson
@mottosso
Dec 30 2015 14:44
The View is not the graphics?
Nysuatro
@Nysuatro
Dec 30 2015 14:44
viewmodel is your ui programmer
and view is your UI
yeah
its to detach all the work
Marcus Ottosson
@mottosso
Dec 30 2015 14:45
Okay
Nysuatro
@Nysuatro
Dec 30 2015 14:45
so your UI designer can work on the view
the UI programmer on the viewmodel
Marcus Ottosson
@mottosso
Dec 30 2015 14:45
That sounds just like MVC, where viewmodel is the controller, and model is model
Nysuatro
@Nysuatro
Dec 30 2015 14:45
and the backend programmer on the model
does the MVC allow 2 way binding ?
Marcus Ottosson
@mottosso
Dec 30 2015 14:45
How do you mean?
Nysuatro
@Nysuatro
Dec 30 2015 14:46
i am not sure myself about the differences of MVC and MVVM
in WPF you can set a property to be binded 2 ways so the notifications gets alerted when the data get changed in the viewmodel or the view
because of user interaction
Marcus Ottosson
@mottosso
Dec 30 2015 14:47
Ah, then yes, I do think that would be the same as a QML binding
Whether it is MVC or not, I cannot say
Nysuatro
@Nysuatro
Dec 30 2015 14:51
yeah same here
i just know it does what I want it to do
haha
Marcus Ottosson
@mottosso
Dec 30 2015 14:51
Yeah :)
Same here
Nysuatro
@Nysuatro
Dec 30 2015 14:52
man, i just realize I did 50+ courses this year
I did not finish all of them though
Marcus Ottosson
@mottosso
Dec 30 2015 14:52
Courses like CS50?
Nysuatro
@Nysuatro
Dec 30 2015 14:52
but some I saw a couple of times
yeah, but all kinds of different courses too
like neuroscience and nanotechnology
Marcus Ottosson
@mottosso
Dec 30 2015 14:52
Did you happen to do the problem sets?
Nysuatro
@Nysuatro
Dec 30 2015 14:52
i went through the videos
i dont do all the exercices
Marcus Ottosson
@mottosso
Dec 30 2015 14:53
Ah, the problem sets are the really good part I think
I just finished implementing a hash table of linked lists
Amazing stuff
Nysuatro
@Nysuatro
Dec 30 2015 14:53
i might do that course again
Marcus Ottosson
@mottosso
Dec 30 2015 14:53
Have a look at the sets, you'll get graded too :)
I'm striving for top marks!
Nysuatro
@Nysuatro
Dec 30 2015 14:54
haha, nice
I have been going through all the practices of wpf
Marcus Ottosson
@mottosso
Dec 30 2015 14:54
Yeah, that's where you really learn I think, by doing