Skip to main content
30 events
when toggle format what by license comment
Feb 10, 2015 at 18:13 vote accept Epic Byte
Feb 6, 2015 at 16:54 comment added Brad Larson Mod @nhgrif - Sure, I sit on an advisory board for a local college and watched them migrate their entire Mac / iOS degree program over to Swift last summer. That's the language their new students are learning, but they are still making sure these students can at least read Objective-C. There are far too many resources (like questions here) in Objective-C that without this literacy these students would be at a disadvantage. They may not be able to develop in Objective-C, but they at least can read and translate it to Swift.
Feb 6, 2015 at 9:47 answer added TZHX timeline score: 8
Feb 6, 2015 at 7:58 answer added Aaron Brager timeline score: 7
Feb 6, 2015 at 6:05 answer added Nathan Runge timeline score: 3
Feb 6, 2015 at 1:53 comment added nhgrif @BradLarson Beleive it or not, there already are iOS developers who have learned only Swift: stackoverflow.com/questions/28357177/…
Feb 5, 2015 at 20:36 comment added jscs Related, more or less closely: How should we handle answers in a programming language other than what the OP requested?, Answers that use a different technology than what is asked, Answer for a different version of language than the version used by the OP
Feb 5, 2015 at 20:28 comment added the_lotus This looks very similar to .NET VB/C#. It's kind of rude to answer in C# when someone asked a question about VB.NET, but if the question is about the framework in general then it doesn't mater.
Feb 4, 2015 at 17:24 comment added Epic Byte the OP's language preference.
Feb 4, 2015 at 17:24 comment added Epic Byte @JarrodRoberson No where did I say they don't expect an answer in Objective-C. In fact, they obviously would expect an answer in Obj-C. The question now is, would it be acceptable for someone to answer in Swift. That is the entire reason for this discussion. Now you might ask, why answer in swift at all. It could be a convenience for people who have the same question but use swift(prevent duplicate questions). Maybe it doesn't really matter if the question were answered in Swift because the question is not very code based. In other words, does a good answer become unacceptable just because of
Feb 4, 2015 at 17:08 comment added Patrick @EpicByte If I'm following you correctly, I don't think I'd mind a swift answer to my Objective-C question (if it's broad enough, as you say, and not a specific to Objective-C problem), but as soon as someone comes along and posts your exact code translated to Objective-C, I would select their answer instead. I might even write my own answer of your Swift code translated to Obj-C and select it over yours. In other words, I'd say "You are being helpful, but your answer cannot be correct, fundamentally"
Feb 4, 2015 at 17:07 comment added user177800 Are you a mind reader? if they tagged Obj-C then who are you to second guess that they do not expect an answer in Obj-C? If someone asks about doing something in Spring and adds the Scala language tag then they are expecting an answer in Scala not Groovy or Java or whatever. And changing, removing or adding a language tag unilaterally is vandalism. A question about finding if a Point lies inside a Polygon tagged with C would expect an answer in C and not in C++ or any other language.
Feb 4, 2015 at 17:07 comment added Epic Byte @JarrodRoberson The problem is the Objective-C tag is often used in questions that are not about the language but about the APIs. People either use that tag accidentally, or maybe they use it because that is the language they are working with and want their response in.
Feb 4, 2015 at 17:04 comment added Epic Byte @JarrodRoberson I think you misunderstand the question. I'm saying in cases where the question is about general iOS/OS X development (I.e. API usage, how do I align UILabel text) and independent of the language. Given your response, I assume you would argue that such a question should not have been tagged with Obj-C in the first place, correct?
Feb 4, 2015 at 16:53 comment added user177800 how is a question with the language tag java not about the java language? would a question tagged regex that was about parsing get a yacc/bison/antlr answer as a valid answer? No, it would not. Would someone be out of line adding those tags just so they could answer in that context? Yes they would. This is a ridiculous circular argument you are making about implied overly broad semantics. By your skewed logic, every thing can be answered in any language because it is all about programming or algorithms right?
Feb 4, 2015 at 16:51 comment added user177800 and do not go adding language tags if someone has already added one or the other, if a question is in C# and you want to provide a VB.net answer you do not get to just add the VB.net language tag unilaterally, that would be a harmful edit.
Feb 4, 2015 at 16:50 comment added Epic Byte @JarrodRoberson But the question wouldn't be about the language, but rather how to use the APIs. So that analogy doesn't really work.
Feb 4, 2015 at 16:43 comment added user177800 would posting answers in Groovy, Scala, Python, or JavaScript to a question tagged Java be appropriate just because the JVM can execute those languages as well?
Feb 4, 2015 at 15:22 answer added Monolo timeline score: 50
Feb 4, 2015 at 4:33 history edited AstroCB CC BY-SA 3.0
The proper spelling (despite the tag name) is 'downvote' (one word).
Feb 4, 2015 at 4:30 answer added AstroCB timeline score: 2
Feb 3, 2015 at 20:28 history edited Epic Byte CC BY-SA 3.0
added 4 characters in body
Feb 3, 2015 at 19:44 comment added Brad Larson Mod @JoshCaswell - The interesting aspect is that the APIs were defined in Objective-C, with Swift built in part to provide backwards compatibility to this, and we've grown a large knowledge base around Objective-C. For questions where the Swift implementation would deviate significantly from Objective-C (due to language features or things like pointer handling), I can definitely see these standing on their own. We might see a larger number of "translate this for me" questions as developers are brought up in a Swift-first environment, and I'm genuinely curious as to how we should handle these.
Feb 3, 2015 at 19:34 comment added jscs Of course, the basic competency of the asker is a part of this issue, too. Swift is a C-like language, whose syntax is even in part based on ObjC. For simple tasks -- like the two-line solution to the question @Brad linked -- it's not entirely unreasonable to expect the poster to be able to do the translation. But then again, as time moves on, there are likely to be developers who start with Swift, never really learning ObjC. What should we expect of them; is there any reason not to have Swift-specific artifacts on SO for them?
Feb 3, 2015 at 19:29 comment added jscs On the other hand, @BradLarson, we wouldn't mark a question about doing something with a third-party Android/Java SDK as a duplicate of the same task for the iOS/ObjC version of the SDK, even though (as you say) "what's important here is the API, not [the language]". I'm sort of split on this question. You're right that e.g., "How do I store an NSColor in NSUserDefaults... in Swift?" is probably not going to produce a substantially different answer than the ObjC version. But I also really don't think that replying in Swift to a question whose code is ObjC (or v.v.) is particularly helpful.
Feb 3, 2015 at 18:47 comment added JasonMArcher I have downvoted many such answers, but only where the question is truely about Objective-C. Such a question would be of the "I have a problem when I try to do X" variety. I doubt anyone is going to rewrite their 10k line program into Swift so they can use an answer from SO. But there are other questions such as "How do you use API Y?" that would benefit from answers in both languages.
Feb 3, 2015 at 18:17 comment added Brad Larson Mod A related, and perhaps more involved question: should questions asking for a way to solve something, tagged as Swift, be closed as duplicates of questions that have answers for how to do that in Objective-C? See the debate around this question: stackoverflow.com/questions/28263403/… as an example. Do we want the older Objective-C iOS and Mac development questions to be re-asked in Swift?
Feb 3, 2015 at 18:09 answer added Robert HarveyMod timeline score: 83
Feb 3, 2015 at 16:50 answer added UndoMod timeline score: -3
Feb 3, 2015 at 16:26 history asked Epic Byte CC BY-SA 3.0