I’ve enrolled an online high shcool course (or actually somwhere between high school level and college level if you convert it from the swedish education system to it’s US equivelent) in basic programing and we have the option to learn to write programs C# and/or Python.
So my question is wich of those will be the best foundation to later on learn to write drivers and apps in Groovy?
1 Like
C# would be closest to Groovy
4 Likes
I think C# gets one into some very good habits, and you can see echoes of its structure in many if not most other modern languages. I find myself sticking to the rules C# enforces even when coding in less strict or structured languages
I take it you meant basic programming with a small b and not BASIC ? Otherwise you'd have a bit of a shock starting C#! 
3 Likes
I agree with the others.. C# as a general introduction to "C" style languages is the way to go.
Python would also be a good language to learn eventually as well - it's very flexible and easy to write code quickly and supported pretty much everywhere.
5 Likes
Thanks everyone! Think I’ll go for C# then.
3 Likes
Once you learn one programming language, learning another becomes much easier. The hardest thing about learning to program is learning to think in the same way a computer "thinks". I learned to program in Basic about 55 years ago. Then I took a course in ALGOL which was used on EDC mainframe computers. When I got my first job, I had to use FORTRAN IV and taught myself how to use it; the previous programming languages provided the mindset I needed. I had to learn new syntax structures for the commands, but that is not that difficult.
C# runs within the .NET framework developed my Microsoft.
Python is more closely tied to Linux., but it has cross platform capabilities. While Linux is much less popular on personal computers than Microsoft Windows, it is the basis for the operating systems on most cellphones, tablets, IOT devices like Hubitat, etc.
Thus, ultimately, you may want familiarity with both.
4 Likes
The nice thing about C# is that it shares some roots with Java (it's close enough that I use to swap programmers from one app dev pool to another when deadlines were tight) and since Java is the basis upon which Groovy was built...
Fun graphic for anyone interested: https://www.levenez.com/lang/lang-little.png
3 Likes
@thebearmay @rwclements228
Thanks! I chosed C# and are now working my way through my first very very basic programs using Replit.
We’ll se if I’ll take this further or not in the future… 
5 Likes