Skip to content
This repository has been archived by the owner on Mar 8, 2020. It is now read-only.

Latest commit

 

History

History
65 lines (34 loc) · 3.79 KB

README.md

File metadata and controls

65 lines (34 loc) · 3.79 KB

Lordcodes Development Tips 😎

ARCHIVED. This repository is no longer updated or maintained. Tips have been moved to my website.

License @lordcodes Lord Codes Blog

I love writing code and I am always trying out new ideas and discovering interesting ways of solving problems. My main focuses are on Android and iOS development, using Kotlin and Swift. To help find the tips and tricks, I will keep them all collected here, grouped by language.

Each tip will include links back to where it was originally shared on Twitter and sometimes Reddit. If you have any thoughts or questions on any I have shared, then please reach out to me there. I am always looking to learn so would love to discuss any better or alternative ways of doing things.

If you like what I am sharing, please don't hesitate to follow me on Twitter and check out my blog.

Kotlin Tips

Swift Tips

Kotlin Tips

#5 Android signing key-store details from Gradle properties

#4 Set up Kotlin sources in src/main/kotlin from Gradle Kotlin DSL

#3 Make the ktlint Gradle task incremental

#2 Enable Java 8 compatibility for Kotlin sources

#1 Manage Gradle dependencies using Kotlin code in buildSrc

Swift Tips

#15 Dealing with file extensions and Uniform Type Identifiers

#14 Ignore nil elements in an RxSwift Observable stream

#13 Simpler categories using os_log

#12 Map the keys of a dictionary to a different type

#11 Match parent's constraints

#10 Animating view colour changes

#9 Create time intervals with explicit units

#8 Accessing localised strings from code using SwiftGen

#7 Protocol function with default values

#6 Safely index items within a collection

#5 Access the call site using Swift special literals

#4 Sharing accessibility identifiers between app and tests

#3 Protocol function that returns the Self type

#2 Using metatype Self to return current type

#1 Child view controller constraints within a subview

Contributing

If you notice any typing mistakes or errors in the code snippets, then please feel free to let me know with a PR.