- A — Accessible, is the code accessible?
- M — Maintainable, can the code be easily reasoned about?
- O — Organized, does the naming and file structure of the code make sense?
- P — Performant, are there any performance issues introduced by the code?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Playground - noun: a place where people can play | |
import Foundation | |
import UIKit | |
//Implicit inmutable variable | |
let dojoNinjas = 1 | |
//Implicit mutable variable | |
var ninjaApprentices = 1500 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Original Content : http://yourcodesucksexception.blogspot.in/2015/11/things-ive-learned-while-building-ios.html | |
xcodebuild -workspace PULPulsate.xcworkspace -scheme PULPulsate -sdk iphonesimulator -configuration Release | |
xcodebuild -workspace PULPulsate.xcworkspace -scheme PULPulsate -sdk iphoneos -configuration Release | |
mkdir -p ${TARGET_BUILD_DIR}/../PULPulsate${CURRENT_PROJECT_VERSION} | |
cp -r ${TARGET_BUILD_DIR}/../Release-iphonesimulator/ ${TARGET_BUILD_DIR}/../PULPulsate${CURRENT_PROJECT_VERSION} | |
lipo -create "${TARGET_BUILD_DIR}/../Release-iphoneos/PULPulsate.framework/PULPulsate" "${TARGET_BUILD_DIR}/../Release-iphonesimulator/PULPulsate.framework/PULPulsate" -output "${TARGET_BUILD_DIR}/../PULPulsate${CURRENT_PROJECT_VERSION}/PULPulsate.framework/PULPulsate" |
Instructions for manually symbolicating partially symbolicated Crash Logs in Xcode 7.2:
Create a folder on your computer. I called mine “Crash Stuff” in the example.
We’re going to need 3 things to symbolicate .crash files.
- The .dSYM that relates to the crash files.
- The symbolicatecrash script
- The .crash file that we want to symbolicate
Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.
- Follow standard conventions.
- Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
- Boy scout rule. Leave the campground cleaner than you found it.
- Always find root cause. Always look for the root cause of a problem.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Foundation | |
import Alamofire | |
import RxSwift | |
import RxCocoa | |
protocol ClientProtocol { | |
func request<Response>(_ endpoint: Endpoint<Response>) -> Single<Response> | |
} |
| Title | Description
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
OlderNewer