[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y ] [Home]
4chanarchives logo
Hey /g/ what do you think of C#?
Images are sometimes not shown due to bandwidth/network limitations. Refreshing the page usually helps.

You are currently reading a thread in /g/ - Technology

Thread replies: 157
Thread images: 27
File: 2p4i.png (5 KB, 375x375) Image search: [Google]
2p4i.png
5 KB, 375x375
>>
>>54368686
Microsoft proprietary garbage
>>
>>54368709
But it's open source
>>
>>54368709
>using words without knowing what they mean

lol, /g/, every time
>>
Use it at work every day and I like it. 10x better than Java for actual enterprise stuff.

Linq is a masterwork.
>>
>>54368764
>>54368725
.NET and CLR are proprietary
>>
>>54368767
This. LINQ is amazing. C# is well designed! For me at least, it's a pleasure coding in C#.There is so much utility built into the language! Try formatting a date in C# vs Java and see which one is easier...
>>
>>54368846
Linq runs slow though...
>>
>>54368859
Then don't use it
>>
File: 1420177771641.gif (982 KB, 500x334) Image search: [Google]
1420177771641.gif
982 KB, 500x334
>>54368686
MSJava

Actually, it takes Java and fixes all the retarded with it.

A lot of the .NET GUI frameworks feels like stuff that should have been fixes to MFC, but MS has to treat all of its C++ users like second class citizens for whatever reason.
>>
>>54368888
Nice quads
>>
File: 1412384815514.jpg (182 KB, 699x610) Image search: [Google]
1412384815514.jpg
182 KB, 699x610
>>54368888
>quad
shit
>>
>>54368914
bump
>>
Just learn Java if you want a language like that.
>>
>>54368804
but you're wrong
https://github.com/dotnet/corefx
https://github.com/dotnet/coreclr

Licensed under MIT
>>
>>54369159
or eat a dick.
>>
>>54369160
>just the core

Useless
>>
>>54368686
Java is a bad language. But it is desirable for it's ease of use and for it's ease of replacing adding or replacing people within a project.
Which is to say, for the complete disconnect between what you're doing and what they other people working on your project are doing.

C# is a shitty Microsoft knock off of Java.
They only made it to avoid having to go through Oracle's proprietary bullshit (within some context I'm drawing a blank on).

C# is worse then Java, but Microsoft Visual Studios is better then Eclipse; it sort of evens out.
For now Java more worth using, but the tiebreaker is only that Java sees more use.
>>
>>54369204
.NET Core is the newest version of .NET that can run cross-platform.
>>
>>54368686
murder it with forks!
I thought that you said java
it's ok I guess
>>
>>54369342
>C# worse than Java but a C# IDE is better than a Java IDE
>>
C# is for kiddies who can't into C++.
>>
>>54369512
Oh good, tell me how to use it to build .NET applications in Linux
>>
>>54369342
more used does not better make.

What iv'e seen lately is many origionally-java projects moving to other things, namely a flavor of C, for an increase of performance. For example Runescape had a massive FPS and graphics boost using a C# client, and there are C minecraft servers that far outperform the java counterparts.
>>
>>54368686
Just use C
>>
>>>54370390 more worth using =/= better
>>
>>54370378
>>54370466
spotted the people who don't know a single language
>>
>>54370387
I'm a different person but check these out for now. Still preferable to be on Windows to develop dotNet. It's just not like Java with Eclipse.

https://dotnet.github.io/getting-started/
http://www.monodevelop.com
>>
File: 1462060679880.jpg (22 KB, 225x225) Image search: [Google]
1462060679880.jpg
22 KB, 225x225
>>54369159
>>
>>54368767
>10x better than Java for actual enterprise stuff.
>Linq is a masterwork.
>>54368846
>LINQ is amazing
>>54368859
>Linq runs slow though...
>>54368878
>Then don't use it

tldr of C#
It's amazing but it's slow so don't use it.
>>
>>54370390
Isn't the new Runescape client C++ instead of C#
>>
>>54370606
First link has nothing to do with making NET applications.

Second link is mono, which is a joke
>>
>>54370856
C# can be as fast as C++ in most areas
LINQ isn't something you need to use
>>
>>54370387
https://dotnet.github.io/getting-started/

