I am a python programmer, but I want to learn Java or C# to build GUI applications for Linux and Windows. What language is better to learn?
How about both ?
>>106985446>Python>ProgrammerPick one
>>106985716Which one has a better license for open source software? Is it true Oracle will still try to sue you for copyright things? Why is .NET and C# so hated on Linux?
>>106985446>Should I Learn Java or C#?Yes. >>106985848>Why is .NET and C# so hated on Linux?Because it came from M$
>>106985446C$ is based as fuckAAAAAND it compiles to native now.
>>106985910>AAAAAND it compiles to native now.What kind of flaming hoops does that require?
>>106985925Ask grok for an example C# + AOT code.You'll like it.
>>106985848>Which one has a better license for open source software?C#. It's fully open source, MIT licensed, no strings attached.
if you're a "python" programmer, you already know both
>>106985910Does it compile to an actual .exe that I can send to a friend or does it compile to that weird bundle extension that shows up in your add/remove programs list?
>>106986053>It's fully open source,But the good tooling isn't.
>>106985446Javascript.
>>106986092Actual portable exe.
>>106985446Just do quick job search for your area to see what would give the best chance of being hired. I'd personally recommend csharp as I think the language and dev environment are better and easier to learn, but once you get the hang of it you should be able to jump into any java project with minimal preparation since they are very similar. The reverse is also true.
>>106985446For any noobs accidentally reading this pic be warned that C# retards are babyducks that only program in one language and it's just a very average language.They also lie a lot. For example in java you can actually make getters and setters by just declaring the class a record or adding @Getter @Setter on top of it using a popular library. But that doesn't fit the narative so yeah...That being said the two languages are about the same. The downsides of java are the same as C# more or less they are both a little verbose and not systems languages. The advantage of C# is a few extra keywords like async/await, events, "reified generics" (can do new T()) and easier collections for basic types.The advantage for java is being 4x more popular in terms of job demand, your compiler not sending tellemetry to microsoft (as well as not depending on microsoft in general) and more consistent 3rd party libraries and tools (maven, junit, mock, spring boot and apache commons is all you really need whereas C# has like 5 testing frameworks and 3 DI frameworks all in use)
Both are trash
>>106985910>AAAAAND it compiles to native now.So does Java
>>106985446Java>t. shitskin that works as Java dev>inb4 saaaaaaaaaar
>>106985446Getters and setters are so overrated. The number of times when they turned out to be useful because I needed to change the variable in the function has been extremely minimal. Just use access modifiers. 99.999999% of the time, that works fine. Getters and setters are premature optimization. >OUTRAGE! I'd never hire you!Doesn't change the reality of it being more ritual than anything else.
>>106985446Why not just use PyQt
>>106987297>QtNot free software.
>>106986121This is probably the best answer. Unless you need the performance or features of C# or Java, JavaScript is the definitive way of building desktop apps in 2k25.
Learn rust, gtk has great bindings for it and iced is written in it.Nobody uses java anymore, c# is more useful.
>>106985446Nobody uses C# and Java unless it's boomers running things. Go for Python and JavaScript instead.
>>106985446>I want to learn Java or C# to build GUI applications for Linux and Windows.Java for GUI is very niche at this point and C# for GUI is only really a thing on WindowsYou're probably better off with C++ or Python and Qt or even ironically Javascript with Electron
>>106985446Learn electron or qt if you want a job. otherwise avalonia ui
>>106986103Which tooling?
>>106987411retarded zoomer
>>106987539I thought Avalonia was now requiring people to pay a subscription for the more advanced features/ui controls? Only a matter of time until they make the entire thing a paid license/subscription once they hook more people into it.
>>106985446Apparently Java is quite good now but I've barely programmed in it. I'm employed as a dotnet developer and quite enjoy it. Microsoft has done quite a good job as far as the back-end is concerned. I think their front-end stuff leaves a little to be desired.
>>106985446follow your dreams, choice and do. >but I want to learn Java or C# to build GUI applications for Linux and Windows.Java because him work on both systems.
>>106986103Rider is free for non-commercial use. >>106986379>a few extra keywords like async/awaitasync/await isn't just extra keywords. It's the most elegant solution ever devised for efficient multithreading.>>106988014I develop .NET apps for Linux on Linux.
>>106988163.NET work on Linux? Now i know, and thanks by their reply.
Jruby
>>106988260Yeah, since like 2015 or whenever .NET Core 1.0 came out. .NET Framework is Windows only. Framework is EOL and Core is just called .NET now.
>>106985446gets and sets are absolutely retarded if you're just using the variable as a public and adding no constraints on the methods.