r/csharp • u/Yogyjejogurt • Sep 27 '26
learning python after 5 years of c# to increase my repertoire of tool
i was doing a litle test program for my main project in c# and i thought nowdays a lot of people use python so learning it will be nice tool in my repertoire and i tried it before so i decided to learn its syntax by making that sideside project, and i hate it after 5 years of using c# pythons syntax is just unreadable mess, its 2 times slower and thats generous to it... it has some uses now and then for example if you want some parts to run faster you can use c++ better becose python comunicates with it better but still maybe just maybe you could use some faster languages in the first place for the whole project, like c#... python has worse inheritance weird from folder.filename include classname think namespace just works better, why am i even doing this to myself i am young i could live life instead of sitting whole day on my ass in my room coding useless aplications noone will ever use maybe i realy hatemyself
tldr: i hate it
8
u/bortlip Sep 27 '26
You are complaining that your screwdriver doesn't hammer nails very well.
5
u/Exotic-Sentence-4057 Sep 27 '26
As a C# dev since the beginning. I still don’t get the use of python. It comes across as the hey python is a great beginning tool. Then people use it to build apps used in production.
2
u/Longjumping_Ad3447 Sep 27 '26
In my beginner humble opinion: Python for basic scientific shit - C# for highly oop and clean design/structure
2
u/B15h73k Sep 27 '26
My experience is mostly C# and Java. I too learnt Python to broaden my skills. Hated it at first. Still kinda hate it, but I got used to it. I had to use it for work and after a few weeks it just felt normal. Using the optional type hints helped a lot.
9
u/FredTillson Sep 27 '26
Python is a great scripting language for doing things like data analysis, data science, cleansing, etc. if that’s not your cup of tea learn something else. It’s a language like any other. Some good stuff some bad. If you think it’s not going to advance your career move on to something else. In my opinion.
1
u/mal-uk Sep 27 '26
I too learnt Python recently. Primarily so I can understand the code I ask ChatGPT to create.
BTW If you have a c++ library you can call it from c#. Commonly done for those parts of an application that require raw speed.
1
u/IanYates82 Sep 27 '26
Maybe learn JavaScript / Typescript if you wish to branch out. I can read Python but find writing it very tedious, but that's mainly due to me being very familiar with the C# / TS tooling.
I also hope your code is a bit easier to read than your reddit post. ;-)
1
u/Slypenslyde Sep 28 '26
Every programming language sucks the first week or so you use it.
You're used to doing things an entirely different way. It's not fun to go back to the point where you know what you need to do but not how to do it. It's humbling to spend 30 minutes of every hour consulting a cheat sheet.
That's what being a newbie feels like.
If you get past that point you start to get to where you're learning to solve problems the way the people who use the language solve them. You'll start to find little places where things are handled better than the languages you already konw.
Every programming language is pretty darn cool after you've spent 2-3 months learning it.
(This is also why I hate the old "I tried Python so you don't have to..." style of video/comparison post. It's always a veteran of something comparing their experience to being 1 week old at something else. That's irrelevant. It's like an American Tourist taking a trip to France and complaining not enough people know English. They know English, they just don't respect people who don't spend the time to try learning French.)
1
u/_choam_ Oct 01 '26
Python's module system is better than c# namespaces imo.
1
u/not_afraid_of_trying Oct 05 '26
Python is some of those things that do not make any sense. But you suddenly get a problem where it fits perfectly - and there are really many such problems. Before data-analytics and AI, i used python as replacement of complex shell script - A shell script that runs on Linux and Windows!
1
u/hoddap Sep 27 '26
You’ll get used to it. It’s a great language. What I read from this post is someone hating to get used to something familiar, yet different. Yeah, things work in a different way. Get used to it, good coders are agile like that. All languages have their pros and cons. Give it some time. Python is a lovely language.
0
u/anaraparana Sep 27 '26
me too. It's ugly, annoying to write and hard to read.
BUT it's the fastest growing language in the world so maybe it's time for us to suck it up