use google next time you retarded manchild
>>
>>54370889
>Not using LINQ
Hence no reason to use C#.
Might as well use Java.
>>
File: 1415995834757.jpg (15 KB, 467x460) Image search: [Google]
1415995834757.jpg
15 KB, 467x460
>>54370889
this basically
You don't really lose anything by not using it
>>
>>54370894
See >>54370881
>>
>>54370927
open the link before you post again
that literally tells you how to build a .NET application

now off yourself
>>
File: 1426558100753.png (24 KB, 510x546) Image search: [Google]
1426558100753.png
24 KB, 510x546
>>54370927
it's like you aren't even trying
>>
File: 1446286159864.jpg (14 KB, 470x313) Image search: [Google]
1446286159864.jpg
14 KB, 470x313
>>54368725
Open source is still proprietary.
>>
>>54372587
not when it's MIT
>>
I am using C everywhere because I learned it in college.
I still don't know why people don't like it.
However I am not a paid/professional developer, just hobbyist.

C# looks great sometimes...
But F# seems much better so why young people should learn C#?
>>
What's the cleanest way to install visual studio and upgrade it?

When I use the graphical installer, it creates bunch of folders and sometimes (why?) in the root C:\ drive.
Upgrading randomly fails and mess my computer.

I know Microsoft is developing a full online visual studio and they want to avoid piracy.
So maybe they make installable visual studio a shit to promote their online version.
>>
>>54368686
I love it.

I'm basically a full-stack dev at the company I work for. C# makes integrations pretty easy.

I abuse LINQ all day, every day.

>>54373473
>When I use the graphical installer, it creates bunch of folders and sometimes (why?) in the root C:\ drive.
>Upgrading randomly fails and mess my computer.
I've installed Visual Studio to at least 8 machines that I've personally worked on, including servers.

I've never had these issues that you speak of. You're obviously doing something horribly wrong.

You're just downloading Community 2015, right? Not trying to pirate? There's basically no difference in Enterprise.
>>
Linq is slow when you dont know how to use it or doesnt know how to optimize
>>
>>54368686
Better than Java, shame about windows tho. Hopefully MS can hurry the fuck up and put some more features in core so I can use it on loonix
>>
>>54368686
Fuck you OP I thought this was an mpv thread
>>
>>54374075
What are you missing in Core?
>>
>>54373400
F# is indeed better (on top of having no VM)
>>
>>54374160
The migration path for all the shitty .NET 4.5 apps I have to look after
>>
>>54374186
You should be able to run them on Linux once you detach any non-compatible graphical framework, like WPF.
>>
It's alright I just don't want a job doing .NET web development ever.
>>
>>54374230
Uh nope. Not compatible with many libs, lots of core features missing
>>
>>54368686
It's a Wangblows meme.
>>
>>54368686
no portable compiler = gaf
>>
File: 2016_04_14_header.png (123 KB, 751x364) Image search: [Google]
2016_04_14_header.png
123 KB, 751x364
How to create Xamarin applications with Visual Studio Code?
I can't install Visual Studio 2015, the installation fails all the time.
>>
>>54375764
>I can't install Visual Studio 2015, the installation fails all the time.
Xamarin tools are built into VS 2015.

What do you mean the installation is failing? Are you trying to pirate it or something? It's free.

What OS are you on?
>>
>>54373400
Because it's f*cking great, man. I'm not bought into this functional programing meme, and C# was actually easier to learn than python (as I was fondling with some other language with similar syntax to C# beforehand). It was acutally so quick to get right that after a year of getting to know it, I got a job in C#. Now I'm a shit dev doing shit games, but hey, this gets me money.
>>
poopoo in the looloo still, but it's at least usable unlike Java
>>54374176
??? it runs on the CLR/Mono still
>>54373400
F# is better than C# 99% of the time. the rest of the time you can just use them together
>>
>>54375883
Was the job you got doing game grunt work, or something else?

Trying to turn my moderate c# knowledge into money atm, but I've always been a hobbyist, so I'm not too sure how. Maybe asp.net.
>>
How to download the latest Xamarin Studio for Windows?
The website want me to download Visual Studio 2015.
>>
>>54375946
Not the anon you're responding to, but:

If you're anywhere near a city, there's likely tons of junior dev positions that include C#.

Apply for stuff that you might not have all of the credentials for, and learn some of the common extra stuff that goes along with C#, specifically SQL and ASP.NET.

It might suck, but if you do a few interviews and get a better grasp on what these companies actually want you to know, you'll know what you need to learn.

