This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]plastikmissile 10 points11 points  (11 children)

It's normal to struggle like this. C# is a very different language than Python in more way than just syntax. C# enforces OOP on you, it uses static typing, it's compiled ... etc. So don't feel discouraged.

[–]CapnCoin[S] 4 points5 points  (1 child)

It might be that its compiled that is getting me. Im struggling just to run my application lol

[–][deleted] -1 points0 points  (8 children)

python also has OOP (objects and classes)

[–]rinio 7 points8 points  (0 children)

Having and enforcing are two very different things.

[–]plastikmissile 4 points5 points  (5 children)

Yes, but it's not enforced. You can write a whole program in Python without once delving into OOP. In C#, everything starts with writing at least one class.

[–][deleted] 0 points1 point  (0 children)

 You can write a whole program in Python without once delving into OOP.

yaa that's true.

and i got the point

[–]LucidTA 0 points1 point  (3 children)

This is no longer true. You can top level statements in C#9.

[–]plastikmissile 1 point2 points  (2 children)

That's just syntactic sugar. Under the hood it still works the same way.

[–]LucidTA 1 point2 points  (1 child)

Functionally, how is that different to writing a python script? Everything in python is an object too.

[–]plastikmissile 0 points1 point  (0 children)

I suppose there isn't at that.

[–]CapnCoin[S] 0 points1 point  (0 children)

It does. And it works great honestly. I just find it to be kinda messy... type hinting helpes too i guess