[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

C# vs JAVA

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 56
Thread images: 7

File: hqdefault (3).jpg (36KB, 480x360px) Image search: [Google]
hqdefault (3).jpg
36KB, 480x360px
Can /g/ enlighten me on the plus and cons of the two languages? for instance:

1) which is better for job? (especially Europe)
2) which teaches you better programming habits?
3) which is more enjoyable to program in?
4) which is better to write Android games or apps in? (you can do that natively now with Xamarin and Unity right?)
5) does C# turn you into a Microshill robot?
>>
>>57518976
Java > c#
>>
Java will get you more money
>>
>>57518976
Just learn any one. If you're good with one you'll probably be good with the other
>>
>>57519002
Like 10% more?
>>57518993
May I ask why you think that?
>>
>>57518976
C#, .NET Core, ASP.NET Core, EF Core are all making YUGE strides in the race to be multi-platform. I don't understand the Java shills at all -- they are going to lose in the technology race.

Java programmer 6 years, C# programming 4 years. C# every single time.
>>
>>57519051
This.
>>
>>57518976
>Which is better for job?
Currently java

>Better programming habits
Neither

>More enjoyable
Neither

>Android games or apps
Java

>C# turn you into a microshill robot?
No, you're retarded if you marry your programming language

People asking these kind of questions either have no problems to solve or are procrastinating the """"learning'""" part, just pick up a book and start learning you faggot. It barely even matters as most concepts can be transferred in between languages
>>
>>57519084
also, I've yet to find any UI development framework quite like WPF/XAML. It's fucking magical. MVVM makes a TON of sense, and I've been able to push it to its limits. Let's not forgot DI...

idk, I'm no Micro$oft shill. My work development machines are Macs. I develop cross platform (mainly Winblows) apps. I still think WPF is a fucking beaut.
>>
>>57518993
Poo.init();
>>
>>57519859
I work in a linux environment
>>
>>57520109
>what is .NET Core
>>
>>57518976
1) which is better for job? (especially Europe)
Java.

2) which teaches you better programming habits?
C#, but neither language should be your first language.

3) which is more enjoyable to program in?
C#, but this is subjective.

4) which is better to write Android games or apps in? (you can do that natively now with Xamarin and Unity right?)
Java.

5) does C# turn you into a Microshill robot?
No.
>>
its the same, u can copy javacode into c# and it will compile without error. consider to tell this at your next job interview
>>
>>57520220
Oh. Cool. I might look into that. Although the c# syntax pisses me off.
>>
>>57520262
English before trolling please
>>
>>57520242
>neither language should be your first language.
This is such a stupid meme. JAVA is fine as a first language and you don't become more employable by wasting time with other languages for foundation.
>>
>>57519002
Not really.
>>
>>57520360
>import org.springframework.context.support.ClassPathXmlApplicationContext;
>final ApplicationContext context = new ClassPathXmlApplicationContext(TestConstants.SPRING_XML);
>final BufferedOutputStream bos = new BufferedOutputStream(baos);
>JAVA is fine as a first language
>>
>>57518976
Don't focus on languages focus on algorithms, and problem solving. Pick a language that suits you then the rest are easy to learn from that.
>>
>>57520498
>Using an irrelevant example
>>
>>57520547
>public static void main(String[] args) {
>>
C++
>>
>>57520498
>fuck around with C and Python for months
>still unemployable

vs.

>learn Java off the bat with the verbosity
>get a job
>>
>>57520610
Oh, I see that the goalposts are now over there.
>>
how I feel when using Java
try(BufferedReader fins = new BufferedReader(new FileReader(new File(arg)))) {
>>
>>57520662
AbstractSingletonProxyFactoryBean()
>>
>>57520574
There's nothing complicated about that. If you can't wrap your mind around basic concepts, you shouldn't be programming in the first place.
>>
>>57520619
>moving goalpost meme
I literally said learning something else was a waste to "become more employable."

I know we're all supposedly NEETs here, but if someone actually wants a job they're better off just going into the mud face-first.
>>
>>57520722
There is no argument that Java is one of the best languages to learn, if you want to be more employable. My point was clear: Java should not be your first language.
>>
File: 1479165889427.jpg (17KB, 239x306px) Image search: [Google]
1479165889427.jpg
17KB, 239x306px
>>57520662
final Button button = (Button) findViewById(R.id.button_id);


I hope I was joking but this is official documentation on Google.
>>
I actually worked as a professional in C# and then later in Java at a major company you definitely have heard of.


1) which is better for job? (especially Europe)
I don't know. This really depends on location.
2) which teaches you better programming habits?
Neither really. I suppose Java may have more obvious conventions but neither langauges imposes these things on you
3) which is more enjoyable to program in?
C# may be the comfiest programming language of all time
4) which is better to write Android games or apps in? (you can do that natively now with Xamarin and Unity right?)
C#
5) does C# turn you into a Microshill robot?
Yes, but enjoy the $$$ you will be making as a microshill

C# is actually an amazing language. It falls short as a full deployment solution for web stuff, as you are pretty much locked into microsofts stuff (ASP.NET or MVC)