Consider getting Microsoft certifications. I'm MCSA Certified and that alone puts me in another salary bracket, so I'm set for jobs for quite some time. The MTA is a good starting point.
>>
>>54370868
Yes, I believe it is
>>
>>54376144
>Xamarin Studio
It's built into Visual Studio now.

Microsoft owns Xamarin now, and has made it free with VS 2015.
>>
>>54376211
Yes but I don't want to install the full over bloated visual studio ide just for small mobile apps.
>>
might as well ask here. Are there any useful features in visual studio entrerprise/professional, or can i stick with the community edition? I only plan to make simple programs in c++ or c#, i won't need very advanced stuff.
>>
>>54376237
>I don't want the best tool for the job that will make my life easier

Consider downloading the open-source Xamarin compiler, and use your favorite text-editing tool to write your code.

You'll just have to compile via command line, which should be easy for you, right?
>>
>>54376263


Community has basically everything that's in Enterprise.

There's no reason to use Enterprise unless you're working with 20+ people on a huge project.
>>
>>54376266
Very good idea, hope visual studio code will have helpers to dev xamarin apps.
I am not a big fan of the current visual studio, too invasive.
Microsoft said the new release will be smaller, leaner, easier to maintain.
>>
>>54368686
Not the worst, not the best.
>>
File: botnet_blog_title.jpg (73 KB, 640x420) Image search: [Google]
botnet_blog_title.jpg
73 KB, 640x420
What I need to be connected to Microsoft botnet cloud with an hotmail account to write shitty C# applications.
>>
what is linq and how is it any better than other query builders out there (like sequel (ruby), arel (ruby), fluent(php), sqlalchemy(python), ecto(elixir))?
>>
>>54376369
You don't.
>>
>>54376380
After 30 days as unregistered user you get shitty popup that indicates you have to be registered and you can't skip it without closing VS.
>>
>>54376376
It gives you absolute control over anything enumerable, and the syntax is pretty easy and straightforward.

It's not just for query building.
>>
* > XCode > Visual Studio 2015
>>
>>54376451
so... poorman map-reduce?
>>
What the best youtube channel to learn current C# and latest .Net technologies?

So not C# v4 and ugly Winform applications...
>>
File: sweet_shit.jpg (105 KB, 1061x1061) Image search: [Google]
sweet_shit.jpg
105 KB, 1061x1061
C# is the new VB, a literal fancy shit for teens.
>>
File: 2.jpg (17 KB, 393x315) Image search: [Google]
2.jpg
17 KB, 393x315
>>54376494
>learning programming from youtube
>>
File: KNBc6Y4.png (17 KB, 714x533) Image search: [Google]
KNBc6Y4.png
17 KB, 714x533
>>54376482
It's hard for me to answer your question, as the practical applications are widely varied.

For example, say you have a list of Widget objects. Each of these objects has a Foo and a Bar property, of type String and Int, respectively.

You can retrieve the list of Widgets as a list of strings using the Foo property with LINQ, pic related.

This is just a basic syntax example of list comprehension with LINQ, but there are some pretty neat things you can do with it once you start to abuse it in more complex programs.
>>
File: 1nA7rHP.png (33 KB, 4688x423) Image search: [Google]
1nA7rHP.png
33 KB, 4688x423
>>54376482
>>54376689
And here's project Euler #8, just for fun.

https://projecteuler.net/index.php?section=problems&id=8
>>
>>54376823
>hardcoding the string instead of reading it in from a file
You might as well just make it a print statement with the answer in it, you stupid idiot.
>>
garbage
>>
File: TZcmt30.png (14 KB, 695x291) Image search: [Google]
TZcmt30.png
14 KB, 695x291
>>54376934
It was merely an example.

Here, for your autism.
>>
>>54377031
i will add this to my portfolio now
>>
File: adsız.jpg (42 KB, 987x512) Image search: [Google]
adsız.jpg
42 KB, 987x512
hi anons
i need to find a algorithm which switches integer part and the other (dont know its english) part in a real number

for example, if input is "25.14", then output of algoritm must be "14.25"

