[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#

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: 88
Thread images: 5

File: 2p4i.png (5KB, 375x375px) Image search: [Google]
2p4i.png
5KB, 375x375px
What is /g/'s opinion on C#? Is it a viable language? How does it compare to Java? What about game-dev applications?
>>
c# is a shit
>>
A language for pajeets.
>>
It's nice for what it is.
>>
>>56022198
Yes, for o Windows environment it's one of the best languages to use.

It's syntax is similar to Java but there's a lot of things that differs from it.

It's used by the Unity engine to make games, you should check it out if that's what you want.
>>
There's really no point learning it unless you have to work on an existing C# codebase. If you want to make something quickly, use JS or Python. If you need uncompromising performance, use Rust.
>>
>>56022303
no that's java
>>
If you're making backends or web apps, go with Elixir (built on top of Erlang). I recommend it.
>>
Amazing, but Microsoft still has some things to do to convince people to use it outside of Windows for serious things (that are not Xamarin).

I'd love to do ASP.net instead of PHP, but the faggit webhoster bastards make that impossible.
>>
>>56022198
I use C# to develop quick and dirty applications with a UI at work to do really simple things for the production know-nothings to use.

I prefer C# over java because of various things, but mostly because whenever I have to do anything remotely low level in java I trip over a lot of odd barriers, as well as other crap like external libaries being exceedingly unreliable for no discernible reason other than potentially coded by the meme of pajeets or college CS grads
>>
It's good for prototyping.
>>
>>56022323
>rust
Fuck off memester.
>>
C#/C++ masterrace
>>
>>56022198
It's the best language there is.
>>
>>56022198
They are almost exactly the same and you can get marketable skills with either. So do both.
>>
With .NET core released and being fully cross-platform, Java has no reason to exist anymore.
>>
>>56025318
>minecraft
>>
>>56022198

It's C for children and lesser skilled professionals.
>>
Its poo coated in gold to not scare white people
Use Go/Scala/Swift
>>
>>56025318
That's like saying ruby has no reason to exist because python exists and does everything better.
>>
>>56025414
But... that statement is... correct
>>
>>56025356
>t. professional fizzbuzz developer
>>
>>56022323
>python
>rust
Nigger spotted
>>
File: anomalous.gif (1MB, 250x200px) Image search: [Google]
anomalous.gif
1MB, 250x200px
>>56025578
kek'd
>>
>>56022198

As a language, it's sound, and it works well as an embedded language in Unity. For webdev though, it will tie you into using ASP.Net, the CLR and Visual Studio. ASP.Net is bloated, unportable shite. Don't let whispers of Mono fool you. For webdev, you're better off learning Java. But you have better options.

Even PHP is a better option.
>>
>>56025336
Isn't Microsoft rewriting Minecraft in C#?
>>
>>56022337

Why do you recommend it? That just read like zealous bullshit.
>>
>>56026037
Why would they do this?
>>
>>56022198

C# is a pretty underrated langauge.
It's very concise and good for scripting but also OK for bigger projects.


>>56025431

Python is a subset of Ruby, dude.

Not trying to bash Python, it's great, but it's intended to have only as much syntax as necessary.


Also you can always just use backticks in your Ruby code to use python from the shell whenever you want:

# FILE: calc.py
import json
import numpy
import sys

data = numpy.array(json.loads(sys.argv[1]))
# some calculations here..


# FILE: example.rb
def invoke_python_code
result = `python calc.py [[0,0,0,0],[0,1,1,0],[0,1,1,1],[0,0,0,0]]`
end
[/cool]


Note that the last statement use backtics(ยด), not single quotes (').
>>
Definitely prefer Java, but both C# & Java have their place and can give you nice cushy careers.

Java is used either in enterprise applications (Tomcat) or embedded devices (Android). C# is used with Unity, WPF, and as such also presents a huge portion of market share in underlying technology.

So choose your own adventure I suppose.
>>
>proprietary and platform specific
into the trash
>>
>>56022323
>If you need uncompromising performance, use Rust
Don't drink the cool aid, Rust compiles slow AND runs slow no matter what the SJWs are saying
>>
>>56026150
It's only for mobile/console
>>
>>56026430

Source or STFU.
>>
>>56022198
it's C for the .NET framework, meaning it's absolute garbage, write in REAL C
>>
>>56026699

C and C# are completely different..

Or does this look like C to you?
Array.ForEach(Directory.GetFiles(@"c:\MyDir\"),
delegate(string path) { File.Delete(path); });
>>
>>56022198
>Is it a viable language?
Absolutely.

>How does it compare to Java?
+ Tasty syntactical sugar.
- Some of the aforementioned sugar actively enables shitty patterns.
- Non-Windows environments are still second-class citizens and likely always will be.

>What about game-dev applications?
Can't personally comment, but it seems to be pretty popular and well-liked via Unity.
>>
>>56022323
>js
>rust
goddamn the meme shills are out in force today
>>
>>56026306
This desu. Fuck Microsoft.
>>
>>56022323
>If you want to make something completely unmaintainable, use JS or Python.
FTFY.

>inb4 "but I never have to refactor because my code is perfect the first time :^)"
>>
>>56026720
Better not show this guy LINQ otherwise he might get a stroke
>>
Where do I learn C# online, but not from books? I know syntax, but not how to use it outside of console stuff.

Also, is C# best used in conjunction with MySQL?
>>
>>56026836
MVA and MSDN has everything you'll ever need
>>
>>56026811

Yeah gotta be carfull..
If you lived in the matrix for too long, it's hard to accept that there could be a differnt world.

You programm in C - the story ends, you wake up in your bed and believe whatever you want to believe.
You try C# - you stay in Wonderland and Iit will show you how deep the rabbit-hole goes..
>>
>>56026870
Is it free even if I have pirated windows?
I also downloaded VS community, but now it's asking me for a license, what do?
>>
>>56022198
the microsoft version of java, they literally multiplied pajeet with pajeet and /g/ actually likes it hahaha. c# is garbage, as bloated and verbose as c++ with none of the performance, stuck on the microsoft clr. DO NOT use this crap, even shitty java is 10x better than this crap
>>
>>56027332
What do you use then?
>>
>>56026836
SQL Server is the obvious choice for a DB.
google about WPF (the new windows forms) for UI info.
>>
>>56026165

>>Python is a subset of Ruby, dude.

What a fucking idiot.
It's a different language. If you don't know something fully, at least mention that in the post. I had to Google your bullshit to make sure.

And for the record, many languages let you run shell commands at runtime, Ruby is a piece of shit with partial cross platform support. Just like C#, incidentally.

But between Rails (a customisable pipeline http server that's not Apache) and Gems (revolutionising package management), the language has made a huge difference to the art. And has some nice features (macros).
>>
>>56028771

And I was wrong about Rails providing an alternative to Apache too!

I have absolutely no reason to learn that piece of shit. But desu, it's not the language, it the program, stupid.
>>
>>56026037
I think they're rewriting it in C++
>>
async/await master race

C# for everything not performance critical in cycles

C++ for everything else
>>
C# is nice for writing quick apps in
I wouldn't write anything enterprise-scale in it though
>>
File: 1465129851008.jpg (40KB, 480x360px) Image search: [Google]
1465129851008.jpg
40KB, 480x360px
>>56031536
>apps
>>
>>56031663
hun people have been using the term 'app' for years
>>
File: apps are amazing.png (120KB, 345x342px) Image search: [Google]
apps are amazing.png
120KB, 345x342px
>>56031663
>>
>>56031536
You wouldn't write anything enterprise"-scale" in a language specifically designed for enterprise?
>>
>>56031743
>enterprise"-scale"
What are those quotes supposed to mean? https://msdn.microsoft.com/en-us/library/ff647734.aspx

And no, because I don't trust microsoft pajeets, and yes this post has multiple layers of irony
>>
>>56022198
I haven't used the language outside of .NET so I won't comment on other implementations (eg Unity, etc). these are my opinions after a couple hundred hours of dev time.

it's easy to write with. holds your hand a lot. less syntactical overhead than java and better documentation too. because it's a pajeet language every single possible permutation of code has five stackoverflow answers for it.

standard libs range from really good to really shitty. third party support is actually not as good as you'd expect it to be unless you like to pay 500 bucks for libs that do basic shit.

lots and lots of useless/redundant constructs and keywords that make code less readable (eg "using" blocks literally just call Dispose() for you), but also a couple of things I wish more languages had like the ?: operator.

linq is probably the single thing I love most. you can perform complex operations on huge data sets with 3 or 4 lambda expressions. I haven't benchmarked it but AFAIK it's slow as shit though.
>>
>>56031503
Have you heard of our lords and saviors co_await and co_yield yet?
>>
>>56022198
I work with C# among other things. It is a solid language, and solid proof of what Java could have become if it hadn't been maintained by idiots. Stuff like generics, functional programming, etc. all happened in C# years before Java got around to it, because for some reason Gosling and his ilk convinced everyone that making everything a POJO was a good thing.

It runs fast, as long as you only plan to use windows.
>>
>>56022198
Lots of jobs that require you to know C#, I'll tell you that. Have of the internships I applied to had it listed as a requirement, also.
>>
>>56026720
>Not using extension methods to make this super comfy
@"c:\dir".GetFiles()?.Foreach(path => path.Delete());
>>
Why the fuck would I use an interpreted language other than Python?
>>
>>56022198
C# is and will be much better than Java.
However these languages are for working in companies, if you want to build your own programs just use better languages!
>>
>>56033047
Python is almost dead!
It was used by some scientists in 1990s but now it's over...
>>
>>56026660
rust is certainly slower than C or C++, altough a good part of that is due to librarys(C interoperabiliy is good though, but doesn't cover everything]. If you want i can try to find sources.
>>
File: unicorn.jpg (247KB, 901x600px) Image search: [Google]
unicorn.jpg
247KB, 901x600px
>>56022198
It's a new wave Delphi :^)
Shines with database apps
>>
>>56026037
yes, there's a C++ version out for Win10 but as it's a different codebase there are no mods..and modding is impossible anyway, since it's UWP or whatever crap W10 has that makes modifications impossible.
>>
>>56031663
I REALLY HATE the word "app".
>>
>>56033370
lol no bro have you checked github recently
>>
>>56033583
Why? It's comfy for twitter/sms generation!
>>
>>56033494
Rust is faster than C++ and slightly slower than C
>>
>>56033592
Yes and it's full of crappy things!
>>
C# FTW
>>
>>56022198
the improvements of C# over Java are not nearly significant enough to switch to a far inferior platform
>>
>>56033609
Rust literally is C++
>>
>>56031715
not before iphones that's for sure
>>
>>56033680
Except rust has no correct tools or libraries.
>>
>>56033800
this, adoption is a huge thing
you're not going to write a better bignum library than GMP for example.
And network IO on linux is never going to be faster than with C because C has no translation overhead
>>
>>56033800
and worse compilers
>>
>>56022198
Jesus fucking christ, why do these threads exist? Google it. Is it used anywhere? Is it used by many people? Does it work? Yes? Well, there you go: OF COURSE IT'S A BLOODY VIABLE LANGUAGE.
>>
>>56033934
yep, people tend to forget that it's not the language that is fast, ITS THE FUCKING COMPILER.
C and Fortran have godlike compilers developed by the likes of Intel and IBM and thus their speed is top notch.
>>
>>56033968
i disagree, dynamically typed languages are slower, and other nice high-level abstractions also often make the compiler's job a lot harder.
I read something about functional languages where the stack, rather than being 1 dimensional like in most languages, was a graph, which had to be garbage collected.
[In C and similiar languages space on the stack is allocated at the start of a function and deallocated after that function finishes]
>>56033964
it's more of a prompt fordiscussion about the language, rather than normal questions with 1 correct answer.
>>
>>56034095
well yeah, some languages are harder to code an efficient compiler for.
But a good example of what I'm saying is Julia.
Leave every type undefined and no constants, the code is going to be slow. Define them and the compiler will make efficient code.
The language is the same, but the compiler produced better code in the second case.
Dunno about functional languages tho. Last thing I heard, Lisp (Scheme) and Haskell were getting faster.

As a disclaimer, i should say I have never ever attempted to go hard on Computer Science and compilers, my programming stuff has more to do with engineering and physics.
>>
>>56033680
>>56033609
A program written in Rust with safety turned off will run at half the speed as the same program written in C/C++.
>>
>Rust
Look it up
>Mozilla Research
haha fuck no.
>Rust won the first place for Most Loved Programming Language of 2016 in the Stack Overflow Developer Survey
No wonder you pajeets are shilling dat shit so hard
>>
>>56022198
C# is god's gift to man.
Thread posts: 88
Thread images: 5


[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.