ASP.NET MVC is amazing for like 95% of things, but it does not fit the mold for every project. But if your project does fit the mold, it makes life easy. Waaaaay better than Java in this case.

Java is very flexible, very robust, and has a very large community around it and tons of librarys and frameworks. It's not quite as streamlined as C#, but what you get for that is more flexibilty and freedom.
>>
File: jFGH6wi[1].gif (2MB, 252x184px) Image search: [Google]
jFGH6wi[1].gif
2MB, 252x184px
Quit wasting time on little kid languages. At least try C/C++ you stupid cuck.
>>
>>57521075
Java, C, and C++ all have very different uses.
Claiming one is "better" is absurd.
>>
>>57519137
WPF is fucking awesome, but it's verbose as hell.
I wish I could use some kind of template engine for it. S-expressions for example.
>>
File: PAJEET.png (483KB, 600x894px) Image search: [Google]
PAJEET.png
483KB, 600x894px
>>57519859
>>
>tfw about to start C# first job as a junior
>employer trying to figure out where to put me, front or back end
>I'm indifferent and can probably do both

Any suggestions guys? I want the easiest ride possible.
>>
>>57518976
LINQ is love is life
>>
>>57525090
// does something but I forgot
MyDict.Keys().SelectAll().Where(x => x.value == 1).Aggregate().ToList().Count();
>>
>>57520498
>learning a monstrous fucking framework before learning even the basics of the language

okay anon
>>
>>57518976
Doesn't matter. They are both very similar and learning one is very easy if you already know the other.
>>
>>57519051
There is no way to do real C# development without Visual Studio. Microsoft stated many times that they want to make developers keep using Windows.
>>
>>57525217
VS will also be on OSX
>>
>>57520220
There is no good, cross-platform C# IDE.
>>
>>57520498
That's why things like Spring Boot were made.
>>
>>57520609
>a shitty middle ground between Java and C
nah
>>
>>57518976
I am inclined to believe that C# is better, overall, but you can't make Minecraft mods with it.
>>
File: is_this_guy_serious.gif (61KB, 736x689px) Image search: [Google]
is_this_guy_serious.gif
61KB, 736x689px
>>57518976
>proprietary Java that only works well on wangblows
>>
File: anal beads.png (49KB, 713x487px) Image search: [Google]
anal beads.png
49KB, 713x487px
>>57518976
>1) which is better for job? (especially Europe)
Java has more jobs
>2) which teaches you better programming habits?
Hard to say, but I think C# is more enjoyable to learn, which facilitates patience for doing things the right way.
>3) which is more enjoyable to program in?
C# hands down.
>4) which is better to write Android games or apps in? (you can do that natively now with Xamarin and Unity right?)
Xamarin is GOAT, really easy to work with, especially if you use Azure services for backend.
>5) does C# turn you into a Microshill robot?
No. DevDiv is the one good team a Microsoft that actually knows what they're doing, and everything is being open-sourced and cross-platform.


>>57524913
Back end is an easier life with C#.

C# makes data integration and transformations a breeze.


>>57525090
LINQ + inline functions + fucking tuples

makes me moist

Chan.GetBoard().Boards
.Select(x => x.BoardName)
.Select(x =>
{
(string board, Post post) latestPost() =>
(x, Chan.GetThreadPage(x, 1).Threads.First(y => !y.Posts.First().IsStickied).Posts.OrderByDescending(post => post.UnixTimestamp).First());

return latestPost();
})
.OrderByDescending(x => x.post.PostNumber)
.Select(x => $"{x.board.PadRight(5)}: {x.post.PostNumber.ToString().PadLeft(10)} --- {new string(x.post.Comment.FormatFourChanPost().Take(90).ToArray()).Replace(Environment.NewLine, " ") + "..."}")
.ForEach(WriteLine);
>>
Learn both
>>
>>57518976
Do you use linux? Forget about C# if you do. The dependency list is a mile long and most applications I've run eat a ridiculous amount of memory.

Not saying jvm is any better.
>>
File: java.webm (2MB, 640x360px) Image search: [Google]
java.webm
2MB, 640x360px
>>57518976
>>
>>57525457
LINQ is a pile of garbage that may have the functionality there but the readability is shit.

Good luck working in a dev environment and seeing hacks of shitty unreadable LINQ statements throughout the code base that should never be there.
>>
>>57518976
>Can /g/ enlighten me on the plus and cons of the two languages? for instance:
>1) which is better for job? (especially Europe)
About equal.

>2) which teaches you better programming habits?
Equal again.

>3) which is more enjoyable to program in?
Depends in what you want to make. I prefer Java overall but C# isn't bad.

>4) which is better to write Android games or apps in? (you can do that natively now with Xamarin and Unity right?)
I would still say Java although Xamarin is quite nice to target iOS also.

>5) does C# turn you into a Microshill robot?
Well you kinda have to use Windows and Visual Studio whereas Java means you can go with Linux and IntelliJ which is awesome imho
>>
>>57526607
LINQ is much easier to read than alternative systems in other languages, like Java and Python.

It's more descriptive.
>>
>>57518976
https://www.youtube.com/watch?v=YRfbenxk-Ic
Thread posts: 56
Thread images: 7


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.