any suggestions?
>>
File: absolutely_stallman.png (283 KB, 480x451) Image search: [Google]
absolutely_stallman.png
283 KB, 480x451
>>54375782
>What do you mean the installation is failing? Are you trying to pirate it or something? It's free.
Picture relates, it is not.
>>
>>54377083
What are you even doing, turkroach.
>>
>>54377083
shoo smelly turk shoo
>>
>>54376494
Brackeys is okay, but focused on /v/idya, still, the guy has a C# course with VS.
>>
File: ozbek.jpg (38 KB, 500x375) Image search: [Google]
ozbek.jpg
38 KB, 500x375
>>54377097
>>54377099
fucking term paper
>>
>>54377083
turn decimal into string
split string based on decimal, put end part in front, front part in back
turn back into decimal
>>
>>54376823
none-optimized shit
input = "insert euler string here"

arr = input.split('').map(&:to_i)
digits = 13

ret = []

arr[0..-digits].each_with_index do |v,i|
ret << arr[i...(i+digits)].reduce(:*)
end

puts ret.max
>>
File: fAlEgbU.png (9 KB, 650x249) Image search: [Google]
fAlEgbU.png
9 KB, 650x249
>>54377083
>>54377112

input.Split('.').Reverse().Aggregate((x, y) => x + '.' + y);
>>
>>54377172
im using turbo-pascal
>inb4 wtf
i know its fucked up
>>
>>54377186
wtf
anyway this shit is horribly inefficient, convert the integer/float to a string, reverse it, convert it back to an int/float

the other way is probably using bit shifts, etc.
>>
>>54376376
I'm sure LINQ was first of it's kind and everything else just ripped it off.
>>
>>54379082
>LINQ was first of it's kind
As someone who gets moist for C#, I highly doubt this is true.
>>
>>54379162
Well. It is not true for functional languages where that stuff is built into the language.

But Java and Python both got LINQ-copies after C# did.
>>
>>54379231
C# is getting pattern matching next.

Get hype.
>>
>>54379251
>C# is getting pattern matching next.
explain plox
>>
>>54379251
>>54379293
Actually. Few days back I read some github issue that said that "real" pattern matching will be pushed even further. That next version only get "something" and not really pattern matching.
>>
File: DvgiXTq.png (45 KB, 750x766) Image search: [Google]
DvgiXTq.png
45 KB, 750x766
>>54379293
See image.

