[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: 146
Thread images: 8

File: IMG_1675.png (104KB, 1536x1536px) Image search: [Google]
IMG_1675.png
104KB, 1536x1536px
What's /g/'s opinion on the language?
>>
>>60906660
pajeet tier
>>
its fine
>>
>>60906660
Good language. Learn F# next.
>>
>>60906660

Seems better than Java.

Too bad it attach to even more evil corporation.
>>
Great language with a lot of features and ultra-type safety. OOP doesn't get much better than this.
>>
Email me [email protected]
>>
>>60907427
fucking lol, you think oracle is better
>oh yeah we'll let them use our language for free but we'll sue the shit out of them as soon as they start making money

dotnet standard is open source, has official ides on windows, osx and linux and is actually innovating constantly, java is way behind, it's convoluted while still managing to make you use libraries for the most basic tasks, doesn't allow pointer access, no good ide etc
i could write a book about how shit java is
>>
microsoft lang
>>
>>60906660
Who paid you to shill microsoft products?

I learned Java for OOP during CS, but C# is overall slightly better for its slightly less fucked polymorphism and a reasonably well developed web environment.

I refuse to use it personally because it creates lock-in to microsoft who have a habit of shitting on their consumers.
>>
>>60908681
the framework and compiler are open source, there are 3rd party implimentations of .net like mono, how could you possibly get locked into that?
>>
c#/.net can run on linux with mono now

it's fine, you can use it with unity, webdev, decent package manager

can someone explain the difference between c# and .net?
>>
I do Java at my job, and so many times I wish we were using C#. It is truly the pinnacle of an OO language. Just unfortunate that microsoft controls it.

Mono works fine too for most things, as long as you're not doing incredibly low level shit but I still don't like the idea of being at the mercy of mono.

There's also .net core which is still being developed that can run on all platforms, but the ecosystem isn't very big yet
>>
>>60908977
>c#/.net can run on linux with mono now
That has been the case for years. What I wonder is whether Mono supports the most recent versions of .NET. Is it "behind"/stagnating? Can't seem to find a clear answer to that.
>>
>>60908977
c# is the language, .net everything else, the libs, and the clr
f#, vb, and other languages all run on the .net framework
>>
>>60909038
>>60908977
>mono
catch up fammo, we're up to .net standard now, it's cross platform out of the box, no mono required
>>
>>60909049
can you use winforms in linux with it?
>>
>>60909049
Ok, fair enough. So if I want to install .NET on, say, Debian, what package(s) do I look for? How do I call the compiler? And, for that matter, the bytecode interpreter.
>>
File: 1469253603646.png (101KB, 680x535px) Image search: [Google]
1469253603646.png
101KB, 680x535px
>fell for the java meme instead of c#
at least java potentially opens more jobs than c# would, right? i'm in way too deep to start learning another language now
>>
It got substantially better than last time I checked (around 2010 or something) the new asp.net web api rest api system and the websocket libraries are great. it's also useful for making android apps without having to touch the java poo poo.
>>
>>60906660
Java done right
>>
>>60906660
Solid language, very powerful for rapid desktop app development with easy and powerful GUI, shit tons of libraries, decent performance.

But the full .NET runs only on windows, and its the fastest there, while mono works on all OS's but is about twice as slow based on benchmarks you can find online. Cross platform GUI is also troublesome, but beats Java for sure.

Inb4 shill, .NET is one of the very few things MS did right.
>>
Overall C# and working with the .NET framework is quite good. As usual /g/ is full of idiots who have never worked on enterprise grade software and don't have any appreciation for why .NET is so widely used in the workplace.
>>
>>60909105
hell no, winforms was obsolete years ago
>>60909116
install visual studio code and the c# plugin to get syntax highlighting, intellisense, debugging etc
compiler/clr here https://www.microsoft.com/net/core#linuxdebian
>>
>>60909135
In terms of application development, Java and .NET factories are about equal.
ASP.NET is also catching on pretty big recently.
But Java overall has WAY more legacy codebases so a lot of companies look for people to use that instead.

C# is basically just a cleaner, more flexible Java in the first place, it'd take you a day to learn.
>>
It's effectively "java done right". The main disadvantage is that support for non-windows platforms is spotty, though this is being fixed.
>>
>>60909191
>install visual studio code and the c# plugin
Thanks.
>>
>>60909252
thats just the ide, you still gotta get the compiler/clr & deps from the msft link
>>
>>60909291
Yes, I understand.

As for a development environment, I use Emacs, so I actually like the looks of OmniSharp anyway.
>>
>>60907410
WHY?
>>
>>60909569
because all the hipsters just love scripting languages
>>
Shit but slightly better than Java.
Not sure who's worse, MS or Oracle.
>>
>>60906660
Microsofts java ripoff that performs slower than Java itself
>>
>>60906660
I'd really like to learn C# this year and to do that I usually try and get involved in a part of a community. Before I try and take part in a community, I generally look at the Code of Conduct first.

I noted that the Code of Conduct mentions 'gender' but that doesn't really feel like it includes non-binary or agender folk.
>>
>>60906660
The only reason to use Java is that it's simple enough that pajeets can write working software in it.
With that in mind, why would you want to use a more complicated Java?
>>
>>60909116
https://www.microsoft.com/net/core#linuxdebian
>>
>>60909105
Although it wasn't updated in 7 years it worked fine on macOS, so it should work on Linux. But k would recommend avoiding it.
>>
Is there a list of which languages will get you sued if you create something successful with them? I understand its implementations as well, I'm just wondering if there's a resource out there somewhere since it would make sense that people would want to know that.
>>
>everyone saying you're locked in to Microsoft if you use c#

I've been developing programs with c# for Linux with mono and have had no problems. Not even taking into account DotNet core. There's even MonoKickStart that allows you to distribute apps with a self contained runtime
>>
>>60910294
ngl i am kind of worried they will start removing stuff from the spec
>netcore 2.2 path notes
>unsafe flag removed because brain-dead transgender pansexual furries keep somehow enabling it and getting memory_out_of_bounds
>>
>>60906660
Its good. Consider another language for non-windows things though, NETcore is usable but a language designed to be portable is always better.
>>
>>60908977
You still can't really easily write desktop applications with it though

Windows uses Winforms while on Linux GTK# is recommended

You can obviously use both on both platforms but it will requrie extra work
>>
>>60909135
>way too deep to start learning another language now
most Java devs can jump to C# with ease
also it's never too deep to learn new language
>>
>>60910699
b-but anyon, core is designed to be portable
For a self-contained deployment, you deploy your app and any required third-party dependencies along with the version of .NET Core that you used to build the app. Creating an SCD doesn't include the native dependencies of .NET Core on various platforms (for example, OpenSSL on macOS), so these must be present before the app runs.
>>
It's cleaner than java that feels like a fucked up barely working patched up mess.
>>
>>60910748
Core is missing quite a few of the packages (also some package contents) from standard framework. This isn't really a problem if you don't need those (The ones I had to use were voice, bitmap and system hardware packages)
>>
>>60910795
have you tried using a fallback? it worked for some of the libs i use that havent been ported yet
in your .csproj

<TargetFramework>netcoreapp2.0</TargetFramework>
<PackageTargetFallback>$(PackageTargetFallback);portable-net45+win8+wp8+wpa81;</PackageTargetFallback>
>>
>>60910810
btw don't use 2.0 yet obviously, im testing out how badly the new auth changes will fuck my existing 1.2 software
>>
>>60910782

>It's cleaner than java
Bullshit, it's Java with the keywords and stdlib changed and a bunch of extra shit piled on without rhyme or reason
>>
>>60906660
Dogshit, it's java but M$ dogshit that's not cross plaform.
>>
>>60910962
>im bad at programming
>>
>>60911006
>I have no argument
>>
>>60909186
THIS.
>>
>>60906660
>make multithreaded async TCP server in 70 lines of code in 30 minutes
>C/C++/whatever the fuck-tards spend 2 months working on a multithreaded TCP server and they end up just forking and making it multiprocess to stop it from crashing everything when one of the workers fucks up
Yeah, that extra performance from le epic low level language sure is great except when the overhead from going multiprocess kills your applications.
>>
>>60909203
>ASP.NET is also catching on pretty big recently.
>recently
hahaha it's been the workhorse for enterprise development since ~'04 but I would never use it for anything now. Hell I hated developing with it because I saw it as a spaghetti framework. Now with MVC added, it's totally a spaghetti framework.
Use Angular& bootstrap up front with .net WCF on the backend and your life will be so much more stress free.
>>
>>60909875
well ya it was built to compete with Java. Slower, maybe, but that doesn't mean shit to the suits or to me.
>>
Not gonna lie, the entire microsoft stack is way comfier than oracle, especially SQL server vs oracle DB.

Working for run of the mill window shops is always like living in a hell hole though. You know why trendy start ups always use the new up and coming languages and frameworks? Because it's actually exciting sometimes. Enterprise shit like C# and Java will slowly crush your soul with how perfect it is for development.

Actually, any kind of professional development will crush your soul eventually. I just think enterprise shit will do it quicker.
>>
>>60906660
It's good. Easy to learn, and very powerful. If you want to work in the corporate environment, learning C# and .NET framework is a must. Where I am from .NET developers are always in demand so getting a well paying job is easy.
>>
>>60909135
The transition to C# is very fast if you are already proficient with Java. In fact, it was originally designed to mimic Java for that very reason.
>>
After creating a bunch of stuff in Java (ie. getting paid to do shit from a simple calculator to a complex system because Chad can't create programs for shit and was only forced to take CS as a career by his parents) and Discord bots in Python, I can now say that C# is a shitty programming language with broken libraries (Creating an Android app on C# was a fucking nightmare and I had to redo the project from scratch in Java because some fucking Xamarin library broke).

I recommend that you fucking stay away from it. Don't do shit using C#. Use C or Assembly if you have to.
>>
>>60911380
>Use C or Assembly

:^)
>>
>>60911397
He has autism, just let him be.
>>
>>60911264
>hates .NET MVC and likes Angular
How about no
>>
I had to put together a webpage that crunched some sql output and only had IIS to work with hosting wise, so I followed some tutorials and did a c# aspx thing that went surprisingly smoothly. My job is in Administration so I don't get many chances to make things and when I do it has to be thrown together in a hurry.

I probably could have made python do it, but I didn't have the go-ahead to spin up another server and they don't want us slapping python interpreters onto existing systems.

>>60911192
I feel like we can change this if we post more often and up the abuse of the consumer tier bullshit.
>>
>>60911264
>calls .net with mvc spaghetti code
>recommends angular
lol
>>
>>60906660
c++ without unnecessary convoluted shit
>>
>>60911441
Lol fucking moron
>>
>>60911380
>Use C or Assembly if you have to.
l
m
a
o
>>
>>60906660
OO language done right.
>>
>>60906660
C# is slow as fucc, boi get over it.
https://github.com/kostya/benchmarks
>>
>>60906660
I like the language, don't like that you're tied to the .NET framework and Windows in general.
>>
>>60908975
mono is shit anon and you know it. It doesn`t even come close to .NET on windows to develop web application.
>>
>>60906660
C# is very good for almost everything and only really bad for high-performance algorithms because it has no SIMD
>>
>>60906660
i don't get it why it gets so much love, i find its a shitty collection of syntatic sugar for all kinds of things while, like java, lacks proper powerful concepts behind it that would make most of this unnecessary. also i hate ms, i hate visual studio, and i hate every language that writes MethodsLikeThis (seriously that makes me puke)
and i've found its a language mostly used by people who can't program for shit.
>>
>>60913261
u just mad son
>>
File: ss-2017-06-15-17-56-50.png (38KB, 365x526px) Image search: [Google]
ss-2017-06-15-17-56-50.png
38KB, 365x526px
>>60912017
will C ever recover?
>>
>>60913414
clearly optimized for memory usage over speed
get fukt
>>
>>60908975
>there are 3rd party implimentations of .net like mono
that was the only 3rd party implementation. and it got eaten by microsoft. and java has at least 20 of them. top fucking kek
>>
>>60906660
Your way into Microsoft's untrustworthy ecosystem.

Go with Java (or the other JVM languages like Scala, Clojure, Kotlin if you have issues with syntax) if you want to be part of a larger, more open ecosystem.
>>
>>60906660
Syntax is OK, but .NET has become a clusterfuck like everything Microsoft.
>>
>>60909174
Who the fuck would use .NET for cross platform? There are FAR better options.
>>
>>60913414
>C# not in plain sight
kek
>>
>>60909174
>decent performance.
Oh boy
>>
>>60913967

He's right you know.
>>
>>60906660
It's a good language, but every pajeet that compares it to C/C++ just because it has 'C' in the name should be shot
>>
>>60913796
>Microsoft's untrustworthy ecosystem.
that's been changing fast. microsoft is way more open nowadays and embracing open source in their products, even making some quality ones for free (like visual studio code).
>>
>>60913997
Slower than Java
>>
>>60914307

Different benchmarks come out in favour of each.
>>
>>60908629
/thread
>>
>>60914307
"slower than java" is still more than enough for most uses
>>
>>60914074
I guess it's a sign of improvement.

But even that shows issues. It's not like they took special care to give Linux projects a very nice build system or such (like, you know, even amateur computer game projects do). Or to allow Python 3 more than ten years after it started stabilizing pre-releases.

And ultimately we'd need the whole stacks to be that open, and most of it also should be largely outside of MS' factual control (which .NET is not).

Plus when has trusting MS ever worked out...? There is a reason why even big corporations are almost all going with the JVM if they can (and even more strongly so outside of the USA).
>>
>>60908629
there are thousands upon thousands companies that use java and some of them make more money than oracle. and they won't ever get sued
google vs. oracle wasn't about using the language at all

>dotnet standard is open source
how many implementations are there that are not controlled by microsoft and microsoft alone?

>has official ides on windows, osx and linux
of which only the one for windows is viable. too bad windows is pretty shit for a programmer

>innovating constantly
some call it innovating constantly, some call it polluting the language with unnecessary garbage solely to appeal to newbies

>java is way behind
some call it being way behind, some call it being reasonable and very precautious in making changes that many people will have to live with for the next decades. and if you crave shiny new features you can always use scala or kotlin. both are better than c# btw

>it's convoluted
it's actually very simple. it has less keywords and less syntax sugar than c#

>no good ide
so you're claiming that a rebranded monodevelop is a viable ide while intellij is not? you're either ignorant or dishonest
>>
>>60907427
>Oracle is good

nigga wut

Also .net core is open source so who even cares.
>>
D is a better language
>>
File: 123124515.jpg (69KB, 680x680px) Image search: [Google]
123124515.jpg
69KB, 680x680px
>>60914483
>syntax sugar
opinion discarded
>>
>>60914530
.NET core is literally neutered .NET framework
>>
>>60914530
>Oracle is good
who are you quoting? the java platform is developed through a community process and not by oracle
>>
>>60914581
Yes, but they've got to start somewhere.
Hopefully in time it will grow.

I work with WPF at the moment so i'm spoiled.
>>
>>60914542
Nobody uses D.
>>
>>60914611
https://en.wikipedia.org/wiki/Argumentum_ad_populum
>>
>>60914647
>Fallacy fallacy.
D has no users, so it has no libraries. It has no support. It's a toy language, plain and simple.
>>
>>60914675
>so it has no libraries
D can natively interface with both C and C++

Then again, why am I even arguing with a C# toddler anyways
>>
Nothing out there comes even near close to LINQ.
>>
>>60914881
>I don't understand declarative programming so I will worship fisherprice Microtrash snake oil so I must look cool
>>
>>60914898
That's must be exactly it. How did you know?
>>
File: 1479596077620.gif (731KB, 640x360px) Image search: [Google]
1479596077620.gif
731KB, 640x360px
>>60906660
Syntax-wise, absolutely great.
But it's fucking tied to Microsoft and its godforsaken .NET runtime.
>inb4 mono
That shit died when Xamarin got their dirty fucking hands on the project and molested the living fuck out of it in the name of "Crossplatform development".
>>
>>60907427
java that microsoft extinguished
it's a poor imitation
>>
>>60915035
>public static class{ public static void main(
LOL
>>
>>60908977
we're only getting these c# shill threads now because the idiot corporation wants to "promote it on linux"
>>
>>60915051
>I have never written anything more complicated than Hello World
>>
>>60911327
what kind of a statement is this
>>
>>60915060
>Complicated programs require me to write public static class{ public static void main
LOL Pajeet!
>>
>>60915090
>static class
Yeah, you're even more clueless than those AbstractPooFactory memers.
>>
Java for braindead goys with a liking for bill gates' jewish dick
>>
>>60915100
I am not used to those puke inducing structures
>>
>>60915090
>i prefer a dynamic kiddie language that only i can understand my own code!
>>
>>60915149
>I am a POOjeet so I must think every languages are dynamic
You are digging yourself a hole, rajesh
>>
>>60915051
>I'm lazy so language defaults should cater to my very specific needs
How about you stop complaining about shit the IDE does for you anyway?
>>
>>60915183
>His language defaults are so shitty he needs an IDE so he doesn't have to type them
>>
File: 1493309540143.png (1MB, 1200x1800px) Image search: [Google]
1493309540143.png
1MB, 1200x1800px
>>60906660
I like it alot.
>>
>>60915205
Name one shitty default then. I'm listening.
>public static class{ public static void main(
You don't need public, and if you seriously need to whine about a modifier for making shit non-OO, you don't even belong on this board.
>>
>>60915300
>POO
stopped reading right there
>>
C# has the best syntax.
Java has been struggling for years to catch up and it's still a pale shadow in comparison.
>>
>>60915334

Java and C# have the same syntax, except the keywords and standard library have been renamed.
>>
File: 1456335644899.gif (1018KB, 500x700px)
1456335644899.gif
1018KB, 500x700px
>>60915313
>I can't come up with actual arguments so I'm just going to act like a shitty redditor
Even ANSI-C zealots aren't this atrocious.
>>
>>60915408
>actual arguments
I'm sorry you are confusing "actual arguments" with " "arguments" that appeal to me", in which case you should stop trying to control your damage, POOjeet
>>
>>60906660
What's the use of C# anyway? It was a failure in it's very own domain despite having Micros**t shilling for it 24/7

And if you don't care about the "market status" and love programming in general, there are much better languages out there that
1. Does the job well and more efficiently
2. Has better language design and type system
>>
>>60915496

It's Java with a generally superior language but worse cross platform support.
>>
>>60915457
So far you haven't listed arguments, you have merely spouted memes.
>>
>>60915512
>It's Java with a generally superior language
>Cross platform
That's not really any considerable feat. Other languages can do it without VM or Runtime framework Show me something impressive. Like CTFE.
>>
I like it

But then again I have no choice to like it since I work for an M$ shop

>inb4 pajeet
I'm white
>>
>>60915515
POO is a meme
>>
>>60915538
You do realize this thread is made for and by literal VM lang plebs, right?
>>
File: 1461521428708.jpg (64KB, 332x346px) Image search: [Google]
1461521428708.jpg
64KB, 332x346px
>>60915546
>>60915457
>>60915313
Scat fetishists need to fuck off to >>>/gif/
>>
>>60915583
Well I haven't seen any impressive C# code in my life. All they can brag about is "LINQ" which is pretty cute.
I guess they are not familiar to proper type/declaration oriented programming so LINQ feels like a godsend to them
>>
It is a very robust and well built language but until I can get a compiler/interpreter for it in apt-get it is not super useful to me
>>
C# is the biggest piece of shit ever made. Its half done C mixed with Java.

You want to write that byte array to string? Good luck, you need to cast it 10 times or create new objects. You want to do some smart optimization by directly manipulating bytes? You need to pin shit and go "unsafe", wtf does unsafe even mean? I know what im doing how can it be unsafe. Its a language made for niggers.

I hope i burn in hell for eternity for each line of C# i wrote
>>
The lambda/linq is done a whole lot easier than in java.
>>
>>60916830
Even if you want something like that, it doesn't give you any reason to move off the JVM.

Scala and friends do this kind of a thing better than C#.
>>
>>60906660
Java 8 does everything better and in a far less complicated way.

>>60916830

You're retarded.
>>
>>60916830
>The lambda/linq is done a whole lot easier than in java.
bullshit
https://github.com/mythz/java-linq-examples
>>
>>60916973
Java 8 is a load of wank that adds nothing but syntax sugar
>>
>>60917032
>stream api
>method references
>default methods
>new date/time api
>>
>implying I want to use mono or CLR when I can go runtime free & native
>>
i'll go with this. >>60907451
also enjoyed using it in Unity with VS.
>>
>>60906660
Developing with it under Linux for 10 years.
Did a couple of good niche software for my customers with it. It's a nice language.
Thread posts: 146
Thread images: 8


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