Skip to main content

Timeline for Can we update C#'s excerpt?

Current License: CC BY-SA 4.0

28 events
when toggle format what by license comment
Oct 1, 2018 at 12:10 vote accept Camilo Terevinto
Oct 1, 2018 at 9:47 comment added Lundin @jpmc26 The best way to do this in C is not to use function pointers, but to create some object.h and object.c with a list of functions that is to be regarded as member functions. You interact with these through an opaque pointer which provides the necessary private encapsulation and possibility of inheritance. Does it allow the syntax object.func()? No. Is that a requirement in OO design? No. For the same reason as C++ operator overloading isn't a requirement. OO is about program design, not about language syntax.
Oct 1, 2018 at 7:14 comment added jpmc26 @Lundin The only way to attach functions to a data structure in C is via an explicit pointer. There is no privacy or actual binding of the function to the struct. See stackoverflow.com/a/351745/1394393. That isn't an improvement over just calling the functions. It's clunky as all heck. As for, "it's all about designing the rough layout of the program before writing a single line of code in any language," no, this is just wrong. You yourself lay out (in the next comment) the common features that an OO language needs to support to make attempting the paradigm practical.
Oct 1, 2018 at 7:06 comment added Lundin That being said, it's fairly easy to do in C without much fuss, if you are competent. OO meaning private encapsulation, autonomous objects and a bit of inheritance. Having to call constructors/destructors manually is inconvenient and there's no RAII, but other than that, OO works ok in C. If you know what you are doing. If you don't... well, then don't use OO in C.
Oct 1, 2018 at 7:03 comment added Lundin @jpmc26 It's not splitting hairs. If you know the slightest about OO, then you will know it's all about designing the rough layout of the program before writing a single line of code in any language.
Sep 29, 2018 at 19:43 comment added jpmc26 @Lundin You're splitting hairs. Object orientation is utterly impractical and ill-advised in C. It's like saying you can write functional code in C#. Sure, if you practically build another language inside it. An OO language is a language that has support for it built in, making the paradigm doable in a practical way.
Sep 28, 2018 at 23:05 answer added Camilo Terevinto timeline score: 2
Sep 28, 2018 at 10:00 comment added Lundin The average programmer doesn't necessarily understand the meaning of "multi-paradigm language", while object-orientation is an established term. Strictly speaking, there is no such thing as an "object-oriented programming language", since object-orientation is a way to design programs. You can for example make C programs that are object-oriented, and you can make C# programs that are not. There are however languages with support for object-oriented features.
Sep 27, 2018 at 18:48 answer added jpmc26 timeline score: 15
Sep 27, 2018 at 18:31 comment added jpmc26 So if we want to improve the tag wiki, maybe we should tone down the marketing and focus on communicating some useful info?
Sep 27, 2018 at 18:30 comment added Camilo Terevinto @jpmc26 Yeah, just like every language tag does
Sep 27, 2018 at 18:29 comment added jpmc26 @CamiloTerevinto Also, only 2 of those are even language paradigms.
Sep 27, 2018 at 18:23 comment added jpmc26 The wiki also says it's designed to be OO: en.wikipedia.org/wiki/… It's self contradictory. It also reads like a marketing pamphlet that tries to throw in as many buzzwords as possible.
Sep 27, 2018 at 18:22 comment added Camilo Terevinto @jpmc26 "imperative, declarative, functional, generic, object-oriented (class-based), and component-oriented programming", that's basically the definition of multi-paradigm, please read en.wikipedia.org/wiki/Programming_paradigm
Sep 27, 2018 at 18:18 comment added jpmc26 It is definitely not multi-paradigm. Having lambdas and closures thrown in does not make it a functional language. Static functions are still second class citizens, for example.
Sep 27, 2018 at 17:04 comment added Camilo Terevinto @0xaryan There was already problem for plagiarizing Wikipedia, so let's not repeat history: meta.stackoverflow.com/questions/302436/…
Sep 27, 2018 at 16:07 comment added Avestura Wikipedias definition is much more accurate: C# (pronounced C sharp) is a general-purpose, multi-paradigm programming language encompassing strong typing, imperative, declarative, functional, generic, object-oriented (class-based), and component-oriented programming disciplines.
Sep 27, 2018 at 14:41 comment added Petter Friberg maybe just rollback to revision 47 and be done with it.
Sep 27, 2018 at 13:51 comment added rene We run the risk we offend Jon Skeet if we get this wrong.
Sep 27, 2018 at 12:16 comment added Petter Friberg I will give you an example in a tag where I know what the problem is 1. They don't add main tag (If not no-one will probably see it) 2. They often add the tag even if not really related stackoverflow.com/review/suggested-edits/20975042, my english is not the best but a diligent Asker could get some guidance from that how to tag the question.
Sep 27, 2018 at 12:02 comment added Petter Friberg but I'm just guessing what the common tagging errors are
Sep 27, 2018 at 12:01 comment added Petter Friberg @Camilo I'm not an expert, but to me the include code stuff is wrong (let's hope Mark Amery) does not see that :), I have no experience in questions in that tag but a guidance would be something related to common problems in tagging, like "Always add this tag if your code is in C#, if the question is directly related to a specific version add version tag, please do only add tag of IDE if you have an IDE problem"
Sep 27, 2018 at 11:36 comment added Camilo Terevinto @PetterFriberg Yeah, but the current excerpt doesn't even help with saying when it should be used. How about something like my edit?
Sep 27, 2018 at 11:36 history edited Camilo Terevinto CC BY-SA 4.0
added 429 characters in body
Sep 27, 2018 at 8:52 comment added Hans Passant It has been edited 59 times already. Meta is rarely a great place to find consensus about something so subjective even among the experts in a tag. If you truly want to reset this back from scratch then it doesn't need anything more than "C# is a programming language". The rest is pretty noisy elevator pitch, but somebody is going to add it back in less than a week :) Consider to just get rid of the repetition.
Sep 27, 2018 at 8:27 comment added Petter Friberg excerpt should be guidance when to use the tag, yes it needs updating, but you need to tell me when to use the tag and when not to use it, not just some general stuff about C#
Sep 27, 2018 at 8:23 comment added Emaro I agrree with the problems you pointed out. However your suggestion seems to general to me, since it could be used for every high-level, multi-paradigm language. Although C# is not restricted to them, .NET, type-safety (and object-oriented focus) are very important aspects of the language. Maybe these parts could be weakened. I wouldn't completely remove them.
Sep 26, 2018 at 23:35 history asked Camilo Terevinto CC BY-SA 4.0