>>54379321
>"real" pattern matching will be pushed even further
:(
>>
>>54379321
Found it : https://github.com/dotnet/roslyn/issues/10866
>>
>>54379333
>C# is getting pattern matching
So pretty much an easier way of using ifs to check the type and casting?
>>
>>54368686
The best shit ever.
>>
>>54379361
Sort of, but also with additional checks built in to cascade down.

Essentially, yeah. "If you match this pattern, do this. If you match THIS pattern, do this."

Usable with Types in a non-hacky way.
>>
What does Java do better than C#? I know JVM is a bit faster than CLR and C# doesn't have inner classes. anything more? I don't know C#
>>
>>54379436
>What does Java do better than C#?
Language itself? Nothing.
But ecosystem is much bigger so libraries are much easier to find. Supposedly.
>>
>>54379436
Slightly more fully compatible, especially on embedded devices.

However, C# is quickly catching up in that area too.

Ubiquitousness of usage across legacy apps, so good job security (for now).
>>
>>54369204
core is the version of .net going forward.
>>
>>54369342
>C# is worse then Java
in what way? C# is basically Java with better syntax

Java:
private int id  = -1;

public int getId()
{
return id;
}
public void setId(int id)
{
this.id = id;
}
//increment id
obj.setId(obj.getId()+1);


c#
public int Id {get; set;} = -1;
//increment Id
obj.Id++;
>>
>>54376494
Read a book
>>
>>54376494
Essential C# 6.0
>>
>>54379592
Which one? What's your favourite one?
>>
>>54379653

this >>54379648

or Murach's
>>
cw and then tab completes Console.Writeline();

Is there some shortcut for readline?
>>
>>54379648
>>54379733
This big one?
http://www.ebookee.pro/essential-c-6-0-5th-edition.html
>>
>>54368686

I think C# is pretty well designed.
Especially LINQ is a very cool feature.
>>
>>54379748
Why not just use WriteLine and ReadLine?

Are you from the year 2013 or something?

Add a static to System.Console at the top:
using static System.Console;
>>
>>54379764
yeah
>>
>>54379772
That's still kinda lond. cw+tab really is a shortcut

I know i can make a snippet but i was wondering maybe there already some shortcut that i don't know
>>
>>54368686
It is generally preferable to write in D flat as opposed to C# because not only does D flat have 2 less incidentals than C# (5 flats vs. 7 sharps) but if you write in C# you will very likely end up having to use double sharps.
>>
What about this?
http://www.ebookee.pro/c-6-and-net-core-1-0-modern-cross-platform-development.html
>>
>>54379810
I understood this joke.
>>
>>54368686
I think it's great.
>>
> development
> windows
> c#
> 2016

Winfags should die...
>>
Even php7 is better than this shit...
>>
There are too many botnets inside windows.
Furthermore almost all applications you can download for this platform have backdoors.
There are no reason to use windows for enterprises or advanced users.
>>
>>54376689
>You can retrieve the list of Widgets as a list of strings using the Foo property with LINQ, pic related.
Where is the list of strings you retard?
>>
File: nice.gif (2 MB, 320x240) Image search: [Google]
nice.gif
2 MB, 320x240
>>54380217
>>
>>54380450
Why C# over more recent languages like F#, Scala or Golang?
>>
>>54380217

There is no "xyz over anything else".
Every language has strengths and weaknesses.
>>
File: nice.png (32 KB, 435x269) Image search: [Google]
nice.png
32 KB, 435x269
>>54380496
>I am sixteen years old
>>
>>54372587
MIT license is actually more free than the restrictive GPL license.
>>
>>54380496
Different applications.

F# is a niche language and will be difficult for general-purpose software and application development

Scala is for huge scalable projects, hence the name, and will be difficult for general-purpose application development

Golang is google botnet designed for C-like applications, and does not come with a standard library of OS/GUI relevant functionality, making it difficult for general-purpose application development

can you see where this is going
>>
>>54368686
>At least it was a good starting point for learning Vala.
>>
>>54379521
Worse performance, mostly.
>>
File: snackisfaction.png (247 KB, 760x572) Image search: [Google]
snackisfaction.png
247 KB, 760x572
>>54382863
>>
>>54370390
java -> c# really wouldn't yeild any speed increases unrelated to simply rewriting the game anyway. they are extremely similar languages
>>
>>54369204

>The entire runtime environment and standard library is useless
>>
>>54386381
Yes, it is. Hence why you can't natively run paint.NET
>>
>>54380558
not true
F# is already being developed to have support for UWP
>>
File: image02.png (223 KB, 1200x456) Image search: [Google]
image02.png
223 KB, 1200x456
How to get "picture related" software but for windows?
>>
File: ios-sim-remoting-options.png (23 KB, 743x434) Image search: [Google]
ios-sim-remoting-options.png
23 KB, 743x434
WTF this is the shittiest shit I have ever seen in this shitty world.
>>
>>54368725
Open source is meaningless if it violates patents if you distribute it.
>>
File: image001.png (474 KB, 1999x1225) Image search: [Google]
image001.png
474 KB, 1999x1225
>>54388479
How to run this on windows?
Where is the download link?
>>
>>54388589
what is this glorious ide
>>
>>54379521
Oh wow you can use syntax to do something even a basic vim script can do. Cool....
>>
>>54370606
>Eclipse
>ever
Netbeans is really better. I quit Java for C instead, but I promise you Netbeans is the most enjoyable way to make software in Java.
>>
>>54368686
Having worked with both C# and Java I must say I prefer C#. I feel the LINQ, lambdas, properties, reflection, var-keyword are nicer to work with than their Java equivalents.

What I'm missing from both however are dynamic dispatch and Go-style automatic interface implementation.
>>
If you're developing on Windows application for Windows then C# is good for you.

Although anon keep claiming you can use it on Linux, sure you can, but good luck getting help because nobody actually develop C# application on Linux.
>>
>>54388599
Looks like MonoDevelop / Xamarin Studio
>>
>>54388479
>>54388589
Nigger, you have been told like 4 times that Xamarin Studio is no longer available on Windows.

Xamarin Studio is literally a part of Visual Studio now.
>>
>>54388604
Yes it's quite cool. Improved readability, more consistent syntax, error-proof(er) when refactoring, less lines of code - generally more comfy writing.
>>
>>54388589
>>54388479
I used Xamarin Studio on the mac

it was dogshit and visual studio is a shiton better
Thread replies: 157
Thread images: 27

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

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.
If a post contains personal/copyrighted/illegal content you can contact me at [email protected] with that post and thread number and it will be removed as soon as possible.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com, send takedown notices to them.
This is a 4chan archive - all of the content originated from them. If you need IP information for a Poster - you need to contact them. This website shows only archived content.