"JUST BECAUSE YOU'RE USING SWIFT DOESN'T MEAN YOUR QUESTION IS ABOUT SWIFT"
How To Get Answers
Ask your question and then be patient. Tell us what you want to happen, what is actually happening, and include any error messages you find:
- Provide a scenario. "I am trying to do X, I do so by calling APIs W and Y, but Z happens instead. I see the following error messages:..."
- Focus on the goal. Ask about what you're trying to achieve (the big story) rather than the specific technical detail that you believe is holding you back.
- Don't solicit help. Don't say, "Does anyone here know about (for example) Protocol Extensions". Just ask your question.
- Do your homework. Search the web before asking in-channel.
- Be courteous Don't just paste Stack Overflow questions in-channel.
- Remember the topic Refer questions about third party libraries to their developers.
- Asking questions: Getting help on IRC, Smart Questions, Getting Answers, What have you tried?
- Online Compiler: IBM Swift Sandbox (3.0)
- Official Docs:
- Other Apple Resources:
- Autogenerated Standard Library Docs Reference: http://swiftdoc.org
- Paste: http://gist.github.com (avoid pastebin), Screenshots: http://imgur.com
- About NDAs. Swift is now open source.
iOS #iphonedev • OSX #macdev • Off-Topic #iphonedev-chat • New to Apple Dev #cocoa-init • watchOS #ioswatchdev • tvOS #appletvdev
Q: What do you mean my question isn't about
Swift is a Programming Language, like
Objective-C. The language exists on its own, even outside a framework such as AppKit or UIKit.
Swiftquestion: How do
- AppKit question: How do I create a semi-transparent non-rectangular
- UIKit question: Why can't I embed a navigation controller inside a tab bar controller? I'm trying desperately to learn this language, someone said "use autolayout", then someone said, "use withVisualFormat"?
Q: But I'm using
Swift in my example!
A: Your question is likely about how to use a part of the frameworks Apple provides to developers, such as AppKit or UIKit. These sorts of questions are better suited to the communities built around them like #macdev or #iphonedev. Many of us are in those channels too and would love to help you out there!
Q: Can I get help on AlamoFire/SwiftyJSON/CocoaPods/Carthage/Masonry?
A: Take questions about 3rd party packages to channels that are specific to those implementations. This room is for Swift language discussions.
Q: Which is best? SwiftyJSON or AlamoFire?
Q: But I never had any issues with this technology until I started using
A: Don't ask "How do I use Some API or Framework in
Swift?" Construct a language-specific question. If you see the word Optional anywhere, you may need to unwrap your results before using them. (Caution: Link is slightly out of date but the concepts are the same.) Other common issues involve Swift error chaining (and with the
throws keywords) and type safety limitations.
Q: What are the channel rules?
- Read the docs.
- Google first. Ask second. Search the web thoroughly. Talk out your problem to yourself before asking questions in-channel.
- Be resourceful. Figure out how to participate without constant hand-holding. Don't be a help vampire. It's a bannable offense.
- Debug your own code. Ask for advice, not specific solutions. If you can't thoughtfully evaluate your own work, you shouldn't be in this channel.
- Show respect. This is a volunteer-staffed channel. Each member's time is worth at least as much as your own. Remember to say "Thanks!"
- Don't say it "doesn't work". Explain your problem completely and concisely.
- Show your code. If you don't want to or can't show your code, create a minimal project that demonstrates your issue.
- Use a paste site. Never paste multiple lines of code directly into the channel. Don't paraphrase. Show your actual code and error messages.
- Don't cross-post your question to multiple rooms.
- Do not publicly log conversations. Think of #swift-lang as a coffee shop. If you cannot overhear the conversation as it happens, the words should be gone forever. We will ban any logging bots brought into the channel.
Q: But I asked in another room and no one answered!
A: The question is still off topic. We will ban repeat offenders.